New locale for lzh_TW
[platform/upstream/glibc.git] / ChangeLog
1 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
2
3         * manual/threads.texi (POSIX Threads): Fix a typo.
4
5 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
6
7         [BZ #14547]
8         * string/tst-strcoll-overflow.c: New test case.
9         * string/Makefile (xtests): Add tst-strcoll-overflow.
10         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
11         cache if string sizes may cause integer overflow.
12
13         [BZ #14547]
14         * string/strcoll_l.c (coll_seq): New members rule, idx,
15         save_idx and back_us.
16         (get_next_seq_nocache): New function.
17         (do_compare_nocache): New function.
18         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
19         when malloc fails.
20
21 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
22
23         [BZ #15754]
24         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
25         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
26         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
27
28         [BZ #15754]
29         * elf/Makefile (tests): Add tst-ptrguard1.
30         (tests-static): Add tst-ptrguard1-static.
31         (tst-ptrguard1-ARGS): Define.
32         (tst-ptrguard1-static-ARGS): Define.
33         * elf/tst-ptrguard1.c: New file.
34         * elf/tst-ptrguard1-static.c: New file.
35         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
36         * sysdeps/i386/stackguard-macros.h: Likewise.
37         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
38         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
39         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
40         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
41         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
42         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
43
44 2013-09-23  Hector Marco  <hecmargi@upv.es>
45             Ismael Ripoll  <iripoll@disca.upv.es>
46             Carlos O'Donell  <carlos@redhat.com>
47
48         [BZ #15754]
49         * sysdeps/generic/stackguard-macros.h: Define
50         __pointer_chk_guard_local and POINTER_CHK_GUARD.
51         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
52         Define __pointer_chk_guard_local.
53         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
54         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
55
56 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
57
58         [BZ #15859]
59         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
60
61 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
62
63         * include/string.h (__ffs): Declare as hidden.
64         * string/ffs.c (__ffs): Define as hidden.
65         * sysdeps/i386/ffs.c (__ffs): Likewise.
66         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
67         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
68         * sysdeps/s390/ffs.c (__ffs): Likewise.
69         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
70
71 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
72
73         * NEWS: Mention malloc probes.
74
75         * malloc/arena.c (new_heap): New memory_heap_new probe.
76         (grow_heap): New memory_heap_more probe.
77         (shrink_heap): New memory_heap_less probe.
78         (heap_trim): New memory_heap_free probe.
79         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
80         (systrim): New memory_sbrk_less probe.
81         * manual/probes.texi: Document them.
82
83         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
84         * manual/probes.texi: Document it.
85
86         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
87         (__libc_realloc): Add memory_realloc_retry probe.
88         (__libc_memalign): Add memory_memalign_retry probe.
89         (__libc_valloc): Add memory_valloc_retry probe.
90         (__libc_pvalloc): Add memory_pvalloc_retry probe.
91         (__libc_calloc): Add memory_calloc_retry probe.
92         * manual/probes.texi: Document them.
93
94         * malloc/arena.c (get_free_list): Add probe
95         memory_arena_reuse_free_list.
96         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
97         and memory_arena_reuse.
98         (arena_get2) [!PER_THREAD]: Likewise.
99         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
100         memory_arena_reuse_realloc.
101         * manual/probes.texi: Document them.
102
103         * malloc/malloc.c (__libc_free): Add
104         memory_mallopt_free_dyn_thresholds probe.
105         (__libc_mallopt): Add multiple memory_mallopt probes.
106         * manual/probes.texi: Document them.
107
108         * malloc/malloc.c: Include stap-probe.h.
109         (__libc_mallopt): Add memory_mallopt probe.
110         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
111         * manual/probes.texi: New.
112         * manual/Makefile (chapters): Add probes.
113         * manual/threads.texi: Set next node.
114
115 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
116
117         [BZ #15963, #13985]
118         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
119         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
120         Add `Chinese' to `nan' entry name.
121
122 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
123
124         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
125         (POLYNOMIAL): Likewise.
126         (TAYLOR_SINCOS): Likewise.
127         (TAYLOR_SLOW): Likewise.
128         (__sin): Use TAYLOR_SINCOS.
129         (__cos): Likewise.
130         (slow): Use TAYLOR_SLOW.
131         (sloww): Likewise.
132         (bsloww): Likewise.
133         (csloww): Likewise.
134
135 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
136
137         * stdlib/strtod_l.c: Fix buffer overrun.
138
139 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
140
141         * benchtests/Makefile (bench): Add sincos.
142         * benchtests/bench-sincos.c: New file.
143
144         * math/libm-test.inc (cos_test_data): New test inputs.
145         (sin_test_data): Likewise.
146
147         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
148         macro.
149         (__sin): Use it.
150         (__cos): Likewise.
151         (slow1): Likewise.
152         (slow2): Likewise.
153         (sloww1): Likewise.
154         (sloww2): Likewise.
155         (bsloww1): Likewise.
156         (bsloww2): Likewise.
157         (cslow2): Likewise.
158         (csloww1): Likewise.
159         (csloww2): Likewise.
160
161         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
162         function.
163         (__sin): Use it.
164         (__cos): Likewise.
165
166         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
167         gotos.
168         (__cos): Likewise.
169
170 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
171
172         * config.h.in (HAVE_MIPS_NAN2008): New macro.
173         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
174         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
175         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
176         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
177         * elf/cache.c (print_entry): Handle the new cache flags.
178
179 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
180             Aldy Hernandez  <aldyh@redhat.com>
181
182         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
183         Change condition to [_SOFT_FLOAT].
184         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
185         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
186         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
187         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
188         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
189         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
190         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
191         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
192         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
193         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
194         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
195         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
196         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
197         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
198         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
199         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
200         declaration.
201
202 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
203
204         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
205         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
206         (__longjmp): Use LOAD_GP to load saved GPRs.
207         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
208         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
209         (__sigsetjmp): Use SAVE_GP to save GPRs.
210
211         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
212         Do not append -msoft-float.
213         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
214
215 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
216
217         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
218
219 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
220
221         [BZ #15966]
222         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
223         (_FPU_GETCW): Use initial "__" on variable and field names but not
224         on macro parameter name.
225         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
226         parentheses around reference to macro parameter.
227
228 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
229
230         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
231         prototype.
232         (ctype_startup): Use uint32_t in cast and sizeof for
233         ctype->charnames.
234
235 2013-09-11  Jia Liu  <proljc@gmail.com>
236
237         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
238         __daddr_t_defined.
239         [__FreeBSD__]: Likewise.
240
241 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
242
243         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
244         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
245         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
246         (strchr): Remove __strchr_sse42 ifunc selection.
247         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
248         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
249
250 2013-09-11  Will Newton  <will.newton@linaro.org>
251
252         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
253         parameter to RES. Remove hardcoded 1000 value.
254         * benchtests/bench-skeleton.c (main): Pass RES parameter
255         to TIMING_INIT and multiply result by 1000.
256
257 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
258
259         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
260
261 2013-09-11  Andreas Schwab  <schwab@suse.de>
262
263         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
264         if not defined.
265         (O_TMPFILE) [__USE_GNU]: Define.
266         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
267         Define.
268
269 2013-09-11  Will Newton  <will.newton@linaro.org>
270
271         [BZ #15857]
272         * malloc/malloc.c (__libc_memalign): Check the value of bytes
273         does not overflow.
274
275 2013-09-11  Will Newton  <will.newton@linaro.org>
276
277         [BZ #15856]
278         * malloc/malloc.c (__libc_valloc): Check the value of bytes
279         does not overflow.
280
281 2013-09-11  Will Newton  <will.newton@linaro.org>
282
283         [BZ #15855]
284         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
285         does not overflow.
286
287 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
288
289         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
290         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
291         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
292         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
293         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
294
295 2013-09-10  Allan McRae  <allan@archlinux.org>
296
297         [BZ #15748]
298         * manual/arith.texi (Parsing of Floats): Clarify
299         cross-reference.
300
301         [BZ #15849]
302         * manual/install.texi (Running make install): Mention
303         --enable-pt-chown.
304         * INSTALL: Regenerated.
305
306 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
307
308         * csu/init-first.c (_init): Remove the !SHARED condition around
309         FPU control word initialization.
310         * elf/dl-support.c (_dl_fpu_control): New variable.
311         (_dl_aux_init) <AT_FPUCW>: Initialize it.
312         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
313         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
314         * math/test-fpucw-static.c: New file.
315         * math/test-fpucw-ieee.c: New file.
316         * math/test-fpucw-ieee-static.c: New file.
317         * math/Makefile (tests): Add `test-fpucw-ieee' and
318         `$(tests-static)'.
319         (tests-static): New variable.
320         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
321         dependency to...
322         [($(build-shared),yes)]
323         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
324         ... this.
325         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
326         New dependency.
327
328 2013-09-09  Allan McRae  <allan@archlinux.org>
329
330         [BZ #15939]
331         * manual/string.texi (Collation Functions): Fix typo in
332         strcoll example.
333         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
334
335         [BZ #15893]
336         * stdlib/isomac.c (get_null_defines): Fix memory leak.
337
338         [BZ #15892]
339         * libio/memstream.c (open_memstream): Fix memory leak.
340         * libio/wmemstream.c (open_wmemstream): Likewise.
341
342         [BZ #15895]
343         * nscd/netgroupcache.c: Fix nesting of ifdefs.
344
345 2013-09-09  Will Newton  <will.newton@linaro.org>
346
347         * malloc/Makefile: Add tst-realloc to tests.
348         * malloc/tst-realloc.c: New file.
349
350 2013-09-09  Allan McRae  <allan@archlinux.org>
351
352         [BZ #15844]
353         * COPYING: Update from GNU website to fix FSF address.
354         * COPYING.LIB: Likewise.
355
356 2013-09-06  David S. Miller  <davem@davemloft.net>
357
358         * po/zh_TW.po: Update Chinese (traditional) translation from
359         translation project.
360
361 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
362             Joseph Myers  <joseph@codesourcery.com>
363
364         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
365         "localeinfo.h".
366         (obstack_chunk_alloc): New macro.
367         (obstack_chunk_free): Likewise.
368         (record_offset): New function.
369         (init_locale_data): Likewise.
370         (align_locale_data): Likewise.
371         (add_locale_empty): Likewise.
372         (add_locale_raw_data): Likewise.
373         (add_locale_raw_obstack): Likewise.
374         (add_locale_string): Likewise.
375         (add_locale_wstring): Likewise.
376         (add_locale_uint32): Likewise.
377         (add_locale_uint32_array): Likewise.
378         (add_locale_char): Likewise.
379         (start_locale_structure): Likewise.
380         (end_locale_structure): Likewise.
381         (start_locale_prelude): Likewise.
382         (end_locale_prelude): Likewise.
383         (write_locale_data): Take locale_file structure rather than an
384         iovec.
385         * locale/programs/locfile.h: Include "obstack.h".
386         (struct locale_file): Change to store locale file contents instead
387         of header.
388         (init_locale_data): New prototype.
389         (align_locale_data): Likewise.
390         (add_locale_empty): Likewise.
391         (add_locale_raw_data): Likewise.
392         (add_locale_raw_obstack): Likewise.
393         (add_locale_string): Likewise.
394         (add_locale_wstring): Likewise.
395         (add_locale_uint32): Likewise.
396         (add_locale_uint32_array): Likewise.
397         (add_locale_char): Likewise.
398         (start_locale_structure): Likewise.
399         (end_locale_structure): Likewise.
400         (start_locale_prelude): Likewise.
401         (end_locale_prelude): Likewise.
402         (write_locale_data): Update prototype.
403         * locale/programs/3level.h (struct TABLE): Remove result field.
404         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
405         Use new locale_file interface.
406         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
407         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
408         * locale/programs/ld-address.c (address_output): Use new
409         locale_file interface.
410         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
411         NO_ADD_LOCALE.
412         (collate_finish): Don't call collseq_table_finalize.
413         (collate_output): Use new locale_file interface.
414         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
415         in file.
416         (NO_FINALIZE): Change to NO_ADD_LOCALE.
417         (TABLE): Move defines earlier in file.
418         (ELEMENT): Likewise.
419         (DEFAULT): Likewise.
420         (wctrans_table_add): Move macro and inline function earlier in
421         file.
422         (struct wctype_table): Move type earlier in file.
423         (add_locale_wctype_table): New static prototype.
424         (struct locale_ctype_t): Use logical types instead of struct iovec
425         pointers for members.
426         (ctype_output): Use new locale_file interface.
427         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
428         new locale_file interface.
429         (allocate_arrays): Update for use of new locale_file interface.
430         * locale/programs/ld-identification.c (identification_output): Use
431         new locale_file interface.
432         * locale/programs/ld-measurement.c (measurement_output): Likewise.
433         * locale/programs/ld-messages.c (messages_output): Likewise.
434         * locale/programs/ld-monetary.c (monetary_output): Likewise.
435         * locale/programs/ld-name.c (name_output): Likewise.
436         * locale/programs/ld-numeric.c (numeric_output): Likewise.
437         * locale/programs/ld-paper.c (paper_output): Likewise.
438         * locale/programs/ld-telephone.c (telephone_output): Likewise.
439         * locale/programs/ld-time.c (time_output): Likewise.
440
441 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
442
443         * benchtests/Makefile: Add memrchr benchmark.
444         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
445         benchmark as memrchr.
446         * benchtests/bench-memrchr-ifunc.c: New file.
447         * benchtests/bench-memrchr.c: New file.
448
449 2013-09-06   Will Newton  <will.newton@linaro.org>
450
451         * benchtests/Makefile (string-bench): Add memcpy.
452
453 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
454             Cong Wang  <amwang@redhat.com>
455
456         * sysdeps/unix/sysv/linux/bits/in.h
457         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
458         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
459         before __USE_KERNEL_IPV6_DEFS uses.
460         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
461         IPPROTO_BEETPH.
462         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
463         sockaddr_in6, or ipv6_mreq.
464
465 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
466
467         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
468         memory access for final bytes in some large inputs.
469         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
470
471 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
472
473         * string/test-memrchr.c: New file.
474         * string/test-memrchr-ifunc.c: New file.
475         * string/Makefile: Add new memrchr testcase.
476
477 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
478
479         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
480         fanotify_init returns EPERM.
481
482 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
483
484         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
485         errors.
486         (top level): Treat second token from macro or constant entries for
487         allowed headers as allowed.
488         * include/complex.h: Condition internal declarations on
489         [!_ISOMAC].
490         * include/fenv.h: Condition include of <stdbool.h> and internal
491         declarations on [!_ISOMAC].
492
493 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
494
495         [BZ #15923]
496         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
497
498 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
499
500         * configure.in (--enable-versioning): Remove configure option.
501         (libc_cv_asm_symver_directive): Remove configure test.
502         (libc_cv_ld_version_script_option): Likewise.
503         (VERSIONING): Remove variable and AC_SUBST.
504         (DO_VERSIONING): Remove AC_DEFINE.
505         * configure: Regenerated.
506         * config.h.in (DO_VERSIONING): Remove macro.
507         * Makerules [$(versioning) = yes]: Change conditionals to
508         [$(build-shared) = yes].
509         * config.make.in (versioning): Remove variable.
510         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
511         [$(build-shared) = yes].
512         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
513         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
514         * elf/Makefile [$(versioning) = yes]: Change conditionals to
515         [$(build-shared) = yes].
516         * extra-lib.mk [$(versioning) = yes]: Likewise.
517         * hurd/Makefile [$(versioning) = yes]: Likewise.
518         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
519         [SHARED].
520         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
521         [SHARED].
522         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
523         [SHARED && !NO_HIDDEN].
524         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
525         [SHARED].
526         [SHARED && DO_VERSIONING]: Likewise..
527         * libio/Makefile [$(versioning) = yes]: Change conditionals to
528         [$(build-shared) = yes].
529         * manual/install.texi (--disable-versioning): Remove
530         documentation.
531         * INSTALL: Regenerated.
532         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
533         to [SHARED].
534         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
535         [$(build-shared) = yes].
536         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
537         * sysdeps/i386/i686/multiarch/strstr-c.c
538         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
539         [SHARED && !NO_HIDDEN].
540         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
541         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
542         * sysdeps/powerpc/powerpc32/dl-machine.c
543         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
544         * sysdeps/powerpc/powerpc32/sysdep.h
545         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
546         to [SHARED && PIC && !NO_HIDDEN].
547         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
548         conditional to [SHARED].
549
550 2013-09-04   Will Newton  <will.newton@linaro.org>
551
552         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
553         * benchtests/bench-string.h: Include bench-timing.h instead
554         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
555         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
556         call to HP_TIMING_DIFF_INIT.
557         * benchtests/bench-memccpy.c: Use bench-timing.h macros
558         instead of hp-timing.h macros.
559         * benchtests/bench-memchr.c: Likewise.
560         * benchtests/bench-memcmp.c: Likewise.
561         * benchtests/bench-memcpy.c: Likewise.
562         * benchtests/bench-memmem.c: Likewise.
563         * benchtests/bench-memmove.c: Likewise.
564         * benchtests/bench-memset.c: Likewise.
565         * benchtests/bench-rawmemchr.c: Likewise.
566         * benchtests/bench-strcasecmp.c: Likewise.
567         * benchtests/bench-strcasestr.c: Likewise.
568         * benchtests/bench-strcat.c: Likewise.
569         * benchtests/bench-strchr.c: Likewise.
570         * benchtests/bench-strcmp.c: Likewise.
571         * benchtests/bench-strcpy.c: Likewise.
572         * benchtests/bench-strcpy_chk.c: Likewise.
573         * benchtests/bench-strlen.c: Likewise.
574         * benchtests/bench-strncasecmp.c: Likewise.
575         * benchtests/bench-strncat.c: Likewise.
576         * benchtests/bench-strncmp.c: Likewise.
577         * benchtests/bench-strncpy.c: Likewise.
578         * benchtests/bench-strnlen.c: Likewise.
579         * benchtests/bench-strpbrk.c: Likewise.
580         * benchtests/bench-strrchr.c: Likewise.
581         * benchtests/bench-strspn.c: Likewise.
582         * benchtests/bench-strstr.c: Likewise.
583
584 2013-09-04  Will Newton  <will.newton@linaro.org>
585
586         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
587
588 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
589
590         [BZ #15427]
591         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
592         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
593         * math/libm-test.inc (lgamma_test_data): Add more tests.
594         * sysdeps/i386/fpu/libm-test-ulps: Update.
595         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
596
597 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
598
599         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
600         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
601         Add ifunc.
602         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
603         Add strcmp-sse2-unaligned
604         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
605
606 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
607
608         * Versions.def (libc): Add GLIBC_2.19.
609
610 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
611
612         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
613         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
614
615 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
616
617         [BZ #14155]
618         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
619         intermediate calculations in recurrence.
620         (__ieee754_ynf): Likewise.
621         * math/libm-test.inc (jn_test_data): Do not allow spurious
622         underflow exception.  Add more tests.
623         (yn_test_data): Add more tests.
624         * sysdeps/i386/fpu/libm-test-ulps: Update.
625         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
626
627 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
628
629         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
630
631 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
632
633         * csu/init-first.c: Fix then/than typos.
634         * locale/programs/ld-collate.c: Likewise.
635         * locale/programs/linereader.h: Likewise.
636         * manual/charset.texi: Likewise.
637         * manual/filesys.texi: Likewise.
638         * manual/stdio.texi: Likewise.
639         * manual/string.texi: Likewise.
640         * stdlib/fmtmsg.c: Likewise.
641         * sysdeps/i386/stpncpy.S: Likewise.
642         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
643         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
644         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
645         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
646
647 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
648
649         * elf/dl-open.c: Fix typos.
650         * iconvdata/gbbig5.c: Likewise.
651         * iconvdata/iso-2022-jp.c: Likewise.
652         * iconv/gconv_int.h: Likewise.
653         * iconv/loop.c: Likewise.
654         * nis/rpcsvc/nis.h: Likewise.
655         * resolv/ns_name.c: Likewise.
656         * stdio-common/vfscanf.c: Likewise.
657         * streams/stropts.h: Likewise.
658         * sunrpc/rpc_thread.c: Likewise.
659         * sysdeps/i386/strpbrk.S: Likewise.
660         * sysdeps/ieee754/k_standard.c: Likewise.
661         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
662         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
663         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
664         * sysdeps/mach/hurd/profil.c: Likewise.
665         * sysdeps/s390/dl-procinfo.h: Likewise.
666         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
667         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
668         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
669         * sysdeps/x86_64/dl-trampoline.S: Likewise.
670         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
671
672 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
673
674         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
675         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
676
677 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
678
679         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
680         aix specific files.
681         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
682         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
683         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
684         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
685         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
686         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
687         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
688         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
689
690 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
691             Roland McGrath  <roland@hack.frob.com>
692
693         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
694         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
695
696 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
697
698         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
699         __executable_start symbol instead of _start.
700
701 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
702
703         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
704         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
705         Move macros to...
706         * sysdeps/gnu/ldsodefs.h: ... this new file.
707
708         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
709         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
710         instead of ELFOSABI_LINUX.
711
712         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
713         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
714         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
715         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
716         Likewise.
717         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
718         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
719         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
720         Likewise.
721         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
722         (ibm_extended_long_double): Add ieee_nan member.
723         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
724         (do_test): New function.
725
726         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
727         TEST_TRUNC.
728         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
729         functions, renamed from truncdfsf_test, trunctfsf_test,
730         trunctfdf_test.
731         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
732         functions.
733         (do_test): Run all these.
734
735 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
736
737         * argp/argp-help.c: Fix typos.
738         * argp/argp-parse.c: Likewise.
739         * debug/backtracesyms.c: Likewise.
740         * elf/elf.h: Likewise.
741         * malloc/malloc.c: Likewise.
742         * nis/nis_print.c: Likewise.
743         * resolv/res_comp.c: Likewise.
744         * stdlib/stdlib.h: Likewise.
745         * sunrpc/clnt_tcp.c: Likewise.
746         * sunrpc/clnt_udp.c: Likewise.
747         * sunrpc/clnt_unix.c: Likewise.
748         * sysdeps/unix/bsd/ptsname.c: Likewise.
749         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
750         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
751         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
752         Likewise.
753         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
754         Likewise.
755         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
756         Likewise.
757         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
758
759 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
760
761         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
762         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
763
764 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
765
766         [BZ #15897]
767         * dlfcn/Makefile (tests): Add bug-dl-leaf.
768         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
769         ($(objpfx)bug-dl-leaf): New rule.
770         ($(objpfx)bug-dl-leaf.so): Likewise.
771         ($(objpfx)bug-dl-leaf.out): Likewise.
772         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
773         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
774         * dlfcn/bug-dl-leaf.c: New test.
775         * dlfcn/bug-dl-leaf-lib.c: Likewise.
776         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
777         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
778         (dlclose): Likewise.
779         (dlmopen): Likewise.
780
781 2013-08-27  Roland McGrath  <roland@hack.frob.com>
782
783         * include/netdb.h [!_ISOMAC]:
784         Don't include <tls.h>.
785         (h_errno, __libc_h_errno): Move declaration and macros out of
786         [_LIBC_REENTRANT].
787
788         * include/resolv.h [_RESOLV_H_]:
789         Don't include <tls.h>.
790         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
791         * resolv/res_libc.c: Don't include <tls.h>.
792         (_res): Use __attribute__ ((nocommon)) in place of
793         __attribute__ ((section (".bss"))).
794
795         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
796         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
797
798         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
799
800         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
801         only under [SIOCGIFCONF && SIOCGIFNETMASK].
802
803         * resolv/res_mkquery.c: Include <sys/time.h>.
804
805         * inet/ifreq.c: Moved to ...
806         * sysdeps/unix/ifreq.c: ... here.
807         * inet/ifreq.c: New file, true stub version.
808
809         * socket/sa_len.c: New file.
810         * socket/Makefile (aux): Add it.
811         * sysdeps/unix/sysv/linux/Makefile
812         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
813         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
814         and #include <socket/sa_len.c>.
815         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
816         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
817
818         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
819         * bits/socket.h: ... here.
820
821         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
822         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
823         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
824
825 2013-08-27  Andreas Schwab  <schwab@suse.de>
826
827         [BZ #15736]
828         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
829         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
830         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
831         * string/test-strcasecmp.c (test_main): Run tests in several
832         locales.
833         * string/test-strncasecmp.c (test_main): Likewise.
834
835         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
836         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
837         to __strcasecmp_nonascii and __strncasecmp_nonascii.
838         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
839         (__strncasecmp_ssse3) [PIC]: Likewise.
840
841 2013-08-26  Roland McGrath  <roland@hack.frob.com>
842
843         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
844
845         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
846         instead of explicitly declaring xdecrypt.
847         * nis/nss_nis/nis-publickey.c: Likewise.
848
849 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
850
851         [BZ #15890]
852         * nscd/aicache.c: Include res_hconf.h.
853         (addhstaiX): Initialize res_hconf.
854
855 2013-08-26  Andreas Schwab  <schwab@suse.de>
856
857         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
858         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
859
860 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
861
862         * nscd/aicache.c (addhstaiX): Fix indentation.
863
864 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
865
866         * configure.ac: Quote $build_pt_chown test.
867         * configure: Regenerated.
868
869 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
870
871         [BZ #15532]
872         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
873         * math/s_cexpf.c (__cexpf): Likewise.
874         * math/s_cexpl.c (__cexpl): Likewise.
875         * math/libm-test.inc (cexp_test_data): Correct expected return
876         value for NaN + i0.  Add another test.
877
878 2013-08-22  David S. Miller  <davem@davemloft.net>
879
880         * po/ca.po: Update Catalan translation from translation project.
881         * po/uk.po: Add Ukrainian translations from translation project.
882
883 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
884
885         [BZ #15797]
886         * math/s_fdim.c (__fdim): Check for infinite arguments if result
887         is infinite, not alongside NaN test.
888         * math/s_fdimf.c (__fdimf): Likewise.
889         * math/s_fdiml.c (__fdiml): Likewise.
890         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
891         errno is unchanged.
892
893 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
894
895         * argp/argp-help.c: Fix typos.
896         * crypt/speeds.c: Likewise.
897         * csu/check_fds.c: Likewise.
898         * elf/dl-load.c: Likewise.
899         * elf/dl-open.c: Likewise.
900         * elf/reldep3.c: Likewise.
901         * elf/reldep.c: Likewise.
902         * elf/sprof.c: Likewise.
903         * iconv/iconv_charmap.c: Likewise.
904         * iconv/skeleton.c: Likewise.
905         * iconv/strtab.c: Likewise.
906         * io/lockf64.c: Likewise.
907         * libio/libioP.h: Likewise.
908         * resolv/gai_notify.c: Likewise.
909         * resolv/ns_name.c: Likewise.
910         * resolv/ns_samedomain.c: Likewise.
911         * resolv/res_send.c: Likewise.
912         * stdlib/random.c: Likewise.
913         * sunrpc/rpc/xdr.h: Likewise.
914         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
915         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
916         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
917         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
918         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
919         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
920         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
921         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
922         * sysdeps/mach/hurd/check_fds.c: Likewise.
923         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
924         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
925         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
926         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
927         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
928         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
929         * sysdeps/pthread/aio_notify.c: Likewise.
930         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
931         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
932         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
933         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
934         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
935
936 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
937
938         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
939         version if bit_Slow_SSE4_2 is set.
940         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
941         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
942
943 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
944
945         [BZ #15867]
946         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
947         trampoline stack frame information.
948         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
949         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
950         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
951         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
952         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
953         * sysdeps/unix/sysv/linux/powerpc/init-first.c
954         (_libc_vdso_platform_setup): Initialize the signal trampolines.
955         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
956         sa_flags value.
957         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
958         interrupting a syscall and set with option SA_SIGINFO.
959
960 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
961
962         [BZ #15531]
963         * math/s_cproj.c (__cproj): Only return an infinity if one part of
964         argument is infinite.
965         * math/s_cprojf.c (__cprojf): Likewise.
966         * math/s_cprojl.c (__cprojl): Likewise.
967         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
968         * math/libm-test.inc (cproj_test_data): Add more tests.
969
970         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
971
972         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
973         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
974         size.  Use __ffs to determine corresponding shift.
975
976 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
977             Roland McGrath  <roland@hack.frob.com>
978
979         * Makefile (INSTALL): Remove trailing blank lines from output of
980         makeinfo.
981
982 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
983
984         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
985         Align 32 bit compat elf_greg to 8 bytes.
986
987 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
988
989         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
990
991 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
992
993         * string/strcoll_l.c (coll_seq): New structure.
994         (get_next_seq_cached): New function.
995         (get_next_seq): New function.
996         (do_compare): New function.
997         (STRCOLL): Use GNU style definition.  Simplify implementation
998         by using get_next_seq, get_next_seq_cached and do_compare.
999
1000 2013-08-16  Florian Weimer  <fweimer@redhat.com>
1001
1002         [BZ #14699]
1003         CVE-2013-4237
1004         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
1005         member.
1006         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
1007         member.
1008         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
1009         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
1010         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
1011         conditional.
1012         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
1013         GETDENTS_64BIT_ALIGNED.
1014         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
1015         * manual/filesys.texi (Reading/Closing Directory): Document
1016         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
1017         strongly.
1018         * manual/conf.texi (Limits for Files): Add portability note to
1019         NAME_MAX, PATH_MAX.
1020         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
1021
1022 2013-08-13  Andreas Schwab  <schwab@suse.de>
1023
1024         [BZ #15749]
1025         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
1026         of fabs.
1027         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
1028         LDBL_MAX_EXP >= 16384]: Add tests for it.
1029
1030 2013-08-12  David S. Miller  <davem@davemloft.net>
1031
1032         * version.h (RELEASE): Set to "development".
1033         (VERSION): Set to "2.18.90".
1034         * NEWS: Add 2.19 section.
1035
1036 2013-08-03  David S. Miller  <davem@davemloft.net>
1037
1038         * po/ko.po: Update Korean translation from translation project.
1039
1040 2013-08-01  David S. Miller  <davem@davemloft.net>
1041
1042         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
1043         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
1044         Bilka.
1045
1046 2013-07-30  David S. Miller  <davem@davemloft.net>
1047
1048         * po/fr.po: Update French translation from translation project.
1049
1050 2013-07-28  David S. Miller  <davem@davemloft.net>
1051
1052         * po/cs.po: Update Czech translation from translation project.
1053
1054         * po/sv.po: Update Swedish translation from translation project.
1055
1056 2013-07-27  David S. Miller  <davem@davemloft.net>
1057
1058         * po/eo.po: Update Esperanto translation from translation project.
1059
1060         * po/vi.po: Update Vietnamese translation from translation project.
1061
1062         * po/de.po: Update German translation from translation project.
1063
1064 2013-07-26  David S. Miller  <davem@davemloft.net>
1065
1066         * po/bg.po: Update Bulgarian translation from translation project.
1067
1068         * po/nl.po: Update Dutch translation from translation project.
1069         * po/pl.po: Update Polish translation from translation project.
1070         * po/ru.po: Update Russian translation from translation project.
1071
1072 2013-07-24  David S. Miller  <davem@davemloft.net>
1073
1074         * po/libc.pot: Update.
1075
1076 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1077
1078         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
1079         variable page size.
1080         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
1081         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
1082         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
1083
1084 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
1085
1086         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
1087
1088 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
1089             Andreas Schwab  <schwab@suse.de>
1090             Roland McGrath  <roland@hack.frob.com>
1091             Joseph Myers  <joseph@codesourcery.com>
1092             Carlos O'Donell  <carlos@redhat.com>
1093
1094         [BZ #15755]
1095         * config.h.in: Define HAVE_PT_CHOWN.
1096         * config.make.in (build-pt-chown): New variable.
1097         * configure.in (--enable-pt_chown): New configure option.
1098         * configure: Regenerate.
1099         * login/Makefile: Include Makeconfig.  Build pt_chown only if
1100         build-pt-chown is enabled.
1101         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
1102         pt_chown to fix pty ownership.
1103         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
1104         CLOSE_ALL_FDS.
1105         * manual/install.texi (Configuring and compiling): Mention
1106         --enable-pt_chown. Add @findex for grantpt.
1107         * INSTALL: Regenerate.
1108
1109 2013-07-20  David S. Miller  <davem@davemloft.net>
1110
1111         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
1112         difference between 32-bit and 64-bit.
1113
1114 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
1115
1116         [BZ #15711]
1117         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
1118         Avoid system header dependency with -ffreestanding.
1119         ($(objpfx)bits/syscall%d): Likewise.
1120
1121 2013-07-13  David S. Miller  <davem@davemloft.net>
1122
1123         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
1124         underflows from atanl/atan2l due to bug 15319.
1125         (casinh_test_data): Likewise.
1126
1127 2013-07-07  David S. Miller  <davem@davemloft.net>
1128
1129         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
1130
1131 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
1132
1133         * sysdeps/i386/fpu/libm-test-ulps: Update.
1134         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1135
1136 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
1137
1138         * configure.in (--enable-lock-elision): Fix message text.
1139         * INSTALL: Regenerate.
1140         * configure: Regenerate.
1141
1142 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1143
1144         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1145
1146 2013-07-03  Andreas Jaeger  <aj@suse.de>
1147
1148         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
1149         define.
1150         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
1151         (ptrace_peeksiginfo_args): Add.
1152         (__ptrace_peeksiginfo_flags): Add.
1153         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
1154         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
1155         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
1156
1157 2013-07-03  Allan McRae  <allan@archlinux.org>
1158
1159         * sysdeps/i386/fpu/libm-test-ulps: Update.
1160
1161 2013-07-02  David S. Miller  <davem@davemloft.net>
1162
1163         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1164
1165 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
1166
1167         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
1168
1169 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
1170
1171         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
1172         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1173
1174 2013-07-02  Andi Kleen <ak@linux.intel.com>
1175
1176         * config.h.in (ENABLE_LOCK_ELISION): Add.
1177         * configure.in (--enable-lock-elision): Add option.
1178         * manual/install.texi: Document --enable lock elision.
1179         * configure: Regenerate
1180         * INSTALL: Regenerate.
1181
1182 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
1183
1184         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
1185         SSE4.2 strcasecmp for libc.a.
1186         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
1187
1188 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
1189
1190         [BZ #13304]
1191         * soft-fp/op-common.h (_FP_FMA): New macro.
1192         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
1193         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
1194         (_FP_MUL_MEAT_1_imm): ... here.
1195         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
1196         (_FP_MUL_MEAT_1_wide): ... here.
1197         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
1198         (_FP_MUL_MEAT_1_hard): ... here.
1199         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
1200         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
1201         (_FP_MUL_MEAT_2_wide): ... here.
1202         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
1203         (_FP_MUL_MEAT_2_wide_3mul): ... here.
1204         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
1205         (_FP_MUL_MEAT_2_gmp): ... here.
1206         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
1207         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
1208         (_FP_MUL_MEAT_4_wide): ... here.
1209         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
1210         (_FP_MUL_MEAT_4_gmp): ... here.
1211         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
1212         (_FP_WFRACBITS_DW_S): Likewise.
1213         (_FP_WFRACXBITS_DW_S): Likewise.
1214         (_FP_HIGHBIT_DW_S): Likewise.
1215         (FP_FMA_S): Likewise.
1216         (_FP_FRAC_HIGH_DW_S): Likewise.
1217         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
1218         (_FP_WFRACBITS_DW_D): Likewise.
1219         (_FP_WFRACXBITS_DW_D): Likewise.
1220         (_FP_HIGHBIT_DW_D): Likewise.
1221         (FP_FMA_D): Likewise.
1222         (_FP_FRAC_HIGH_DW_D): Likewise.
1223         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
1224         (_FP_WFRACBITS_DW_E): Likewise.
1225         (_FP_WFRACXBITS_DW_E): Likewise.
1226         (_FP_HIGHBIT_DW_E): Likewise.
1227         (FP_FMA_E): Likewise.
1228         (_FP_FRAC_HIGH_DW_E): Likewise.
1229         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
1230         (_FP_WFRACBITS_DW_Q): Likewise.
1231         (_FP_WFRACXBITS_DW_Q): Likewise.
1232         (_FP_HIGHBIT_DW_Q): Likewise.
1233         (FP_FMA_Q): Likewise.
1234         (_FP_FRAC_HIGH_DW_Q): Likewise.
1235         * soft-fp/fmasf4.c: New file.
1236         * soft-fp/fmadf4.c: Likewise.
1237         * soft-fp/fmatf4.c: Likewise.
1238
1239 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1240
1241         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
1242         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
1243         Silvermont.
1244         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
1245         macro.
1246         (index_Slow_SSE4_2): Likewise.
1247         (index_Prefer_PMINUB_for_stringop): Likewise.
1248         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
1249         bit_Slow_SSE4_2 is set.
1250         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
1251         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
1252
1253 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1254
1255         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
1256         rtld_global._dl_hwcap2.
1257         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
1258         POWER8.
1259         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
1260         POWER8 feature descriptions defined in _dl_hwcap2.
1261         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
1262         string handling for POWER8 feature bits.
1263         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
1264         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
1265         _dl_powerpc_cap_flags.
1266         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
1267         * sysdeps/powerpc/rtld-global-offsets.sym
1268         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
1269         _dl_hwcap2 in the rtld_global_ro structure.
1270
1271 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1272
1273         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
1274         hardware capabilities in support of AT_HWCAP2.
1275         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
1276         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
1277         GLRO(dl_hwcap2).
1278         (_dl_show_auxv): Add support for calling _dl_procinfo to display
1279         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
1280         explicitly the unknown a_type display mechanism is used.
1281         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
1282         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
1283         struct member.
1284         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
1285         to macro prototype for AT_HWCAP2 support.
1286         * sysdeps/i386/dl-procinfo.h: Likewise.
1287         * sysdeps/s390/dl-procinfo.h: Likewise.
1288         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
1289         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
1290         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
1291         return -1 for unknown a_type display fallback.
1292         * sysdeps/sparc/dl-procinfo.h: Likewise.
1293         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
1294         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
1295
1296 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
1297
1298         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
1299         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
1300
1301 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
1302
1303         [BZ #12492]
1304         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
1305         mprotect making __stack_prot writable.
1306
1307 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
1308             Joseph Myers  <joseph@codesourcery.com>
1309
1310         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
1311         as being properly aligned.
1312
1313 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
1314
1315         * dlfcn/modstatic5.c: New file.
1316         * dlfcn/tststatic5.c: New file.
1317         * dlfcn/Makefile (tests): Add tststatic5.
1318         (tests-static): Likewise.
1319         (modules-names): Add modstatic5.
1320         (tststatic5-ENV): New variable.
1321         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
1322
1323         [BZ #15022]
1324         * elf/dl-support.c (_dl_main_map): New variable.
1325         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
1326         (_dl_nns, _dl_load_adds): Set to 1.
1327         (_dl_initial_searchlist): Refer to _dl_main_map.
1328         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
1329         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
1330         call to _dl_get_origin.
1331         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
1332         around call_map.
1333         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
1334         * dlfcn/modstatic3.c: New file.
1335         * dlfcn/tststatic3.c: New file.
1336         * dlfcn/tststatic4.c: New file.
1337         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
1338         (tests-static): Likewise.
1339         (modules-names): Add modstatic3.
1340         (tststatic3-ENV, tststatic4-ENV): New variables.
1341         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
1342         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
1343
1344 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
1345
1346         * configure.in (CC): Require GCC version 4.4 or later.
1347         * configure: Regenerated.
1348         * manual/install.texi (Tools for Compilation): Update GCC version
1349         requirement.
1350         * INSTALL: Regenerated.
1351
1352 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1353
1354         [BZ #15674]
1355         * string/test-memcmp.c (check2): New.
1356         (main): Call check2.
1357
1358         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
1359
1360 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
1361
1362         [BZ #15022]
1363         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
1364         over to...
1365         (dl_open_worker) [!SHARED]: ... here.
1366
1367 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1368
1369         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
1370
1371 2013-06-25  Richard Henderson  <rth@redhat.com>
1372
1373         * locale/programs/locarchive.c: Include <libc-internal.h>
1374
1375 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
1376
1377         * manual/texinfo.tex: Update to version 2013-06-21.17, with
1378         trailing whitespace removed.
1379
1380 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
1381
1382         [BZ #10283]
1383         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
1384         * locale/programs/locarchive.c: Include libc-mmap.h.
1385         (prepare_address_space): Take two new outputs (the mmap base and len).
1386         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
1387         values.
1388         (create_archive): Declare new mmap base and len values for
1389         prepare_address_space, and store the result in ah.
1390         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
1391         (enlarge_archive): If ah->mmap_base is not NULL, use that and
1392         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
1393         Declare new mmap base and len values for
1394         prepare_address_space, and store the result in new_ah.
1395         (open_archive): Declare new mmap base and len values for
1396         prepare_address_space, and store the result in ah.
1397         (close_archive): If ah->mmap_base is not NULL, use that and
1398         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
1399         * sysdeps/generic/libc-mmap.h: New file.
1400
1401 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
1402
1403         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
1404         (ALIGN_UP): Likewise.
1405         (PTR_ALIGN_DOWN): Likewise.
1406         (PTR_ALIGN_UP): Likewise.
1407
1408 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1409
1410         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
1411         entry mapped to PPC_PLATFORM_POWER8.
1412         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
1413         POWER8.
1414         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
1415         (_dl_string_platform): Add case for exporting platform position for
1416         POWER8.
1417         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
1418         search path to sysdeps/powerpc/powerpc32/power8 directory.
1419         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
1420         search path to sysdeps/powerpc/powerpc64/power8 directory.
1421         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
1422         power7 directories.
1423         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
1424         power7 directories.
1425
1426 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
1427
1428         * INSTALL: Regenerate.
1429
1430         * nscd/connections.c (nscd_init): Fix comment.
1431
1432 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
1433
1434         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
1435
1436         [BZ #15667]
1437         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
1438         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
1439
1440 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
1441
1442         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
1443         DL_DST_REQ_STATIC.
1444         (DL_DST_REQ_STATIC): Remove macro.
1445
1446 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
1447
1448         [BZ #7006]
1449         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
1450         with a shift of 0 bits.
1451
1452 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
1453
1454         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
1455         $(tststatic-ENV).
1456
1457 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
1458
1459         [BZ #15655]
1460         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
1461
1462 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1463
1464         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
1465         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
1466         accepts -fno-tree-loop-distribute-patterns.
1467         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
1468         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
1469         recursive call.
1470         * string/memset.c (memset): Likewise.
1471         * string/test-memmove.c (simple_memmove): Disable loop transformation
1472         to library calls.
1473         * string/test-memset.c (simple_memset): Likewise.
1474         * benchtests/bench-memmove.c (simple_memmove): Likewise.
1475         * benchtests/bench-memset.c (simple_memset): Likewise.
1476         * configure: Regenerated.
1477
1478 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
1479
1480         * math/test-misc.c (main): Ignore fesetround failure when failures
1481         of subsequent rounding tests would be ignored.
1482
1483         [BZ #15654]
1484         * math/fedisblxcpt.c (fedisableexcept): Return 0.
1485         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
1486         * math/fegetenv.c (__fegetenv): Return 0.
1487         * math/fegetexcept.c (fegetexcept): Return 0.
1488         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
1489         FE_TONEAREST.
1490         * math/feholdexcpt.c (feholdexcept): Return 0.
1491         * math/fesetenv.c (__fesetenv): Return 0.
1492         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
1493         argument FE_TONEAREST.
1494         * math/feupdateenv.c (__feupdateenv): Return 0.
1495         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
1496
1497 2013-06-18  Roland McGrath  <roland@hack.frob.com>
1498
1499         * elf/rtld-Rules (rtld-compile-command.S): New variable.
1500         (rtld-compile-command.s, rtld-compile-command.c): New variables.
1501         ($(objpfx)rtld-%.os rules): Use them.
1502
1503 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1504
1505         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
1506         fields.
1507
1508 2013-06-17  Roland McGrath  <roland@hack.frob.com>
1509
1510         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
1511         length of target pattern, then descending length of dependency pattern.
1512         * configure.in (AWK): Require gawk 3.1.2 or newer.
1513         * manual/install.texi (Tools for Compilation): Say that we do.
1514         * configure: Regenerated.
1515
1516         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
1517         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
1518         * scripts/sysd-rules.awk: ... this new script.
1519         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
1520         than a glob-style pattern.
1521
1522 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
1523
1524         * math/test-misc.c (main): Do not treat incorrectly rounded
1525         conversions as failure unless ROUNDING_TESTS passes.
1526
1527 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
1528
1529         [BZ #15631]
1530         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
1531         restore exception state around main square root computation, then
1532         check for inexactness explicitly.
1533
1534         * math/libm-test.inc (fma_test_data): Add another test.
1535
1536 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
1537
1538         * manual/threads.texi (Non-POSIX Extensions): New document
1539         node.  Document pthread_getattr_default_np and
1540         pthread_setattr_default_np.
1541
1542         * Versions.def (libpthread): Add GLIBC_2.18.
1543         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
1544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
1545         Likewise.
1546         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
1547         Likewise.
1548         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
1549         Likewise.
1550         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
1551         Likewise.
1552         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
1553         Likewise.
1554         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
1555         Likewise.
1556         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
1557         Likewise.
1558         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
1559         Likewise.
1560         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
1561         Likewise.
1562
1563 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
1564
1565         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
1566         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
1567
1568 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
1569             H.J. Lu  <hjl.tools@gmail.com>
1570
1571         [BZ #15627]
1572         * sysdeps/x86_64/rtld-memset.c: Remove file.
1573         * sysdeps/x86_64/rtld-memset.S: New file.
1574
1575 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
1576
1577         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
1578         (test_in_one_mode): Take arguments for whether the rounding mode
1579         is supported for each floating-point type.
1580         (do_test): Pass new arguments to test_in_one_mode using
1581         ROUNDING_TESTS.
1582
1583 2013-06-13  Roland McGrath  <roland@hack.frob.com>
1584
1585         * posix/tst-waitid.c (do_test): Distinguish different instances of
1586         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
1587         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
1588         before entering the kernel for waitpid.
1589
1590 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
1591
1592         * NEWS: Fix note on clock function precision.  Text by Roland
1593         McGrath.
1594
1595 2013-06-13  Roland McGrath  <roland@hack.frob.com>
1596
1597         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
1598         it into place only when and if the sanity check passes.
1599
1600 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
1601
1602         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
1603         output for whether conversion result is exact.  Take argument
1604         indicating whether type is IBM long double.
1605         (round_for_all): Change need_exact field to ibm_ld.
1606         * stdlib/tst-strtod-round.c (struct exactness): New type.
1607         (struct test): Change bool ld_ok field to struct exactness exact.
1608         (TEST): Update all definitions for change to field.
1609         (tests): Regenerate array contents.
1610         (test_in_one_mode): Take pointer to new field instead of old ld_ok
1611         field value.  Check for IBM long double here.
1612         (do_test): Update calls to test_in_one_mode.
1613
1614 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
1615
1616         [BZ #12515]
1617         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
1618         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
1619
1620 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1621
1622         [BZ #15605]
1623         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
1624         generated by the compiler on loop optimizations.
1625         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
1626         general definitions.
1627
1628 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
1629
1630         * math/bug-nextafter.c: Include <math-tests.h>.
1631         (main): Only test for exceptions if EXCEPTION_TESTS is true for
1632         the relevant type.
1633         * math/bug-nexttoward.c: Include <math-tests.h>.
1634         (main): Only test for exceptions if EXCEPTION_TESTS is true for
1635         the relevant type.
1636         * math/test-misc.c: Include <math-tests.h>.
1637         (main): Only test for exceptions if EXCEPTION_TESTS is true for
1638         the relevant type.
1639
1640 2013-06-12  Andreas Jaeger  <aj@suse.de>
1641
1642         * po/ia.po: Update Interlingua translation from translation
1643         project.
1644
1645 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
1646
1647         * include/fenv.h: Include stdbool.h.
1648         (struct rm_ctx): New structure.
1649         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
1650         Define macro.
1651         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
1652         (SET_RESTORE_ROUNDF): Likewise.
1653         (SET_RESTORE_ROUNDL): Likewise.
1654         (SET_RESTORE_ROUND_NOEX): Likewise.
1655         (SET_RESTORE_ROUND_NOEXF): Likewise.
1656         (SET_RESTORE_ROUND_NOEXL): Likewise.
1657         (SET_RESTORE_ROUND_53BIT): Likewise.
1658         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
1659         (libc_feresetround_noexf_ctx): Likewise.
1660         (libc_feresetround_noexl_ctx): Likewise.
1661         (libc_feholdsetround_53bit_ctx): Likewise.
1662         (libc_feresetround_53bit_ctx): Likewise.
1663         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
1664         (libc_feholdexcept_setround_sse_ctx): New function.
1665         (libc_fesetenv_sse_ctx): Likewise.
1666         (libc_feupdateenv_sse_ctx): Likewise.
1667         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
1668         (libc_feholdexcept_setround_387_ctx): Likewise.
1669         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
1670         (libc_feholdsetround_387_prec_ctx): Likewise.
1671         (libc_feholdsetround_387_ctx): Likewise.
1672         (libc_feholdsetround_387_53bit_ctx): Likewise.
1673         (libc_feholdsetround_sse_ctx): Likewise.
1674         (libc_feresetround_sse_ctx): Likewise.
1675         (libc_feresetround_387_ctx): Likewise.
1676         (libc_feupdateenv_387_ctx): Likewise.
1677         (libc_feholdexcept_setroundf_ctx): Define macro.
1678         (libc_fesetenvf_ctx): Likewise.
1679         (libc_feupdateenvf_ctx): Likewise.
1680         (libc_feholdsetroundf_ctx): Likewise.
1681         (libc_feresetroundf_ctx): Likewise.
1682         (libc_feholdexcept_setround_ctx): Likewise.
1683         (libc_fesetenv_ctx): Likewise.
1684         (libc_feupdateenv_ctx): Likewise.
1685         (libc_feholdsetround_ctx): Likewise.
1686         (libc_feresetround_ctx): Likewise.
1687         (libc_feholdexcept_setroundl_ctx): Likewise.
1688         (libc_feupdateenvl_ctx): Likewise.
1689         (libc_feholdsetroundl_ctx): Likewise.
1690         (libc_feresetroundl_ctx): Likewise.
1691         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
1692         (libc_feresetround_53bit_ctx): Likewise.
1693
1694 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1695
1696         * locale/iso-639.def: Convert to UTF-8.
1697
1698 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
1699
1700         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
1701         (EXCEPTION_TESTS_double): Likewise.
1702         (EXCEPTION_TESTS_long_double): Likewise.
1703         (EXCEPTION_TESTS): Likewise.
1704         * math/libm-test.inc (test_exceptions): Only test exceptions if
1705         EXCEPTION_TESTS (FLOAT).
1706
1707 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1708
1709         * benchtests/Makefile (string-bench): Add strcpy_chk and
1710         stpcpy_chk.
1711         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
1712         * benchtests/bench-stpcpy_chk.c: New file.
1713         * benchtests/bench-strcpy_chk-ifunc.c: New file.
1714         * benchtests/bench-strcpy_chk.c: New file.
1715         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
1716         code.
1717         (do_test): Likewise.
1718
1719 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1720
1721         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
1722         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
1723         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
1724         with tabs where appropriate.
1725         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
1726         dl-procinfo.h.
1727         [PPC_PLATFORM_PPC440]: Likewise.
1728         [PPC_PLATFORM_PPC464]: Likewise.
1729         [PPC_PLATFORM_PPC476]: Likewise.
1730         (_dl_string_platform): Add support for detecting ppc405, ppc440,
1731         ppc464, and ppc476 platform strings merging from ports/
1732         dl-procinfo.h.
1733
1734 2013-06-11  Andreas Schwab  <schwab@suse.de>
1735
1736         [BZ #14991]
1737         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
1738         (from_ucs4_idx): Regenerate.
1739         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
1740         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
1741         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
1742         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
1743         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
1744         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
1745         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
1746         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
1747         from FROM_LOOP and TO_LOOP specific macros.
1748         (BODY): Handle combining characters.
1749         * iconvdata/BIG5HKSCS.irreversible: Update.
1750         * iconvdata/BIG5HKSCS.precomposed: New file.
1751         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
1752         characters.
1753         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
1754
1755 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1756
1757         * include/sys/time.h: Fix indentation and add copyright header.
1758
1759         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
1760         (do_test): Likewise.
1761         * string/test-memchr.c (do_one_test): Likewise.
1762         (do_test): Likewise.
1763         * string/test-memcmp.c (do_one_test): Likewise.
1764         (do_test): Likewise.
1765         * string/test-memcpy.c (do_one_test): Likewise.
1766         (do_test): Likewise.
1767         * string/test-memmem.c (do_one_test): Likewise.
1768         (do_test): Likewise.
1769         (do_random_tests): Likewise.
1770         * string/test-memmove.c (do_one_test): Likewise.
1771         (do_test): Likewise.
1772         * string/test-memset.c (do_one_test): Likewise.
1773         (do_test): Likewise.
1774         * string/test-rawmemchr.c (do_one_test): Likewise.
1775         (do_test): Likewise.
1776         * string/test-strcasecmp.c (do_one_test): Likewise.
1777         (do_test): Likewise.
1778         * string/test-strcasestr.c (do_one_test): Likewise.
1779         (do_test): Likewise.
1780         * string/test-strcat.c (do_one_test): Likewise.
1781         (do_test): Likewise.
1782         * string/test-strchr.c (do_one_test): Likewise.
1783         (do_test): Likewise.
1784         * string/test-strcmp.c (do_one_test): Likewise.
1785         (do_test): Likewise.
1786         * string/test-strcpy.c (do_one_test): Likewise.
1787         (do_test): Likewise.
1788         * string/test-string.h: Likewise.
1789         (test_init): Likewise.
1790         * string/test-strlen.c (do_one_test): Likewise.
1791         (do_test): Likewise.
1792         * string/test-strncasecmp.c (do_one_test): Likewise.
1793         (do_test): Likewise.
1794         * string/test-strncat.c (do_one_test): Likewise.
1795         (do_test): Likewise.
1796         * string/test-strncmp.c (do_one_test): Likewise.
1797         (do_test_limit): Likewise.
1798         (do_test): Likewise.
1799         * string/test-strncpy.c (do_one_test): Likewise.
1800         (do_test): Likewise.
1801         * string/test-strnlen.c (do_one_test): Likewise.
1802         (do_test): Likewise.
1803         * string/test-strpbrk.c (do_one_test): Likewise.
1804         (do_test): Likewise.
1805         * string/test-strrchr.c (do_one_test): Likewise.
1806         (do_test): Likewise.
1807         * string/test-strspn.c (do_one_test): Likewise.
1808         (do_test): Likewise.
1809         * string/test-strstr.c (do_one_test): Likewise.
1810         (do_test): Likewise.
1811
1812         * benchtests/Makefile (string-bench): Add string benchmarks.
1813         * benchtests/bench-bcopy-ifunc.c: New file.
1814         * benchtests/bench-bcopy.c: New file.
1815         * benchtests/bench-bzero-ifunc.c: New file.
1816         * benchtests/bench-bzero.c: New file.
1817         * benchtests/bench-memccpy-ifunc.c: New file.
1818         * benchtests/bench-memccpy.c: New file.
1819         * benchtests/bench-memchr-ifunc.c: New file.
1820         * benchtests/bench-memchr.c: New file.
1821         * benchtests/bench-memcmp-ifunc.c: New file.
1822         * benchtests/bench-memcmp.c: New file.
1823         * benchtests/bench-memmem-ifunc.c: New file.
1824         * benchtests/bench-memmem.c: New file.
1825         * benchtests/bench-memmove-ifunc.c: New file.
1826         * benchtests/bench-memmove.c: New file.
1827         * benchtests/bench-mempcpy-ifunc.c: New file.
1828         * benchtests/bench-mempcpy.c: New file.
1829         * benchtests/bench-memset-ifunc.c: New file.
1830         * benchtests/bench-memset.c: New file.
1831         * benchtests/bench-rawmemchr-ifunc.c: New file.
1832         * benchtests/bench-rawmemchr.c: New file.
1833         * benchtests/bench-stpcpy-ifunc.c: New file.
1834         * benchtests/bench-stpcpy.c: New file.
1835         * benchtests/bench-stpncpy-ifunc.c: New file.
1836         * benchtests/bench-stpncpy.c: New file.
1837         * benchtests/bench-strcasecmp-ifunc.c: New file.
1838         * benchtests/bench-strcasecmp.c: New file.
1839         * benchtests/bench-strcasestr-ifunc.c: New file.
1840         * benchtests/bench-strcasestr.c: New file.
1841         * benchtests/bench-strcat-ifunc.c: New file.
1842         * benchtests/bench-strcat.c: New file.
1843         * benchtests/bench-strchr-ifunc.c: New file.
1844         * benchtests/bench-strchr.c: New file.
1845         * benchtests/bench-strchrnul-ifunc.c: New file.
1846         * benchtests/bench-strchrnul.c: New file.
1847         * benchtests/bench-strcmp-ifunc.c: New file.
1848         * benchtests/bench-strcmp.c: New file.
1849         * benchtests/bench-strcpy-ifunc.c: New file.
1850         * benchtests/bench-strcpy.c: New file.
1851         * benchtests/bench-strcspn-ifunc.c: New file.
1852         * benchtests/bench-strcspn.c: New file.
1853         * benchtests/bench-strlen-ifunc.c: New file.
1854         * benchtests/bench-strlen.c: New file.
1855         * benchtests/bench-strncasecmp-ifunc.c: New file.
1856         * benchtests/bench-strncasecmp.c: New file.
1857         * benchtests/bench-strncat-ifunc.c: New file.
1858         * benchtests/bench-strncat.c: New file.
1859         * benchtests/bench-strncmp-ifunc.c: New file.
1860         * benchtests/bench-strncmp.c: New file.
1861         * benchtests/bench-strncpy-ifunc.c: New file.
1862         * benchtests/bench-strncpy.c: New file.
1863         * benchtests/bench-strnlen-ifunc.c: New file.
1864         * benchtests/bench-strnlen.c: New file.
1865         * benchtests/bench-strpbrk-ifunc.c: New file.
1866         * benchtests/bench-strpbrk.c: New file.
1867         * benchtests/bench-strrchr-ifunc.c: New file.
1868         * benchtests/bench-strrchr.c: New file.
1869         * benchtests/bench-strspn-ifunc.c: New file.
1870         * benchtests/bench-strspn.c: New file.
1871         * benchtests/bench-strstr-ifunc.c: New file.
1872         * benchtests/bench-strstr.c: New file.
1873
1874         * benchtests/Makefile: Disable parallel execution of targets.
1875         (string-bench): Add memcpy.
1876         (benchset): New variable to store a list of benchmark sets.
1877         (bench-func): Renamed from bench.
1878         (bench-set): New target.
1879         (bench): Depend on bench-func and bench-set.
1880         * benchtests/README: Add section on benchmark sets.
1881         * benchtests/bench-memcpy-ifunc.c: New file.
1882         * benchtests/bench-memcpy.c: New file.
1883         * benchtests/bench-string.h: New file.
1884
1885 2013-06-11  Andreas Schwab  <schwab@suse.de>
1886
1887         [BZ #15577]
1888         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
1889         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
1890         values in the triple.
1891         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
1892         terminator in the group key.
1893
1894 2013-06-11  Andreas Jaeger  <aj@suse.de>
1895
1896         * po/zh_TW.po: Update Chinese (traditional) translation from
1897         translation project.
1898
1899 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1900
1901         * include/time.h (__clock_gettime): Add libc_hidden_proto.
1902         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
1903         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
1904         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
1905         (clock_getcpuclockid): Likewise.
1906         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
1907         Add weak_alias and libc_hidden_def.
1908         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
1909         * rt/clock_gettime.c (clock_gettime): Rename to
1910         __clock_gettime.  Add weak_alias and libc_hidden_def.
1911         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
1912         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
1913         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
1914         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
1915         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
1916         Likewise.
1917         * rt/clock_settime.c (clock_settime): Rename to
1918         __clock_settime.  Add weak_alias and libc_hidden_def.
1919         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
1920
1921 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
1922
1923         * mach/err_boot.sub: Remove trailing whitespace.
1924         * mach/err_ipc.sub: Likewise.
1925         * mach/err_mach.sub: Likewise.
1926
1927         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
1928         (ROUNDING_TESTS_double): Likewise.
1929         (ROUNDING_TESTS_long_double): Likewise.
1930         (ROUNDING_TESTS): Likewise.
1931         * math/libm-test.inc: Include <math-tests.h>.
1932         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
1933         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
1934         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
1935         (IF_ROUND_INIT_FE_UPWARD): Likewise.
1936
1937 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
1938
1939         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
1940         of assigning.
1941
1942 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
1943
1944         * sysdeps/gnu/errlist.awk: Do not generate space at end of
1945         otherwise empty TRANS lines.
1946         * sysdeps/gnu/errlist.c: Regenerated.
1947
1948         * catgets/gencat.c (error_print): Use (void) in function
1949         definition.
1950         * crypt/crypt_util.c (__init_des): Likewise.
1951         * crypt/speeds.c (Stop): Likewise.
1952         (main): Likewise.
1953         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
1954         * inet/ruserpass.c (token): Likewise.
1955         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
1956         * intl/localealias.c (extend_alias_table): Likewise.
1957         * intl/plural-exp.c (init_germanic_plural): Likewise.
1958         * libio/fcloseall.c (__fcloseall): Likewise.
1959         * libio/genops.c (_IO_flush_all): Likewise.
1960         (_IO_flush_all_linebuffered): Likewise.
1961         (_IO_cleanup): Likewise.
1962         (_IO_iter_begin): Likewise.
1963         (_IO_iter_end): Likewise.
1964         (_IO_list_lock): Likewise.
1965         (_IO_list_unlock): Likewise.
1966         (_IO_list_resetlock): Likewise.
1967         * libio/getchar.c (getchar): Likewise.
1968         * libio/getchar_u.c (getchar_unlocked): Likewise.
1969         * libio/getwchar.c (getwchar): Likewise.
1970         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1971         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
1972         * login/getpt.c (__getpt): Likewise.
1973         * login/tst-utmp.c (main): Likewise.
1974         * malloc/hooks.c (__malloc_check_init): Likewise.
1975         * malloc/malloc.c (__malloc_stats): Likewise.
1976         * malloc/mtrace.c (tr_break): Likewise.
1977         (mtrace): Likewise.
1978         (muntrace): Likewise.
1979         * misc/fstab.c (endfsent): Likewise.
1980         * misc/getclktck.c (__getclktck): Likewise.
1981         * misc/getdtsz.c (__getdtablesize): Likewise.
1982         * misc/gethostid.c (gethostid): Likewise.
1983         * misc/getpagesize.c (__getpagesize): Likewise.
1984         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
1985         (__get_nprocs): Likewise.
1986         (__get_phys_pages): Likewise.
1987         (__get_avphys_pages): Likewise.
1988         * misc/getttyent.c (getttyent): Likewise.
1989         (setttyent): Likewise.
1990         (endttyent): Likewise.
1991         * misc/getusershell.c (getusershell): Likewise.
1992         (endusershell): Likewise.
1993         (setusershell): Likewise.
1994         (initshells): Likewise.
1995         * misc/hsearch.c (__hdestroy): Likewise.
1996         * misc/sync.c (sync): Likewise.
1997         * misc/syslog.c (closelog_internal): Likewise.
1998         (closelog): Likewise.
1999         * misc/ttyslot.c (ttyslot): Likewise.
2000         * misc/vhangup.c (vhangup): Likewise.
2001         * posix/fork.c (__fork): Likewise.
2002         * posix/getegid.c (__getegid): Likewise.
2003         * posix/geteuid.c (__geteuid): Likewise.
2004         * posix/getgid.c (__getgid): Likewise.
2005         * posix/getpid.c (__getpid): Likewise.
2006         * posix/getppid.c (__getppid): Likewise.
2007         * posix/getuid.c (__getuid): Likewise.
2008         * posix/pause.c (pause): Likewise.
2009         * posix/setpgrp.c (setpgrp): Likewise.
2010         * posix/setsid.c (__setsid): Likewise.
2011         * posix/test-vfork.c (noop): Likewise.
2012         * resolv/gethnamaddr.c (_endhtent): Likewise.
2013         (_gethtent): Likewise.
2014         (ht_endhostent): Likewise.
2015         (gethostent): Likewise.
2016         (dns_service): Likewise.
2017         * stdlib/drand48.c (drand48): Likewise.
2018         * stdlib/lrand48.c (lrand48): Likewise.
2019         * stdlib/mrand48.c (mrand48): Likewise.
2020         * stdlib/rand.c (rand): Likewise.
2021         * stdlib/random.c (__random): Likewise.
2022         * stdlib/setenv.c (clearenv): Likewise.
2023         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
2024         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
2025         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
2026         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
2027         (__get_nprocs): Likewise.
2028         (__get_phys_pages): Likewise.
2029         (__get_avphys_pages): Likewise.
2030         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
2031         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
2032         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
2033         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
2034         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
2035         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
2036         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
2037         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
2038         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
2039         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
2040         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
2041         * sysdeps/mach/hurd/sync.c (sync): Likewise.
2042         * sysdeps/posix/clock.c (clock): Likewise.
2043         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
2044         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
2045         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
2046         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
2047         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
2048         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
2049         (__get_nprocs_conf): Likewise.
2050         (__get_phys_pages): Likewise.
2051         (__get_avphys_pages): Likewise.
2052         * time/clock.c (clock): Likewise.
2053         * time/tzset.c (__tzname_max): Likewise.
2054
2055 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
2056
2057         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
2058         (__bswap_32): Do not use "register".
2059         * crypt/crypt.c (_ufc_doit_r): Likewise.
2060         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
2061         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
2062         * gmon/gmon.c (__monstartup): Likewise.
2063         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
2064         * hurd/hurdmalloc.c (more_memory): Likewise.
2065         (malloc): Likewise.
2066         (free): Likewise.
2067         (realloc): Likewise.
2068         (malloc_fork_prepare): Likewise.
2069         (malloc_fork_parent): Likewise.
2070         (malloc_fork_child): Likewise.
2071         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
2072         (_svcauth_des): Likewise.
2073         * inet/inet_lnaof.c (inet_lnaof): Likewise.
2074         * inet/inet_net.c (inet_network): Likewise.
2075         * inet/inet_netof.c (inet_netof): Likewise.
2076         * inet/rcmd.c (__validuser2_sa): Likewise.
2077         * io/fts.c (fts_open): Likewise.
2078         (fts_load): Likewise.
2079         (fts_close): Likewise.
2080         (fts_read): Likewise.
2081         (fts_children): Likewise.
2082         (fts_build): Likewise.
2083         (fts_stat): Likewise.
2084         (fts_sort): Likewise.
2085         (fts_alloc): Likewise.
2086         (fts_lfree): Likewise.
2087         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
2088         (_IO_file_xsgetn): Likewise.
2089         (_IO_file_xsgetn_mmap): Likewise.
2090         * libio/iofopncook.c (_IO_cookie_read): Likewise.
2091         (_IO_cookie_write): Likewise.
2092         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
2093         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
2094         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
2095         * malloc/obstack.c (_obstack_begin): Likewise.
2096         (_obstack_begin_1): Likewise.
2097         (_obstack_newchunk): Likewise.
2098         (_obstack_allocated_p): Likewise.
2099         (obstack_free): Likewise.
2100         (_obstack_memory_used): Likewise.
2101         * misc/getttyent.c (getttynam): Likewise.
2102         (getttyent): Likewise.
2103         (skip): Likewise.
2104         (value): Likewise.
2105         * misc/getusershell.c (initshells): Likewise.
2106         * misc/syslog.c (__vsyslog_chk): Likewise.
2107         * misc/ttyslot.c (ttyslot): Likewise.
2108         * nis/nis_hash.c (__nis_hash): Likewise.
2109         * posix/fnmatch_loop.c (FCT): Likewise.
2110         * posix/getconf.c (print_all): Likewise.
2111         (main): Likewise.
2112         * posix/getopt.c (exchange): Likewise.
2113         * posix/glob.c (globfree): Likewise.
2114         (prefix_array): Likewise.
2115         (__glob_pattern_type): Likewise.
2116         * resolv/arpa/nameser.h (NS_GET16): Likewise.
2117         (NS_GET32): Likewise.
2118         (NS_PUT16): Likewise.
2119         (NS_PUT32): Likewise.
2120         * resolv/gethnamaddr.c (getanswer): Likewise.
2121         (gethostbyname2): Likewise.
2122         (gethostbyaddr): Likewise.
2123         (_gethtent): Likewise.
2124         (_gethtbyname2): Likewise.
2125         (_gethtbyaddr): Likewise.
2126         * resolv/ns_print.c (dst_s_get_int16): Likewise.
2127         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
2128         * resolv/res_init.c (__res_vinit): Likewise.
2129         (net_mask): Likewise.
2130         * resolv/res_mkquery.c (outchar): Likewise.
2131         (PRINT): Likewise.
2132         * stdio-common/printf_fp.c (outchar): Likewise.
2133         (PRINT): Likewise.
2134         * stdio-common/printf_fphex.c (outchar): Likewise.
2135         (PRINT): Likewise.
2136         * stdio-common/printf_size.c (outchar): Likewise.
2137         (PRINT): Likewise.
2138         * stdio-common/test_rdwr.c (main): Likewise.
2139         * stdio-common/tfformat.c (matches): Likewise.
2140         * stdio-common/vfprintf.c (outchar): Likewise.
2141         (printf_unknown): Likewise.
2142         (buffered_vfprintf): Likewise.
2143         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
2144         * stdio-common/xbug.c (AppendToBuffer): Likewise.
2145         (ReadFile): Likewise.
2146         * stdlib/qsort.c (SWAP): Likewise.
2147         (_quicksort): Likewise.
2148         * stdlib/setenv.c (__add_to_environ): Likewise.
2149         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
2150         * stdlib/strtol_l.c (__strtol_l): Likewise.
2151         * stdlib/tst-strtod.c (main): Likewise.
2152         * stdlib/tst-strtol.c (main): Likewise.
2153         * stdlib/tst-strtoll.c (main): Likewise.
2154         * string/bits/string2.h (__strcmp_cc): Likewise.
2155         (__strcmp_cg): Likewise.
2156         (__strcspn_c1): Likewise.
2157         (__strcspn_c2): Likewise.
2158         (__strcspn_c3): Likewise.
2159         (__strspn_c1): Likewise.
2160         (__strspn_c2): Likewise.
2161         (__strspn_c3): Likewise.
2162         (__strsep_1c): Likewise.
2163         (__strsep_2c): Likewise.
2164         (__strsep_3c): Likewise.
2165         * string/memccpy.c (__memccpy): Likewise.
2166         * string/stpcpy.c (__stpcpy): Likewise.
2167         * string/strcmp.c (strcmp): Likewise.
2168         * string/strrchr.c (strrchr): Likewise.
2169         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
2170         Likewise.
2171         * sysdeps/mach/hurd/getcwd.c
2172         (_hurd_canonicalize_directory_name_internal): Likewise.
2173         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
2174         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
2175         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
2176         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
2177         Likewise, in both definitions.
2178         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
2179         definitions.
2180         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
2181         64] (__bswap_64): Likewise.
2182         * time/test_time.c (main): Likewise.
2183         * time/tzfile.c (__tzfile_read): Likewise.
2184         (__tzfile_compute): Likewise.
2185         * time/tzset.c (__tzset_parse_tz): Likewise.
2186         (tzset_internal): Likewise.
2187         (compute_change): Likewise.
2188         * wcsmbs/wcscat.c (__wcscat): Likewise.
2189         * wcsmbs/wcschr.c (wcschr): Likewise.
2190         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
2191         * wcsmbs/wcscspn.c (wcscspn): Likewise.
2192         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
2193         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
2194         * wcsmbs/wcsspn.c (wcsspn): Likewise.
2195         * wcsmbs/wcsstr.c (wcsstr): Likewise.
2196         * wcsmbs/wmemchr.c (wmemchr): Likewise.
2197         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
2198         * wcsmbs/wmemset.c (wmemset): Likewise.
2199
2200 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
2201
2202         * scripts/config.guess: Update to version 2013-05-16.
2203         * scripts/config.sub: Update to version 2013-04-24.
2204         * scripts/install-sh: Update to version 2011-11-20.07.
2205         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
2206         * scripts/move-if-change: Update to version 2012-01-06 07:23.
2207
2208 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
2209
2210         * debug/fgetws_u_chk.c: Fix leading whitespaces.
2211         * elf/sln.c: Likewise.
2212         * hurd/hurd/ioctl.h: Likewise.
2213         * hurd/hurdmalloc.c: Likewise.
2214         * hurd/xattr.c: Likewise.
2215         * include/shlib-compat.h: Likewise.
2216         * inet/ruserpass.c: Likewise.
2217         * libio/iofgets_u.c: Likewise.
2218         * libio/iofgetws_u.c: Likewise.
2219         * locale/programs/ld-identification.c: Likewise.
2220         * locale/programs/ld-time.c: Likewise.
2221         * mach/msg-destroy.c: Likewise.
2222         * nss/nss_files/files-netgrp.c: Likewise.
2223         * resolv/res_data.c: Likewise.
2224         * soft-fp/op-1.h: Likewise.
2225         * soft-fp/op-2.h: Likewise.
2226         * soft-fp/op-4.h: Likewise.
2227         * soft-fp/op-common.h: Likewise.
2228         * stdio-common/printf_fphex.c: Likewise.
2229         * stdlib/strtod_l.c: Likewise.
2230         * sunrpc/rpc/clnt.h: Likewise.
2231         * sysdeps/generic/framestate.c: Likewise.
2232         * sysdeps/i386/bsd-_setjmp.S: Likewise.
2233         * sysdeps/i386/bsd-setjmp.S: Likewise.
2234         * sysdeps/i386/__longjmp.S: Likewise.
2235         * sysdeps/i386/setjmp.S: Likewise.
2236         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
2237         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
2238         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
2239         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
2240         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
2241         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
2242         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
2243         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
2244         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
2245         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
2246         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
2247         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
2248         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
2249         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
2250         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
2251         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
2252         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
2253         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
2254         * sysdeps/ieee754/support.c: Likewise.
2255         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
2256         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
2257         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
2258         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
2259         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
2260         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
2261         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
2262         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
2263         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
2264         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
2265         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
2266         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
2267         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
2268         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
2269         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
2270         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
2271         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
2272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
2273
2274 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
2275
2276         * posix/transbug.c: Remove executable mode.
2277
2278 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
2279
2280         * crypt/speeds.c: Remove trailing whitespace.
2281         * dlfcn/default.c: Likewise.
2282         * elf/ifuncdep2.c: Likewise.
2283         * elf/ifuncmain1.c: Likewise.
2284         * elf/ifuncmain1vis.c: Likewise.
2285         * elf/testobj.h: Likewise.
2286         * elf/tst-stackguard1.c: Likewise.
2287         * gmon/sys/gmon.h: Likewise.
2288         * hurd/hurdmsg.c: Likewise.
2289         * hurd/new-fd.c: Likewise.
2290         * hurd/ports-get.c: Likewise.
2291         * iconvdata/ibm1008_420.c: Likewise.
2292         * inet/tst-getni1.c: Likewise.
2293         * inet/tst-getni2.c: Likewise.
2294         * libio/ioungetc.c: Likewise.
2295         * libio/wfiledoalloc.c: Likewise.
2296         * manual/libm-err-tab.pl: Likewise.
2297         * math/w_dremf.c: Likewise.
2298         * misc/ftruncate.c: Likewise.
2299         * posix/bug-glob2.c: Likewise.
2300         * posix/tst-pcre.c: Likewise.
2301         * posix/wait4.c: Likewise.
2302         * resolv/README: Likewise.
2303         * resolv/res_debug.h: Likewise.
2304         * resolv/tst-inet_ntop.c: Likewise.
2305         * setjmp/bug269-setjmp.c: Likewise.
2306         * soft-fp/extended.h: Likewise.
2307         * soft-fp/op-1.h: Likewise.
2308         * soft-fp/op-2.h: Likewise.
2309         * soft-fp/op-4.h: Likewise.
2310         * soft-fp/op-8.h: Likewise.
2311         * soft-fp/testit.c: Likewise.
2312         * stdio-common/bug16.c: Likewise.
2313         * stdlib/random.c: Likewise.
2314         * sunrpc/rpcsvc/rquota.x: Likewise.
2315         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
2316         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
2317         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
2318         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
2319         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
2320         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
2321         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
2322         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
2323         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
2324         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
2325         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
2326         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
2327         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
2328         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
2329         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
2330         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
2331         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
2332         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
2333         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
2334         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
2335         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
2336         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
2337         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
2338         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
2339         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
2340         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
2341         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
2342         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
2343         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
2344         * sysdeps/ieee754/s_lib_version.c: Likewise.
2345         * sysdeps/mach/hurd/check_fds.c: Likewise.
2346         * sysdeps/mach/hurd/getsockname.c: Likewise.
2347         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
2348         * sysdeps/mach/hurd/recvfrom.c: Likewise.
2349         * sysdeps/powerpc/bits/link.h: Likewise.
2350         * sysdeps/powerpc/dl-procinfo.c: Likewise.
2351         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
2352         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
2353         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
2354         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
2355         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
2356         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
2357         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
2358         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
2359         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
2360         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
2361         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
2362         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
2363         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
2364         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
2365         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
2366         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
2367         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
2368         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
2369         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
2370         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
2371         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
2372         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
2373         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
2374         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
2375         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
2376         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
2377         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
2378         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
2379         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
2380         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
2381         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
2382         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
2383         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
2384         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
2385         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
2386         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
2387         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
2388         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
2389         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
2390         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
2391         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
2392         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
2393         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
2394         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
2395         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
2396         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
2397         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
2398         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
2399         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
2400         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
2401         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
2402         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
2403         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
2404         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
2405         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
2406         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
2407         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
2408         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
2409         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
2410         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
2411         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
2412         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
2413         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
2414         * sysdeps/powerpc/sysdep.h: Likewise.
2415         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
2416         * sysdeps/s390/s390-64/sub_n.S: Likewise.
2417         * sysdeps/sh/dl-trampoline.S: Likewise.
2418         * sysdeps/sh/memset.S: Likewise.
2419         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
2420         * sysdeps/sh/strlen.S: Likewise.
2421         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
2422         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
2423         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
2424         * sysdeps/sparc/sparc32/rem.S: Likewise.
2425         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
2426         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
2427         * sysdeps/sparc/sparc32/strchr.S: Likewise.
2428         * sysdeps/sparc/sparc32/udiv.S: Likewise.
2429         * sysdeps/sparc/sparc32/urem.S: Likewise.
2430         * sysdeps/sparc/sparc64/add_n.S: Likewise.
2431         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
2432         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
2433         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
2434         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
2435         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
2436         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
2437         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
2438         * sysdeps/unix/bsd/times.c: Likewise.
2439         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
2440         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
2441         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
2442         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
2443         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
2444         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
2445         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
2446         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
2447         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
2448         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
2449         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
2450         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
2451         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
2452         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
2453         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
2454         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
2455         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
2456         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
2457         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
2458         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
2459         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
2460         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
2461         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
2462         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
2463         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
2464         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
2465         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
2466         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
2467         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
2468         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
2469         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
2470         * sysdeps/x86_64/strcspn.S: Likewise.
2471
2472 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2473
2474         * locale/C-translit.h: Revert #include <stdint.h> because this is a
2475         generated file.  Regenerate properly from gen-translit.pl.
2476         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
2477         locale/C-translit.h.
2478
2479 2013-06-05  Andreas Schwab  <schwab@suse.de>
2480
2481         [BZ #15100]
2482         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
2483         week as 6 instead of -1.
2484         * time/tst-strptime.c (day_tests): Add test case.
2485
2486 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
2487
2488         * sysdeps/generic/math_private.h
2489         (libc_feholdexcept_setround_53bit): Replace with
2490         libc_feholdsetround_53bit.
2491         (libc_feupdateenv_53bit): Replace with
2492         libc_feresetround_53bit.
2493         (SET_RESTORE_ROUND_53BIT): Adjust.
2494
2495 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
2496
2497         * string/test-strchrnul.c: Add copyright header.
2498
2499         * posix/tst-getaddrinfo4.c: Increase test timeout.
2500
2501 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
2502
2503         [BZ #15536]
2504         * math/libm-test.inc (MAX_EXP): Remove
2505         (MIN_EXP): Define.
2506         (ulp): Use MIN_EXP - MANT_DIG.
2507         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
2508
2509 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
2510
2511         * po/be.po: Revert last change.
2512         * po/zh_CN.po: Likewise.
2513         * po/header.pot: Likewise.
2514
2515 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
2516
2517         * Makefile ($(common-objpfx)linkobj/libc.so): Define
2518         link-libc-deps to empty as target-specific variable.
2519         * Makerules (link-libc-args): New variable.
2520         (libc-for-link): Likewise.
2521         (link-libc-deps): Likewise.
2522         (lib%.so): Depend on $(link-libc-deps).  Link with
2523         $(link-libc-args).
2524         (build-module): Link with $(link-libc-args).
2525         (build-module-asneeded): Likewise.
2526         (build-module-helper-objlist): Filter out $(link-libc-deps) from
2527         list of objects.
2528         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
2529         target-specific variable.
2530         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
2531         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
2532         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
2533         libc.
2534         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
2535         libc and ld.so.
2536         ($(objpfx)libpcprofile.so): Likewise.
2537         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
2538         libc_nonshared.a.
2539         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
2540         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
2541         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
2542         $(link-libc-deps).
2543         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
2544         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
2545         * login/Makefile ($(objpfx)libutil.so): Likewise.
2546         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
2547         * math/Makefile ($(objpfx)libm.so): Likewise.
2548         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
2549         $(objpfx)libnsl.so): Define libc-for-link as target-specific
2550         variable instead of depending directly on libc.
2551         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
2552         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
2553         $(link-libc-deps).
2554         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
2555         libc.
2556         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
2557         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
2558         ($(objpfx)libanl.so): Likewise.
2559         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
2560         ld.so.
2561         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
2562         $(link-libc-deps).
2563         * sysdeps/i386/fpu/Makefile: Remove file.
2564         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
2565         ($(objpfx)libm.so): Remove dependency on ld.so.
2566
2567 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
2568
2569         [BZ # 15553]
2570         * nis/yp_xdr.c (XDRMAXNAME): Define.
2571         (XDRMAXRECORD): Define.
2572         (xdr_domainname): Use XDRMAXNAME.
2573         (xdr_mapname): Likewise.
2574         (xdr_peername): Likewise.
2575         (xdr_keydat): Use XDRMAXRECORD.
2576         (xdr_valdat): Likewise.
2577
2578 2013-05-30  Jeff Law  <law@redhat.com>
2579
2580         [BZ #14256]
2581         * manual/errno.texi (ESTALE): Update to account for more than
2582         just NFS file systems.
2583         * sysdeps/gnu/errlist.c: Regenerated.
2584
2585 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
2586
2587         [BZ #15465]
2588         * elf/Makefile (tests): Add tst-null-argv.
2589         (modules-names):  Add tst-null-argv-lib.
2590         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
2591         (tst-null-argv-ENV): Set environment for tst-null-argv.
2592         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
2593         (RTLD_PROGNAME): New macro.
2594         * elf/tst-null-argv.c: New test case.
2595         * elf/tst-null-argv-lib.c: Library for test case.
2596         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
2597         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
2598         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
2599         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
2600         * elf/dl-init.c (call_init): Likewise.
2601         (_dl_init): Likewise.
2602         * elf/dl-load.c (print_search_path): Likewise.
2603         (_dl_map_object): Likewise.
2604         * elf/dl-lookup.c (do_lookup_x): Likewise.
2605         (add_dependency): Likewise.
2606         (_dl_lookup_symbol_x): Likewise.
2607         (_dl_debug_bindings): Likewise.
2608         * elf/dl-open.c (_dl_show_scope): Likewise.
2609         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
2610         * elf/dl-version.c (match_symbol): Likewise.
2611         (_dl_check_map_versions): Likewise.
2612         * elf/rtld.c (dl_main): Likewise.
2613         (print_unresolved): Use RTLD_PROGNAME.
2614         (print_missing_version): Likewise.
2615         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
2616         (elf_machine_rela): Likewise.
2617         * sysdeps/powerpc/powerpc32/dl-machine.c
2618         (__process_machine_rela): Likewise.
2619         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
2620         Likewise.
2621         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
2622         Likewise.
2623         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
2624         Likewise.
2625         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
2626         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
2627         Likewise.
2628         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
2629         Likewise.
2630         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
2631
2632 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
2633
2634         * po/be.po: Add descriptive title.
2635         * po/zh_CN.po: Likewise.
2636         * po/header.pot: Likewise.
2637
2638 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
2639
2640         * locale/programs/locarchive.c (create_archive): Inlucde fname in
2641         error message.
2642         (enlarge_archive): Likewise.
2643
2644 2013-05-28  Ben North  <ben@redfrontdoor.org>
2645
2646         * manual/arith.texi (frexp): It is the magnitude of the return
2647         value which lies in [0.5, 1), not the return value itself.
2648
2649 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2650
2651         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2652
2653 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
2654
2655         * stdio-common/bug26.c (main): Correct fscanf template.
2656
2657         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
2658         declare _dl_skip_args.
2659
2660         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
2661         Don't declare.
2662
2663         * manual/platform.texi: Add missing @end deftypefun.
2664
2665 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
2666
2667         [BZ #15529]
2668         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
2669         bit of mantissa of 2^16382.
2670         * math/libm-test.inc (hypot_test_data): Add more tests.
2671
2672         * math/libm-test.inc: Add drem and pow10 to list of tested
2673         functions.
2674         (pow10_test): New function.
2675         (drem_test): Likewise.
2676         (drem_test_tonearest): Likewise.
2677         (drem_test_towardzero): Likewise.
2678         (drem_test_downward): Likewise.
2679         (drem_test_upward): Likewise.
2680         (main): Call the new functions.
2681
2682         * math/libm-test.inc (finite_test_data): Remove.
2683         (finite_test): Run tests from isfinite_test_data.
2684         (gamma_test_data): Remove.
2685         (gamma_test): Run tests from lgamma_test_data.
2686         * sysdeps/i386/fpu/libm-test-ulps: Update.
2687         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2688
2689 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2690
2691         * manual/platform.texi: Add PowerPC PPR function set documentation.
2692         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
2693         implementation.
2694
2695 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
2696
2697         * math/libm-test.inc (MAX_EXP): Define.
2698         (ULPDIFF): Define.
2699         (ulp): New function.
2700         (check_float_internal): Use ULPDIFF.
2701         (cpow_test): Disable failing test.
2702         (check_ulp): Test ulp() implemetnation.
2703         (main): Call check_ulp before starting tests.
2704
2705 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
2706
2707         * math/gen-libm-test.pl (generate_testfile): Do not handle
2708         START_DATA and END_DATA.
2709         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
2710         END_DATA.
2711         (acos_tonearest_test_data): Likewise.
2712         (acos_towardzero_test_data): Likewise.
2713         (acos_downward_test_data): Likewise.
2714         (acos_upward_test_data): Likewise.
2715         (acosh_test_data): Likewise.
2716         (asin_test_data): Likewise.
2717         (asin_tonearest_test_data): Likewise.
2718         (asin_towardzero_test_data): Likewise.
2719         (asin_downward_test_data): Likewise.
2720         (asin_upward_test_data): Likewise.
2721         (asinh_test_data): Likewise.
2722         (atan_test_data): Likewise.
2723         (atanh_test_data): Likewise.
2724         (atan2_test_data): Likewise.
2725         (cabs_test_data): Likewise.
2726         (cacos_test_data): Likewise.
2727         (cacosh_test_data): Likewise.
2728         (carg_test_data): Likewise.
2729         (casin_test_data): Likewise.
2730         (casinh_test_data): Likewise.
2731         (catan_test_data): Likewise.
2732         (catanh_test_data): Likewise.
2733         (cbrt_test_data): Likewise.
2734         (ccos_test_data): Likewise.
2735         (ccosh_test_data): Likewise.
2736         (ceil_test_data): Likewise.
2737         (cexp_test_data): Likewise.
2738         (cimag_test_data): Likewise.
2739         (clog_test_data): Likewise.
2740         (clog10_test_data): Likewise.
2741         (conj_test_data): Likewise.
2742         (copysign_test_data): Likewise.
2743         (cos_test_data): Likewise.
2744         (cos_tonearest_test_data): Likewise.
2745         (cos_towardzero_test_data): Likewise.
2746         (cos_downward_test_data): Likewise.
2747         (cos_upward_test_data): Likewise.
2748         (cosh_test_data): Likewise.
2749         (cosh_tonearest_test_data): Likewise.
2750         (cosh_towardzero_test_data): Likewise.
2751         (cosh_downward_test_data): Likewise.
2752         (cosh_upward_test_data): Likewise.
2753         (cpow_test_data): Likewise.
2754         (cproj_test_data): Likewise.
2755         (creal_test_data): Likewise.
2756         (csin_test_data): Likewise.
2757         (csinh_test_data): Likewise.
2758         (csqrt_test_data): Likewise.
2759         (ctan_test_data): Likewise.
2760         (ctan_tonearest_test_data): Likewise.
2761         (ctan_towardzero_test_data): Likewise.
2762         (ctan_downward_test_data): Likewise.
2763         (ctan_upward_test_data): Likewise.
2764         (ctanh_test_data): Likewise.
2765         (ctanh_tonearest_test_data): Likewise.
2766         (ctanh_towardzero_test_data): Likewise.
2767         (ctanh_downward_test_data): Likewise.
2768         (ctanh_upward_test_data): Likewise.
2769         (erf_test_data): Likewise.
2770         (erfc_test_data): Likewise.
2771         (exp_test_data): Likewise.
2772         (exp_tonearest_test_data): Likewise.
2773         (exp_towardzero_test_data): Likewise.
2774         (exp_downward_test_data): Likewise.
2775         (exp_upward_test_data): Likewise.
2776         (exp10_test_data): Likewise.
2777         (exp2_test_data): Likewise.
2778         (expm1_test_data): Likewise.
2779         (fabs_test_data): Likewise.
2780         (fdim_test_data): Likewise.
2781         (finite_test_data): Likewise.
2782         (floor_test_data): Likewise.
2783         (fma_test_data): Likewise.
2784         (fma_towardzero_test_data): Likewise.
2785         (fma_downward_test_data): Likewise.
2786         (fma_upward_test_data): Likewise.
2787         (fmax_test_data): Likewise.
2788         (fmin_test_data): Likewise.
2789         (fmod_test_data): Likewise.
2790         (fpclassify_test_data): Likewise.
2791         (frexp_test_data): Likewise.
2792         (gamma_test_data): Likewise.
2793         (hypot_test_data): Likewise.
2794         (ilogb_test_data): Likewise.
2795         (isfinite_test_data): Likewise.
2796         (isgreater_test_data): Likewise.
2797         (isgreaterequal_test_data): Likewise.
2798         (isinf_test_data): Likewise.
2799         (isless_test_data): Likewise.
2800         (islessequal_test_data): Likewise.
2801         (islessgreater_test_data): Likewise.
2802         (isnan_test_data): Likewise.
2803         (isnormal_test_data): Likewise.
2804         (issignaling_test_data): Likewise.
2805         (isunordered_test_data): Likewise.
2806         (j0_test_data): Likewise.
2807         (j1_test_data): Likewise.
2808         (jn_test_data): Likewise.
2809         (ldexp_test_data): Likewise.
2810         (lgamma_test_data): Likewise.
2811         (lrint_test_data): Likewise.
2812         (lrint_tonearest_test_data): Likewise.
2813         (lrint_towardzero_test_data): Likewise.
2814         (lrint_downward_test_data): Likewise.
2815         (lrint_upward_test_data): Likewise.
2816         (llrint_test_data): Likewise.
2817         (llrint_tonearest_test_data): Likewise.
2818         (llrint_towardzero_test_data): Likewise.
2819         (llrint_downward_test_data): Likewise.
2820         (llrint_upward_test_data): Likewise.
2821         (log_test_data): Likewise.
2822         (log10_test_data): Likewise.
2823         (log1p_test_data): Likewise.
2824         (log2_test_data): Likewise.
2825         (logb_test_data): Likewise.
2826         (logb_downward_test_data): Likewise.
2827         (lround_test_data): Likewise.
2828         (llround_test_data): Likewise.
2829         (modf_test_data): Likewise.
2830         (nearbyint_test_data): Likewise.
2831         (nextafter_test_data): Likewise.
2832         (nexttoward_test_data): Likewise.
2833         (pow_test_data): Likewise.
2834         (pow_tonearest_test_data): Likewise.
2835         (pow_towardzero_test_data): Likewise.
2836         (pow_downward_test_data): Likewise.
2837         (pow_upward_test_data): Likewise.
2838         (remainder_test_data): Likewise.
2839         (remainder_tonearest_test_data): Likewise.
2840         (remainder_towardzero_test_data): Likewise.
2841         (remainder_downward_test_data): Likewise.
2842         (remainder_upward_test_data): Likewise.
2843         (remquo_test_data): Likewise.
2844         (rint_test_data): Likewise.
2845         (rint_tonearest_test_data): Likewise.
2846         (rint_towardzero_test_data): Likewise.
2847         (rint_downward_test_data): Likewise.
2848         (rint_upward_test_data): Likewise.
2849         (round_test_data): Likewise.
2850         (scalb_test_data): Likewise.
2851         (scalbn_test_data): Likewise.
2852         (scalbln_test_data): Likewise.
2853         (signbit_test_data): Likewise.
2854         (sin_test_data): Likewise.
2855         (sin_tonearest_test_data): Likewise.
2856         (sin_towardzero_test_data): Likewise.
2857         (sin_downward_test_data): Likewise.
2858         (sin_upward_test_data): Likewise.
2859         (sincos_test_data): Likewise.
2860         (sinh_test_data): Likewise.
2861         (sinh_tonearest_test_data): Likewise.
2862         (sinh_towardzero_test_data): Likewise.
2863         (sinh_downward_test_data): Likewise.
2864         (sinh_upward_test_data): Likewise.
2865         (sqrt_test_data): Likewise.
2866         (tan_test_data): Likewise.
2867         (tan_tonearest_test_data): Likewise.
2868         (tan_towardzero_test_data): Likewise.
2869         (tan_downward_test_data): Likewise.
2870         (tan_upward_test_data): Likewise.
2871         (tanh_test_data): Likewise.
2872         (tgamma_test_data): Likewise.
2873         (trunc_test_data): Likewise.
2874         (y0_test_data): Likewise.
2875         (y1_test_data): Likewise.
2876         (yn_test_data): Likewise.
2877         (significand_test_data): Likewise.
2878
2879         * math/gen-libm-test.pl (@functions): Remove variable.
2880         (generate_testfile): Don't handle START and END lines.
2881         * math/libm-test.inc (START): New macro.
2882         (END): Likewise.
2883         (END_COMPLEX): Likewise.
2884         (acos_test): Use END macro without arguments.
2885         (acos_test_tonearest): Likewise.
2886         (acos_test_towardzero): Likewise.
2887         (acos_test_downward): Likewise.
2888         (acos_test_upward): Likewise.
2889         (acosh_test): Likewise.
2890         (asin_test): Likewise.
2891         (asin_test_tonearest): Likewise.
2892         (asin_test_towardzero): Likewise.
2893         (asin_test_downward): Likewise.
2894         (asin_test_upward): Likewise.
2895         (asinh_test): Likewise.
2896         (atan_test): Likewise.
2897         (atanh_test): Likewise.
2898         (atan2_test): Likewise.
2899         (cabs_test): Likewise.
2900         (cacos_test): Use END_COMPLEX macro without arguments.
2901         (cacosh_test): Likewise.
2902         (carg_test): Use END macro without arguments.
2903         (casin_test): Use END_COMPLEX macro without arguments.
2904         (casinh_test): Likewise.
2905         (catan_test): Likewise.
2906         (catanh_test): Likewise.
2907         (cbrt_test): Use END macro without arguments.
2908         (ccos_test): Use END_COMPLEX macro without arguments.
2909         (ccosh_test): Likewise.
2910         (ceil_test): Use END macro without arguments.
2911         (cexp_test): Use END_COMPLEX macro without arguments.
2912         (cimag_test): Use END macro without arguments.
2913         (clog_test): Use END_COMPLEX macro without arguments.
2914         (clog10_test): Likewise.
2915         (conj_test): Likewise.
2916         (copysign_test): Use END macro without arguments.
2917         (cos_test): Likewise.
2918         (cos_test_tonearest): Likewise.
2919         (cos_test_towardzero): Likewise.
2920         (cos_test_downward): Likewise.
2921         (cos_test_upward): Likewise.
2922         (cosh_test): Likewise.
2923         (cosh_test_tonearest): Likewise.
2924         (cosh_test_towardzero): Likewise.
2925         (cosh_test_downward): Likewise.
2926         (cosh_test_upward): Likewise.
2927         (cpow_test): Use END_COMPLEX macro without arguments.
2928         (cproj_test): Likewise.
2929         (creal_test): Use END macro without arguments.
2930         (csin_test): Use END_COMPLEX macro without arguments.
2931         (csinh_test): Likewise.
2932         (csqrt_test): Likewise.
2933         (ctan_test): Likewise.
2934         (ctan_test_tonearest): Likewise.
2935         (ctan_test_towardzero): Likewise.
2936         (ctan_test_downward): Likewise.
2937         (ctan_test_upward): Likewise.
2938         (ctanh_test): Likewise.
2939         (ctanh_test_tonearest): Likewise.
2940         (ctanh_test_towardzero): Likewise.
2941         (ctanh_test_downward): Likewise.
2942         (ctanh_test_upward): Likewise.
2943         (erf_test): Use END macro without arguments.
2944         (erfc_test): Likewise.
2945         (exp_test): Likewise.
2946         (exp_test_tonearest): Likewise.
2947         (exp_test_towardzero): Likewise.
2948         (exp_test_downward): Likewise.
2949         (exp_test_upward): Likewise.
2950         (exp10_test): Likewise.
2951         (exp2_test): Likewise.
2952         (expm1_test): Likewise.
2953         (fabs_test): Likewise.
2954         (fdim_test): Likewise.
2955         (finite_test): Likewise.
2956         (floor_test): Likewise.
2957         (fma_test): Likewise.
2958         (fma_test_towardzero): Likewise.
2959         (fma_test_downward): Likewise.
2960         (fma_test_upward): Likewise.
2961         (fmax_test): Likewise.
2962         (fmin_test): Likewise.
2963         (fmod_test): Likewise.
2964         (fpclassify_test): Likewise.
2965         (frexp_test): Likewise.
2966         (gamma_test): Likewise.
2967         (hypot_test): Likewise.
2968         (ilogb_test): Likewise.
2969         (isfinite_test): Likewise.
2970         (isgreater_test): Likewise.
2971         (isgreaterequal_test): Likewise.
2972         (isinf_test): Likewise.
2973         (isless_test): Likewise.
2974         (islessequal_test): Likewise.
2975         (islessgreater_test): Likewise.
2976         (isnan_test): Likewise.
2977         (isnormal_test): Likewise.
2978         (issignaling_test): Likewise.
2979         (isunordered_test): Likewise.
2980         (j0_test): Likewise.
2981         (j1_test): Likewise.
2982         (jn_test): Likewise.
2983         (ldexp_test): Likewise.
2984         (lgamma_test): Likewise.
2985         (lrint_test): Likewise.
2986         (lrint_test_tonearest): Likewise.
2987         (lrint_test_towardzero): Likewise.
2988         (lrint_test_downward): Likewise.
2989         (lrint_test_upward): Likewise.
2990         (llrint_test): Likewise.
2991         (llrint_test_tonearest): Likewise.
2992         (llrint_test_towardzero): Likewise.
2993         (llrint_test_downward): Likewise.
2994         (llrint_test_upward): Likewise.
2995         (log_test): Likewise.
2996         (log10_test): Likewise.
2997         (log1p_test): Likewise.
2998         (log2_test): Likewise.
2999         (logb_test): Likewise.
3000         (logb_test_downward): Likewise.
3001         (lround_test): Likewise.
3002         (llround_test): Likewise.
3003         (modf_test): Likewise.
3004         (nearbyint_test): Likewise.
3005         (nextafter_test): Likewise.
3006         (nexttoward_test): Likewise.
3007         (pow_test): Likewise.
3008         (pow_test_tonearest): Likewise.
3009         (pow_test_towardzero): Likewise.
3010         (pow_test_downward): Likewise.
3011         (pow_test_upward): Likewise.
3012         (remainder_test): Likewise.
3013         (remainder_test_tonearest): Likewise.
3014         (remainder_test_towardzero): Likewise.
3015         (remainder_test_downward): Likewise.
3016         (remainder_test_upward): Likewise.
3017         (remquo_test): Likewise.
3018         (rint_test): Likewise.
3019         (rint_test_tonearest): Likewise.
3020         (rint_test_towardzero): Likewise.
3021         (rint_test_downward): Likewise.
3022         (rint_test_upward): Likewise.
3023         (round_test): Likewise.
3024         (scalb_test): Likewise.
3025         (scalbn_test): Likewise.
3026         (scalbln_test): Likewise.
3027         (signbit_test): Likewise.
3028         (sin_test): Likewise.
3029         (sin_test_tonearest): Likewise.
3030         (sin_test_towardzero): Likewise.
3031         (sin_test_downward): Likewise.
3032         (sin_test_upward): Likewise.
3033         (sincos_test): Likewise.
3034         (sinh_test): Likewise.
3035         (sinh_test_tonearest): Likewise.
3036         (sinh_test_towardzero): Likewise.
3037         (sinh_test_downward): Likewise.
3038         (sinh_test_upward): Likewise.
3039         (sqrt_test): Likewise.
3040         (tan_test): Likewise.
3041         (tan_test_tonearest): Likewise.
3042         (tan_test_towardzero): Likewise.
3043         (tan_test_downward): Likewise.
3044         (tan_test_upward): Likewise.
3045         (tanh_test): Likewise.
3046         (tgamma_test): Likewise.
3047         (trunc_test): Likewise.
3048         (y0_test): Likewise.
3049         (y1_test): Likewise.
3050         (yn_test): Likewise.
3051         (significand_test): Likewise.
3052
3053 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
3054
3055         [BZ #15381]
3056         * libio/genops.c (_IO_no_init): Initialize wide struct info.
3057
3058 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
3059
3060         [BZ #14894]
3061         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
3062         __ppc_mdoio and __ppc_mdoom.
3063         * manual/platform.texi: Document new functions __ppc_yield,
3064         __ppc_mdoio and __ppc_mdoom.
3065
3066 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
3067
3068         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
3069         (main): Mention "tls" pseudo-hwcap is legacy.
3070         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
3071
3072 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
3073
3074         * math/gen-libm-test.pl (parse_args): Output only string of
3075         arguments as text for test name, not full call or descriptions of
3076         tests for extra outputs.
3077         (generate_testfile): Do not pass function name to parse_args.
3078         Generate this_func variable from START.
3079         * math/libm-test.inc (struct test_f_f_data): Rename test_name
3080         field to arg_str.
3081         (struct test_ff_f_data): Likewise.
3082         (test_ff_f_data_nexttoward): Likewise.
3083         (struct test_fi_f_data): Likewise.
3084         (struct test_fl_f_data): Likewise.
3085         (struct test_if_f_data): Likewise.
3086         (struct test_fff_f_data): Likewise.
3087         (struct test_c_f_data): Likewise.
3088         (struct test_f_f1_data): Likewise.  Remove field extra_name.
3089         (struct test_fF_f1_data): Likewise.
3090         (struct test_ffI_f1_data): Likewise.
3091         (struct test_c_c_data): Rename test_name field to arg_str.
3092         (struct test_cc_c_data): Likewise.
3093         (struct test_f_i_data): Likewise.
3094         (struct test_ff_i_data): Likewise.
3095         (struct test_f_l_data): Likewise.
3096         (struct test_f_L_data): Likewise.
3097         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
3098         and extra2_name.
3099         (COMMON_TEST_SETUP): New macro.
3100         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
3101         (COMMON_TEST_CLEANUP): Likewise.
3102         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
3103         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
3104         macros.
3105         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
3106         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
3107         macros.
3108         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
3109         (RUN_TEST_fff_f): Take argument string.  Call new setup and
3110         cleanup macros.
3111         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
3112         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
3113         macros.
3114         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
3115         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
3116         macros.
3117         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
3118         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
3119         cleanup macros.
3120         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
3121         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
3122         cleanup macros.
3123         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
3124         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
3125         cleanup macros.
3126         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
3127         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
3128         macros.
3129         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
3130         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
3131         macros.
3132         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
3133         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
3134         macros.
3135         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
3136         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
3137         cleanup macros.
3138         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
3139         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
3140         cleanup macros.
3141         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
3142         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
3143         macros.
3144         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
3145         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
3146         cleanup macros.
3147         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
3148         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
3149         macros.
3150         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
3151         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
3152         macros.
3153         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
3154         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
3155         cleanup macros.
3156         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
3157
3158 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
3159
3160         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
3161         to _sifields.sigfault.
3162         (si_addr_lsb): Define new macro.
3163         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
3164         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
3165         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
3166
3167 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
3168
3169         [BZ #15441]
3170         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
3171         returns -1.
3172         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
3173         null return -1.
3174         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
3175         loading the domain.
3176
3177 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
3178
3179         * math/gen-libm-test.pl (parse_args): Do not include expected
3180         result in test name.
3181         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
3182         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3183         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3184         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
3185         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
3186         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3187
3188 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
3189
3190         * benchtests/Makefile: Sort function entries.
3191
3192         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
3193         tanh, asinh, acosh, atanh.
3194         * benchtests/acos-inputs: New file.
3195         * benchtests/acosh-inputs: New file.
3196         * benchtests/asin-inputs: New file.
3197         * benchtests/asinh-inputs: New file.
3198         * benchtests/atanh-inputs: New file.
3199         * benchtests/cosh-inputs: New file.
3200         * benchtests/log-inputs: New file.
3201         * benchtests/sinh-inputs: New file.
3202         * benchtests/tanh-inputs: New file.
3203
3204 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
3205
3206         [BZ #15339]
3207         * posix/tst-getaddrinfo4.c: New test.
3208         * posix/Makefile (tests): Add it.
3209
3210 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3211
3212         [BZ #15339]
3213         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
3214         when no services were used.
3215         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
3216         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
3217
3218 2013-05-21  Andreas Schwab  <schwab@suse.de>
3219
3220         [BZ #15014]
3221         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
3222         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
3223         successful.
3224         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
3225         redundant variable declarations and reallocation of buffer when
3226         parsing as IPv6 address.  Always set NSS status when called from
3227         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
3228         buffer too small.  Correct computation of needed size.
3229         * nss/Makefile (tests): Add test-digits-dots.
3230         * nss/test-digits-dots.c: New test.
3231
3232 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3233
3234         * benchtests/Makefile: Remove instructions for adding
3235         benchmark tests.
3236         * benchtests/README: New file to explain how to execute and
3237         enhance the benchmark tests.
3238
3239 2013-05-21  Andreas Schwab  <schwab@suse.de>
3240
3241         [BZ #15493]
3242         * setjmp/Makefile (tests): Add tst-sigsetjmp.
3243         * setjmp/tst-sigsetjmp.c: New test.
3244
3245 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
3246
3247         * sysdeps/x86_64/memset.S (memset): New implementation.
3248         (__bzero): Likewise.
3249         (__memset_tail): New function.
3250
3251 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
3252
3253         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
3254         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
3255         __memcpy_sse2_unaligned ifunc selection.
3256         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
3257         Add memcpy-sse2-unaligned.S.
3258         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
3259         Add: __memcpy_sse2_unaligned.
3260
3261 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
3262
3263         [BZ #15490]
3264         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
3265         math_force_eval before restoring floating-point envrionment.
3266         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
3267         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
3268         Likewise.
3269         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
3270         <math_private.h>.
3271         (__nearbyintl): Use math_force_eval before restoring
3272         floating-point environment.
3273         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
3274
3275         * math/gen-libm-test.pl (special_functions): Remove.
3276         (parse_args): Don't handle TEST_extra.  Handle functions with no
3277         return value.
3278         * math/libm-test.inc (struct test_sincos_data): Replace with
3279         struct test_fFF_11_data.
3280         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
3281         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
3282         (sincos_test_data): Change element type to struct
3283         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
3284         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
3285         RUN_TEST_LOOP_sincos.
3286         * math/README.libm-test: Don't mention special handling of
3287         individual functions.
3288         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
3289         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
3290         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
3291         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
3292         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
3293         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3294
3295         * math/gen-libm-test.pl (get_variable): Remove function.
3296         (parse_args): Don't show pointer parameters to call in test
3297         names.  Use "extra output N" in test names for extra outputs
3298         rather than naming variables.
3299
3300 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
3301
3302         [BZ #15488]
3303         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
3304         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
3305         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
3306         double tests.
3307         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
3308         disable.
3309         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
3310         check_long_double.
3311
3312         * math/gen-libm-test.pl (@tests): Remove variable.
3313         ($count): Likewise.
3314         (new_test): Remove function.
3315         (show_exceptions): New function.
3316         (special_functions): Use show_exceptions instead of new_test.
3317         (parse_args): Likewise.
3318         (generate_testfile): Pass only function name in generated call to
3319         print_max_error or print_complex_max_error.
3320         (get_ulps): Do not handle complex tests specially.
3321         (output_test): Rename to ...
3322         (get_all_ulps_for_test): ... this.  Return a string rather than
3323         printing to a file.  Require ulps to be present.
3324         (output_ulps): Generate arrays rather than #defines.
3325         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
3326         (struct ulp_data): New type.
3327         (BUILD_COMPLEX_ULP): Remove macro.
3328         (compare_ulp_data): New function.
3329         (find_ulps): Likewise.
3330         (find_test_ulps): Likewise.
3331         (find_function_ulps): Likewise.
3332         (find_complex_function_ulps): Likewise.
3333         (print_max_error): Determine allowed ulps using
3334         find_function_ulps.
3335         (print_complex_max_error): Determine allowed ulps using
3336         find_complex_function_ulps.
3337         (check_float_internal): Determine max ulps using find_test_ulps.
3338         (check_float): Do not take max_ulp parameter.  Update call to
3339         check_float_internal.
3340         (check_complex): Likewise.
3341         (check_int): Do not take max_ulp parameter.
3342         (check_long): Likewise.
3343         (check_bool): Likewise.
3344         (check_longlong): Likewise.
3345         (struct test_f_f_data): Remove max_ulp field.
3346         (struct test_ff_f_data): Likewise.
3347         (struct test_ff_f_data_nexttoward): Likewise.
3348         (struct test_fi_f_data): Likewise.
3349         (struct test_fl_f_data): Likewise.
3350         (struct test_if_f_data): Likewise.
3351         (struct test_fff_f_data): Likewise.
3352         (struct test_c_f_data): Likewise.
3353         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
3354         (struct test_fF_f1_data): Likewise.
3355         (struct test_ffI_f1_data): Likewise.
3356         (struct test_c_c_data): Remove max_ulp field.
3357         (struct test_cc_c_data): Likewise.
3358         (struct test_f_i_data): Likewise.
3359         (struct test_ff_i_data): Likewise.
3360         (struct test_f_l_data): Likewise.
3361         (struct test_f_L_data): Likewise.
3362         (struct test_sincos_data): Likewise.
3363         (RUN_TEST_f_f): Do not handle ulps.
3364         (RUN_TEST_LOOP_f_f): Likewise.
3365         (RUN_TEST_2_f): Likewise.
3366         (RUN_TEST_LOOP_2_f): Likewise.
3367         (RUN_TEST_fff_f): Likewise.
3368         (RUN_TEST_LOOP_fff_f): Likewise.
3369         (RUN_TEST_c_f): Likewise.
3370         (RUN_TEST_LOOP_c_f): Likewise.
3371         (RUN_TEST_f_f1): Likewise.
3372         (RUN_TEST_LOOP_f_f1): Likewise.
3373         (RUN_TEST_fF_f1): Likewise.
3374         (RUN_TEST_LOOP_fF_f1): Likewise.
3375         (RUN_TEST_fI_f1): Likewise.
3376         (RUN_TEST_LOOP_fI_f1): Likewise.
3377         (RUN_TEST_ffI_f1): Likewise.
3378         (RUN_TEST_LOOP_ffI_f1): Likewise.
3379         (RUN_TEST_c_c): Likewise.
3380         (RUN_TEST_LOOP_c_c): Likewise.
3381         (RUN_TEST_cc_c): Likewise.
3382         (RUN_TEST_LOOP_cc_c): Likewise.
3383         (RUN_TEST_f_i): Likewise.
3384         (RUN_TEST_LOOP_f_i): Likewise.
3385         (RUN_TEST_f_i_tg): Likewise.
3386         (RUN_TEST_LOOP_f_i_tg): Likewise.
3387         (RUN_TEST_ff_i_tg): Likewise.
3388         (RUN_TEST_LOOP_ff_i_tg): Likewise.
3389         (RUN_TEST_f_b): Likewise.
3390         (RUN_TEST_LOOP_f_b): Likewise.
3391         (RUN_TEST_f_b_tg): Likewise.
3392         (RUN_TEST_LOOP_f_b_tg): Likewise.
3393         (RUN_TEST_f_l): Likewise.
3394         (RUN_TEST_LOOP_f_l): Likewise.
3395         (RUN_TEST_f_L): Likewise.
3396         (RUN_TEST_LOOP_f_L): Likewise.
3397         (RUN_TEST_sincos): Likewise.
3398         (RUN_TEST_LOOP_sincos): Likewise.
3399
3400 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
3401
3402         [BZ #15480]
3403         [BZ #15485]
3404         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
3405         main case of finite arguments, set rounding mode to FE_TONEAREST
3406         and discard exceptions.
3407         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
3408         exceptions.
3409         (remainder_tonearest_test_data): New variable.
3410         (remainder_test_tonearest): New function.
3411         (remainder_towardzero_test_data): New variable.
3412         (remainder_test_towardzero): New function.
3413         (remainder_downward_test_data): New variable.
3414         (remainder_test_downward): New function.
3415         (remainder_upward_test_data): New variable.
3416         (remainder_test_upward): New function.
3417         (main): Call the new test functions.
3418
3419         * math/libm-test.inc (struct test_f_f1_data): Remove field
3420         extra_init.
3421         (struct test_fF_f1_data): Likewise.
3422         (struct test_ffI_f1_data): Likewise.
3423         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
3424         based on value of EXTRA_EXPECTED.
3425         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
3426         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
3427         EXTRA_VAR based on value of EXTRA_EXPECTED.
3428         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
3429         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
3430         EXTRA_VAR based on value of EXTRA_EXPECTED.
3431         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
3432         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
3433         EXTRA_VAR based on value of EXTRA_EXPECTED.
3434         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
3435         * math/gen-libm-test.pl (parse_args): Don't output initializers
3436         for extra output values.
3437
3438         * math/libm-test.inc (check_int): Expect result to be exactly
3439         equal to expected value and do not handle ulps.
3440         (check_long): Likewise.
3441         (check_longlong): Likewise.
3442
3443         * math/libm-test.inc (ceil_test_data): Test for "inexact"
3444         exceptions.
3445         (cimag_test_data): Likewise.
3446         (conj_test_data): Likewise.
3447         (copysign_test_data): Likewise.
3448         (cproj_test_data): Likewise.
3449         (creal_test_data): Likewise.
3450         (fabs_test_data): Likewise.
3451         (fdim_test_data): Likewise.
3452         (finite_test_data): Likewise.
3453         (floor_test_data): Likewise.
3454         (fmax_test_data): Likewise.
3455         (fmin_test_data): Likewise.
3456         (fmod_test_data): Likewise.
3457         (fpclassify_test_data): Likewise.
3458         (frexp_test_data): Likewise.
3459         (ilogb_test_data): Likewise.
3460         (isfinite_test_data): Likewise.
3461         (isgreater_test_data): Likewise.
3462         (isgreaterequal_test_data): Likewise.
3463         (isinf_test_data): Likewise.
3464         (isless_test_data): Likewise.
3465         (islessequal_test_data): Likewise.
3466         (islessgreater_test_data): Likewise.
3467         (isnan_test_data): Likewise.
3468         (isnormal_test_data): Likewise.
3469         (issignaling_test_data): Likewise.
3470         (isunordered_test_data): Likewise.
3471         (ldexp_test_data): Likewise.
3472         (lrint_test_data): Likewise.
3473         (lrint_test_data) [TEST_FLOAT]: Disable one test.
3474         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
3475         (lrint_tonearest_test_data): Test for "inexact" exceptions.
3476         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
3477         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
3478         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
3479         test input.
3480         (lrint_towardzero_test_data): Test for "inexact" exceptions.
3481         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
3482         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
3483         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
3484         that test input.
3485         (lrint_downward_test_data): Test for "inexact" exceptions.
3486         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
3487         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
3488         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
3489         test input.
3490         (lrint_upward_test_data): Test for "inexact" exceptions.
3491         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
3492         test input.
3493         (llrint_test_data): Test for "inexact" exceptions.
3494         (llrint_test_data) [TEST_FLOAT]: Disable one test.
3495         (llrint_tonearest_test_data): Test for "inexact" exceptions.
3496         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
3497         (llrint_towardzero_test_data): Test for "inexact" exceptions.
3498         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
3499         (llrint_downward_test_data): Test for "inexact" exceptions.
3500         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
3501         (llrint_upward_test_data): Test for "inexact" exceptions.
3502         (logb_test_data): Likewise.
3503         (logb_downward_test_data): Likewise.
3504         (nextafter_test_data): Likewise.
3505         (nexttoward_test_data): Likewise.
3506         (remainder_test_data): Likewise.
3507         (remquo_test_data): Likewise.
3508         (scalbn_test_data): Likewise.
3509         (scalbln_test_data): Likewise.
3510         (signbit_test_data): Likewise.
3511         (sqrt_test_data): Likewise.
3512         (significand_test_data): Likewise.
3513
3514 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
3515
3516         [BZ #15424]
3517         * benchtests/bench-modf.c (struct args): Mark arg0 as
3518         volatile.
3519         * scripts/bench.pl: Mark members of struct args as volatile.
3520
3521 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3522
3523         [BZ # 15497]
3524         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
3525         negative infinity on POWER6 or lower.
3526         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
3527
3528 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
3529
3530         [BZ #15442]
3531         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
3532         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
3533         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
3534         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
3535         (_FP_SETQNAN): New macro.
3536         (_FP_SETQNAN_SEMIRAW): Likewise.
3537         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
3538         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
3539         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
3540         (FP_EXTEND): Use _FP_FRAC_SNANP.
3541         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
3542         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
3543         into account.
3544         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
3545         New macro.
3546         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
3547         Likewise.
3548
3549 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
3550
3551         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
3552         with DIVIDE_BY_ZERO_EXCEPTION.
3553         (gamma_test_data): Likewise.
3554         (lgamma_test_data): Likewise.
3555         (log_test_data): Likewise.
3556         (log10_test_data): Likewise.
3557         (log2_test_data): Likewise.
3558         (tgamma_test_data): Likewise.
3559
3560         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
3561         (acos_test_tonearest): Likewise.
3562         (acos_test_towardzero): Likewise.
3563         (acos_test_downward): Likewise.
3564         (acos_test_upward): Likewise.
3565         (acosh_test): Likewise.
3566         (asin_test): Likewise.
3567         (asin_test_tonearest): Likewise.
3568         (asin_test_towardzero): Likewise.
3569         (asin_test_downward): Likewise.
3570         (asin_test_upward): Likewise.
3571         (asinh_test): Likewise.
3572         (atan_test): Likewise.
3573         (atanh_test): Likewise.
3574         (atan2_test): Likewise.
3575         (cabs_test): Likewise.
3576         (cacos_test): Likewise.
3577         (cacosh_test): Likewise.
3578         (casin_test): Likewise.
3579         (casinh_test): Likewise.
3580         (catan_test): Likewise.
3581         (catanh_test): Likewise.
3582         (cbrt_test): Likewise.
3583         (ccos_test): Likewise.
3584         (ccosh_test): Likewise.
3585         (cexp_test): Likewise.
3586         (clog_test): Likewise.
3587         (clog10_test): Likewise.
3588         (cos_test): Likewise.
3589         (cos_test_tonearest): Likewise.
3590         (cos_test_towardzero): Likewise.
3591         (cos_test_downward): Likewise.
3592         (cos_test_upward): Likewise.
3593         (cosh_test): Likewise.
3594         (cosh_test_tonearest): Likewise.
3595         (cosh_test_towardzero): Likewise.
3596         (cosh_test_downward): Likewise.
3597         (cosh_test_upward): Likewise.
3598         (cpow_test): Likewise.
3599         (csin_test): Likewise.
3600         (csinh_test): Likewise.
3601         (csqrt_test): Likewise.
3602         (ctan_test): Likewise.
3603         (ctan_test_tonearest): Likewise.
3604         (ctan_test_towardzero): Likewise.
3605         (ctan_test_downward): Likewise.
3606         (ctan_test_upward): Likewise.
3607         (ctanh_test): Likewise.
3608         (ctanh_test_tonearest): Likewise.
3609         (ctanh_test_towardzero): Likewise.
3610         (ctanh_test_downward): Likewise.
3611         (ctanh_test_upward): Likewise.
3612         (erf_test): Likewise.
3613         (erfc_test): Likewise.
3614         (exp_test): Likewise.
3615         (exp_test_tonearest): Likewise.
3616         (exp_test_towardzero): Likewise.
3617         (exp_test_downward): Likewise.
3618         (exp_test_upward): Likewise.
3619         (exp10_test): Likewise.
3620         (exp2_test): Likewise.
3621         (expm1_test): Likewise.
3622         (fmod_test): Likewise.
3623         (gamma_test): Likewise.
3624         (hypot_test): Likewise.
3625         (j0_test): Likewise.
3626         (j1_test): Likewise.
3627         (jn_test): Likewise.
3628         (lgamma_test): Likewise.
3629         (log_test): Likewise.
3630         (log10_test): Likewise.
3631         (log1p_test): Likewise.
3632         (log2_test): Likewise.
3633         (logb_test_downward): Likewise.
3634         (pow_test): Likewise.
3635         (pow_test_tonearest): Likewise.
3636         (pow_test_towardzero): Likewise.
3637         (pow_test_downward): Likewise.
3638         (pow_test_upward): Likewise.
3639         (remainder_test): Likewise.
3640         (remquo_test): Likewise.
3641         (sin_test): Likewise.
3642         (sin_test_tonearest): Likewise.
3643         (sin_test_towardzero): Likewise.
3644         (sin_test_downward): Likewise.
3645         (sin_test_upward): Likewise.
3646         (sincos_test): Likewise.
3647         (sinh_test): Likewise.
3648         (sinh_test_tonearest): Likewise.
3649         (sinh_test_towardzero): Likewise.
3650         (sinh_test_downward): Likewise.
3651         (sinh_test_upward): Likewise.
3652         (sqrt_test): Likewise.
3653         (tan_test): Likewise.
3654         (tan_test_tonearest): Likewise.
3655         (tan_test_towardzero): Likewise.
3656         (tan_test_downward): Likewise.
3657         (tan_test_upward): Likewise.
3658         (tanh_test): Likewise.
3659         (tgamma_test): Likewise.
3660         (y0_test): Likewise.
3661         (y1_test): Likewise.
3662         (yn_test): Likewise.
3663
3664         * math/gen-libm-test.pl (adjust_arg): Remove function.
3665         (special_function): Remove argument $in_func.  Only handle
3666         generating output for tables of tests, not inside functions.
3667         (parse_args): Likewise.
3668         (generate_testfile): Remove variable $in_func.  Update call to
3669         parse_args.
3670         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
3671         (MINUS_ZERO_INIT): Rename macro to minus_zero.
3672         (PLUS_INFTY_INIT): Rename macro to plus_infty.
3673         (MINUS_INFTY_INIT): Rename macro to minus_infty.
3674         (QNAN_VALUE_INIT): Rename macro to qnan_value.
3675         (MAX_VALUE_INIT): Rename macro to max_value.
3676         (MIN_VALUE_INIT): Rename macro to min_value.
3677         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
3678         (plus_zero): Remove variable.
3679         (minus_zero): Likewise.
3680         (plus_infty): Likewise.
3681         (minus_infty): Likewise.
3682         (qnan_value): Likewise.
3683         (max_value): Likewise.
3684         (min_value): Likewise.
3685         (min_subnorm_value): Likewise.
3686
3687 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3688
3689         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
3690         uint64_t or uint32_t usage.
3691         * crypt/sha256-block.c: Likewise.
3692         * crypt/sha256-crypt.c: Likewise.
3693         * crypt/sha256.c: Likewise.
3694         * crypt/sha512-block.c: Likewise.
3695         * crypt/sha512-crypt.c: Likewise.
3696         * crypt/sha512.c: Likewise.
3697         * debug/backtrace-tst.c: Likewise.
3698         * debug/pcprofiledump.c: Likewise.
3699         * elf/cache.c: Likewise.
3700         * elf/dl-cache.c: Likewise.
3701         * elf/dl-misc.c: Likewise.
3702         * elf/dl-profile.c: Likewise.
3703         * elf/dl-support.c: Likewise.
3704         * elf/ldconfig.c: Likewise.
3705         * elf/sprof.c: Likewise.
3706         * iconv/dummy-repertoire.c: Likewise.
3707         * iconv/iconv_charmap.c: Likewise.
3708         * iconv/skeleton.c: Likewise.
3709         * iconvdata/8bit-generic.c: Likewise.
3710         * iconvdata/cp737.h: Likewise.
3711         * iconvdata/cp775.h: Likewise.
3712         * iconvdata/ibm1008.h: Likewise.
3713         * iconvdata/ibm1025.h: Likewise.
3714         * iconvdata/ibm1046.h: Likewise.
3715         * iconvdata/ibm1097.h: Likewise.
3716         * iconvdata/ibm1112.h: Likewise.
3717         * iconvdata/ibm1122.h: Likewise.
3718         * iconvdata/ibm1123.h: Likewise.
3719         * iconvdata/ibm1124.h: Likewise.
3720         * iconvdata/ibm1129.h: Likewise.
3721         * iconvdata/ibm1130.h: Likewise.
3722         * iconvdata/ibm1132.h: Likewise.
3723         * iconvdata/ibm1133.h: Likewise.
3724         * iconvdata/ibm1137.h: Likewise.
3725         * iconvdata/ibm1140.h: Likewise.
3726         * iconvdata/ibm1141.h: Likewise.
3727         * iconvdata/ibm1142.h: Likewise.
3728         * iconvdata/ibm1143.h: Likewise.
3729         * iconvdata/ibm1144.h: Likewise.
3730         * iconvdata/ibm1145.h: Likewise.
3731         * iconvdata/ibm1146.h: Likewise.
3732         * iconvdata/ibm1147.h: Likewise.
3733         * iconvdata/ibm1148.h: Likewise.
3734         * iconvdata/ibm1149.h: Likewise.
3735         * iconvdata/ibm1153.h: Likewise.
3736         * iconvdata/ibm1154.h: Likewise.
3737         * iconvdata/ibm1155.h: Likewise.
3738         * iconvdata/ibm1156.h: Likewise.
3739         * iconvdata/ibm1157.h: Likewise.
3740         * iconvdata/ibm1158.h: Likewise.
3741         * iconvdata/ibm1160.h: Likewise.
3742         * iconvdata/ibm1161.h: Likewise.
3743         * iconvdata/ibm1162.h: Likewise.
3744         * iconvdata/ibm1163.h: Likewise.
3745         * iconvdata/ibm1164.h: Likewise.
3746         * iconvdata/ibm1166.h: Likewise.
3747         * iconvdata/ibm1167.h: Likewise.
3748         * iconvdata/ibm12712.h: Likewise.
3749         * iconvdata/ibm1390.h: Likewise.
3750         * iconvdata/ibm1399.h: Likewise.
3751         * iconvdata/ibm16804.h: Likewise.
3752         * iconvdata/ibm4517.h: Likewise.
3753         * iconvdata/ibm4899.h: Likewise.
3754         * iconvdata/ibm4909.h: Likewise.
3755         * iconvdata/ibm4971.h: Likewise.
3756         * iconvdata/ibm5347.h: Likewise.
3757         * iconvdata/ibm803.h: Likewise.
3758         * iconvdata/ibm856.h: Likewise.
3759         * iconvdata/ibm901.h: Likewise.
3760         * iconvdata/ibm902.h: Likewise.
3761         * iconvdata/ibm9030.h: Likewise.
3762         * iconvdata/ibm9066.h: Likewise.
3763         * iconvdata/ibm921.h: Likewise.
3764         * iconvdata/ibm922.h: Likewise.
3765         * iconvdata/ibm9448.h: Likewise.
3766         * iconvdata/isiri-3342.h: Likewise.
3767         * iconvdata/jis0201.h: Likewise.
3768         * include/link.h: Likewise.
3769         * include/netdb.h: Likewise.
3770         * inet/check_native.c: Likewise.
3771         * inet/check_pf.c: Likewise.
3772         * inet/getipv4sourcefilter.c: Likewise.
3773         * inet/getnameinfo.c: Likewise.
3774         * inet/getsourcefilter.c: Likewise.
3775         * inet/htonl.c: Likewise.
3776         * inet/setipv4sourcefilter.c: Likewise.
3777         * inet/setsourcefilter.c: Likewise.
3778         * inet/test-inet6_opt.c: Likewise.
3779         * inet/tst-network.c: Likewise.
3780         * locale/C-collate.c: Likewise.
3781         * locale/C-ctype.c: Likewise.
3782         * locale/C-time.c: Likewise.
3783         * locale/C-translit.h: Likewise.
3784         * locale/loadarchive.c: Likewise.
3785         * locale/programs/3level.h: Likewise.
3786         * locale/programs/charmap.c: Likewise.
3787         * locale/programs/charmap.h: Likewise.
3788         * locale/programs/ld-address.c: Likewise.
3789         * locale/programs/ld-collate.c: Likewise.
3790         * locale/programs/ld-ctype.c: Likewise.
3791         * locale/programs/ld-identification.c: Likewise.
3792         * locale/programs/ld-measurement.c: Likewise.
3793         * locale/programs/ld-messages.c: Likewise.
3794         * locale/programs/ld-monetary.c: Likewise.
3795         * locale/programs/ld-name.c: Likewise.
3796         * locale/programs/ld-numeric.c: Likewise.
3797         * locale/programs/ld-paper.c: Likewise.
3798         * locale/programs/ld-telephone.c: Likewise.
3799         * locale/programs/ld-time.c: Likewise.
3800         * locale/programs/linereader.c: Likewise.
3801         * locale/programs/locale.c: Likewise.
3802         * locale/programs/locarchive.c: Likewise.
3803         * locale/programs/locfile.h: Likewise.
3804         * locale/programs/repertoire.c: Likewise.
3805         * locale/programs/simple-hash.c: Likewise.
3806         * locale/programs/simple-hash.h: Likewise.
3807         * malloc/memusage.c: Likewise.
3808         * malloc/memusagestat.c: Likewise.
3809         * nis/nis_defaults.c: Likewise.
3810         * nis/nis_hash.c: Likewise.
3811         * nis/nis_print.c: Likewise.
3812         * nis/nis_xdr.c: Likewise.
3813         * nscd/connections.c: Likewise.
3814         * nscd/hstcache.c: Likewise.
3815         * nscd/nscd_gethst_r.c: Likewise.
3816         * nscd/nscd_getserv_r.c: Likewise.
3817         * nscd/nscd_helper.c: Likewise.
3818         * nscd/servicescache.c: Likewise.
3819         * nss/makedb.c: Likewise.
3820         * nss/nss_db/db-XXX.c: Likewise.
3821         * nss/nss_db/db-initgroups.c: Likewise.
3822         * nss/nss_db/db-netgrp.c: Likewise.
3823         * nss/nss_files/files-network.c: Likewise.
3824         * nss/nss_files/files-parse.c: Likewise.
3825         * posix/bug-regex5.c: Likewise.
3826         * posix/fnmatch_loop.c: Likewise.
3827         * posix/regcomp.c: Likewise.
3828         * posix/regexec.c: Likewise.
3829         * posix/tst-rfc3484-2.c: Likewise.
3830         * posix/tst-rfc3484-3.c: Likewise.
3831         * posix/tst-rfc3484.c: Likewise.
3832         * resolv/nss_dns/dns-canon.c: Likewise.
3833         * resolv/nss_dns/dns-network.c: Likewise.
3834         * resolv/res_init.c: Likewise.
3835         * resolv/res_mkquery.c: Likewise.
3836         * resolv/tst-aton.c: Likewise.
3837         * stdlib/cxa_atexit.c: Likewise.
3838         * stdlib/cxa_finalize.c: Likewise.
3839         * stdlib/gen-fpioconst.c: Likewise.
3840         * stdlib/strtol_l.c: Likewise.
3841         * string/tst-endian.c: Likewise.
3842         * sunrpc/auth_des.c: Likewise.
3843         * sunrpc/clnt_udp.c: Likewise.
3844         * sunrpc/rtime.c: Likewise.
3845         * sunrpc/svcauth_des.c: Likewise.
3846         * sunrpc/xdr.c: Likewise.
3847         * sunrpc/xdr_intXX_t.c: Likewise.
3848         * sunrpc/xdr_rec.c: Likewise.
3849         * sysdeps/generic/ldconfig.h: Likewise.
3850         * sysdeps/generic/ldsodefs.h: Likewise.
3851         * sysdeps/generic/memusage.h: Likewise.
3852         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
3853         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
3854         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
3855         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
3856         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
3857         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
3858         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
3859         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
3860         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
3861         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
3862         * sysdeps/posix/getaddrinfo.c: Likewise.
3863         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
3864         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
3865         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
3866         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
3867         * sysdeps/powerpc/test-gettimebase.c: Likewise.
3868         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
3869         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
3870         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
3871         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
3872         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
3873         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
3874         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
3875         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
3876         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
3877         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
3878         * sysdeps/x86_64/dl-tls.h: Likewise.
3879         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
3880         * time/alt_digit.c: Likewise.
3881         * time/era.c: Likewise.
3882         * wcsmbs/tst-c16c32-1.c: Likewise.
3883
3884 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
3885
3886         * math/libm-test.inc (struct test_sincos_data): New type.
3887         (RUN_TEST_LOOP_sincos): New macro.
3888         (sincos_test_data): New variable.
3889         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
3890
3891 2013-05-16  Richard Henderson  <rth@redhat.com>
3892
3893         * math/atest-exp2.c (LIMB64): New macro.
3894         (CONSTSZ): New macro.
3895         (mp_exp1, mp_exp_m1, mp_log2): New variables.
3896         (hexdig): Move ...
3897         (print_mpn_fp): ... to function scope.
3898         (read_mpn_hex): Remove.
3899         (get_log2): Remove.
3900         (exp2_mpn): Use mp_log2.
3901         (main): Use mp_exp1.
3902
3903 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
3904
3905         * math/libm-test.inc: Remove comment about not testing "inexact"
3906         exceptions.
3907         (INEXACT_EXCEPTION): New macro.
3908         (NO_INEXACT_EXCEPTION): Likewise.
3909         (INVALID_EXCEPTION_OK): Update value.
3910         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
3911         (OVERFLOW_EXCEPTION_OK): Likewise.
3912         (UNDERFLOW_EXCEPTION_OK): Likewise.
3913         (IGNORE_ZERO_INF_SIGN): Likewise.
3914         (ERRNO_UNCHANGED): Likewise.
3915         (ERRNO_EDOM): Likewise.
3916         (ERRNO_ERANGE): Likewise.
3917         (test_exceptions): Handle testing "inexact" exceptions.
3918         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
3919         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
3920         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
3921         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
3922         INEXACT_EXCEPTION.
3923         (rint_towardzero_test_data): Likewise.
3924         (rint_downward_test_data): Likewise.
3925         (rint_upward_test_data): Likewise.
3926
3927         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
3928         with OVERFLOW_EXCEPTION.
3929         (exp10_test_data): Likewise.
3930         (exp2_test_data): Likewise.
3931         (expm1_test_data): Likewise.
3932         (lgamma_test_data): Likewise.
3933         (pow_test_data): Likewise.
3934         (tgamma_test_data): Likewise.
3935         (yn_test_data): Remove duplicate test of overflow.
3936
3937         * math/libm-test.inc (struct test_cc_c_data): New type.
3938         (RUN_TEST_LOOP_cc_c): New macro.
3939         (cpow_test_data): New variable.
3940         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
3941
3942         * math/libm-test.inc (struct test_f_L_data): New type.
3943         (RUN_TEST_LOOP_f_L): New macro.
3944         (llrint_test_data): New variable.
3945         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
3946         (llrint_tonearest_test_data): New variable.
3947         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
3948         (llrint_towardzero_test_data): New variable.
3949         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
3950         (llrint_downward_test_data): New variable.
3951         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
3952         (llrint_upward_test_data): New variable.
3953         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
3954         (llround_test_data): New variable.
3955         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
3956
3957 2013-05-13  Peter Collingbourne  <pcc@google.com>
3958
3959         * math/atest-exp2.c (get_log2): Remove const attribute.
3960
3961 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
3962
3963         * math/libm-test.inc (struct test_f_l_data): New type.
3964         (RUN_TEST_LOOP_f_l): New macro.
3965         (lrint_test_data): New variable.
3966         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
3967         (lrint_tonearest_test_data): New variable.
3968         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
3969         (lrint_towardzero_test_data): New variable.
3970         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
3971         (lrint_downward_test_data): New variable.
3972         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
3973         (lrint_upward_test_data): New variable.
3974         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
3975         (lround_test_data): New variable.
3976         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
3977
3978 2013-05-15  Peter Collingbourne  <pcc@google.com>
3979
3980         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
3981         (EXTRACT_WORDS64) Use where appropriate.
3982         (INSERT_WORDS64) Likewise.
3983
3984         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
3985         constraints with x constraints.
3986         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
3987
3988         * malloc/obstack.c (_obstack_compat): Add initializer.
3989
3990 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
3991
3992         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
3993         si_trapno and add si_addr_lsb to _sifields.sigfault.
3994         (si_trapno): Remove macro.
3995         (si_addr_lsb): Define new macro.
3996         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
3997
3998 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
3999
4000         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
4001         instead of TEST_f_l.
4002         (llrint_test_tonearest): Likewise.
4003         (llrint_test_towardzero): Likewise.
4004         (llrint_test_downward): Likewise.
4005         (llrint_test_upward): Likewise.
4006         (llround_test): Likewise.
4007
4008         * math/libm-test.inc (struct test_f_i_data): Add comment.
4009         (RUN_TEST_LOOP_f_b): New macro.
4010         (RUN_TEST_LOOP_f_b_tg): Likewise.
4011         (finite_test_data): New variable.
4012         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
4013         (isfinite_test_data): New variable.
4014         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4015         (isinf_test_data): New variable.
4016         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4017         (isnan_test_data): New variable.
4018         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4019         (isnormal_test_data): New variable.
4020         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4021         (issignaling_test_data): New variable.
4022         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4023         (signbit_test_data): New variable.
4024         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
4025
4026         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
4027         with INVALID_EXCEPTION.
4028         (acosh_test_data): Likewise.
4029         (asin_test_data): Likewise.
4030         (atanh_test_data): Likewise.
4031         (fmod_test_data): Likewise.
4032         (log_test_data): Likewise.
4033         (log10_test_data): Likewise.
4034         (log2_test_data): Likewise.
4035         (pow_test_data): Likewise.
4036         (sqrt_test_data): Likewise.
4037         (y0_test_data): Likewise.
4038         (y1_test_data): Likewise.
4039         (yn_test_data): Likewise.
4040
4041         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
4042         function contents.
4043
4044         * math/libm-test.inc (struct test_ff_i_data): New type.
4045         (RUN_TEST_LOOP_ff_i_tg): New macro.
4046         (isgreater_test_data): New variable.
4047         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4048         (isgreaterequal_test_data): New variable.
4049         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4050         (isless_test_data): New variable.
4051         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4052         (islessequal_test_data): New variable.
4053         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4054         (islessgreater_test_data): New variable.
4055         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4056         (isunordered_test_data): New variable.
4057         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
4058
4059 2013-05-14  David S. Miller  <davem@davemloft.net>
4060
4061         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4062
4063 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
4064
4065         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
4066
4067         * math/libm-test.inc (struct test_fF_f1_data): Change type of
4068         extra_test to int.
4069         (struct test_f_i_data): Change type of max_ulp to int.
4070
4071         * math/libm-test.inc (test_ffI_f1_data): New type.
4072         (RUN_TEST_LOOP_ffI_f1): New macro.
4073         (remquo_test_data): New variable.
4074         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
4075
4076         * setjmp/tst-setjmp-fp.c: New file.
4077         * setjmp/Makefile (tests): Add tst-setjmp-fp.
4078         (link-libm): New variable.
4079         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
4080
4081         * math/libm-test.inc (struct test_f_i_data): New type.
4082         (RUN_TEST_LOOP_f_i): New macro.
4083         (RUN_TEST_LOOP_f_i_tg): Likewise.
4084         (fpclassify_test_data): New variable.
4085         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
4086         (ilogb_test_data): New variable.
4087         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
4088
4089         * math/libm-test.inc (scalbln_test): Correct function name in END
4090         call.
4091
4092         * math/libm-test.inc (struct test_f_f1_data): Add comment.
4093         (RUN_TEST_LOOP_fI_f1): New macro.
4094         (frexp_test_data): New variable.
4095         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
4096
4097         * math/libm-test.inc (struct test_fF_f1_data): New type.
4098         (RUN_TEST_LOOP_fF_f1): New macro.
4099         (modf_test_data): New variable.
4100         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
4101
4102         * math/libm-test.inc (struct test_f_f1_data): New type.
4103         (RUN_TEST_LOOP_f_f1): New macro.
4104         (gamma_test_data): New variable.
4105         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
4106         (lgamma_test_data): New variable.
4107         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
4108
4109 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
4110
4111         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
4112         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
4113         (main): Comment "tls" pseudo-hwcap.
4114
4115 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
4116
4117         * math/libm-test.inc (struct test_fl_f_data): New type.
4118         (RUN_TEST_LOOP_fl_f): New variable.
4119         (scalbln_test_data): New variable.
4120         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
4121
4122         * math/libm-test.inc (struct test_fi_f_data): New type.
4123         (RUN_TEST_LOOP_fi_f): New macro.
4124         (ldexp_test_data): New variable.
4125         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
4126         (scalbn_test_data): New variable.
4127         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
4128
4129         * math/libm-test.inc (struct test_c_f_data): New type.
4130         (RUN_TEST_LOOP_c_f): New macro.
4131         (cabs_test_data): New variable.
4132         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
4133         (carg_test_data): New variable.
4134         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
4135         (cimag_test_data): New variable.
4136         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
4137         (creal_test_data): New variable.
4138         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
4139
4140         * math/libm-test.inc (struct test_if_f_data): New type.
4141         (RUN_TEST_LOOP_if_f): New macro.
4142         (jn_test_data): New variable.
4143         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
4144         (yn_test_data): New variable.
4145         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
4146
4147         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
4148
4149 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4150
4151         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
4152         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
4153
4154 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
4155
4156         * benchtests/Makefile (CPPFLAGS-nonlib): Add
4157         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
4158         (bench-deps): Add bench-timing.h.
4159         * benchtests-bench-skeleton.c: Include bench-timing.h.
4160         (main): Use TIMING_* macros instead of clock_gettime.
4161         * benchtests/bench-timing.h: New file.
4162
4163         [BZ #14582]
4164         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
4165         Renamed from _LIB_VERSION.
4166         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
4167
4168 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
4169
4170         * math/libm-test.inc (struct test_fff_f_data): New type.
4171         (RUN_TEST_LOOP_fff_f): New macro.
4172         (fma_test_data): New variable.
4173         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
4174         (fma_towardzero_test_data): New variable.
4175         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
4176         (fma_downward_test_data): New variable.
4177         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
4178         (fma_upward_test_data): New variable.
4179         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
4180
4181         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
4182         (struct test_c_c_data): New type.
4183         (RUN_TEST_LOOP_c_c): New macro.
4184         (cacos_test_data): New variable.
4185         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
4186         (cacosh_test_data): New variable.
4187         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
4188         (casin_test_data): New variable.
4189         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
4190         (casinh_test_data): New variable.
4191         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
4192         (catan_test_data): New variable.
4193         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
4194         (catanh_test_data): New variable.
4195         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
4196         (ccos_test_data): New variable.
4197         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
4198         (ccosh_test_data): New variable.
4199         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
4200         (cexp_test_data): New variable.
4201         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
4202         (clog_test_data): New variable.
4203         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
4204         (clog10_test_data): New variable.
4205         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
4206         (conj_test_data): New variable.
4207         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
4208         (cproj_test_data): New variable.
4209         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
4210         (csin_test_data): New variable.
4211         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
4212         (csinh_test_data): New variable.
4213         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
4214         (csqrt_test_data): New variable.
4215         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
4216         (ctan_test_data): New variable.
4217         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
4218         (ctan_tonearest_test_data): New variable.
4219         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
4220         (ctan_towardzero_test_data): New variable.
4221         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
4222         (ctan_downward_test_data): New variable.
4223         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
4224         (ctan_upward_test_data): New variable.
4225         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
4226         (ctanh_test_data): New variable.
4227         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
4228         (ctanh_tonearest_test_data): New variable.
4229         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
4230         (ctanh_towardzero_test_data): New variable.
4231         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
4232         (ctanh_downward_test_data): New variable.
4233         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
4234         (ctanh_upward_test_data): New variable.
4235         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
4236         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
4237         of BUILD_COMPLEX.
4238
4239         * math/libm-test.inc (struct test_ff_f_data): New type.
4240         (struct test_ff_f_data_nexttoward): Likewise.
4241         (RUN_TEST_LOOP_2_f): New macro.
4242         (RUN_TEST_LOOP_ff_f): Likewise.
4243         (atan2_test_data): New variable.
4244         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
4245         (copysign_test_data): New variable.
4246         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
4247         (fdim_test_data): New variable.
4248         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
4249         (fmax_test_data): New variable.
4250         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
4251         (fmin_test_data): New variable.
4252         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
4253         (fmod_test_data): New variable.
4254         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
4255         (hypot_test_data): New variable.
4256         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
4257         (nextafter_test_data): New variable.
4258         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
4259         (nexttoward_test_data): New variable.
4260         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
4261         (pow_test_data): New variable.
4262         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
4263         (pow_tonearest_test_data): New variable.
4264         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
4265         (pow_towardzero_test_data): New variable.
4266         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
4267         (pow_downward_test_data): New variable.
4268         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
4269         (pow_upward_test_data): New variable.
4270         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
4271         (remainder_test_data): New variable.
4272         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
4273         (scalb_test_data): New variable.
4274         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
4275         * sysdeps/i386/fpu/libm-test-ulps: Update.
4276
4277 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
4278
4279         * math/libm-test.inc (fma_test): Use max_value instead of local
4280         variable fltmax.
4281         (nextafter_test): Likewise.
4282
4283         * math/libm-test.inc (acos_towardzero_test_data): New variable.
4284         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4285         (acos_downward_test_data): New variable.
4286         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4287         (acos_upward_test_data): New variable.
4288         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4289         (acosh_test_data): New variable.
4290         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
4291         (asin_test_data): New variable.
4292         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
4293         (asin_tonearest_test_data): New variable.
4294         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4295         (asin_towardzero_test_data): New variable.
4296         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4297         (asin_downward_test_data): New variable.
4298         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4299         (asin_upward_test_data): New variable.
4300         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4301         (asinh_test_data): New variable.
4302         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
4303         (atan_test_data): New variable.
4304         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
4305         (atanh_test_data): New variable.
4306         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
4307         (cbrt_test_data): New variable.
4308         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
4309         (ceil_test_data): New variable.
4310         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
4311         (cos_test_data): New variable.
4312         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
4313         (cos_tonearest_test_data): New variable.
4314         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4315         (cos_towardzero_test_data): New variable.
4316         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4317         (cos_downward_test_data): New variable.
4318         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4319         (cos_upward_test_data): New variable.
4320         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4321         (cosh_test_data): New variable.
4322         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
4323         (cosh_tonearest_test_data): New variable.
4324         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4325         (cosh_towardzero_test_data): New variable.
4326         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4327         (cosh_downward_test_data): New variable.
4328         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4329         (cosh_upward_test_data): New variable.
4330         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4331         (erf_test_data): New variable.
4332         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
4333         (erfc_test_data): New variable.
4334         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
4335         (exp_test_data): New variable.
4336         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
4337         (exp_tonearest_test_data): New variable.
4338         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4339         (exp_towardzero_test_data): New variable.
4340         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4341         (exp_downward_test_data): New variable.
4342         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4343         (exp_upward_test_data): New variable.
4344         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4345         (exp10_test_data): New variable.
4346         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
4347         (exp2_test_data): New variable.
4348         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
4349         (expm1_test_data): New variable.
4350         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
4351         (fabs_test_data): New variable.
4352         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
4353         (floor_test_data): New variable.
4354         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
4355         (j0_test_data): New variable.
4356         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
4357         (j1_test_data): New variable.
4358         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
4359         (log_test_data): New variable.
4360         (log_test): Run tests with RUN_TEST_LOOP_f_f.
4361         (log10_test_data): New variable.
4362         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
4363         (log1p_test_data): New variable.
4364         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
4365         (log2_test_data): New variable.
4366         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
4367         (logb_test_data): New variable.
4368         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
4369         (logb_downward_test_data): New variable.
4370         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4371         (nearbyint_test_data): New variable.
4372         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
4373         (rint_test_data): New variable.
4374         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
4375         (rint_tonearest_test_data): New variable.
4376         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4377         (rint_towardzero_test_data): New variable.
4378         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4379         (rint_downward_test_data): New variable.
4380         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4381         (rint_upward_test_data): New variable.
4382         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4383         (round_test_data): New variable.
4384         (round_test): Run tests with RUN_TEST_LOOP_f_f.
4385         (sin_test_data): New variable.
4386         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
4387         (sin_tonearest_test_data): New variable.
4388         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4389         (sin_towardzero_test_data): New variable.
4390         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4391         (sin_downward_test_data): New variable.
4392         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4393         (sin_upward_test_data): New variable.
4394         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4395         (sinh_test_data): New variable.
4396         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
4397         (sinh_tonearest_test_data): New variable.
4398         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4399         (sinh_towardzero_test_data): New variable.
4400         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4401         (sinh_downward_test_data): New variable.
4402         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4403         (sinh_upward_test_data): New variable.
4404         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4405         (sqrt_test_data): New variable.
4406         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
4407         (tan_test_data): New variable.
4408         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
4409         (tan_tonearest_test_data): New variable.
4410         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4411         (tan_towardzero_test_data): New variable.
4412         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
4413         (tan_downward_test_data): New variable.
4414         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
4415         (tan_upward_test_data): New variable.
4416         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
4417         (tanh_test_data): New variable.
4418         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
4419         (tgamma_test_data): New variable.
4420         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
4421         (trunc_test_data): New variable.
4422         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
4423         (y0_test_data): New variable.
4424         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
4425         (y1_test_data): New variable.
4426         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
4427         (significand_test_data): New variable.
4428         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
4429
4430 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
4431
4432         [BZ #12387]
4433         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
4434
4435 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
4436
4437         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
4438
4439 2013-05-10  Andreas Jaeger  <aj@suse.de>
4440
4441         [BZ #15448]
4442         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
4443         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
4444
4445 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
4446
4447         * math/gen-libm-test.pl (adjust_arg): New function.
4448         (special_functions): Handle generating output in both functions
4449         and arrays.
4450         (parse_args): Likewise.
4451         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
4452         $in_func argument to parse_args.
4453         * math/libm-test.inc (struct test_f_f_data): New type.
4454         (IF_ROUND_INIT_): New macro.
4455         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
4456         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
4457         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
4458         (IF_ROUND_INIT_FE_UPWARD): Likewise.
4459         (ROUND_RESTORE_): Likewise.
4460         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
4461         (ROUND_RESTORE_FE_TONEAREST): Likewise.
4462         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
4463         (ROUND_RESTORE_FE_UPWARD): Likewise.
4464         (RUN_TEST_LOOP_f_f): New macro.
4465         (acos_test_data): New variable.
4466         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
4467         (acos_tonearest_test_data): New variable.
4468         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
4469
4470 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4471
4472         * benchtests/bench-skeleton.c (startup): Fix coding style.
4473
4474 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
4475
4476         [BZ #6809]
4477         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
4478         negative infinity argument.
4479         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
4480         negative infinity argument.
4481         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
4482         negative infinity argument.
4483         * math/libm-test.inc (tgamma_test): Expect errno to be set for
4484         domain errors.
4485
4486 2013-05-10  Florian Weimer  <fweimer@redhat.com>
4487
4488         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
4489         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
4490         * iconv/iconv_prog.c (main): Likewise.
4491         * locale/programs/charmap-dir.c (charmap_readdir)
4492         (fopen_uncompressed): Likewise.
4493         * locale/programs/locfile.c (siblings_uncached)
4494         (write_locale_data): Use lstat64 instead of lstat.
4495         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
4496         stat.
4497
4498 2013-05-10  Andreas Jaeger  <aj@suse.de>
4499
4500         [BZ #15395]
4501         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
4502         localization.
4503         Include <locale.h>.
4504
4505 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
4506
4507         * elf/dl-close.c (_dl_close_worker): Add comments.
4508
4509 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
4510
4511         [BZ #15359]
4512         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
4513         high part of pi/2.
4514         (__ieee754_rem_pio2l): Update comments.
4515
4516         [BZ #15429]
4517         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
4518         high part of pi/2.
4519         (__ieee754_rem_pio2l): Update comments.
4520
4521         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
4522         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
4523
4524         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
4525         M_PI_4l.
4526
4527         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
4528         (M_PI_34_LOG10El): Likewise.
4529         (M_PI2_LOG10El): Likewise.
4530         (M_PI4_LOG10El): Likewise.
4531         (M_PI_LOG10El): Likewise.
4532
4533 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4534
4535         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4536
4537 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
4538
4539         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
4540         (MINUS_ZERO_INIT): Likewise.
4541         (PLUS_INFTY_INIT): Likewise.
4542         (MINUS_INFTY_INIT): Likewise.
4543         (QNAN_VALUE_INIT): Likewise.
4544         (MAX_VALUE_INIT): Likewise.
4545         (MIN_VALUE_INIT): Likewise.
4546         (MIN_SUBNORM_VALUE_INIT): Likewise.
4547         (plus_zero): Initialize with PLUS_ZERO_INIT.
4548         (minus_zero): Initialize with MINUS_ZERO_INIT.
4549         (plus_infty): Initialize with PLUS_INFTY_INIT.
4550         (minus_infty): Initialize with MINUS_INFTY_INIT.
4551         (qnan_value): Initialize with QNAN_VALUE_INIT.
4552         (max_value): Initialize with MAX_VALUE_INIT.
4553         (min_value): Initialize with MIN_VALUE_INIT.
4554         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
4555
4556         * math/libm-test.inc (RUN_TEST_if_f): New macro.
4557         (jn_test): Use TEST_if_f instead of TEST_ff_f.
4558         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
4559         (yn_test): Use TEST_if_f instead of TEST_ff_f.
4560
4561         * math/libm-test.inc (RUN_TEST_f_f): New macro.
4562         (RUN_TEST_2_f): Likewise.
4563         (RUN_TEST_ff_f): Likewise.
4564         (RUN_TEST_fi_f): Likewise.
4565         (RUN_TEST_fl_f): Likewise.
4566         (RUN_TEST_fff_f): Likewise.
4567         (RUN_TEST_c_f): Likewise.
4568         (RUN_TEST_f_f1): Likewise.
4569         (RUN_TEST_fF_f1): Likewise.
4570         (RUN_TEST_fI_f1): Likewise.
4571         (RUN_TEST_ffI_f1): Likewise.
4572         (RUN_TEST_c_c): Likewise.
4573         (RUN_TEST_cc_c): Likewise.
4574         (RUN_TEST_f_i): Likewise.
4575         (RUN_TEST_f_i_tg): Likewise.
4576         (RUN_TEST_ff_i_tg): Likewise.
4577         (RUN_TEST_f_b): Likewise.
4578         (RUN_TEST_f_b_tg): Likewise.
4579         (RUN_TEST_f_l): Likewise.
4580         (RUN_TEST_f_L): Likewise.
4581         (RUN_TEST_sincos): Likewise.
4582         * math/gen-libm-test.pl (new_test): Take new argument to indicate
4583         whether to show exceptions.  Do not include ");\n" in return
4584         value.
4585         (special_functions): Output call to RUN_TEST_sincos instead of
4586         check_float calls.  Update calls to new_test.
4587         (parse_args): Output call to single RUN_TEST_* macro instead of
4588         check_* calls and other assignments.  Update calls to new_test.
4589
4590         [BZ #2546]
4591         [BZ #2560]
4592         [BZ #5159]
4593         [BZ #15426]
4594         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
4595         input to result for tgamma overflow.
4596         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
4597         (gamma_coeff): New variable.
4598         (NCOEFF): New macro.
4599         (gamma_positive): New function.
4600         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
4601         underflow here.  Use gamma_positive instead of exp (lgamma) for
4602         other arguments.
4603         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
4604         (gamma_coeff): New variable.
4605         (NCOEFF): New macro.
4606         (gammaf_positive): New function.
4607         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
4608         underflow here.  Use gamma_positive instead of exp (lgamma) for
4609         other arguments.
4610         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
4611         (gamma_coeff): New variable.
4612         (NCOEFF): New macro.
4613         (gammal_positive): New function.
4614         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
4615         underflow here.  Use gamma_positive instead of exp (lgamma) for
4616         other arguments.
4617         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
4618         (gamma_coeff): New variable.
4619         (NCOEFF): New macro.
4620         (gammal_positive): New function.
4621         (__ieee754_gammal_r): Handle positive infinity, overflow and
4622         underflow here.  Handle NaN the same as positive infinity.  Remove
4623         check x < 0xffffffff for negative integers.  Use gamma_positive
4624         instead of exp (lgamma) for other arguments.
4625         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
4626         (gamma_coeff): New variable.
4627         (NCOEFF): New macro.
4628         (gammal_positive): New function.
4629         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
4630         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
4631         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
4632         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
4633         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
4634         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
4635         * sysdeps/generic/math_private.h (__gamma_productf): New
4636         prototype.
4637         (__gamma_product): Likewise.
4638         (__gamma_productl): Likewise.
4639         * math/Makefile (libm-calls): Add gamma_product.
4640         * math/libm-test.inc (tgamma_test): Add more tests.
4641         * sysdeps/i386/fpu/libm-test-ulps: Update.
4642         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4643
4644 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
4645
4646         * benchtests/bench-skeleton.c (main): Preheat CPU.
4647
4648 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
4649
4650         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
4651
4652 2013-05-07  Roland McGrath  <roland@hack.frob.com>
4653
4654         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
4655         and _dl_skip_args_internal.
4656
4657 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
4658
4659         * manual/message.texi (Message Translation): Talk about users.
4660         Message to key mapping impacts design.
4661
4662 2013-05-06  Roland McGrath  <roland@hack.frob.com>
4663
4664         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
4665
4666         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
4667
4668         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
4669         * sysdeps/wordsize-64/glob64.c: ... here.
4670
4671         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
4672         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
4673         New macros.
4674
4675         * debug/getlogin_r_chk.c: Moved to ...
4676         * login/getlogin_r_chk.c: ... here.
4677         * debug/Makefile (routines): Move getlogin_r_chk to ...
4678         * login/Makefile (routines): ... here.
4679         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
4680         * login/Versions (libc: GLIBC_2.4): ... here.
4681
4682         * io/poll.c (__poll): Renamed from poll.
4683         Add libc_hidden_def.
4684         (poll): Define as weak alias.
4685
4686         * debug/ptsname_r_chk.c: Moved to ...
4687         * login/ptsname_r_chk.c: ... here.
4688         * debug/Makefile (routines): Move ptsname_r_chk to ...
4689         * login/Makefile (routines): ... here.
4690         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
4691         * login/Versions (libc: GLIBC_2.4): ... here.
4692
4693         * posix/getlogin.c: Moved to ...
4694         * login/getlogin.c: ... here.
4695         * posix/getlogin_r.c: Moved to ...
4696         * login/getlogin_r.c: ... here.
4697         * posix/getlogin_r.c: Moved to ...
4698         * login/getlogin_r.c: ... here.
4699         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
4700         * login/Makefile (routines): ... here.
4701         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
4702         * login/Versions (libc: GLIBC_2.0): ... here.
4703
4704         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
4705         (setrlimit): Define as weak alias.
4706
4707         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
4708         Call __ names for open, ftruncate, and close.
4709         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
4710         (truncate): Define as weak alias.
4711
4712 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
4713
4714         * math/gen-libm-test.pl (parse_args): Initialize x before each
4715         test of frexp, modf and remquo.
4716
4717         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
4718         test signgam value.
4719
4720 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4721
4722         [BZ #15418]
4723         [BZ #15419]
4724         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
4725         internal tests.
4726         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
4727
4728 2013-05-06  Roland McGrath  <roland@hack.frob.com>
4729
4730         * elf/dl-writev.h: New file.
4731         * elf/dl-misc.c: Include it.
4732         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
4733         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
4734
4735 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
4736
4737         * math/libm-test.inc (noXFails): Remove variable.
4738         (noXPasses): Likewise.
4739         (BUILD_COMPLEX_INT): Remove macro.
4740         (print_screen): Remove xfail argument.
4741         (print_screen_max_error): Likewise.
4742         (update_stats): Likewise.
4743         (print_max_error): Likewise.  Update calls to other affected
4744         functions.
4745         (print_complex_max_error): Likewise.
4746         (test_single_exception): Update calls to print_screen.
4747         (test_single_errno): Likewise.
4748         (check_float_internal): Remove xfail argument.  Update calls to
4749         other affected functions.
4750         (check_float): Likewise.
4751         (check_complex): Likewise.
4752         (check_int): Likewise.
4753         (check_long): Likewise.
4754         (check_bool): Likewise.
4755         (check_longlong): Likewise.
4756         (main): Don't print noXFails and noXPasses.
4757         * math/gen-libm-test.pl (top level): Don't mention expected
4758         failure handling in comment.
4759         (new_test): Don't handle expected failures.
4760         (parse_args): Don't mention expected failure handling in comment.
4761         (generate_testfile): Don't handle expected failures.
4762         (parse_ulps): Likewise.
4763         (print_ulps_file): Likewise.
4764         (get_failure): Remove function.
4765         (output_test): Don't handle expected failures.
4766         * make/README.libm-test: Don't mention expected failure handling.
4767
4768         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
4769         (minus_zero): Likewise.
4770         (plus_infty): Likewise.
4771         (minus_infty): Likewise.
4772         (qnan_value): Likewise.
4773         (max_value): Likewise.
4774         (min_value): Likewise.
4775         (min_subnorm_value): Likewise.
4776         (initialize): Do not initialize those variables dynamically.
4777
4778 2013-05-03  Roland McGrath  <roland@hack.frob.com>
4779
4780         * io/open.c (__open_2): Moved to ...
4781         * io/open_2.c: ... this new file.
4782         * io/open64.c (__open64_2): Moved to ...
4783         * io/open64_2.c: ... this new file.
4784         * io/openat.c (__openat_2): Moved to ...
4785         * io/openat_2.c: ... this new file.
4786         * io/openat64.c (__openat64_2): Moved to ...
4787         * io/openat64_2.c: ... this new file.
4788         * io/Makefile (routines): Add them.
4789         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
4790         * sysdeps/unix/sysv/linux/open_2.c: File removed.
4791         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
4792         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
4793         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
4794         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
4795         (__openat64): Add hidden_ver.
4796         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
4797         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
4798
4799         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
4800         Separately conditionalize setting of GLRO(dl_sysinfo) so
4801         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
4802         as well, but the actual setting is only under [NEED_DL_SYSINFO].
4803
4804 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4805
4806         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
4807         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
4808         definition.
4809         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
4810         * sysdeps/unix/sysv/linux/powerpc/init-first.c
4811         (_libc_vdso_platform_setup): Add __vdso_time initialization.
4812         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
4813         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
4814
4815 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
4816
4817         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
4818         test signgam value.
4819
4820         * math/libm-test.inc (hypot_test): Do not use
4821         IGNORE_ZERO_INF_SIGN.
4822
4823 2013-05-03  Andreas Jaeger  <aj@suse.de>
4824
4825         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
4826         Linux 3.9.
4827         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
4828         (PF_MAX): Adjust for VSOCK change.
4829
4830 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4831
4832         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4833
4834 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
4835
4836         [BZ #15264]
4837         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
4838         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
4839         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
4840
4841 2013-05-02  David S. Miller  <davem@davemloft.net>
4842
4843         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4844
4845 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
4846
4847         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
4848
4849 2013-05-01  Roland McGrath  <roland@hack.frob.com>
4850
4851         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
4852
4853 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
4854
4855         [BZ #14952]
4856         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
4857         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
4858         Use __attribute__ ((__gnu_inline__)).
4859         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
4860         Don't use __attribute__ ((__gnu_inline__)).
4861
4862 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
4863
4864         [BZ #15423]
4865         * math/s_catan.c (__catan): Handle small real or imaginary part of
4866         input specially to avoid spurious underflow.
4867         * math/s_catanf.c (__catanf): Likewise.
4868         * math/s_catanh.c (__catanh): Likewise.
4869         * math/s_catanhf.c (__catanhf): Likewise.
4870         * math/s_catanhl.c (__catanhl): Likewise.
4871         * math/s_catanl.c (__catanl): Likewise.
4872         * math/libm-test.inc (catan_test): Add more tests.
4873         (catanh_test): Likewise.
4874         * sysdeps/i386/fpu/libm-test-ulps: Update.
4875         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4876
4877 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4878
4879         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4880
4881 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
4882
4883         [BZ #15416]
4884         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
4885         accurately for denominator in atan2.
4886         * math/s_catanf.c (__catanf): Likewise.
4887         * math/s_catanh.c (__catanh): Likewise.
4888         * math/s_catanhf.c (__catanhf): Likewise.
4889         * math/s_catanhl.c (__catanhl): Likewise.
4890         * math/s_catanl.c (__catanl): Likewise.
4891         * math/libm-test.inc (catan_test): Add more tests.
4892         (catanh_test): Likewise.
4893         * sysdeps/i386/fpu/libm-test-ulps: Update.
4894         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4895
4896 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4897
4898         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
4899
4900         * benchtests/Makefile (bench): Remove slow benchmarks.
4901         * benchtests/atan-inputs: Add slow benchmark inputs.
4902         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
4903         (BENCH_FUNC): Accept variant offset.
4904         (VARIANT): Define.
4905         * benchtests/bench-skeleton.c (main): Run benchmark for each
4906         variant.
4907         * benchtests/cos-inputs: Add slow benchmark inputs.
4908         * benchtests/exp-inputs: Likewise.
4909         * benchtests/pow-inputs: Likewise.
4910         * benchtests/sin-inputs: Likewise.
4911         * benchtests/slowatan-inputs: Remove.
4912         * benchtests/slowatan.c: Remove.
4913         * benchtests/slowcos-inputs: Remove.
4914         * benchtests/slowcos.c: Remove.
4915         * benchtests/slowexp-inputs: Remove.
4916         * benchtests/slowexp.c: Remove.
4917         * benchtests/slowpow-inputs: Remove.
4918         * benchtests/slowpow.c: Remove.
4919         * benchtests/slowsin-inputs: Remove.
4920         * benchtests/slowsin.c: Remove.
4921         * benchtests/slowtan-inputs: Remove.
4922         * benchtests/slowtan.c: Remove.
4923         * benchtests/tan-inputs: Add slow benchmark inputs.
4924         * scripts/bench.pl: Parse comments and directives.
4925
4926         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
4927         in CPPFLAGS.
4928         ($(objpfx)bench-%.c): Remove *-ITER.
4929         * benchtests/bench-modf.c: Remove definition of ITER.
4930         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
4931         (main): Loop for DURATION seconds instead of fixed number of
4932         iterations.
4933         * scripts/bench.pl: Don't expect iterations in parameters.
4934
4935 2013-04-29  Roland McGrath  <roland@hack.frob.com>
4936
4937         * io/fchdir.c (__fchdir): Renamed from fchdir.
4938         (fchdir): Define as weak alias.
4939
4940 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
4941
4942         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
4943         (ERRNO_EDOM): Likewise.
4944         (ERRNO_ERANGE): Likewise.
4945         (noErrnoTests): New variable.
4946         (init_max_error): Set errno to 0.
4947         (test_single_errno): New function.
4948         (test_errno): Likewise.
4949         (check_float_internal): Call test_errno.  Set errno to 0.
4950         (check_complex): Refer to errno tests in comment.
4951         (check_int): Call test_errno.  Set errno to 0.
4952         (check_long): Likewise.
4953         (check_bool): Likewise.
4954         (check_longlong): Likewise.
4955         (cos_test): Use ERRNO_* flags for errno tests instead of
4956         check_int.
4957         (expm1_test): Likewise.
4958         (fmod_test): Likewise.
4959         (ilogb_test): Likewise.
4960         (lgamma_test): Likewise.
4961         (pow_test): Likewise.
4962         (remainder_test): Likewise.
4963         (sin_test): Likewise.
4964         (tan_test): Likewise.
4965         (yn_test): Likewise.
4966         (initialize): Set errno to 0.
4967         (main): Print number of errno tests.
4968         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
4969
4970 2013-04-29  Andreas Jaeger  <aj@suse.de>
4971
4972         [BZ #15084]
4973         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
4974         and RES_USEVC.
4975
4976         [BZ #15085]
4977         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
4978         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
4979         unimplemented.
4980
4981         [BZ #15380]
4982         * stdlib/random.c (__initstate): Return NULL if
4983         __initstate fails.
4984
4985         [BZ #15086]
4986         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
4987         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
4988         RES_SNGLKUPREOP.
4989
4990 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4991
4992         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4993
4994 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
4995
4996         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
4997         of individual tests.
4998         (casin_test): Likewise.
4999         (casinh_test): Likewise.
5000
5001 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
5002
5003         [BZ #15409]
5004         * math/s_catan.c (__catan): Handle arguments with large real or
5005         imaginary part separately without squaring.
5006         * math/s_catanf.c (__catanf): Likewise.
5007         * math/s_catanh.c (__catanh): Likewise.
5008         * math/s_catanhf.c (__catanhf): Likewise.
5009         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
5010         and redefine.
5011         (__catanhl): Handle arguments with large real or imaginary part
5012         separately without squaring.
5013         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
5014         and redefine.
5015         (__catanl): Handle arguments with large real or imaginary part
5016         separately without squaring.
5017         * math/libm-test.inc (catan_test): Add more tests.
5018         (catanh_test): Likewise.
5019         * sysdeps/i386/fpu/libm-test-ulps: Update.
5020         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5021
5022 2013-04-27  Andreas Jaeger  <aj@suse.de>
5023
5024         [BZ #15007]
5025         * stdlib/stdlib.h: Update guards for qecvt.
5026         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
5027         <stdlib.h>.
5028
5029 2013-04-27  Allan McRae  <allan@archlinux.org>
5030
5031         * sysdeps/i386/fpu/libm-test-ulps: Update.
5032
5033 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
5034
5035         [BZ #15406]
5036         * math/s_catan.c: Include <float.h>.
5037         (__catan): Ensure underflow exception occurs for underflowed
5038         result.
5039         * math/s_catanf.c: Include <float.h>.
5040         (__catanf): Ensure underflow exception occurs for underflowed
5041         result.
5042         * math/s_catanh.c: Include <float.h>.
5043         (__catanh): Ensure underflow exception occurs for underflowed
5044         result.
5045         * math/s_catanhf.c: Include <float.h>.
5046         (__catanhf): Ensure underflow exception occurs for underflowed
5047         result.
5048         * math/s_catanhl.c: Include <float.h>.
5049         (__catanhl): Ensure underflow exception occurs for underflowed
5050         result.
5051         * math/s_catanl.c: Include <float.h>.
5052         (__catanl): Ensure underflow exception occurs for underflowed
5053         result.
5054         * math/libm-test.inc (catan_test): Add more tests.
5055         (catanh_test): Likewise.
5056
5057         [BZ #15405]
5058         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
5059         underflowed result.
5060         * math/s_ccoshf.c (__ccoshf): Likewise.
5061         * math/s_ccoshl.c (__ccoshl): Likewise.
5062         * math/s_csin.c (__csin): Likewise.
5063         * math/s_csinf.c (__csinf): Likewise.
5064         * math/s_csinh.c (__csinh): Likewise.
5065         * math/s_csinhf.c (__csinhf): Likewise.
5066         * math/s_csinhl.c (__csinhl): Likewise.
5067         * math/s_csinl.c (__csinl): Likewise.
5068         * math/libm-test.inc (ccos_test): Add more tests.
5069         (ccosh_test): Likewise.
5070         (csin_test): Likewise.
5071         (csinh_test): Likewise.
5072
5073 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5074
5075         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
5076         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
5077         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
5078         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
5079         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
5080         powerpc/power5+/fpu folders.
5081         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
5082
5083
5084 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
5085
5086         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
5087
5088 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
5089
5090         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
5091         additions to variable.
5092         [$(config-machine) = x86_64] (modules-names): Likewise.
5093         ($(objpfx)tst-audit3): Remove dependency.
5094         ($(objpfx)tst-audit3.out): Likewise.
5095         ($(objpfx)tst-audit4): Likewise.
5096         ($(objpfx)tst-audit4.out): Likewise.
5097         ($(objpfx)tst-audit5): Likewise.
5098         ($(objpfx)tst-audit5.out): Likewise.
5099         ($(objpfx)tst-audit6): Likewise.
5100         ($(objpfx)tst-audit6.out): Likewise.
5101         ($(objpfx)tst-audit7): Likewise.
5102         ($(objpfx)tst-audit7.out): Likewise.
5103         (tst-audit3-ENV): Remove variable.
5104         (tst-audit4-ENV): Likewise.
5105         (tst-audit5-ENV): Likewise.
5106         (tst-audit6-ENV): Likewise.
5107         (tst-audit7-ENV): Likewise.
5108         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
5109         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
5110         addition to variable.
5111         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
5112         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
5113         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
5114         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
5115         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
5116         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
5117         tst-audit3, tst-audit4 and tst-audit5.
5118         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
5119         tst-audit6 and tst-audit7.
5120         [$(subdir) = elf] (modules-names): Add audit modules for those
5121         tests.
5122         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
5123         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
5124         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
5125         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
5126         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
5127         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
5128         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
5129         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
5130         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
5131         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
5132         [$(subdir) = elf] (tst-audit3-ENV): New variable.
5133         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
5134         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
5135         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
5136         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
5137         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
5138         Likewise.
5139         [$(subdir) = elf && $(config-cflags-avx) = yes]
5140         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
5141         [$(subdir) = elf && $(config-cflags-avx) = yes]
5142         (CFLAGS-tst-auditmod4a.c): Likewise.
5143         [$(subdir) = elf && $(config-cflags-avx) = yes]
5144         (CFLAGS-tst-auditmod4b.c): Likewise.
5145         [$(subdir) = elf && $(config-cflags-avx) = yes]
5146         (CFLAGS-tst-auditmod6b.c): Likewise.
5147         [$(subdir) = elf && $(config-cflags-avx) = yes]
5148         (CFLAGS-tst-auditmod6c.c): Likewise.
5149         [$(subdir) = elf && $(config-cflags-avx) = yes]
5150         (CFLAGS-tst-auditmod7b.c): Likewise.
5151         * elf/tst-audit3.c: Move to ...
5152         * sysdeps/x86_64/tst-audit3.c: ... here.
5153         * elf/tst-audit4.c: Move to ...
5154         * sysdeps/x86_64/tst-audit4.c: ... here.
5155         * elf/tst-audit5.c: Move to ...
5156         * sysdeps/x86_64/tst-audit5.c: ... here.
5157         * elf/tst-audit6.c: Move to ...
5158         * sysdeps/x86_64/tst-audit6.c: ... here.
5159         * elf/tst-audit7.c: Move to ...
5160         * sysdeps/x86_64/tst-audit7.c: ... here.
5161         * elf/tst-auditmod3a.c: Move to ...
5162         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
5163         * elf/tst-auditmod3b.c: Move to ...
5164         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
5165         * elf/tst-auditmod4a.c: Move to ...
5166         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
5167         * elf/tst-auditmod4b.c: Move to ...
5168         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
5169         * elf/tst-auditmod5a.c: Move to ...
5170         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
5171         * elf/tst-auditmod5b.c: Move to ...
5172         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
5173         * elf/tst-auditmod6a.c: Move to ...
5174         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
5175         * elf/tst-auditmod6b.c: Move to ...
5176         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
5177         * elf/tst-auditmod6c.c: Move to ...
5178         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
5179         * elf/tst-auditmod7a.c: Move to ...
5180         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
5181         * elf/tst-auditmod7b.c: Move to ...
5182         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
5183
5184 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
5185
5186         [BZ #15366]
5187         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
5188         define unconditionally.
5189         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
5190         define unconditionally.
5191         (INT8_C, INT16_C, etc.): Likewise.
5192
5193 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
5194
5195         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
5196         __ehdr_start with hidden visibility.
5197
5198         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
5199
5200 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
5201
5202         * math/libm-test.inc (cos_test): Use accurate hex constants.
5203         (sincost_test): Likewise.
5204
5205 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
5206
5207         * math/libm-test.inc (catan_test): Add more tests.
5208         (catanh_test): Likewise.
5209
5210         * math/s_catanf.c (__catanf): Use suffixed floating-point
5211         constants.
5212         * math/s_catanhf.c (__catanhf): Likewise.
5213         * math/s_catanhl.c (__catanhl): Likewise.
5214         * math/s_catanl.c (__catanl): Likewise.
5215
5216         [BZ #15394]
5217         * math/s_catan.c (__catan): Calculate imaginary part of result
5218         with log1p not log unless computing log of number close to 0.
5219         * math/s_catanf.c (__catanf): Likewise.
5220         * math/s_catanl.c (__catanl): Likewise.
5221         * math/s_catanh.c (__catanh): Calculate real part of result with
5222         log1p not log unless computing log of number close to 0.
5223         * math/s_catanhf.c (__catanhf): Likewise.
5224         * math/s_catanhl.c (__catanhl): Likewise.
5225         * math/libm-test.inc (catan_test): Add more tests.
5226         (catanh_test): Likewise.
5227         * sysdeps/i386/fpu/libm-test-ulps: Update.
5228         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5229
5230 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
5231
5232         * benchtests/Makefile: Mention files in which fast and slow
5233         paths of math functions are implemented.
5234
5235 2013-04-23  Roland McGrath  <roland@hack.frob.com>
5236
5237         * sysdeps/posix/timespec_get.c: New file.
5238
5239 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5240
5241         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
5242         POWER.
5243         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
5244         for POWER.
5245         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
5246         powerpc/power5/fpu folders.
5247         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
5248         * benchtests/Makefile: Add modf testcase.
5249         * benchtests/bench-modf.c: New file: Benchmark test for mo
5250
5251 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
5252
5253         [BZ #14888]
5254         * time/Makefile (tests): Add tst-strptime-whitespace.
5255         * time/strptime_l.c (get_number): Use ISSPACE.
5256         (__strptime_internal): Likewise.
5257         * time/tst-strptime-whitespace.c: New test case.
5258
5259 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
5260
5261         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
5262         member.
5263         (_nss_files_init): Set it here.
5264
5265 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
5266
5267         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
5268         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
5269         unsigned.
5270
5271 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
5272
5273         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
5274
5275 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
5276
5277         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
5278         size just once.
5279
5280 2013-04-21  David S. Miller  <davem@davemloft.net>
5281
5282         * po/ru.po: Update Russion translation from translation project.
5283
5284 2013-04-17  Adam Conrad  <adconrad@0c3.net>
5285
5286         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
5287         and setfsgid.
5288
5289 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
5290
5291         * configure.in: Remove i386 configure warning. Remove i386 case.
5292         * configure: Regenerate.
5293         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
5294         Add example to error message.
5295         * sysdeps/i386/configure: Regenerate.
5296
5297 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5298
5299         * benchtests/Makefile (bench): Add cos, tan, slowcos and
5300         slowtan.
5301         * benchtests/cos-inputs: New file.
5302         * benchtests/slowcos-inputs: New file.
5303         * benchtests/slowcos.c: New file.
5304         * benchtests/slowtan-inputs: New file.
5305         * benchtests/slowtan.c: New file.
5306         * benchtests/tan-inputs: New file.
5307
5308 2013-04-16  Roland McGrath  <roland@hack.frob.com>
5309
5310         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
5311         considered kosher.
5312
5313 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
5314
5315         * benchtests/Makefile: Include cppflags-iterator.mk to add
5316         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
5317
5318         * Makefile.in (bench-clean): New target.
5319         * benchtests/Makefile (bench-clean): Likewise.
5320
5321 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
5322
5323         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
5324
5325 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
5326
5327         * stdio-common/tstdiomisc.c: Fix coding-style violation.
5328
5329 2013-04-15  Andreas Schwab  <schwab@suse.de>
5330
5331         * nscd/grpcache.c (cache_addgr): Properly check for short write.
5332         * nscd/initgrcache.c (addinitgroupsX): Likewise.
5333         * nscd/pwdcache.c (cache_addpw): Likewise.
5334         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
5335         more than recsize.
5336
5337 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
5338
5339         * benchtests/Makefile (bench): Write all output to
5340         bench-out.tmp together.
5341
5342 2013-04-15  Andreas Schwab  <schwab@suse.de>
5343
5344         * nscd/nscd.c (main): Don't fork again after closing files.
5345
5346 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
5347
5348         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
5349
5350         * benchtests/Rules (bench-deps): Collect dependencies into a
5351         single variable.  Add Makefile to dependencies.
5352         ($(objpfx)bench-%.c): Depend on bench-deps.
5353
5354 2013-04-12  Roland McGrath  <roland@hack.frob.com>
5355             Xavier Roche  <roche+kml2@exalead.com>
5356
5357         [BZ #15361]
5358         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
5359         just that it's a file descriptor.
5360         * manual/llio.texi (Synchronizing AIO Operations): Update description
5361         for EBADF error from aio_fsync.
5362
5363 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
5364
5365         * Rules (bench): Move target definition...
5366         * benchtests/Makefile: ... here.
5367
5368 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
5369
5370         * math/libm-test.inc (cos_test): Fix PI/2 test.
5371         (sincos_test): Likewise.
5372         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
5373         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
5374
5375 2013-04-11  Andreas Schwab  <schwab@suse.de>
5376
5377         [BZ #13988]
5378         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
5379         accept exponent character only when digits were seen.
5380         * stdio-common/Makefile (tests): Add bug26.
5381         * stdio-common/bug26.c: New file.
5382
5383         [BZ #14293]
5384         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
5385         non-freeable.
5386
5387 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
5388
5389         * Makeconfig (rtld-prefix): Define built linker prefix.
5390         * Rules (run-bench): Use it.
5391         * math/Makefile (run-regen-ulps): Likewise.
5392
5393         * Rules (bench): Remove eval.
5394
5395 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
5396             Roland McGrath  <roland@hack.frob.com>
5397             Ondrej Bilka  <neleai@seznam.cz>
5398
5399         [BZ #15346]
5400         * time/getdate.c: Include ctype.h and alloca.h.
5401         (__getdate_r): Trim leading and trailing spaces of input.
5402         * time/tst-getdate.c (tests): Add tests with leading and
5403         trailing spaces.
5404
5405 2013-04-08  Roland McGrath  <roland@hack.frob.com>
5406
5407         [BZ #14280]
5408         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
5409         when computing value.
5410
5411 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
5412
5413         * math/README.libm-test (How can I generate "libm-test-ulps"?):
5414         Use testrun.sh to run libm tests.
5415
5416         [BZ #15309]
5417         * elf/dl-open.c (dl_open_worker): memset all of seen array.
5418
5419 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
5420
5421         [BZ #15264]
5422         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
5423
5424 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
5425
5426         * Makefile.in (regen-ulps): New target.
5427         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
5428         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
5429         [ifneq (no,$(PERL)] (regen-ulps): New target.
5430         [ifeq (no,$(PERL)] (regen-ulps): New target.
5431         * math/libm-test.inc (ulps_file_name): Define.
5432         (output_dir): New variable.
5433         (options): Add "output-dir" option.
5434         (parse_opt): Handle 'o' case.
5435         (main): If output_dir is non-NULL use it as a prefix
5436         otherwise use "".
5437         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
5438
5439 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
5440
5441         [BZ #10060, #10062]
5442         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
5443         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
5444         fail configure if __sync_val_compare_and_swap is not inlined.
5445         * sysdeps/i386/configure: Regenerate.
5446         * configure.in: Build for i686 when configured for i386.
5447         * configure: Regenerate.
5448         * README: Remove i386 reference.
5449
5450 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
5451
5452         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
5453         * sysdeps/s390/s390-64/sysdep.h: Likewise.
5454
5455 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
5456
5457         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
5458         (lmsnanval): New variables.
5459         (F): Add conversion tests.
5460         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
5461         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
5462
5463         * stdio-common/tstdiomisc.c (F): Properly collect individual
5464         tests' results.
5465
5466         [BZ #14686, #15336]
5467         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
5468         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
5469         Instead, use input NaN values or generate a qNaN by arithmetic
5470         operation.  Also fix bugs to comply with the standard.
5471         * math/libm-test.inc (remainder_test): Add more tests.
5472
5473         [BZ #15335, #15342]
5474         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
5475         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
5476         input NaN values or generate a qNaN by arithmetic operation.
5477
5478         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
5479         unreachable code.
5480
5481         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
5482         definitions.
5483
5484 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
5485
5486         [BZ #14478]
5487         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
5488         underflowed result.
5489         * math/s_cexpf.c (__cexpf): Likewise.
5490         * math/s_cexpl.c (__cexpl): Likewise.
5491         * math/libm-test.inc (cexp_test): Add more tests.
5492
5493 2013-04-03  Andreas Schwab  <schwab@suse.de>
5494
5495         [BZ #15330]
5496         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
5497         order arrays from heap if bigger than alloca cutoff.
5498
5499 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
5500
5501         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
5502         (SNAN_TESTS_double): Refer to GCC PR56831.
5503         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
5504         GCC PR56828.
5505
5506 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
5507
5508         * Rules (bench): Move bench.out after the run is complete.
5509
5510         * Rules (bench): Echo currently running benchmark.
5511
5512         * benchtests/Makefile (bench): Add atan and slowatan.
5513         * benchtests/atan-inputs: New file.
5514         * benchtests/slowatan-inputs: New file.
5515         * benchtests/slowatan.c: New file.
5516
5517         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
5518         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
5519         its value.
5520
5521         [BZ #15305]
5522         * sysdeps/unix/sysv/linux/kernel-features.h
5523         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
5524         __ASSUME_XFS_RESTRICTED_CHOWN.
5525         * sysdeps/unix/sysv/linux/pathconf.c
5526         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
5527         Save and restore errno.
5528
5529 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
5530
5531         [BZ #15327]
5532         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
5533         arguments using __kernel_casinh.
5534         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
5535         arguments using __kernel_casinhf.
5536         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
5537         arguments using __kernel_casinhl.
5538         * math/libm-test.inc (cacosh_test): Add more tests.
5539         * sysdeps/i386/fpu/libm-test-ulps: Update.
5540         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5541
5542 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
5543
5544         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
5545         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
5546
5547         * bench/Makefile (bench): Add sin and slowsin.
5548         * benchtests/sin-inputs: New file.
5549         * benchtests/slowsin-inputs: New file.
5550         * benchtests/slowsin.c: New file.
5551
5552         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
5553         (bench): Add slowexp and slowpow.
5554         (exp-ITER): Increase iterations.
5555         (pow-ITER): Likewise.
5556         * benchtests/exp-inputs: Change input.
5557         * benchtests/pow-inputs: Likewise.
5558         * benchtests/slowexp-inputs: New file.
5559         * benchtests/slowexp.c: New file.
5560         * benchtests/slowpow-inputs: New file.
5561         * benchtests/slowpow.c: New file.
5562
5563 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5564
5565         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
5566         instructions.
5567         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
5568         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
5569         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
5570         * benchtests/Makefile: Add rint benchtest.
5571         * benchtests/rint-inputs: Input for rint benchtest.
5572
5573 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
5574
5575         * Versions.def (libm): Add GLIBC_2.18.
5576         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
5577         hidden libm prototypes.
5578         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
5579         * math/Makefile (libm-calls): Add s_issignaling.
5580         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
5581         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
5582         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
5583         declaration.
5584         * math/math.h [__USE_GNU] (issignaling): New macro.
5585         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
5586         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
5587         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
5588         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
5589         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
5590         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
5591         * manual/arith.texi (issignaling): New section.
5592         * manual/libm-err-tab.pl (@all_functions): Update comment.
5593         * math/gen-libm-test.pl (parse_args): Apply special handling for
5594         issignaling.
5595         * math/libm-test.inc (print_float, issignaling_test): New
5596         functions.
5597         (check_float_internal): Add issignaling checks.
5598         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
5599         default definition.
5600         * sysdeps/powerpc/math-tests.h: New file.
5601         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
5602         tests.
5603         * math/test-snan.c (TEST_FUNC): Likewise.
5604
5605 2013-03-30  David S. Miller  <davem@davemloft.net>
5606
5607         * po/de.po: Update from translation team.
5608
5609 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
5610
5611         [BZ #10357]
5612         * math/k_casinh.c (__kernel_casinh): Handle arguments with
5613         imaginary part less than 1.0 and real part less than 0.5
5614         specially.
5615         * math/k_casinhf.c (__kernel_casinhf): Likewise.
5616         * math/k_casinhl.c (__kernel_casinhl): Likewise.
5617         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
5618         (cacos_test): Add more tests.
5619         (casin_test): Likewise.
5620         (casinh_test): Likewise.
5621         * sysdeps/i386/fpu/libm-test-ulps: Update.
5622         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5623
5624 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
5625
5626         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
5627         ONE with its value.
5628
5629         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
5630         (__pow_mp): Replace ONE and MONE with their values.
5631         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
5632         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
5633         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
5634         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
5635         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
5636         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
5637
5638         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
5639
5640         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
5641         (__pow_mp): Replace ZERO and MZERO with their values.
5642         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
5643         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
5644         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
5645         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
5646         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
5647         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
5648         (__sqr): Likewise.
5649
5650         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
5651
5652         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
5653
5654 2013-03-28  Roland McGrath  <roland@hack.frob.com>
5655
5656         * include/stdlib.h [!SHARED] (__call_tls_dtors):
5657         Declare with __attribute__ ((weak)).
5658         * stdlib/exit.c (__libc_atexit) [!SHARED]:
5659         Call __call_tls_dtors only if it's not NULL.
5660
5661 2013-03-28  Roland McGrath  <roland@hack.frob.com>
5662
5663         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
5664         didn't do it already, then set _dl_phdr and _dl_phnum based on the
5665         magic __ehdr_start linker symbol if it's defined.
5666         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
5667         them up here if it was already done.
5668
5669         * elf/dl-support.c (_dl_phdr): Make pointer to const.
5670         (_dl_aux_init): Use const in cast when setting it.
5671         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
5672         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
5673         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
5674
5675         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
5676         Declare them here.
5677         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
5678         * csu/libc-tls.c: Nor here.
5679         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
5680
5681         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
5682         (__libc_message): Never call vsyslog.
5683
5684 2013-03-28  Alan Modra  <amodra@gmail.com>
5685
5686         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
5687         Define as empty.
5688         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
5689         Likewise.
5690
5691 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5692
5693         [BZ #15214]
5694         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
5695         underflow.
5696         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5697
5698 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5699
5700         [BZ #15304]
5701         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
5702         Don't add gid passed as argument.
5703
5704         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
5705
5706 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
5707
5708         [BZ #15307]
5709         * math/k_casinh.c (__kernel_casinh): Handle arguments with
5710         imaginary part between 1.0 and 1.5 and real part less than 0.5
5711         specially.
5712         * math/k_casinhf.c (__kernel_casinhf): Likewise.
5713         * math/k_casinhl.c (__kernel_casinhl): Likewise.
5714         * math/libm-test.inc (cacos_test): Add more tests.
5715         (casin_test): Likewise.
5716         (casinh_test): Likewise.
5717         * sysdeps/i386/fpu/libm-test-ulps: Update.
5718         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5719
5720 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5721
5722         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
5723         constants.
5724         (norm): Likewise.
5725         (denorm): Likewise.
5726         (__dbl_mp): Likewise.
5727         (add_magnitudes): Likewise.
5728         (sub_magnitudes): Likewise.
5729         (__add): Likewise.
5730         (__sub): Likewise.
5731         (__mul): Likewise.
5732         (__sqr): Likewise.
5733         (__inv): Likewise.
5734         (__dvd): Likewise.
5735
5736         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
5737         commented code.
5738         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
5739         (__dubcos): Likewise.
5740         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
5741         (__ieee754_acos): Likewise.
5742         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
5743         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
5744         (__exp1): Likewise.
5745         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
5746         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
5747         (log1): Likewise.
5748         (my_log2): Likewise.
5749         (checkint): Likewise.
5750         * sysdeps/ieee754/dbl-64/e_remainder.c
5751         (__ieee754_remainder): Likewise.
5752         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
5753         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
5754         (bsloww): Likewise.
5755         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
5756
5757         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
5758         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
5759         MANTISSA_STORE_T to store computations on mantissa.  Use
5760         macros for rounding and division.
5761         (denorm): Likewise.
5762         (__dbl_mp): Likewise.
5763         (add_magnitudes): Likewise.
5764         (sub_magnitudes): Likewise.
5765         (__mul): Likewise.
5766         (__sqr): Likewise.
5767         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
5768         powers of two in terms of TWOPOW macro.
5769         (mp_no): Make type of mantissa as MANTISSA_T.
5770         [!RADIXI]: Define RADIXI.
5771         [!TWO52]: Define TWO52.
5772         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
5773
5774 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5775
5776         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
5777         llroundl symbol when building for PPC32.
5778
5779 2013-03-24  Mark H Weaver  <mhw@netris.org>
5780
5781         * manual/arith.texi (Normalization Functions): Fix prototypes for
5782         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
5783
5784 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5785
5786         [BZ #13889]
5787         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
5788         high value to check if expl overflow.
5789         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
5790         to check for underflow and overflow.
5791         * math/libm-test.inc: Add exp test.
5792
5793 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
5794
5795         [BZ #11120]
5796         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
5797         with NOT_IN_libc.
5798
5799 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5800
5801         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
5802         symbol.
5803
5804 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
5805
5806         * math/gen-libm-test.pl (parse_args, special_functions): Properly
5807         wrap blocks consisting of several statements.
5808
5809         * sysdeps/generic/math-tests.h: New file.
5810         * sysdeps/i386/fpu/math-tests.h: Likewise.
5811         * math/test-snan.c: Include it.
5812         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
5813
5814 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
5815
5816         [BZ #15285]
5817         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
5818         (__ieee754_j0l): Do not improve calculations using cos of twice
5819         input for inputs above LDBL_MAX / 2.0L.
5820         (__ieee754_y0l): Likewise.
5821         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
5822         (__ieee754_j1l): Do not improve calculations using cos of twice
5823         input for inputs above LDBL_MAX / 2.0L.
5824         (__ieee754_y1l): Likewise.
5825         * math/libm-test.inc (j0_test): Add another test.
5826         (j1_test): Likewise.
5827         (y0_test): Likewise.
5828         (y1_test): Likewise.
5829         * sysdeps/i386/fpu/libm-test-ulps: Update.
5830
5831 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
5832
5833         * Rules ($(objpfx)bench-%.c): Include code from a C source
5834         file.
5835
5836 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
5837
5838         [BZ #15287]
5839         * math/k_casinh.c (__kernel_casinh): Handle arguments with
5840         imaginary part 1.0 and real part less than 0.5 specially.
5841         * math/k_casinhf.c (__kernel_casinhf): Likewise.
5842         * math/k_casinhl.c (__kernel_casinhl): Likewise.
5843         * math/libm-test.inc (cacos_test): Add more tests.
5844         (casin_test): Likewise.
5845         (casinh_test): Likewise.
5846         * sysdeps/i386/fpu/libm-test-ulps: Update.
5847         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5848
5849 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
5850
5851         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
5852         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
5853
5854 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
5855
5856         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
5857         * config.make.in (config-cflags-sse4): Remove variable.
5858         (config-cflags-avx): Likewise.
5859         (config-cflags-sse2avx): Likewise.
5860         (config-cflags-novzeroupper): Likewise.
5861         (config-asflags-i686): Likewise.
5862         (have-mfma4): Likewise.
5863         (have-as-vis3): Likewise.
5864         (MIG): Likewise.
5865         * configure.in (MIG): Do not AC_SUBST.
5866         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
5867         (libc_cv_cc_sse4): Do not AC_SUBST.
5868         (libc_cv_cc_avx): Likewise.
5869         (libc_cv_cc_sse2avx): Likewise.
5870         (libc_cv_cc_novzeroupper): Likewise.
5871         (libc_cv_cc_fma4): Likewise.
5872         (libc_cv_as_i686): Likewise.
5873         (libc_cv_sparc_as_vis3): Likewise.
5874         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
5875         LIBC_CONFIG_VAR.
5876         (config-asflags-i686): Likewise.
5877         (config-cflags-avx): Likewise.
5878         (config-cflags-sse2avx): Likewise.
5879         (have-mfma4): Likewise.
5880         (config-cflags-novzeroupper): Likewise.
5881         * sysdeps/mach/configure.in (MIG): Likewise.
5882         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
5883         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
5884         LIBC_CONFIG_VAR.
5885         (config-cflags-avx): Likewise.
5886         (config-cflags-sse2avx): Likewise.
5887         (have-mfma4): Likewise.
5888         (config-cflags-novzeroupper): Likewise.
5889         * configure: Regenerated.
5890         * sysdeps/i386/configure: Likewise.
5891         * sysdeps/mach/configure: Likewise.
5892         * sysdeps/sparc/configure: Likewise.
5893         * sysdeps/x86_64/configure: Likewise.
5894
5895 2013-03-20  Roland McGrath  <roland@hack.frob.com>
5896
5897         [BZ #14812]
5898         * locale/programs/localedef.c (options): Put N_ translation marker
5899         on argument names, not just descriptions.
5900
5901 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
5902
5903         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
5904
5905 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
5906
5907         [BZ #14176]
5908         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
5909
5910 2013-03-19  Roland McGrath  <roland@hack.frob.com>
5911
5912         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
5913         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
5914         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
5915         [!BEFORE_ABORT] (before_abort): New function.
5916         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
5917         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
5918         (writev_for_fatal): New function.
5919         (WRITEV_FOR_FATAL): New macro; call that.
5920         (backtrace_and_maps): New function.
5921         (BEFORE_ABORT): New macro; call that.
5922         (struct str_list): Type removed.
5923         (__libc_message, __libc_fatal): Functions removed.
5924         Include <sysdeps/posix/libc_fatal.c> instead.
5925
5926 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
5927
5928         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
5929         constants.
5930         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
5931         double constants.
5932
5933 2013-03-19  Andreas Schwab  <schwab@suse.de>
5934
5935         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
5936         * sysdeps/gnu/configure: Regenerate.
5937
5938         * configure.in: Substitute libc_cv_rtlddir.
5939         * configure: Regenerate.
5940         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
5941         * Makeconfig (rtlddir, inst_rtlddir): New variables.
5942         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
5943         * elf/Makefile (install-others, CFLAGS-interp.c)
5944         (ldso_install, common-ldd-rewrite): Likewise.
5945         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
5946         $(inst_slibdir)/$(rtld-installed-name).
5947         * scripts/rellns-sh: Add -p option.
5948         * Makerules (make-shlib-link): Use rellns-sh to get relative name
5949         for source.
5950
5951 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
5952
5953         * manual/nptl.texi: Renamed to ...
5954         * manual/threads.texi: ... this.
5955         * manual/Makefile (chapters): Update.
5956
5957 2013-03-18  Roland McGrath  <roland@hack.frob.com>
5958
5959         [BZ #14812]
5960         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
5961         on argument names, not just descriptions.
5962         * malloc/memusagestat.c (options): Likewise.
5963         * nss/getent.c (options): Likewise.
5964
5965 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
5966
5967         [BZ #14812]
5968         * iconv/iconv_prog.c (options): Put N_ translation marker
5969         on argument names, not just descriptions.
5970         * iconv/iconvconfig.c (options): Likewise.
5971
5972 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
5973
5974         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
5975         implementation which is faster on all x86_64 architectures.
5976         Tested on AMD, Intel Nehalem, SNB, IVB.
5977         * sysdeps/x86_64/strnlen.S: Likewise.
5978
5979         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
5980         Remove all multiarch strlen and strnlen versions.
5981         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
5982         Remove strlen and strnlen related parts.
5983
5984         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
5985         Inline strlen part.
5986         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
5987
5988         * sysdeps/x86_64/multiarch/strlen.S: Remove.
5989         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
5990         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
5991         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
5992         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
5993         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
5994
5995 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
5996
5997         * manual/memory.texi (Malloc Tunable Parameters):
5998         Sort parameters alphabetically. Add comments for missing entries.
5999
6000 2013-03-17  David S. Miller  <davem@davemloft.net>
6001
6002         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6003
6004 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
6005
6006         [BZ #15283]
6007         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
6008         for arguments at most half maximum finite value.
6009         * math/libm-test.inc (j0_test): Add more tests.
6010         (j1_test): Likewise.
6011         (y0_test): Likewise.
6012         (y1_test): Likewise.
6013         * sysdeps/i386/fpu/libm-test-ulps: Update.
6014         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6015
6016         [BZ #14155]
6017         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
6018         1 / x and functions P and Q for arguments above 0x1p256L.
6019         (__ieee754_y0l): Likewise.
6020         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
6021         (__ieee754_y1l): Likewise.
6022         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
6023         (j1_test): Likewise.
6024         (y0_test): Likewise.
6025         (y1_test): Likewise.
6026
6027 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
6028
6029         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
6030         variable.
6031
6032 2013-03-15  Roland McGrath  <roland@hack.frob.com>
6033
6034         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
6035         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
6036         zero since it's initialized to EXEC_PAGESIZE.
6037
6038         * sysdeps/unix/sysv/linux/ldsodefs.h
6039         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
6040         * sysdeps/generic/ldsodefs.h: ... here.
6041
6042 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
6043
6044         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
6045
6046         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
6047         math/test-snan.c.
6048         * math/test-snan.c: Renamed from
6049         sysdeps/powerpc/fpu/test-powerpc-snan.c.
6050         * math/Makefile (tests): Add test-snan.
6051         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
6052         test-powerpc-snan.
6053
6054         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
6055         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
6056         functions.
6057         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
6058         __builtin_nan family of functions.
6059         * math/libm-test.inc (initialize): Initialize qnan_value with
6060         __builtin_nan family of functions.
6061         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
6062         Remove variables.
6063         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
6064         Remove functions.
6065         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
6066         storage class.  Initialize qNaN_var and sNaN_var with
6067         __builtin_nan and __builtin_nans families of functions,
6068         respectively.
6069
6070         * math/libm-test.inc (acosh_test): Also test with qNaN input.
6071         (sqrt_test): Remove duplicate test with qNaN input.
6072         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
6073         (round_test, signbit_test, significand_test): Note missing +/-Inf
6074         as well as qNaN tests.
6075
6076         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
6077         qNaN_var.  Fix a few strings, too.
6078         * math/libm-test.inc (nan_value): Rename to qnan_value.
6079         * math/gen-libm-test.pl (%beautify): Adjust to that.
6080         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
6081         * math/test-misc.c (main): Likewise.
6082         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
6083         to __qnan_bytes, and __qnan_union, respectively.
6084         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
6085         Likewise.
6086         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
6087         and lqnanval, respectively.
6088         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
6089         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
6090         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
6091         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
6092
6093         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
6094         * math/test-misc.c (main) [__x86_64__]: Enable test for long
6095         doubles.
6096
6097         * math/test-misc.c (main): Fix copy'n'pastos.
6098         * misc/tst-efgcvt.c (special): Likewise.
6099
6100         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
6101         Remove declarations.
6102
6103 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6104
6105         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
6106         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
6107         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
6108         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
6109
6110 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6111
6112         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
6113         macro to return vdso values correctly in IFUNC implementations.
6114         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
6115         Optimization by using IFUNC.
6116
6117 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6118             Richard Henderson  <rth@redhat.com>
6119             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
6120
6121         * Makefile.in (bench): New target.
6122         * NEWS: Mention the benchmark framework.
6123         * Rules (bench): Likewise.
6124         (binaries-bench): Generate binaries for functions to
6125         benchmark.
6126         * benchtests/Makefile: New makefile for benchmark tests.
6127         * benchtests/bench-skeleton.c: New skeleton file for benchmark
6128         programs.
6129         * benchtests/exp-inputs: New input file for EXP function.
6130         * benchtests/pow-inputs: New input file for POW function.
6131         * scripts/bench.pl: New script to generate source files for
6132         benchmark programs.
6133
6134 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6135
6136         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
6137         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
6138         computations on mantissa.  Use macros for rounding and
6139         division.
6140         (denorm): Likewise.
6141         (__dbl_mp): Likewise.
6142         (add_magnitudes): Likewise.
6143         (sub_magnitudes): Likewise.
6144         (__mul): Likewise.
6145         (__sqr): Likewise.
6146         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
6147         powers of two in terms of TWOPOW macro.
6148         (mp_no): Make type of mantissa as MANTISSA_T.
6149         [!RADIXI]: Define RADIXI.
6150         [!TWO52]: Define TWO52.
6151         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
6152
6153         * manual/nptl.texi (cindex): Modify threads to pthreads.
6154
6155 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
6156
6157         * sysdeps/x86_64/preconfigure: Regenerated.
6158
6159 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
6160
6161         [BZ #14155]
6162         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
6163         0x1p28 and above.
6164         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
6165         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
6166         0x1p28 and above.
6167         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
6168         * math/libm-test.inc (j0_test): Do not allow one spurious
6169         underflow exception.
6170         (y1_test): Likewise.
6171
6172 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
6173
6174         * manual/Makefile (chapters): Add nptl.
6175         * manual/debug.texi (Debugging Support): Add link to Threads
6176         chapter.
6177         * manual/nptl.texi: New file.
6178
6179         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
6180
6181 2013-03-14  Petr Baudis  <pasky@ucw.cz>
6182
6183         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
6184         for non-NULL pointer before the memory validity test. Pointed
6185         out by Holger Brunck <holger.brunck@keymile.com>.
6186
6187 2013-03-13  Andreas Schwab  <schwab@suse.de>
6188
6189         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
6190         instead of .os.
6191
6192 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
6193
6194         * timezone/zic.c: Update from tzcode 2013b.
6195
6196 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
6197
6198         * manual/install.texi (Configuring and compiling):
6199         Mention i686 and i586.
6200         * INSTALL: Regenerate.
6201
6202 2013-03-12  Roland McGrath  <roland@hack.frob.com>
6203
6204         * sysdeps/init_array/elf-init.c: New file.
6205         * csu/elf-init.c
6206         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
6207         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
6208
6209         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
6210         __gmon_start__ as global, but as static with a .preinit_array pointer.
6211         * sysdeps/init_array/gmon-start.c: New file.  Use that.
6212         * sysdeps/init_array/crti.S: New file, empty except for comments.
6213         * sysdeps/init_array/crtn.S: Likewise.
6214
6215 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
6216
6217         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
6218         definining bcopy.
6219         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
6220         Remove Prefer_SSE_for_memop.
6221         * sysdeps/x86_64/multiarch/init-arch.h: Remove
6222         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
6223         HAS_PREFER_SSE_FOR_MEMOP.
6224         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
6225         memset-x86-64.
6226         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
6227         Remove bzero, memset ifunc support.
6228         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
6229         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
6230         * sysdeps/x86_64/multiarch/memset.S: Likewise.
6231         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
6232
6233 2013-03-11  Andreas Schwab  <schwab@suse.de>
6234
6235         [BZ #15234]
6236         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
6237         by SHLIB_COMPAT.
6238         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
6239         (GLIBC_2.16): Remove pthread_atfork.
6240
6241 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
6242
6243         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
6244         (ptestcases.h): Likewise.
6245
6246 2013-03-08  Roland McGrath  <roland@hack.frob.com>
6247
6248         * Makeconfig ($(common-objpfx)config.status): Depend on
6249         sysdeps/*/preconfigure{,.in} too.
6250
6251 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
6252
6253         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
6254         (__free_hook): Use void * instead of __malloc_ptr_t.
6255         (__malloc_hook): Likewise.
6256         (__realloc_hook): Likewise.
6257         (__memalign_hook): Likewise.
6258         (__after_morecore_hook): Likewise.
6259         * malloc/arena.c (save_malloc_hook): Likewise.
6260         (save_free_hook): Likewise.
6261         * malloc/hooks.c (malloc_hook_ini): Likewise.
6262         (realloc_hook_ini): Likewise.
6263         (memalign_hook_ini): Likewise.
6264         * malloc/malloc.c (malloc_hook_ini): Likewise.
6265         (realloc_hook_ini): Likewise.
6266         (memalign_hook_ini): Likewise.
6267         (__free_hook): Likewise.
6268         (__malloc_hook): Likewise.
6269         (__realloc_hook): Likewise.
6270         (__memalign_hook): Likewise.
6271         (__libc_malloc): Likewise.
6272         (__libc_free): Likewise.
6273         (__libc_realloc): Likewise.
6274         (__libc_memalign): Likewise.
6275         (__libc_valloc): Likewise.
6276         (__libc_pvalloc): Likewise.
6277         (__libc_calloc): Likewise.
6278         (__posix_memalign): Likewise.
6279         * malloc/morecore.c (__sbrk): Likewise.
6280         (__default_morecore): Likewise.
6281
6282         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
6283
6284         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
6285         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
6286         __malloc_ptrdiff_t.
6287
6288         * malloc/malloc.h (__malloc_size_t): Remove macro.
6289         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
6290         __malloc_size_t.
6291         (old_memalign_hook): Likewise.
6292         (old_realloc_hook): Likewise.
6293         (struct hdr): Likewise.
6294         (flood): Likewise.
6295         (mallochook): Likewise.
6296         (memalignhook): Likewise.
6297         (reallochook): Likewise.
6298         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
6299         (tr_old_realloc_hook): Likewise.
6300         (tr_old_memalign_hook): Likewise.
6301         (tr_mallochook): Likewise.
6302         (tr_reallochook): Likewise.
6303         (tr_memalignhook): Likewise.
6304
6305 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6306
6307         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
6308         default_ldbl_pack and using as default implementation.
6309         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
6310         implementation.
6311         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
6312         redundant definition.
6313         (ldbl_insert_mantissa): Likewise.
6314         (ldbl_canonicalize): Likewise.
6315         (ldbl_nearbyint): Likewise.
6316         (ldbl_pack): Rename to ldbl_pack_ppc.
6317         (ldbl_unpack): Rename to ldbl_unpack_ppc.
6318         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
6319         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
6320
6321 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
6322
6323         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
6324         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
6325         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
6326         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
6327         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
6328         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
6329         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
6330         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
6331
6332 2013-03-07  Andreas Jaeger  <aj@suse.de>
6333
6334         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6335         bits/mman-linux.h.
6336
6337 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
6338
6339         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
6340         Include mpa.h and declare __MPEXP.
6341         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
6342         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
6343         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
6344         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
6345         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
6346         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
6347         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
6348
6349         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
6350         (__slowpow): Use long double EXPL and LOGL functions to
6351         compute POW.
6352         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
6353         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
6354         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
6355         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
6356         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
6357         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
6358
6359         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
6360         intermediate variable to calculate exponent.
6361         (__sqr): Likewise.
6362         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
6363         Likewise.
6364         (__sqr): Likewise.
6365
6366         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
6367         [!NO__SQR]: Define __sqr.
6368         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
6369         and NO__SQR.  Remove all code except __mul and __sqr.  Include
6370         sysdeps/ieee754/dbl-64/mpa.c.
6371         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
6372
6373         [BZ #12723]
6374         * posix/Makefile (tests): Add tst-pathconf.
6375         * posix/tst-pathconf.c: New test case.
6376         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
6377         _PC_PIPE_BUF.
6378         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
6379
6380 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
6381
6382         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
6383
6384 2013-03-06  Andreas Jaeger  <aj@suse.de>
6385
6386         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
6387         definition via __MAP_ANONYMOUS.
6388
6389         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
6390         it's not part of Linux headers.
6391
6392         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
6393         (MAP_HUGE_MASK): Define.
6394
6395         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
6396         Define.
6397         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
6398         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
6399         Define.
6400         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
6401         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
6402         Define.
6403         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
6404         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
6405         Define.
6406         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
6407
6408         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
6409         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
6410         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
6411         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
6412         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
6413         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
6414
6415         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
6416         Handle f2fs.
6417
6418         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
6419         Handle f2fs and efivarfs.
6420
6421         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
6422         f2fs.
6423
6424         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
6425         (EFIVARFS_MAGIC): Add.
6426         (F2FS_LINK_MAX): Add.
6427
6428 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
6429
6430         * stdio-common/vfprintf.c: Replace __builtin_expect with
6431         __glibc_unlikely.
6432
6433 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
6434
6435         [BZ #13550]
6436         * sysdeps/generic/bp-sym.h: Remove file.
6437         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
6438         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
6439         <bp-sym.h> and <bp-asm.h>.
6440         (__longjmp): Don't use BP_SYM.
6441         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
6442         and <bp-asm.h>.
6443         (memcpy): Don't use BP_SYM.
6444         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
6445         <bp-sym.h> and <bp-asm.h>.
6446         (memcpy): Don't use BP_SYM.
6447         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
6448         <bp-asm.h>.
6449         (memcpy): Don't use BP_SYM.
6450         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
6451         <bp-asm.h>.
6452         (memset): Don't use BP_SYM.
6453         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
6454         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
6455         (__bzero): Don't use BP_SYM.
6456         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
6457         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
6458         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
6459         <bp-sym.h> and <bp-asm.h>.
6460         (memcmp): Don't use BP_SYM.  Remove comment about bounded
6461         pointers.
6462         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
6463         <bp-sym.h> and <bp-asm.h>.
6464         (memcpy): Don't use BP_SYM.
6465         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
6466         <bp-sym.h> and <bp-asm.h>.
6467         (memset): Don't use BP_SYM.
6468         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
6469         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
6470         (__bzero): Don't use BP_SYM.
6471         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
6472         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
6473         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
6474         <bp-sym.h> and <bp-asm.h>.
6475         (strncmp): Don't use BP_SYM.  Remove comment about bounded
6476         pointers.
6477         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
6478         <bp-sym.h> and <bp-asm.h>.
6479         (memcpy): Don't use BP_SYM.
6480         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
6481         <bp-sym.h> and <bp-asm.h>.
6482         (memset): Don't use BP_SYM.
6483         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
6484         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
6485         (__bzero): Don't use BP_SYM.
6486         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
6487         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
6488         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
6489         <bp-sym.h> and <bp-asm.h>.
6490         (__memchr): Don't use BP_SYM.
6491         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
6492         <bp-sym.h> and <bp-asm.h>.
6493         (memcmp): Don't use BP_SYM.  Remove comment about bounded
6494         pointers.
6495         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
6496         <bp-sym.h> and <bp-asm.h>.
6497         (memcpy): Don't use BP_SYM.
6498         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
6499         <bp-sym.h> and <bp-asm.h>.
6500         (__mempcpy): Don't use BP_SYM.
6501         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
6502         <bp-sym.h> and <bp-asm.h>.
6503         (__memrchr): Don't use BP_SYM.
6504         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
6505         <bp-sym.h> and <bp-asm.h>.
6506         (memset): Don't use BP_SYM.
6507         (__bzero): Likewise.
6508         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
6509         <bp-sym.h> and <bp-asm.h>.
6510         (__rawmemchr): Don't use BP_SYM.
6511         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
6512         <bp-sym.h> and <bp-asm.h>.
6513         (__STRCMP): Don't use BP_SYM.
6514         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
6515         <bp-sym.h> and <bp-asm.h>.
6516         (strchr): Don't use BP_SYM.
6517         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
6518         <bp-sym.h> and <bp-asm.h>.
6519         (__strchrnul): Don't use BP_SYM.
6520         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
6521         <bp-sym.h> and <bp-asm.h>.
6522         (strlen): Don't use BP_SYM.
6523         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
6524         <bp-sym.h> and <bp-asm.h>.
6525         (strncmp): Don't use BP_SYM.  Remove comment about bounded
6526         pointers.
6527         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
6528         <bp-sym.h> and <bp-asm.h>.
6529         (__strnlen): Don't use BP_SYM.
6530         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
6531         <bp-sym.h> and <bp-asm.h>.
6532         (__GI__setjmp): Don't use BP_SYM.
6533         (_setjmp): Likewise.
6534         (__sigsetjmp): Likewise.
6535         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
6536         (L(start_addresses)): Don't use BP_SYM.
6537         (_start): Likewise.
6538         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
6539         <bp-asm.h>.
6540         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
6541         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
6542         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
6543         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
6544         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
6545         <bp-asm.h>.
6546         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
6547         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
6548         about bounded pointers.
6549         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
6550         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
6551         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
6552         <bp-asm.h>.
6553         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
6554         about bounded pointers.  Remove GKM FIXME comments.
6555         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
6556         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
6557         <bp-asm.h>.
6558         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
6559         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
6560         Remove GKM FIXME comments.
6561         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
6562         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
6563         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
6564         <bp-asm.h>.
6565         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
6566         about bounded pointers.  Remove GKM FIXME comment.
6567         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
6568         and <bp-asm.h>.
6569         (strncmp): Don't use BP_SYM.  Remove comment about bounded
6570         pointers.
6571         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
6572         <bp-sym.h> and <bp-asm.h>.
6573         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
6574         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
6575         <bp-sym.h> and <bp-asm.h>.
6576         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
6577         comment.
6578
6579 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
6580
6581         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
6582         call free(NULL).
6583
6584 2013-03-05  David S. Miller  <davem@davemloft.net>
6585
6586         * po/es.po: Update from translation team.
6587
6588 2013-03-05  Andreas Jaeger  <aj@suse.de>
6589
6590         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
6591         <bits/mman-linux.h>.
6592         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
6593         is fine.
6594         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
6595         <bits/mman-linux.h> to end of file.
6596         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
6597         is fine.
6598         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
6599         <bits/mman-linux.h> to end of file.
6600         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
6601         is fine.
6602         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
6603         <bits/mman-linux.h> to end of file.
6604
6605         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
6606         (MCL_CURRENT, MCL_FUTURE): Define here.
6607
6608 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6609
6610         [BZ #15232]
6611         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
6612         attribute_hidden.
6613         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
6614
6615 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6616
6617         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
6618         fourth parameter needed for rt_sigprocmask syscall.
6619         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
6620         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
6621         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
6622         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
6623         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
6624         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
6625
6626 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
6627
6628         [BZ #13550]
6629         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
6630         comment about bounded pointers.
6631         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
6632         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
6633
6634 2013-03-04  Andreas Jaeger  <aj@suse.de>
6635
6636         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
6637         common definitions.
6638
6639         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
6640         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
6641         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
6642         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
6643         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
6644         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
6645
6646 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6647
6648         [BZ #15055]
6649         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
6650         __ieee754_sqrl instead of __sqrl.
6651
6652 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
6653
6654         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
6655         * sysdeps/powerpc/fpu_control.h: ... here.
6656         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
6657         * sysdeps/powerpc/bits/fenvinline.h: ... here.
6658         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
6659         * sysdeps/powerpc/bits/mathinline.h: ... here.
6660
6661 2013-03-01  Roland McGrath  <roland@hack.frob.com>
6662
6663         * elf/dl-hwcaps.c (_dl_important_hwcaps):
6664         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
6665         to just [NEED_DL_SYSINFO_DSO].
6666         * elf/dl-support.c: Likewise.
6667         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
6668         * elf/rtld.c (dl_main): Likewise.
6669         * elf/setup-vdso.h (setup_vdso): Likewise.
6670         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
6671         * sysdeps/unix/sysv/linux/dl-sysdep.c
6672         (_dl_discover_osversion): Likewise.
6673
6674 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
6675
6676         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
6677         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
6678
6679 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
6680
6681         * NEWS: Mention libm performance improvements and non-x86 PI
6682         futex support.
6683
6684         * csu/libc-start.c (__pthread_initialize_minimal): Change
6685         function arguments.
6686         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
6687
6688 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
6689
6690         [BZ #13550]
6691         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
6692         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
6693         <bp-sym.h> and <bp-asm.h>.
6694         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
6695         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
6696         and <bp-asm.h>.
6697         (memcpy): Don't use BP_SYM.
6698         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
6699         <bp-asm.h>.
6700         (__mpn_add_n): Don't use BP_SYM.
6701         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
6702         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
6703         and <bp-asm.h>.
6704         (__mpn_addmul_1): Don't use BP_SYM.
6705         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
6706         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
6707         <bp-sym.h>.
6708         (_setjmp): Don't use BP_SYM.
6709         (__novmx_setjmp): Likewise.
6710         (__GI__setjmp): Likewise.
6711         (__vmx_setjmp): Likewise.
6712         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
6713         <bp-sym.h>.
6714         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
6715         (__bzero): Don't use BP_SYM.
6716         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
6717         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
6718         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
6719         <bp-sym.h> and <bp-asm.h>.
6720         (memcpy): Don't use BP_SYM.
6721         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
6722         <bp-sym.h> and <bp-asm.h>.
6723         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
6724         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
6725         <bp-sym.h> and <bp-asm.h>.
6726         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
6727         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
6728         <bp-asm.h>.
6729         (__mpn_lshift): Don't use BP_SYM.
6730         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
6731         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
6732         <bp-asm.h>.
6733         (memset): Don't use BP_SYM.
6734         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
6735         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
6736         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
6737         <bp-asm.h>.
6738         (__mpn_mul_1): Don't use BP_SYM.
6739         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
6740         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
6741         <bp-sym.h> and <bp-asm.h>.
6742         (memcmp): Don't use BP_SYM.
6743         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
6744         <bp-sym.h> and <bp-asm.h>.
6745         (memcpy): Don't use BP_SYM.
6746         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
6747         <bp-sym.h> and <bp-asm.h>.
6748         (memset): Don't use BP_SYM.
6749         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
6750         <bp-sym.h> and <bp-asm.h>.
6751         (strncmp): Don't use BP_SYM.
6752         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
6753         <bp-sym.h> and <bp-asm.h>.
6754         (memcpy): Don't use BP_SYM.
6755         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
6756         <bp-sym.h> and <bp-asm.h>.
6757         (memset): Don't use BP_SYM.
6758         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
6759         <bp-sym.h> and <bp-asm.h>.
6760         (__memchr): Don't use BP_SYM.
6761         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
6762         <bp-sym.h> and <bp-asm.h>.
6763         (memcmp): Don't use BP_SYM.
6764         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
6765         <bp-sym.h> and <bp-asm.h>.
6766         (memcpy): Don't use BP_SYM.
6767         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
6768         <bp-sym.h> and <bp-asm.h>.
6769         (__mempcpy): Don't use BP_SYM.
6770         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
6771         <bp-sym.h> and <bp-asm.h>.
6772         (__memrchr): Don't use BP_SYM.
6773         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
6774         <bp-sym.h> and <bp-asm.h>.
6775         (memset): Don't use BP_SYM.
6776         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
6777         <bp-sym.h> and <bp-asm.h>.
6778         (__rawmemchr): Don't use BP_SYM.
6779         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
6780         <bp-sym.h> and <bp-asm.h>.
6781         (__STRCMP): Don't use BP_SYM.
6782         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
6783         <bp-sym.h> and <bp-asm.h>.
6784         (strchr): Don't use BP_SYM.
6785         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
6786         <bp-sym.h> and <bp-asm.h>.
6787         (__strchrnul): Don't use BP_SYM.
6788         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
6789         <bp-sym.h> and <bp-asm.h>.
6790         (strlen): Don't use BP_SYM.
6791         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
6792         <bp-sym.h> and <bp-asm.h>.
6793         (strncmp): Don't use BP_SYM.
6794         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
6795         <bp-sym.h> and <bp-asm.h>.
6796         (__strnlen): Don't use BP_SYM.
6797         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
6798         <bp-asm.h>.
6799         (__mpn_rshift): Don't use BP_SYM.
6800         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
6801         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
6802         <bp-sym.h> and <bp-asm.h>.
6803         (__sigsetjmp): Don't use BP_SYM.
6804         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
6805         (L(start_addresses)): Don't use BP_SYM.
6806         (_start): Likewise.
6807         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
6808         <bp-asm.h>.
6809         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
6810         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
6811         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
6812         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
6813         <bp-asm.h>.
6814         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
6815         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
6816         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
6817         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
6818         <bp-asm.h>.
6819         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
6820         comments.
6821         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
6822         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
6823         <bp-asm.h>.
6824         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
6825         FIXME comments.
6826         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
6827         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
6828         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
6829         <bp-asm.h>.
6830         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
6831         comment.
6832         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
6833         and <bp-asm.h>.
6834         (strncmp): Don't use BP_SYM,
6835         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
6836         <bp-asm.h>.
6837         (__mpn_sub_n): Don't use BP_SYM.
6838         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
6839         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
6840         and <bp-asm.h>.
6841         (__mpn_submul_1): Don't use BP_SYM.
6842         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
6843         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
6844         <bp-sym.h> and <bp-asm.h>.
6845         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
6846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
6847         <bp-sym.h> and <bp-asm.h>.
6848         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
6849         comment.
6850
6851 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
6852
6853         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
6854         Use ZK to minimize writes to Z.
6855         (sub_magnitudes): Simplify code a bit.
6856         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
6857         Use ZK to minimize writes to Z.
6858         (sub_magnitudes): Simplify code a bit.
6859
6860 2013-02-27  Roland McGrath  <roland@hack.frob.com>
6861
6862         * csu/gmon-start.c: Add special exception to license text.
6863
6864 2013-02-27  Richard Henderson  <rth@redhat.com>
6865
6866         * scripts/config.guess: Update from config.git.
6867         * scripts/config.sub: Likewise.
6868
6869 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
6870
6871         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
6872
6873         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
6874
6875         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
6876
6877         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
6878
6879         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
6880
6881 2013-02-26  Roland McGrath  <roland@hack.frob.com>
6882
6883         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
6884         [$(build-shared = yes].
6885
6886 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6887
6888         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
6889         (__mul): Reduce iterations for calculating mantissa.
6890
6891         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
6892         MPTWO.
6893         (__mpranred): Likewise.
6894
6895         [BZ #15160]
6896         * malloc/memusagestat.c (main): Draw graphs for heap and stack
6897         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
6898
6899 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
6900
6901         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
6902         Define __attribute__.
6903
6904 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
6905
6906         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
6907         unused.
6908         * posix/regex_internal.h (__attribute): Remove.
6909         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
6910         (re_string_context_at): Likewise.
6911         (bitset_not): Use __attribute__ and mark function as possibly
6912         unused.
6913         (bitset_merge): Likewise.
6914         (bitset_mask): Likewise.
6915         (re_string_char_size_at): Likewise.
6916         (re_string_wchar_at): Likewise.
6917         (re_string_elem_size_at): Likewise.
6918
6919 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
6920
6921         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
6922         code.
6923         (cc32): Likewise.
6924
6925         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
6926         (__acr): Likewise.
6927         (__cpy): Likewise.
6928         (norm): Likewise.
6929         (denorm): Likewise.
6930         (__dbl_mp): Likewise.
6931         (add_magnitudes): Likewise.
6932         (sub_magnitudes): Likewise.
6933         (__mul): Likewise.
6934         (__inv): Likewise.
6935
6936         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
6937         style.
6938
6939         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
6940         style.
6941
6942         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
6943         code.
6944
6945         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
6946         up changes with default code.
6947         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
6948         Likewise.
6949
6950 2013-02-24  Allan McRae  <allan@archlinux.org>
6951
6952         * manual/socket.texi (The Internet Namespace): Order menu items
6953         to match that in the file.
6954
6955         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
6956         node listing of the info page menu.
6957
6958 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
6959
6960         [BZ #13550]
6961         * sysdeps/i386/bp-asm.h: Remove file.
6962         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
6963         (PARMS): Do not use macros from bp-asm.h.
6964         (S1): Likewise.
6965         (S2): Likewise.
6966         (SIZE): Likewise.
6967         (__mpn_add_n): Do not use BP_SYM
6968         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
6969         "bp-asm.h".
6970         (PARMS): Do not use macros from bp-asm.h.
6971         (S1): Likewise.
6972         (SIZE): Likewise.
6973         (__mpn_addmul_1): Do not use BP_SYM
6974         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
6975         "bp-asm.h".
6976         (PARMS): Do not use macros from bp-asm.h.
6977         (SIGMSK): Likewise.
6978         (_setjmp): Likewise.  Do not use BP_SYM.
6979         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
6980         "bp-asm.h".
6981         (PARMS): Do not use macros from bp-asm.h.
6982         (SIGMSK): Likewise.
6983         (setjmp): Likewise.  Do not use BP_SYM.
6984         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
6985         "bp-asm.h".
6986         (PARMS): Do not use macros from bp-asm.h.
6987         (__frexp): Do not use BP_SYM.
6988         (frexp): Likewise.
6989         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
6990         "bp-asm.h".
6991         (PARMS): Do not use macros from bp-asm.h.
6992         (__frexpf): Do not use BP_SYM.
6993         (frexpf): Likewise.
6994         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
6995         "bp-asm.h".
6996         (PARMS): Do not use macros from bp-asm.h.
6997         (__frexpl): Do not use BP_SYM.
6998         (frexpl): Likewise.
6999         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
7000         "bp-asm.h".
7001         (PARMS): Do not use macros from bp-asm.h.
7002         (__remquo): Do not use BP_SYM.
7003         (remquo): Likewise.
7004         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
7005         "bp-asm.h".
7006         (PARMS): Do not use macros from bp-asm.h.
7007         (__remquof): Do not use BP_SYM.
7008         (remquof): Likewise.
7009         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
7010         "bp-asm.h".
7011         (PARMS): Do not use macros from bp-asm.h.
7012         (__remquol): Do not use BP_SYM.
7013         (remquol): Likewise.
7014         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
7015         "bp-asm.h".
7016         (PARMS): Do not use macros from bp-asm.h.
7017         (DEST): Likewise.
7018         (SRC): Likewise.
7019         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
7020         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
7021         "bp-asm.h".
7022         (PARMS): Do not use macros from bp-asm.h.
7023         (strlen): Do not use BP_SYM.
7024         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
7025         "bp-asm.h".
7026         (PARMS): Do not use macros from bp-asm.h.
7027         (S1): Likewise.
7028         (S2): Likewise.
7029         (SIZE): Likewise.
7030         (__mpn_add_n): Do not use BP_SYM.
7031         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
7032         "bp-asm.h".
7033         (PARMS): Do not use macros from bp-asm.h.
7034         (S1): Likewise.
7035         (SIZE): Likewise.
7036         (__mpn_addmul_1): Do not use BP_SYM.
7037         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
7038         weak_alias.
7039         (bzero): Likewise.
7040         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
7041         "bp-asm.h".
7042         (PARMS): Do not use macros from bp-asm.h.
7043         (S): Likewise.
7044         (SIZE): Likewise.
7045         (__mpn_lshift): Do not use BP_SYM.
7046         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
7047         "bp-asm.h".
7048         (PARMS): Do not use macros from bp-asm.h.
7049         (DEST): Likewise.
7050         (SRC): Likewise.
7051         (LEN): Likewise.
7052         (memcpy): Likewise.  Do not use BP_SYM.
7053         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
7054         libc_hidden_def and weak_alias.
7055         (mempcpy): Do not use BP_SYM in weak_alias.
7056         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
7057         "bp-asm.h".
7058         (PARMS): Do not use macros from bp-asm.h.
7059         (DEST): Likewise.
7060         (LEN): Likewise.
7061         [!BZERO_P] (CHR): Likewise.
7062         (memset): Likewise.  Do not use BP_SYM.
7063         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
7064         "bp-asm.h".
7065         (PARMS): Do not use macros from bp-asm.h.
7066         (S1): Likewise.
7067         (SIZE): Likewise.
7068         (__mpn_mul_1): Do not use BP_SYM.
7069         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
7070         "bp-asm.h".
7071         (PARMS): Do not use macros from bp-asm.h.
7072         (S): Likewise.
7073         (SIZE): Likewise.
7074         (__mpn_rshift): Do not use BP_SYM.
7075         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
7076         "bp-asm.h".
7077         (PARMS): Do not use macros from bp-asm.h.
7078         (STR): Likewise.
7079         (CHR): Likewise.
7080         (strchr): Likewise.  Do not use BP_SYM.
7081         (index): Do not use BP_SYM in weak_alias.
7082         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
7083         "bp-asm.h".
7084         (PARMS): Do not use macros from bp-asm.h.
7085         (DEST): Likewise.
7086         (SRC): Likewise.
7087         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
7088         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
7089         "bp-asm.h".
7090         (PARMS): Do not use macros from bp-asm.h.
7091         (strlen): Do not use BP_SYM.
7092         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
7093         "bp-asm.h".
7094         (PARMS): Do not use macros from bp-asm.h.
7095         (S1): Likewise.
7096         (S2): Likewise.
7097         (SIZE): Likewise.
7098         (__mpn_sub_n): Do not use BP_SYM.
7099         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
7100         "bp-asm.h".
7101         (PARMS): Do not use macros from bp-asm.h.
7102         (S1): Likewise.
7103         (SIZE): Likewise.
7104         (__mpn_submul_1): Do not use BP_SYM.
7105         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
7106         "bp-asm.h".
7107         (PARMS): Do not use macros from bp-asm.h.
7108         (S1): Likewise.
7109         (S2): Likewise.
7110         (SIZE): Likewise.
7111         (__mpn_add_n): Do not use BP_SYM.
7112         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
7113         weak_alias.
7114         (bzero): Likewise.
7115         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
7116         "bp-asm.h".
7117         (PARMS): Do not use macros from bp-asm.h.
7118         (BLK2): Likewise.
7119         (LEN): Likewise.
7120         (memcmp): Do not use BP_SYM.
7121         (bcmp): Do not use BP_SYM in weak_alias.
7122         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
7123         "bp-asm.h".
7124         (PARMS): Do not use macros from bp-asm.h.
7125         (DEST): Likewise.
7126         (SRC): Likewise.
7127         (LEN): Likewise.
7128         (memcpy): Likewise.  Do not use BP_SYM.
7129         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
7130         "bp-asm.h".
7131         (PARMS): Do not use macros from bp-asm.h.
7132         (DEST): Likewise.
7133         (SRC): Likewise.
7134         (LEN): Likewise.
7135         (memmove): Likewise.  Do not use BP_SYM.
7136         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
7137         "bp-asm.h".
7138         (PARMS): Do not use macros from bp-asm.h.
7139         (DEST): Likewise.
7140         (SRC): Likewise.
7141         (LEN): Likewise.
7142         (__mempcpy): Likewise.  Do not use BP_SYM.
7143         (mempcpy): Do not use BP_SYM in weak_alias.
7144         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
7145         "bp-asm.h".
7146         (PARMS): Do not use macros from bp-asm.h.
7147         (DEST): Likewise.
7148         (LEN): Likewise.
7149         [!BZERO_P] (CHR): Likewise.
7150         (memset): Likewise.  Do not use BP_SYM.
7151         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
7152         "bp-asm.h".
7153         (PARMS): Do not use macros from bp-asm.h.
7154         (STR2): Likewise.
7155         (strcmp): Do not use BP_SYM.
7156         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
7157         "bp-asm.h".
7158         (PARMS): Do not use macros from bp-asm.h.
7159         (STR): Likewise.
7160         (DELIM): Likewise.
7161         [USE_AS_STRTOK_R] (SAVE): Likewise.
7162         (FUNCTION): Likewise.  Do not use BP_SYM.
7163         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
7164         aliases.
7165         (strtok_r): Likewise.
7166         (__GI___strtok_r): Likewise.
7167         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
7168         (PARMS): Do not use macros from bp-asm.h.
7169         (S): Likewise.
7170         (SIZE): Likewise.
7171         (__mpn_lshift): Do not use BP_SYM.
7172         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
7173         (PARMS): Do not use macros from bp-asm.h.
7174         (STR): Likewise.
7175         (CHR): Likewise.
7176         (__memchr): Do not use BP_SYM.
7177         (memchr): Do not use BP_SYM in weak_alias.
7178         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
7179         (PARMS): Do not use macros from bp-asm.h.
7180         (BLK2): Likewise.
7181         (LEN): Likewise.
7182         (memcmp): Do not use BP_SYM.
7183         (bcmp): Do not use BP_SYM in weak_alias.
7184         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
7185         (PARMS): Do not use macros from bp-asm.h.
7186         (S1): Likewise.
7187         (SIZE): Likewise.
7188         (__mpn_mul_1): Do not use BP_SYM.
7189         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
7190         "bp-asm.h".
7191         (PARMS): Do not use macros from bp-asm.h.
7192         (STR): Likewise.
7193         (CHR): Likewise.
7194         (__rawmemchr): Do not use BP_SYM.
7195         (rawmemchr): Do not use BP_SYM in weak_alias.
7196         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
7197         (PARMS): Do not use macros from bp-asm.h.
7198         (S): Likewise.
7199         (SIZE): Likewise.
7200         (__mpn_rshift): Do not use BP_SYM.
7201         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
7202         (PARMS): Do not use macros from bp-asm.h.
7203         (SIGMSK): Likewise.
7204         (__sigsetjmp): Likewise.  Do not use BP_SYM.
7205         * sysdeps/i386/start.S: Do not include "bp-sym.h".
7206         (_start): Do not use BP_SYM.
7207         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
7208         (PARMS): Do not use macros from bp-asm.h.
7209         (DEST): Likewise.
7210         (SRC): Likewise.
7211         (__stpcpy): Likewise.  Do not use BP_SYM.
7212         (stpcpy): Do not use BP_SYM in weak_alias.
7213         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
7214         "bp-asm.h".
7215         (PARMS): Do not use macros from bp-asm.h.
7216         (DEST): Likewise.
7217         (SRC): Likewise.
7218         (LEN): Likewise.
7219         (__stpncpy): Likewise.  Do not use BP_SYM.
7220         (stpncpy): Do not use BP_SYM in weak_alias.
7221         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
7222         (PARMS): Do not use macros from bp-asm.h.
7223         (STR): Likewise.
7224         (CHR): Likewise.
7225         (strchr): Likewise.  Do not use BP_SYM.
7226         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
7227         "bp-asm.h".
7228         (PARMS): Do not use macros from bp-asm.h.
7229         (STR): Likewise.
7230         (CHR): Likewise.
7231         (__strchrnul): Likewise.  Do not use BP_SYM.
7232         (strchrnul): Do not use BP_SYM in weak_alias.
7233         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
7234         "bp-asm.h".
7235         (PARMS): Do not use macros from bp-asm.h.
7236         (STOP): Likewise.
7237         (strcspn): Do not use BP_SYM.
7238         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
7239         "bp-asm.h".
7240         (PARMS): Do not use macros from bp-asm.h.
7241         (STR): Likewise.
7242         (STOP): Likewise.
7243         (strpbrk): Likewise.  Do not use BP_SYM.
7244         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
7245         "bp-asm.h".
7246         (PARMS): Do not use macros from bp-asm.h.
7247         (STR): Likewise.
7248         (CHR): Likewise.
7249         (strrchr): Likewise.  Do not use BP_SYM.
7250         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
7251         (PARMS): Do not use macros from bp-asm.h.
7252         (SKIP): Likewise.
7253         (strspn): Do not use BP_SYM.
7254         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
7255         (PARMS): Do not use macros from bp-asm.h.
7256         (STR): Likewise.
7257         (DELIM): Likewise.
7258         (SAVE): Likewise.
7259         (FUNCTION): Likewise.  Do not use BP_SYM.
7260         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
7261         aliases.
7262         (strtok_r): Likewise.
7263         (__GI___strtok_r): Likewise.
7264         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
7265         (PARMS): Do not use macros from bp-asm.h.
7266         (S1): Likewise.
7267         (S2): Likewise.
7268         (SIZE): Likewise.
7269         (__mpn_sub_n): Do not use BP_SYM.
7270         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
7271         "bp-asm.h".
7272         (PARMS): Do not use macros from bp-asm.h.
7273         (S1): Likewise.
7274         (SIZE): Likewise.
7275         (__mpn_submul_1): Do not use BP_SYM.
7276         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
7277         <bp-sym.h>.
7278         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
7279         and <bp-asm.h>.
7280         (PARMS): Do not use macros from bp-asm.h.
7281         (FLAGS): Likewise.
7282         (PTID): Likewise.
7283         (TLS): Likewise.
7284         (CTID): Likewise.
7285         (__clone): Do not use BP_SYM.
7286         (clone): Do not use BP_SYM in weak_alias.
7287         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
7288         and <bp-asm.h>.
7289         (PARMS): Do not use macros from bp-asm.h.
7290         (LEN): Likewise.
7291         (__mmap64): Do not use BP_SYM.
7292         (mmap64): Do not use BP_SYM in weak_alias.
7293         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
7294         <bp-sym.h> and <bp-asm.h>.
7295         (PARMS): Do not use macros from bp-asm.h.
7296         (__posix_fadvise64_l64): Do not use BP_SYM.
7297         * sysdeps/unix/sysv/linux/i386/semtimedop.S
7298         (PARMS): Do not use macros from bp-asm.h.
7299         (NSOPS): Likewise.
7300         (semtimedop): Do not use BP_SYM.
7301         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
7302         and <bp-asm.h>.
7303
7304 2013-02-21  Allan McRae  <allan@archlinux.org>
7305
7306         * manual/message.texi (Charset conversion in gettext):
7307         Move @end statement to beginning of line.
7308
7309 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7310
7311         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
7312         static.
7313         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
7314         Likewise.
7315
7316         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
7317         (denorm): Likewise.
7318         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
7319         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
7320
7321 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7322
7323         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
7324         tail-call to the resolved function if pltexit isn't needed.
7325
7326 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
7327
7328         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
7329         or Y being zero as being unlikely.
7330         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
7331         Likewise.
7332
7333 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
7334
7335         * manual/nss.texi (System Databases and Name Service Switch):
7336         Remove frobnicate @pxref.
7337
7338 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
7339
7340         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
7341         __attribute__ ((unused)) to __attribute__ ((__unused__)).
7342
7343 2013-02-20  Petr Machata  <pmachata@redhat.com>
7344
7345         * elf/elf.h (R_ARM_TARGET1): New macro.
7346         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
7347         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
7348         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
7349         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
7350         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
7351         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
7352         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
7353         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
7354         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
7355         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
7356         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
7357         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
7358         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
7359         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
7360         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
7361         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
7362         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
7363         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
7364         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
7365         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
7366         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
7367         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
7368         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
7369         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
7370         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
7371         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
7372         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
7373         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
7374         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
7375         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
7376         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
7377         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
7378         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
7379         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
7380         (R_ARM_THM_GOT_BREL12): Likewise.
7381         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
7382         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
7383         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
7384         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
7385         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
7386         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
7387         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
7388         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
7389         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
7390
7391 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
7392
7393         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
7394         __attribute_used__ to __attribute__ ((unused)).
7395
7396 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
7397
7398         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
7399         powerpc mpa.c.
7400         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
7401         comment formatting.
7402         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
7403
7404 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
7405
7406         [BZ #13550]
7407         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
7408         Remove macro.
7409         (ENTER): Remove both macro definitions.
7410         (LEAVE): Likewise.
7411         (CHECK_BOUNDS_LOW): Likewise.
7412         (CHECK_BOUNDS_HIGH): Likewise.
7413         (CHECK_BOUNDS_BOTH): Likewise.
7414         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
7415         (RETURN_BOUNDED_POINTER): Likewise.
7416         (RETURN_NULL_BOUNDED_POINTER): Likewise.
7417         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
7418         (POP_ERRNO_LOCATION_RETURN): Likewise.
7419         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
7420         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
7421         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
7422         macros.
7423         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7424         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
7425         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
7426         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
7427         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
7428         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
7429         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
7430         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
7431         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
7432         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
7433         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
7434         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
7435         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
7436         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
7437         removed macros.
7438         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7439         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
7440         macros.
7441         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7442         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
7443         * sysdeps/i386/i586/memset.S (memset): Likewise.
7444         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
7445         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7446         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
7447         macros.
7448         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7449         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
7450         Change uses of L(2) to L(out).
7451         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
7452         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
7453         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
7454         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
7455         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
7456         removed macros.
7457         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7458         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
7459         macros.
7460         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
7461         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
7462         (RETURN): Do not use macro LEAVE.
7463         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
7464         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
7465         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
7466         * sysdeps/i386/i686/memset.S (memset): Likewise.
7467         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
7468         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
7469         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
7470         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
7471         Likewise.
7472         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
7473         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
7474         L(1_2) and L(1_3) into L(1).
7475         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
7476         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
7477         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7478         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
7479         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
7480         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
7481         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
7482         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7483         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
7484         macros.
7485         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
7486         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
7487         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
7488         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
7489         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
7490         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
7491         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
7492         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
7493         * sysdeps/i386/strcspn.S (strcspn): Likewise.
7494         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
7495         * sysdeps/i386/strrchr.S (strrchr): Likewise.
7496         * sysdeps/i386/strspn.S (strspn): Likewise.
7497         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
7498         conditional code.
7499         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
7500         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
7501         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
7502         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
7503         L(1_3) into L(1_1).
7504         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
7505         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
7506         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
7507         macros.
7508         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
7509
7510 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
7511
7512         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
7513         macro.
7514
7515 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
7516
7517         * math/atest-exp.c (exp_mpn): Remove ROUND.
7518         * math/atest-exp2.c (exp_mpn): Likewise.
7519         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
7520
7521         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
7522         * stdlib/tst-tls-atexit-lib.c: Likewise.
7523         * stdlib/tst-tls-atexit.c: Likewise.
7524
7525 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
7526
7527         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
7528         and __attribute_alloc_size__.
7529
7530 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
7531
7532         * include/programs/xmalloc.h: Change __attribute_alloc_size to
7533         __attribute_alloc_size__.
7534         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
7535         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
7536
7537 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
7538
7539         * include/programs/xmalloc.h: New file.
7540         * catgets/gencat.c: Include it.
7541         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
7542         * elf/pldd.c: Likewise.
7543         * iconv/iconv_charmap.c: Likewise.
7544         * iconv/iconvconfig.c: Likewise.
7545         * iconv/strtab.c: Likewise.
7546         * locale/programs/locale.c: Likewise.
7547         * locale/programs/localedef.h: Likewise.
7548         * locale/programs/simple-hash.c: Likewise.
7549         * nscd/nscd.h: Likewise.
7550         * nss/makedb.c: Likewise.
7551         * sysdeps/generic/ldconfig.h: Likewise.
7552
7553 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
7554
7555         * Versions.def: Add GLIBC_2.18.
7556         * include/link.h (struct link_map): New member l_tls_dtor_count.
7557         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
7558         (__call_tls_dtors): Likewise.
7559         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
7560         __cxa_thread_atexit_impl.
7561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
7562         Likewise.
7563         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
7564         Likewise.
7565         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
7566         Likewise.
7567         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
7568         Likewise.
7569         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
7570         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
7571         Likewise.
7572         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
7573         Likewise.
7574         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
7575         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
7576         Likewise.
7577         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
7578         (tests): Add test case tst-tls-atexit.
7579         (modules-names): Add shared library for tst-tls-atexit.
7580         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
7581         (GLIBC_PRIVATE): Add __call_tls_dtors.
7582         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
7583         for libstdc++.
7584         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
7585         * stdlib/tst-tls-atexit.c: New test case.
7586         * stdlib/tst-tls-atexit-lib.c: New test case.
7587
7588         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
7589
7590         * elf/Versions (ld): Add _dl_find_dso_for_object.
7591         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
7592         * elf/dl-open.c (_dl_find_dso_for_object): New function.
7593         (dl_open_worker): Use _dl_find_dso_for_object.
7594         * elf/dl-sym.c (do_sym): Likewise.
7595         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
7596
7597 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
7598
7599         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
7600         Syntactic changes only.
7601         (_dl_runtime_profile): Do a tail-call to the resolved function.
7602
7603 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
7604
7605         [BZ #13550]
7606         * sysdeps/x86_64/bp-asm.h: Remove file.
7607         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
7608         <bp-sym.h> and <bp-asm.h>.
7609         (__clone): Do not use BP_SYM.
7610         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
7611         <bp-sym.h> and <bp-asm.h>.
7612         * sysdeps/unix/x86_64/sysdep.S: Likewise.
7613         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
7614         "bp-asm.h".
7615         (_setjmp): Do not use BP_SYM.
7616         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
7617         "bp-asm.h".
7618         (setjmp): Do not use BP_SYM.
7619         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
7620         libc_hidden_def.
7621         (mempcpy): Do not use BP_SYM in weak_alias.
7622         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
7623         "bp-asm.h".
7624         (strchr): Do not use BP_SYM.
7625         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
7626         "bp-asm.h".
7627         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
7628         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
7629         (_start): Do not use BP_SYM.
7630         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
7631         "bp-asm.h".
7632         (strcat): Do not use BP_SYM.
7633         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
7634         "bp-asm.h".
7635         (STRCMP): Do not use BP_SYM.
7636         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
7637         "bp-asm.h".
7638         (STRCPY): Do not use BP_SYM.
7639         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
7640         "bp-asm.h".
7641         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
7642         "bp-asm.h".
7643         (FUNCTION): Do not use BP_SYM.
7644         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
7645         weak_alias.
7646         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
7647
7648 2013-02-17  Andreas Jaeger  <aj@suse.de>
7649
7650         * time/Versions: Sort entries.
7651         * string/Versions: Likewise.
7652         * resolv/Versions: Likewise.
7653         * posix/Versions: Likewise.
7654         * iconv/Versions: Likewise.
7655         * elf/Versions: Likewise.
7656         * wcsmbs/Versions: Likewise.
7657
7658 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7659
7660         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
7661         loop termination condition.
7662
7663         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
7664         variable to calculate EZ.
7665         (__sqr): Likewise.
7666
7667         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
7668         the lower precision input.
7669
7670 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
7671
7672         [BZ #13550]
7673         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
7674         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
7675         (run-via-rtld-prefix): Do not handle %-bp tests.
7676         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
7677         (all-object-suffixes): Remove .ob.
7678         (bppfx): Remove variable.
7679         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
7680         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
7681         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
7682         [$(build-bounded) = yes] (libtype.ob): Likewise.
7683         * Makerules (elide-routines.ob): Remove variable.
7684         (do-tests-clean): Do not handle *-bp.out.
7685         (common-mostlyclean): Do not handle *-bp and *-bp.out.
7686         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
7687         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
7688         (tests): Do not include $(tests-bp.out).
7689         (xtests): Do not include $(xtests-bp.out).
7690         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
7691         [$(build-bounded) = yes] ($(addprefix
7692         $(objpfx),$(binaries-bounded))): Remove rule.
7693         ($(objpfx)%-bp.out): Remove rule.
7694         * config.make.in (build-bounded): Remove variable.
7695         * crypt/Makefile [$(build-bounded) = yes]
7696         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
7697         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
7698         append to variable.
7699         [$(build-bounded) = yes] (install-lib): Likewise.
7700         [$(build-bounded) = yes] (generated): Likewise.
7701         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
7702         Remove rule.
7703         * intl/Makefile [$(build-bounded) = yes]
7704         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
7705         * math/Makefile [$(build-bounded) = yes]
7706         ($(tests:%=$(objpfx)%-bp): Likewise.
7707         * misc/Makefile [$(build-bounded) = yes]
7708         ($(objpfx)tst-tsearch-bp): Likewise.
7709         * nptl/Makeconfig (bounded-thread-library): Remove variable.
7710         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
7711         Remove dependency.
7712         * string/Makefile (o-objects.ob): Remove variable.
7713         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
7714         (CFLAGS-.ob): Remove variable.
7715         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
7716         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
7717         both definitions of variable.
7718         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
7719         (ASFLAGS-.ob): Remove variable.
7720
7721 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
7722
7723         [BZ #13550]
7724         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
7725         Remove __BOUNDED_POINTERS__ from condition.
7726         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
7727         * string/bits/string2.h [!__NO_STRING_INLINES &&
7728         !__BOUNDED_POINTERS__]: Likewise.
7729         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
7730         Likewise.
7731         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
7732         Remove conditional code.
7733         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
7734         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
7735         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
7736         condition.
7737
7738         [BZ #13550]
7739         * csu/libc-start.c: Do not include <bp-sym.h>.
7740         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
7741         * elf/dl-open.c: Do not include <bp-sym.h>.
7742         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
7743         * math/fegetenv.c: Do not include <bp-sym.h>.
7744         (fegetenv): Do not use BP_SYM in versioned symbols.
7745         * nptl/sysdeps/pthread/bits/libc-lockP.h
7746         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
7747         <bp-sym.h>.
7748         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7749         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
7750         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7751         (__pthread_mutex_destroy): Likewise.
7752         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7753         (__pthread_mutex_lock): Likewise.
7754         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7755         (__pthread_mutex_trylock): Likewise.
7756         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7757         (__pthread_mutex_unlock): Likewise.
7758         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7759         (__pthread_mutexattr_init): Likewise.
7760         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7761         (__pthread_mutexattr_destroy): Likewise.
7762         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7763         (__pthread_mutexattr_settype): Likewise.
7764         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7765         (__pthread_rwlock_init): Likewise.
7766         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7767         (__pthread_rwlock_destroy): Likewise.
7768         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7769         (__pthread_rwlock_rdlock): Likewise.
7770         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7771         (__pthread_rwlock_tryrdlock): Likewise.
7772         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7773         (__pthread_rwlock_wrlock): Likewise.
7774         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7775         (__pthread_rwlock_trywrlock): Likewise.
7776         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7777         (__pthread_rwlock_unlock): Likewise.
7778         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7779         (__pthread_key_create): Likewise.
7780         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7781         (__pthread_setspecific): Likewise.
7782         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7783         (__pthread_getspecific): Likewise.
7784         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
7785         Likewise.
7786         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7787         (_pthread_cleanup_push_defer): Likewise.
7788         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7789         (_pthread_cleanup_pop_restore): Likewise.
7790         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
7791         (pthread_setcancelstate): Likewise.
7792         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
7793         <bp-sym.h>.
7794         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
7795         (memchr): Do not use BP_SYM in weak_alias.
7796         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
7797         (fegetenv): Do not use BP_SYM in versioned symbols.
7798         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
7799         (fesetenv): Do not use BP_SYM in versioned symbols.
7800         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
7801         (feupdateenv): Do not use BP_SYM in versioned symbols.
7802         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
7803         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
7804         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
7805         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
7806         (open64): Do not use BP_SYM in weak_alias.
7807         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
7808         (fegetenv): Do not use BP_SYM in versioned symbols.
7809         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
7810         (fesetenv): Do not use BP_SYM in versioned symbols.
7811         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
7812         (feupdateenv): Do not use BP_SYM in versioned symbols.
7813         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
7814         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
7815         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
7816         (feraiseexcept): Do not use BP_SYM in versioned symbols.
7817         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
7818         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
7819         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
7820         <bp-sym.h>.
7821         (__libc_start_main): Do not use BP_SYM.
7822
7823 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7824
7825         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
7826         redundant return line.
7827         (norm): Likewise.
7828         (denorm): Likewise.
7829         (dbl_mp): Likewise.
7830         (sub_magnitudes): Likewise.
7831         (__add): Likewise.
7832         (__sub): Likewise.
7833         (__mul): Likewise.
7834         (__inv): Likewise.
7835         (__dvd): Likewise.
7836         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
7837         (norm): Likewise.
7838         (denorm): Likewise.
7839         (dbl_mp): Likewise.
7840         (sub_magnitudes): Likewise.
7841         (__add): Likewise.
7842         (__sub): Likewise.
7843         (__mul): Likewise.
7844         (__inv): Likewise.
7845         (__dvd): Likewise.
7846
7847         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
7848         instead of __mul.
7849         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
7850         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
7851         (cc32): Likewise.
7852
7853         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
7854         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
7855         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
7856         of __mul for squares.
7857         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
7858         function
7859         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
7860         Likewise.
7861         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
7862         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
7863
7864 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
7865
7866         [BZ #13550]
7867         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
7868         code.
7869         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
7870         prototype or function definition.  Rename ubp_* variables and
7871         parameters.  Remove argv definitions conditional on
7872         [__BOUNDED_POINTERS__].
7873         * debug/backtrace.c (__backtrace): Do not use __unbounded.
7874         * elf/dl-runtime.c (_dl_fixup): Likewise.
7875         * include/set-hooks.h (RUN_HOOK): Likewise.
7876         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
7877         definition.
7878         * string/strcpy.c (strcpy): Do not use __unbounded.
7879         * sysdeps/generic/frame.h (struct layout): Likewise.
7880         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
7881         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
7882         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
7883         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
7884         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
7885         (__backtrace): Likewise.
7886         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
7887         use __ptrvalue.
7888         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
7889         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
7890         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
7891         Likewise.
7892         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
7893         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
7894         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
7895         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
7896         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
7897         Do not use __unbounded.
7898         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
7899         Rename __unboundedrlimits parameter to rlimits in prototype.
7900         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
7901         Do not use __unbounded.
7902         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
7903         not use __ptrvalue.
7904         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
7905         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
7906         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
7907         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
7908         __ptrvalue or __unbounded.
7909         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
7910         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
7911         use __unbounded.
7912         (__new_msgctl): Do not use __ptrvalue.
7913         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
7914         __unbounded.
7915         (__libc_msgrcv): Do not use __ptrvalue.
7916         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
7917         startup_info): Do not use __unbounded.
7918         (__libc_start_main): Likewise.  Rename ubp_* variables and
7919         parameters.  Remove argv definitions conditional on
7920         [__BOUNDED_POINTERS__].
7921         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
7922         __ptrvalue.
7923         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
7924         use __unbounded.
7925         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
7926         or __ptrvalue.
7927         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
7928         use __unbounded.
7929         (__new_shmctl): Do not use __ptrvalue.
7930         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
7931         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
7932         Likewise.
7933         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
7934         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
7935         (__libc_sigaction): Likewise.
7936         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
7937         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
7938         Likewise.
7939         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
7940
7941 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
7942
7943         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
7944
7945         * string/mempcpy.c: Implement by calling memcpy.
7946
7947 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
7948
7949         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
7950
7951         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
7952         evaluation.
7953
7954         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
7955         values in the mantissa.
7956
7957         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
7958         minimize writes to Z.
7959         (sub_magnitudes): Simplify code a bit.
7960
7961 2013-02-12  Roland McGrath  <roland@hack.frob.com>
7962
7963         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
7964         from the message.  The linker prefixes all warnings with that already.
7965
7966 2013-02-12  Andreas Schwab  <schwab@suse.de>
7967
7968         [BZ #15078]
7969         * posix/regexec.c (extend_buffers): Add parameter min_len.
7970         (check_matching): Pass minimum needed length.
7971         (clean_state_log_if_needed): Likewise.
7972         (get_subexp): Likewise.
7973         * posix/Makefile (tests): Add bug-regex34.
7974         (bug-regex34-ENV): Define.
7975         * posix/bug-regex34.c: New file.
7976
7977         [BZ #11561]
7978         * posix/regcomp.c (parse_bracket_exp): When looking up collating
7979         elements compare against the byte sequence of it, not its name.
7980         * posix/Makefile (tests): Add bug-regex35.
7981         (bug-regex35-ENV): Define.
7982         * posix/bug-regex35.c: New file.
7983
7984 2013-02-11  Tom de Vries  <tom@codesourcery.com>
7985
7986         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
7987         comment.
7988         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
7989         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
7990         (CHECK_EOL): Add undef.
7991
7992 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
7993
7994         * bits/stdlib-bsearch.h: New file.
7995         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
7996         * stdlib/stdlib.h: Likewise.
7997
7998 2013-02-11  Roland McGrath  <roland@hack.frob.com>
7999
8000         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
8001         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
8002         declaration.
8003         * manual/search.texi (Array Search Function): Add missing const in
8004         lfind prototype.
8005         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
8006         declaration to use rlim_t.
8007         (Basic Scheduling Functions): Remove erroneous const from
8008         sched_getparam prototype.  Remove erroneous * from
8009         sched_get_priority_max and sched_get_priority_min prototypes.
8010         (Resource Usage): Fix summary @comment on vtimes to refer to
8011         sys/vtimes.h rather than vtimes.h.
8012         Add missing *s in vtimes prototype.
8013         (Limits on Resources): Fix ulimit prototype to return long int.
8014         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
8015         prototypes to use long int rather than double.
8016         (BSD Random): Fix initstate and setstate to use char *, not void *.
8017         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
8018         prototype to make second argument 'struct aiocb64 *const[]'.
8019         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
8020         (Status of AIO Operations): Remove erroneous const in aio_return and
8021         aio_return64 prototypes.
8022         (Synchronizing I/O): Fix sync prototype to return void.
8023         * manual/startup.texi (Suboptions): Remove an erroneous const in
8024         getsubopt prototype.
8025         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
8026         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
8027         use size_t rather than int.
8028         (Scanning All Users): Likewise for getpwent_r.
8029         (Setting Groups): Add missing const to setgroups prototype.
8030         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
8031         * manual/socket.texi (Host Names): Fix gethostbyaddr and
8032         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
8033         'const void *' rather than 'const char *'.
8034         (Host Address Functions): Likewise for inet_ntop.
8035         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
8036         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
8037         ssize_t for return value.
8038         (Sending Data): Likewise for send, sendto, sendmsg.
8039         (Socket Option Functions): Add a missing const in setsockopt prototype.
8040         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
8041         use wchar_t for the argument.
8042         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
8043         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
8044         take no arguments.
8045         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
8046         double/float/long double for second argument.
8047         Fix return types of significand, significandf, significandl.
8048         * manual/filesys.texi (Setting Permissions): Use mode_t for second
8049         argument in fchmod prototype.
8050         (File Owner): Use uid_t and gid_t in fchown prototype.
8051         (File Times): Add const to utimes, futimes, and lutimes prototypes.
8052         (Making Special Files): Use mode_t and dev_t in mknod prototype.
8053         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
8054         use 'const struct dirent **' as argument types to CMP function pointer
8055         argument.
8056         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
8057         (File Times): Fix summary magic @comment for struct utimbuf and utime
8058         to refer to utime.h, not time.h.
8059         * manual/string.texi (Argz Functions): Add missing const in
8060         argz_extract and argz_next prototypes.
8061         (Finding Tokens in a String): Likewise for basename.
8062         (String/Array Comparison): Fix typo in wcscasecmp prototype.
8063         (Copying and Concatenation): Fix typo in wmemmove prototype.
8064         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
8065         (Signal Stack): Remove erroneous const in sigstack prototype.
8066         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
8067         prototype.
8068         (Simple Calendar Time): Likewise for stime.
8069         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
8070         prototype.
8071         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
8072         say sys/sysctl.h instead.
8073         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
8074         and vsyslog prototypes.
8075
8076 2013-02-11  Tom de Vries  <tom@codesourcery.com>
8077
8078         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
8079         Remove.
8080
8081 2013-02-11  Roland McGrath  <roland@hack.frob.com>
8082
8083         * misc/sys/mman.h: Fix typo in mremap comment.
8084
8085 2013-02-08  Roland McGrath  <roland@hack.frob.com>
8086
8087         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
8088         the '\0' terminator.
8089
8090 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
8091
8092         [BZ #13550]
8093         * debug/segfault.c: Don't include <bp-checks.h>.
8094         * sysdeps/generic/bp-checks.h: Remove file.
8095         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
8096         (__GETDENTS): Don't use CHECK_N.
8097         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
8098         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
8099         (__getgroups): Don't use CHECK_N.
8100         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
8101         (setgroups): Don't use CHECK_N.
8102         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
8103         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
8104         (__libc_msgrcv): Don't use CHECK_N.
8105         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
8106         (__libc_msgsnd): Don't use CHECK_N.
8107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
8108         <bp-checks.h>.
8109         (__libc_pread): Don't use CHECK_N.
8110         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
8111         include <bp-checks.h>.
8112         (__libc_pread64): Don't use CHECK_N.
8113         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
8114         include <bp-checks.h>.
8115         (__libc_pwrite): Don't use CHECK_N.
8116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
8117         include <bp-checks.h>.
8118         (__libc_pwrite64): Don't use CHECK_N.
8119         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
8120         <bp-checks.h>.
8121         (__libc_pread): Don't use CHECK_N.
8122         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
8123         include <bp-checks.h>.
8124         (__libc_pread64): Don't use CHECK_N.
8125         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
8126         include <bp-checks.h>.
8127         (__libc_pwrite): Don't use CHECK_N.
8128         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
8129         include <bp-checks.h>.
8130         (__libc_pwrite64): Don't use CHECK_N.
8131         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
8132         (do_pread): Don't use CHECK_N.
8133         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
8134         (do_pread64): Don't use CHECK_N.
8135         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
8136         (do_pwrite): Don't use CHECK_N.
8137         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
8138         (do_pwrite64): Don't use CHECK_N.
8139         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
8140         (__libc_readv): Don't use CHECK_N.
8141         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
8142         (semop): Don't use CHECK_N.
8143         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
8144         <bp-checks.h>.
8145         (semtimedop): Don't use CHECK_N.
8146         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
8147         (__libc_pread): Don't use CHECK_N.
8148         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
8149         <bp-checks.h>.
8150         (__libc_pread64): Don't use CHECK_N.
8151         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
8152         <bp-checks.h>.
8153         (__libc_pwrite): Don't use CHECK_N.
8154         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
8155         <bp-checks.h>.
8156         (__libc_pwrite64): Don't use CHECK_N.
8157         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
8158         <bp-checks.h>.
8159         (__libc_msgrcv): Don't use CHECK_N.
8160         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
8161         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
8162         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
8163         (__libc_writev): Don't use CHECK_N.
8164
8165 2013-02-08  Roland McGrath  <roland@hack.frob.com>
8166
8167         * string/strcpy.c: Removed unused variable.
8168
8169         * Makeconfig (+sysdep-includes): Define with := rather than =.
8170         Use an existing include/ subdir of each sysdeps dir before it.
8171
8172 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
8173
8174         * nscd/connection.c (register_traced_file): Comment function.
8175         [HAVE_INOTIFY] (union __inev): Define.
8176         [HAVE_INOTIFY] (inotify_check_files): New function.
8177         [HAVE_INOTIFY] (clear_db_cache): Likewise.
8178         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
8179         clear_db_cache.
8180         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
8181
8182 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
8183
8184         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
8185         loaded if not already and that a failure is permanent.
8186
8187 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
8188
8189         [BZ #15006]
8190         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
8191         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
8192
8193 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
8194
8195         [BZ #13550]
8196         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
8197         (CHECK_1_NULL_OK): Likewise.
8198         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
8199         (__fxstat): Do not use CHECK_1.
8200         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
8201         <bp-checks.h>.
8202         (___fxstat64): Do not use CHECK_1.
8203         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
8204         <bp-checks.h>.
8205         (__fxstatat): Do not use CHECK_1.
8206         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
8207         <bp-checks.h>.
8208         (__fxstatat64): Do not use CHECK_1.
8209         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
8210         <bp-checks.h>.
8211         (__fxstat): Do not use CHECK_1.
8212         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
8213         <bp-checks.h>.
8214         (__fxstatat): Do not use CHECK_1.
8215         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
8216         <bp-checks.h>.
8217         (__getresgid): Do not use CHECK_1.
8218         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
8219         <bp-checks.h>.
8220         (__getresuid): Do not use CHECK_1.
8221         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
8222         <bp-checks.h>.
8223         (__lxstat): Do not use CHECK_1.
8224         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
8225         <bp-checks.h>.
8226         (__old_msgctl): Do not use CHECK_1.
8227         (__new_msgctl): Likewise.
8228         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
8229         <bp-checks.h>.
8230         (__new_setrlimit): Do not use CHECK_1.
8231         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
8232         <bp-checks.h>.
8233         (__old_shmctl): Do not use CHECK_1.
8234         (__new_shmctl): Likewise.
8235         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
8236         <bp-checks.h>.
8237         (__xstat): Do not use CHECK_1.
8238         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
8239         (__lxstat): Do not use CHECK_1.
8240         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
8241         <bp-checks.h>.
8242         (___lxstat64): Do not use CHECK_1.
8243         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
8244         (__old_msgctl): Do not use CHECK_1.
8245         (__new_msgctl): Likewise.
8246         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
8247         <bp-checks.h>.
8248         (__gettimeofday): Do not use CHECK_1.
8249         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
8250         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
8251         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
8252         <bp-checks.h>.
8253         (__gettimeofday): Do not use CHECK_1.
8254         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
8255         (__old_shmctl): Do not use CHECK_1_NULL_OK.
8256         (__new_shmctl): Do not use CHECK_1.
8257         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
8258         <bp-checks.h>.
8259         (do_sigtimedwait): Do not use CHECK_1.
8260         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
8261         <bp-checks.h>.
8262         (do_sigwaitinfo): Do not use CHECK_1.
8263         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
8264         <bp-checks.h>.
8265         (msgctl): Do not use CHECK_1.
8266         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
8267         <bp-checks.h>.
8268         (shmctl): Do not use CHECK_1.
8269         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
8270         (ustat): Do not use CHECK_1.
8271         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
8272         <bp-checks.h>.
8273         (__fxstat): Do not use CHECK_1.
8274         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
8275         <bp-checks.h>.
8276         (__fxstatat): Do not use CHECK_1.
8277         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
8278         <bp-checks.h>.
8279         (__lxstat): Do not use CHECK_1.
8280         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
8281         <bp-checks.h>.
8282         (__xstat): Do not use CHECK_1.
8283         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
8284         (__xstat): Do not use CHECK_1.
8285         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
8286         (___xstat64): Do not use CHECK_1.
8287
8288         [BZ #13550]
8289         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
8290         definitions.
8291         (CHECK_BOUNDS_HIGH): Likewise.
8292         * string/strcpy.c: Do not include <bp-checks.h>.
8293         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
8294
8295 2013-02-07  Roland McGrath  <roland@hack.frob.com>
8296
8297         * nscd/nscd-client.h (__nscd_drop_map_ref):
8298         Add __attribute__ ((unused)).
8299         * nis/nss-nisplus.h (niserr2nss): Likewise.
8300
8301         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
8302         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
8303
8304         * csu/libc-tls.c (init_static_tls, init_slotinfo):
8305         Remove inline keyword.
8306         * include/rounding-mode.h (round_away): Likewise.
8307         * libio/wfileops.c (adjust_wide_data): Likewise.
8308         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
8309         (__m128i_strloadu_tolower): Likewise.
8310         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
8311         (__m128i_strloadu_tolower): Likewise.
8312         * time/mktime.c (ydhms_diff): Likewise.
8313         * locale/elem-hash.h (elem_hash): Likewise.
8314         * locale/setlocale.c (setdata): Likewise.
8315         * posix/regex_internal.h (re_string_char_size_at): Likewise.
8316         (re_string_wchar_at): Likewise.
8317         (bitset_not, bitset_merge, bitset_mask): Likewise.
8318         [!(__GNUC__ > 3)] (inline): Remove macro.
8319         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
8320         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
8321         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
8322         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
8323         * string/memcmp.c (memcmp_bytes): Likewise.
8324         * locale/programs/locarchive.c (compute_hashval): Likewise.
8325         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
8326         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
8327         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
8328         * nss/getent.c (print_rpc, print_protocols): Likewise.
8329         (print_passwd, print_group, print_aliases): Likewise.
8330         * nis/nss-nisplus.h (niserr2nss): Likewise.
8331         * nscd/connections.c (restart_p): Likewise.
8332         Change return type to bool.
8333
8334 2013-02-05  Roland McGrath  <roland@hack.frob.com>
8335
8336         * Makeconfig (all-Depend-files): Add existing
8337         $(sorted-subdirs:=/Depend) files.
8338         (all-subdirs): Remove nss.
8339         * sysdeps/unix/inet/Subdirs: Add it here instead.
8340         * hesiod/Depend: New file.
8341
8342         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
8343         instead of calling alloca.
8344
8345         * io/lseek.c (__lseek): Rename to __libc_lseek.
8346         Define __lseek as an alias.
8347
8348         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
8349
8350 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
8351
8352         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
8353         else clause and remove check for non-standard endianness.
8354
8355 2013-02-04  David S. Miller  <davem@davemloft.net>
8356
8357         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8358
8359 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
8360
8361         [BZ #13550]
8362         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
8363         (__ubp_memchr): Remove prototype.
8364         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
8365         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
8366         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
8367         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
8368         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
8369         Remove alias.
8370         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
8371         (__ubp_memchr): Likewise.
8372         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
8373         (__ubp_memchr): Likewise.
8374         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
8375         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
8376         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
8377         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
8378         CHECK_STRING.
8379         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
8380         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
8381         (__getcwd): Do not use CHECK_STRING.
8382         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
8383         <bp-checks.h>.
8384         (__real_chown): Do not use CHECK_STRING.
8385         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
8386         <bp-checks.h>.
8387         (fchownat): Do not use CHECK_STRING.
8388         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
8389         CHECK_STRING.
8390         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
8391         <bp-checks.h>.
8392         (__lchown): Do not use CHECK_STRING.
8393         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
8394         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
8395         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
8396         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
8397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
8398         include <bp-checks.h>.
8399         (truncate64): Do not use CHECK_STRING.
8400         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
8401         <bp-checks.h>.
8402         (__real_chown): Do not use CHECK_STRING.
8403         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
8404         <bp-checks.h>.
8405         (__lchown): Do not use CHECK_STRING.
8406         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
8407         <bp-checks.h>.
8408         (__chown): Do not use CHECK_STRING.
8409         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
8410         <bp-checks.h>.
8411         (truncate64): Do not use CHECK_STRING.
8412         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
8413         Likewise.
8414         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
8415         (__xmknod): Do not use CHECK_STRING.
8416         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
8417         <bp-checks.h>.
8418         (__xmknodat): Do not use CHECK_STRING.
8419         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
8420         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
8421
8422 2013-02-04  Andreas Schwab  <schwab@suse.de>
8423
8424         [BZ #14142]
8425         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
8426         * include/netdb.h: Likewise for h_errno.
8427         * elf/tst-stackguard1.c: Include <tls.h>.
8428
8429 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
8430
8431         * elf/link.h (struct link_map): Extend the l_addr comment.
8432         * include/link.h (struct link_map): Likewise.
8433
8434 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
8435
8436         [BZ #13550]
8437         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
8438         (BOUNDED_1): Remove macro.
8439         * debug/backtrace.c: Don't include <bp-checks.h>.
8440         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
8441         (__backtrace): Likewise.
8442         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
8443         <bp-checks.h>.
8444         (__backtrace): Don't use BOUNDED_1.
8445         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
8446         <bp-checks.h>.
8447         (__backtrace): Don't use BOUNDED_1.
8448         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
8449         (__backtrace): Don't use BOUNDED_1.
8450         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
8451         (shmat): Don't use BOUNDED_N.
8452
8453 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
8454
8455         [BZ #13550]
8456         * sysdeps/generic/bp-start.h: Remove file.
8457         * csu/libc-start.c: Don't include <bp-start.h>.
8458         (LIBC_START_MAIN): Set up __environ directly instead of using
8459         INIT_ARGV_and_ENVIRON.
8460         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
8461         <bp-start.h>.
8462
8463         [BZ #13550]
8464         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
8465         definitions.
8466         (CHECK_FCNTL): Likewise.
8467         (CHECK_N_PAGES): Likewise.
8468
8469         [BZ #13550]
8470         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
8471         definitions.
8472         (CHECK_SIGSET_NULL_OK): Likewise.
8473         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
8474         <bp-checks.h>.
8475         (sigpending): Don't use CHECK_SIGSET.
8476         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
8477         <bp-checks.h>.
8478         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
8479         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
8480         <bp-checks.h>.
8481         (do_sigsuspend): Don't use CHECK_SIGSET.
8482         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
8483         use CHECK_SIGSET.
8484         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
8485         (do_sigwait): Don't use CHECK_SIGSET.
8486         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
8487         use CHECK_SIGSET.
8488         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
8489         include <bp-checks.h>.
8490         (sigpending): Don't use CHECK_SIGSET.
8491         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
8492         include <bp-checks.h>.
8493         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
8494         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
8495         <bp-checks.h>.
8496         (sigpending): Don't use CHECK_SIGSET.
8497         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
8498         <bp-checks.h>.
8499         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
8500
8501         [BZ #13550]
8502         * sysdeps/generic/bp-semctl.h: Remove file.
8503         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
8504         <bp-checks.h> and <bp-semctl.h>.
8505         (__old_semctl): Don't use CHECK_SEMCTL.
8506         (__new_semctl): Likewise.
8507         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
8508         and <bp-semctl.h>.
8509         (__old_semctl): Don't use CHECK_SEMCTL.
8510         (__new_semctl): Likewise.
8511         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
8512         <bp-checks.h> and <bp-semctl.h>.
8513         (__old_semctl): Don't use CHECK_SEMCTL.
8514         (__new_semctl): Likewise.
8515         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
8516         <bp-checks.h> and <bp-semctl.h>.
8517         (semctl): Don't use CHECK_SEMCTL.
8518
8519         [BZ #13550]
8520         * Makerules (elide-bp-thunks): Remove variable.
8521         (elide-routines.oS): Don't use $(elide-bp-thunks).
8522         (elide-routines.os): Likewise.
8523         (elide-routines.o): Likewise.
8524         (elide-routines.op): Likewise.
8525         (elide-routines.og): Likewise.
8526         (objects): Don't use $(bp-thunks).
8527         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
8528         include.
8529         (common-generated): Do not add s-proto-bp.d.
8530         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
8531         (int): Likewise.
8532         (typ): Likewise.
8533         Do not generate makefile rules for bounded-pointer thunks.
8534         * sysdeps/generic/bp-thunks.h: Remove file.
8535         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
8536         * sysdeps/unix/s-proto-bp.S: Likewise.
8537
8538         [BZ #15062]
8539         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
8540         parts of result separately when argument is not close to line from
8541         -i to i and one part of argument is small.
8542         * math/k_casinhf.c (__kernel_casinhf): Likewise.
8543         * math/k_casinhl.c (__kernel_casinhl): Likewise.
8544         * math/libm-test.inc (cacos_test): Add more tests.
8545         (casin_test): Likewise.
8546         (casinh_test): Likewise.
8547         * sysdeps/i386/fpu/libm-test-ulps: Update.
8548         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8549
8550 2013-01-31  David S. Miller  <davem@davemloft.net>
8551
8552         * po/de.po: Update from translation team.
8553
8554 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
8555
8556         * time/tzfile.c: Include stdint.h for SIZE_MAX.
8557
8558 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
8559
8560         * configure.in (_AC_PROG_CC_C89): New definition.
8561         * configure: Regenerate.
8562
8563         * configure.in (AC_PROG_CPP): New definition.
8564         * configure: Regenerate.
8565
8566 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
8567
8568         * debug/tst-backtrace.h: New file.
8569         * debug/tst-backtrace2.c: Include tst-backtrace.h.
8570         (ret): Remove variable.
8571         (x): Likewise.
8572         (FAIL): Remove macro.
8573         (NO_INLINE): Likewise.
8574         (fn1): Use match function instead of strstr.
8575         * debug/tst-backtrace3.c: Include tst-backtrace.h.
8576         (ret): Remove variable.
8577         (x): Likewise.
8578         (FAIL): Remove macro.
8579         (NO_INLINE): Likewise.
8580         (fn): Use match function instead of strstr.
8581         * debug/tst-backtrace4.c: Include tst-backtrace.h.
8582         (ret): Remove variable.
8583         (x): Likewise.
8584         (FAIL): Remove macro.
8585         (NO_INLINE): Likewise.
8586         (handle_signal): Use match function instead of strstr.
8587         * debug/tst-backtrace5.c: Include tst-backtrace.h.
8588         (ret): Remove variable.
8589         (x): Likewise.
8590         (FAIL): Remove macro.
8591         (NO_INLINE): Likewise.
8592         (handle_signal): Use match function instead of strstr.
8593
8594 2013-01-23  Roland McGrath  <roland@hack.frob.com>
8595
8596         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
8597
8598 2013-01-23  David S. Miller  <davem@davemloft.net>
8599
8600         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
8601         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
8602         argument of CAS if possible.
8603         * sysdeps/sparc/sparc64/bits/atomic.h
8604         (__arch_compare_and_exchange_val_32_acq): Likewise.
8605         (__arch_compare_and_exchange_val_64_acq): Likewise.
8606
8607 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
8608
8609         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
8610         * sysdeps/posix/ulimit.c: ... this.
8611         Include <limits.h>.
8612         * sysdeps/unix/bsd/ulimit.c: Remove file.
8613
8614 2013-01-23  Adam Conrad  <adconrad@0c3.net>
8615
8616         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
8617         (LDFLAGS-tst-array5): Likewise.
8618
8619 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
8620
8621         [BZ #15036]
8622         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
8623         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
8624         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
8625         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
8626
8627 2013-01-21  David S. Miller  <davem@davemloft.net>
8628
8629         * sysdeps/sparc/backtrace.c: New file.
8630         * sysdeps/sparc/sparc32/backtrace.h: New file.
8631         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
8632         * sysdeps/sparc/sparc64/backtrace.h: New file.
8633         * sysdeps/sparc/sparc64/backtrace.c: Delete.
8634         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
8635         -funwind-tables.
8636
8637 2013-01-21  Andreas Schwab  <schwab@suse.de>
8638
8639         [BZ #15020]
8640         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
8641         closed its stdout.
8642
8643 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
8644
8645         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
8646         "mpa2.h".
8647         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
8648
8649 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
8650             Mark Mitchell  <mark@codesourcery.com>
8651             Tom de Vries  <tom@codesourcery.com>
8652             Paul Pluzhnikov  <ppluzhnikov@google.com>
8653
8654         * debug/tst-backtrace2.c: New file.
8655         * debug/tst-backtrace3.c: Likewise.
8656         * debug/tst-backtrace4.c: Likewise.
8657         * debug/tst-backtrace5.c: Likewise.
8658         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
8659         (CFLAGS-tst-backtrace3.c): Likewise.
8660         (CFLAGS-tst-backtrace4.c): Likewise.
8661         (CFLAGS-tst-backtrace5.c): Likewise.
8662         (LDFLAGS-tst-backtrace2): Likewise.
8663         (LDFLAGS-tst-backtrace3): Likewise.
8664         (LDFLAGS-tst-backtrace4): Likewise.
8665         (LDFLAGS-tst-backtrace5): Likewise.
8666         (tests): Add new tests tst-backtrace2, tst-backtrace3,
8667         tst-backtrace4 and tst-backtrace5.
8668
8669 2013-01-18  Anton Blanchard  <anton@samba.org>
8670             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
8671
8672         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
8673         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
8674         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
8675         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
8676         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
8677         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
8678         "+r" and remove output regs list as redundant.  Add explicit inline
8679         asm to specify register of return val to work around compiler codegen
8680         bug.  Remove (int) cast on return value.  Add return type parameter to
8681         use in macro so that this macro does not truncate return value for
8682         64-bit values.
8683         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
8684         pass to INTERNAL_VSYSCALL_NCS.
8685         (INLINE_VSYSCALL): Add 'long int' as return type to
8686         INTERNAL_VSYSCALL_NCS macro invocation.
8687         (INTERNAL_VSYSCALL): Add 'long int' as return type to
8688         INTERNAL_VSYSCALL_NCS macro invocation.
8689         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
8690
8691 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
8692
8693         [BZ #14496]
8694         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
8695         Fix application of SIMD FP exception mask.
8696
8697         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
8698         mp_no from a power of two.
8699         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
8700         __mpexp_twomm1.  Use __pow_mp.
8701
8702         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
8703         multiplication.
8704
8705 2013-01-17  David S. Miller  <davem@davemloft.net>
8706
8707         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8708
8709 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
8710
8711         [BZ #15023]
8712         * include/complex.h: Condition contents on [!_COMPLEX_H].
8713         (__kernel_casinhf): New prototype.
8714         (__kernel_casinh): Likewise.
8715         (__kernel_casinhl): Likewise.
8716         * math/Makefile (libm_calls): Add k_casinh.
8717         * math/k_casinh.c: New file.
8718         * math/k_casinhf.c: Likewise.
8719         * math/k_casinhl.c: Likewise.
8720         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
8721         finite nonzero arguments.
8722         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
8723         finite nonzero arguments.
8724         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
8725         finite nonzero arguments.
8726         * math/s_casinh.c: Do not include <float.h>.
8727         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
8728         * math/s_casinhf.c: Do not include <float.h>.
8729         (__casinhf): Move code for finite nonzero arguments to
8730         k_casinhf.c.
8731         * math/s_casinhl.c: Do not include <float.h>.
8732         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
8733         redefine.
8734         (__casinhl): Move code for finite nonzero arguments to
8735         k_casinhl.c.
8736         * math/libm-test.inc (cacos_test): Add more tests.
8737         * sysdeps/i386/fpu/libm-test-ulps: Update.
8738         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8739
8740 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
8741
8742         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
8743         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
8744         [!HAVE_MREMAP]: Remove [defined linux] case.
8745         * malloc/arena.c: Do not include <malloc-sysdep.h>.
8746
8747 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
8748
8749         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
8750
8751 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
8752
8753         * elf/elf.h (R_386_SIZE32): New relocation.
8754         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
8755         R_386_SIZE32.
8756         (elf_machine_rela): Likewise.
8757         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
8758         R_X86_64_SIZE64 and R_X86_64_SIZE32.
8759
8760 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
8761
8762         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
8763         (FP_FAST_FMA): Do not define.
8764         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
8765         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
8766         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
8767         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
8768         !_SOFT_FLOAT]: Likewise.
8769         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
8770         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
8771         value.
8772         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
8773         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
8774         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
8775         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
8776         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
8777         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
8778         file.
8779
8780 2013-01-16  Andreas Schwab  <schwab@suse.de>
8781
8782         [BZ #14327]
8783         * include/stdlib.h (__mktemp): Add declaration.
8784         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
8785         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
8786
8787 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
8788
8789         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
8790         definitions.
8791         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
8792         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
8793         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
8794         definitions here.
8795         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
8796         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
8797         definitions.
8798         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
8799         and ONE.
8800         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
8801         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
8802         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
8803         definitions.
8804         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
8805         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
8806         definitions.
8807         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
8808
8809         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
8810
8811 2013-01-15  David S. Miller  <davem@davemloft.net>
8812
8813         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
8814         trunc{,f} to libm-sysdep_routes.
8815         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
8816         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
8817         file.
8818         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
8819         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
8820         file.
8821         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
8822         file.
8823         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
8824         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
8825         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
8826         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
8827         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
8828         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
8829         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
8830         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
8831
8832         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
8833         nearbyint{,f} to libm-sysdep_routes.
8834         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
8835         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
8836         New file.
8837         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
8838         file.
8839         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
8840         New file.
8841         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
8842         file.
8843         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
8844         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
8845         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
8846         file.
8847         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
8848         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
8849         file.
8850         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
8851         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
8852         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
8853
8854         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
8855         libc_feholdexcept and libc_fesetenv.
8856
8857 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
8858
8859         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
8860
8861 2013-01-14  David S. Miller  <davem@davemloft.net>
8862
8863         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
8864         (SPARC_ASM_VIS2_IFUNC): Likewise.
8865         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
8866         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
8867         use of 'siam' instruction.
8868         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
8869         Likewise.
8870         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
8871         Likewise.
8872         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
8873         Likewise.
8874         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
8875         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
8876         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
8877         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
8878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
8879         file.
8880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
8881         file.
8882         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
8883         file.
8884         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
8885         file.
8886         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
8887         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
8888         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
8889         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
8890         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
8891         new VIS2 routines.
8892         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
8893         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
8894         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
8895         Likewise.
8896         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
8897         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
8898         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
8899         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
8900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
8901         routines to libm-sysdep_routines.
8902         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
8903
8904         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
8905         fdim/fdimf to libm-sysdep_routines.
8906         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
8907         file.
8908         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
8909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
8910         file.
8911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
8912         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
8913         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
8914         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
8915         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
8916         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
8917         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
8918
8919 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
8920
8921         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
8922         to optimize copies.
8923
8924         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
8925         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8926         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
8927
8928         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
8929         local variable MPTWO.
8930         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
8931         Likewise.
8932
8933 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
8934
8935         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
8936         GLOB_NOESCAPE.
8937
8938 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
8939
8940         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
8941
8942 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
8943
8944         * manual/pattern.texi (glob_t): Document gl_flags.
8945         (glob64_t): Likewise.
8946
8947 2013-01-11  David S. Miller  <davem@davemloft.net>
8948
8949         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
8950         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
8951         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
8952         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
8953         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
8954         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
8955         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
8956         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
8957         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
8958         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
8959         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
8960         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
8961         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
8962
8963         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
8964         sparc V9 rather than using V8 code.
8965         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
8966         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
8967
8968         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
8969         Move to...
8970         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
8971         Here.
8972
8973 2013-01-11  Roland McGrath  <roland@hack.frob.com>
8974
8975         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
8976         not in the main loop.
8977         * configure: Regenerated.
8978
8979 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
8980
8981         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
8982         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
8983         to just #else.
8984         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
8985         [!__GLIBC_HAVE_LONG_LONG] case.
8986         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
8987         condition to just #else.
8988         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
8989         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
8990         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
8991         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
8992         unconditional.
8993         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
8994         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
8995         #elif condition to just #else.
8996         * sysdeps/unix/sysv/linux/sys/sysmacros.h
8997         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
8998         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
8999         #elif condition to just #else.
9000
9001 2013-01-11  Steve Ellcey  <sellcey@mips.com>
9002
9003         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
9004         (EF_MIPS_ARCH_64): Fix value.
9005         (EF_MIPS_ARCH_32R2): New.
9006         (EF_MIPS_ARCH_64R2): New.
9007
9008 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
9009
9010         * Makeconfig (+link-pie-before-libc): New.
9011         (+link-pie-after-libc): Likewise.
9012         (+link-pie-tests): Likewise.
9013         (+link-pie): Rewritten.
9014         (link-before-libc): Remove $(config-LDFLAGS).
9015         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
9016         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
9017         (config-LDFLAGS): Renamed to ...
9018         (rtld-LDFLAGS): This.
9019         (rtld-tests-LDFLAGS): New macro.
9020         (link-libc-rpath-link): Likewise.
9021         (link-libc-tests-rpath-link): Likewise.
9022         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
9023         (link-libc): Prepand $(link-libc-rpath-link).
9024         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
9025         (test-program-prefix): New macro.
9026         (test-via-rtld-prefix): Likewise.
9027         (test-program-cmd): Likewise.
9028         (host-test-program-cmd): Likewise.
9029         * Makefile ($(common-objpfx)testrun.sh): Replace
9030         $(run-program-prefix) with $(test-program-prefix).
9031         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
9032         $(rtld-LDFLAGS).
9033         ($(common-objpfx)shlib.lds): Likewise.
9034         (build-module-helper): Likewise.
9035         ($(common-objpfx)format.lds): Likewise.
9036         * Rules (binaries-pie-tests): New.
9037         (binaries-pie-notests): Likewise.
9038         (binaries-pie): Rewritten.
9039         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
9040         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
9041         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
9042         (make-test-out): Replace $(host-built-program-cmd) with
9043         $(host-test-program-cmd).
9044         * config.make.in (build-hardcoded-path-in-tests): New variable.
9045         * configure.in (--enable-hardcoded-path-in-tests): New configure
9046         option.
9047         (hardcoded_path_in_tests): New AC_SUBST.
9048         * configure: Regenerated.
9049         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
9050         $(built-program-cmd) with $(test-program-cmd).
9051         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
9052         (test_program_cmd): This.
9053         * elf/Makefile ($(objpfx)order.out): Run test with
9054         $(test-program-prefix).
9055         ($(objpfx)order2.out): Likewise.
9056         ($(objpfx)tst-initorder.out): Likewise.
9057         ($(objpfx)tst-initorder2.out): Likewise.
9058         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
9059         $(test-program-cmd).
9060         ($(objpfx)tst-array1-static.out): Likewise.
9061         ($(objpfx)tst-array2.out): Likewise.
9062         ($(objpfx)tst-array3.out): Likewise.
9063         ($(objpfx)tst-array4.out): Likewise.
9064         ($(objpfx)tst-array5.out): Likewise.
9065         ($(objpfx)tst-array5-static.out): Likewise.
9066         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
9067         $(test-program-cmd).
9068         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
9069         $(run-program-prefix) with $(test-program-prefix).
9070         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
9071         (test_program_prefix): This.
9072         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
9073         $(run-program-prefix) with $(test-program-prefix).
9074         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
9075         (test_program_prefix): This.
9076         * iconvdata/tst-tables.sh: Likewise.
9077         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
9078         $(run-program-prefix) with $(test-program-prefix).
9079         ($(objpfx)tst-translit.out): Likewise.
9080         ($(objpfx)tst-gettext2.out): Likewise.
9081         ($(objpfx)tst-gettext4.out): Likewise.
9082         ($(objpfx)tst-gettext6.out): Likewise.
9083         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
9084         (test_program_prefix): This.
9085         * intl/tst-gettext2.sh: Likewise.
9086         * intl/tst-gettext4.sh  Likewise.
9087         * intl/tst-gettext6.sh: Likewise.
9088         * intl/tst-translit.sh: Likewise.
9089         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
9090         with $(test-program-cmd).
9091         * libio/Makefile ($(objpfx)test-freopen.out): Replace
9092         $(run-program-prefix) with $(test-program-prefix).
9093         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
9094         (test_program_prefix): This.
9095         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
9096         $(run-program-prefix) with $(test-program-prefix).
9097         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
9098         (test_program_prefix): This.
9099         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
9100         * posix/Makefile ($(objpfx)globtest.out): Replace
9101         $(run-via-rtld-prefix) and $(test-wrapper) with
9102         $(test-program-prefix) and $(test-via-rtld-prefix).
9103         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
9104         $(test-program-prefix).
9105         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
9106         $(host-test-program-cmd).
9107         (tst-spawn-ARGS): Likewise.
9108         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
9109         $(test-program-prefix).
9110         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
9111         (test_via_rtld_prefix): This.
9112         (test_wrapper): Renamed to ...
9113         (test_program_prefix): This.
9114         (run_program_prefix): Replaced by test_program_prefix.
9115         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
9116         (test_program_prefix): This.
9117         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
9118         with $(host-test-program-cmd).
9119         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
9120         $(run-program-prefix) with $(test-program-prefix).
9121         ($(objpfx)tst-printf.out): Likewise.
9122         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
9123         $(test-program-cmd).
9124         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
9125         (test_program_prefix): This.
9126         * stdio-common/tst-unbputc.sh: Likewise.
9127         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
9128         $(run-program-prefix) with $(test-program-prefix).
9129         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
9130         (test_program_prefix): This.
9131         * string/Makefile ($(objpfx)tst-svc.out):  Replace
9132         $(built-program-cmd) with $(test-program-cmd).
9133
9134 2013-01-11  Andreas Jaeger  <aj@suse.de>
9135
9136         [BZ #15003]
9137         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
9138         value. Sync with Linux 3.7.
9139
9140 2013-01-10  David S. Miller  <davem@davemloft.net>
9141
9142         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
9143         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
9144         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
9145
9146 2013-01-10  Roland McGrath  <roland@hack.frob.com>
9147
9148         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
9149         never set.
9150         * configure: Regenerated.
9151
9152 2013-01-10  David S. Miller  <davem@davemloft.net>
9153
9154         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
9155         sparc V9 rather than using V8 code.
9156         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
9157         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
9158
9159 2013-01-10  Roland McGrath  <roland@hack.frob.com>
9160
9161         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
9162         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
9163         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
9164         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
9165         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
9166         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
9167         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
9168         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
9169         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
9170         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
9171         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
9172         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
9173         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
9174         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
9175         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
9176         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
9177         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
9178         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
9179         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
9180         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
9181         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
9182         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
9183         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
9184         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
9185         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
9186         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
9187         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
9188
9189 2013-01-10  David S. Miller  <davem@davemloft.net>
9190
9191         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9192
9193 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
9194
9195         * posix/Makefile (tests-static): New variable.
9196         (tests): Add $(tests-static).
9197         (tst-exec-static-ARGS): New variable.
9198         (tst-spawn-static-ARGS): Likewise.
9199         * posix/tst-exec-static.c: New file.
9200         * posix/tst-spawn-static.c: Likewise.
9201         * posix/tst-exec.c: Support run directly.
9202         * posix/tst-spawn.c: Likewise.
9203
9204 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
9205
9206         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
9207         long.
9208         * math/bits/mathcalls.h (llrint): Likewise.
9209         (llround): Likewise.
9210         * stdlib/stdlib.h (struct drand48_data): Likewise.
9211         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
9212         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
9213         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
9214         Likewise.
9215         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
9216         Likewise.
9217         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
9218         (elf_greg_t): Likewise.
9219         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
9220         (__jmp_buf): Likewise.
9221         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
9222         definitions.
9223         (llrint): Likewise, for all definitions.
9224         (llrintl): Likewise.
9225
9226         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
9227         Remove [__GNUC__] condition.
9228         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
9229         condition to just [__USE_ISOC99].
9230         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
9231
9232 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
9233
9234         [BZ #14200]
9235         * sysdeps/unix/sysv/linux/x86/bits/environments.h
9236         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
9237         defined.
9238         (_POSIX_V6_ILP32_OFF32): Likewise.
9239         (_XBS5_ILP32_OFF32): Likewise.
9240         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
9241         (__ILP32_OFFBIG_LDFLAGS): Likewise.
9242
9243 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
9244
9245         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
9246
9247         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
9248         doubles __mpexp_twomm1.  Adjust usage.
9249         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
9250         Remove.
9251
9252 2013-01-10  Andreas Schwab  <schwab@suse.de>
9253
9254         [BZ #14964]
9255         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
9256         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
9257
9258 2013-01-09  David S. Miller  <davem@davemloft.net>
9259
9260         [BZ #15003]
9261         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
9262         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
9263         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
9264         TCP_FASTOPEN): Define.
9265         (tcp_repair_opt): New structure.
9266         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
9267         enum values.
9268         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
9269         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
9270         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
9271         (tcp_cookie_transactions): New structure.
9272
9273 2013-01-09  Anton Blanchard  <anton@samba.org>
9274
9275         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
9276         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
9277         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
9278         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
9279
9280 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
9281
9282         * include/features.h (__USE_ANSI): Remove.
9283
9284 2013-01-09  Roland McGrath  <roland@hack.frob.com>
9285
9286         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
9287
9288         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
9289
9290 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
9291
9292         * sysdeps/s390/fpu/libm-test-ulps: Update.
9293
9294         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9295
9296         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
9297         (__acr): Likewise.
9298         (__cpy): Likewise.
9299         (norm): Likewise.
9300         (denorm): Likewise.
9301         (__mp_dbl): Likewise.
9302         (__dbl_mp): Likewise.
9303         (add_magnitudes): Likewise.
9304         (sub_magnitudes): Likewise.
9305         (__add): Likewise.
9306         (__sub): Likewise.
9307         (__mul): Likewise.
9308         (__inv): Likewise.
9309         (__dvd): Likewise.
9310         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
9311         (__acr): Likewise.
9312         (__cpy): Likewise.
9313         (norm): Likewise.
9314         (denorm): Likewise.
9315         (__mp_dbl): Likewise.
9316         (__dbl_mp): Likewise.
9317         (add_magnitudes): Likewise.
9318         (sub_magnitudes): Likewise.
9319         (__add): Likewise.
9320         (__sub): Likewise.
9321         (__mul): Likewise.
9322         (__inv): Likewise.
9323         (__dvd): Likewise.
9324         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
9325         (__acr): Likewise.
9326         (__cpy): Likewise.
9327         (norm): Likewise.
9328         (denorm): Likewise.
9329         (__mp_dbl): Likewise.
9330         (__dbl_mp): Likewise.
9331         (add_magnitudes): Likewise.
9332         (sub_magnitudes): Likewise.
9333         (__add): Likewise.
9334         (__sub): Likewise.
9335         (__mul): Likewise.
9336         (__inv): Likewise.
9337         (__dvd): Likewise.
9338
9339 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
9340
9341         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
9342         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
9343         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
9344         2 && __USE_EXTERN_INLINES]: Likewise.
9345
9346 2013-01-08  Andreas Jaeger  <aj@suse.de>
9347
9348         [BZ# 14985]
9349         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
9350         Remove.
9351         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
9352         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
9353
9354 2013-01-07  Anton Blanchard  <anton@samba.org>
9355
9356         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
9357         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
9358         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
9359         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
9360         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
9361         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
9362         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
9363         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
9364         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9365         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
9366         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
9367         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
9368         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
9369         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
9370         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
9371         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
9372         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
9373         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
9374         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
9375         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
9376         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
9377         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
9378         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
9379         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
9380         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
9381         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
9382         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
9383         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
9384         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
9385         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
9386         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
9387         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
9388         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
9389         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
9390         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
9391         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
9392         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
9393         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
9394         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
9395         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
9396         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
9397         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
9398         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
9399
9400 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
9401
9402         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
9403         (__MALLOC_PMT): Likewise.
9404         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
9405         [__GNUC__], only on [_LIBC].
9406         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
9407         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
9408         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
9409         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
9410         forward declaration.
9411         (realloc_hook_ini): Likewise.
9412         (memalign_hook_ini): Likewise.
9413         (__libc_memalign): Do not use __MALLOC_PMT in variable
9414         declaration.
9415         (__libc_valloc): Likewise.
9416         (__libc_pvalloc): Likewise.
9417         (__libc_calloc): Likewise.
9418         (__posix_memalign): Likewise.
9419
9420         [BZ #14996]
9421         * math/s_casinh.c: Include <float.h>.
9422         (__casinh): Do not do computation with squaring and square root
9423         for large arguments.
9424         * math/s_casinhf.c: Include <float.h>.
9425         (__casinhf): Do not do computation with squaring and square root
9426         for large arguments.
9427         * math/s_casinhl.c: Include <float.h>.
9428         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
9429         (__casinhl): Do not do computation with squaring and square root
9430         for large arguments.
9431         * math/libm-test.inc (casin_test): Add more tests.
9432         (casinh_test): Likewise.
9433         * sysdeps/i386/fpu/libm-test-ulps: Update.
9434         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9435
9436 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
9437
9438         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
9439         (__x86_64_raw_data_cache_size): Likewise.
9440         (__x86_64_data_cache_size_half): Likewise.
9441         (__x86_64_raw_data_cache_size_half): Likewise.
9442         (__x86_64_shared_cache_size): Likewise.
9443         (__x86_64_raw_shared_cache_size): Likewise.
9444         (__x86_64_shared_cache_size_half): Likewise.
9445         (__x86_64_raw_shared_cache_size_half): Likewise.
9446         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
9447         to ...
9448         (__x86_data_cache_size): This.
9449         (__x86_64_raw_data_cache_size): Renamed to ...
9450         (__x86_raw_data_cache_size): This.
9451         (__x86_64_data_cache_size_half): Renamed to ...
9452         (__x86_data_cache_size_half): This.
9453         (__x86_64_raw_data_cache_size_half): Renamed to ...
9454         (__x86_raw_data_cache_size_half): This.
9455         (__x86_64_shared_cache_size): Renamed to ...
9456         (__x86_shared_cache_size): This.
9457         (__x86_64_raw_shared_cache_size): Renamed to ...
9458         (__x86_raw_shared_cache_size): This.
9459         (__x86_64_shared_cache_size_half): Renamed to ...
9460         (__x86_shared_cache_size_half): This.
9461         (__x86_64_raw_shared_cache_size_half): Renamed to ...
9462         (__x86_raw_shared_cache_size_half): This.
9463         * sysdeps/x86_64/memcpy.S: Updated.
9464         * sysdeps/x86_64/memset.S: Likewise.
9465         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
9466         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
9467         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
9468
9469 2013-01-04  David S. Miller  <davem@davemloft.net>
9470
9471         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9472
9473 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
9474
9475         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
9476         1 to avoid redefinition warning.
9477         (__USE_GNU): Don't define.
9478         (init_signaling_nan): Protoize.
9479
9480         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9481
9482 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
9483
9484         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
9485         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
9486         (__cpymn): Likewise.
9487         (norm): Remove commented code.
9488         (denorm): Likewise.
9489         (__mp_dbl): Likewise.
9490         (__inv): Likewise.
9491         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
9492         (__cpymn): Likewise.
9493         (norm): Remove commented code.
9494         (denorm): Likewise.
9495         (__mp_dbl): Likewise.
9496         (__inv): Likewise.
9497
9498         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
9499         mp_no value for 1.0 and 2.0.
9500         (norm): Use RADIXI instead of radixi.d.
9501         (denorm): Likewise.
9502         (__mul): Use 0.0 instead of zero.d.
9503         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
9504         mp_no value for 1.0 and 2.0.
9505         (norm): Use RADIXI instead of radixi.d.
9506         (denorm): Likewise.
9507         (__mul): Use 0.0 instead of zero.d.
9508
9509 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
9510
9511         [BZ #14994]
9512         * math/s_casinh.c (__casinh): Reduce finite argument to first
9513         quadrant then set signs of results at the end.
9514         * math/s_casinhf.c (__casinhf): Likewise.
9515         * math/s_casinhl.c (__casinhl): Likewise.
9516         * math/libm-test.inc (casin_test): Add more tests.
9517         (casinh_test): Likewise.
9518         * sysdeps/i386/fpu/libm-test-ulps: Update.
9519         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9520
9521 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
9522
9523         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
9524
9525         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
9526
9527         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
9528         declarations.
9529         (denorm): Likewise.
9530         (__mp_dbl): Likewise.
9531         (__inv): Likewise.
9532
9533         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
9534         and adjust the header comment.
9535
9536         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
9537         variable name from declaration.
9538
9539 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
9540
9541         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
9542         Initialize COMMON_CPUID_INDEX_7 element.
9543         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
9544         (CPUID_RTM): Likewise.
9545         (HAS_RTM): Likewise.
9546         (COMMON_CPUID_INDEX_7): New enum.
9547
9548 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
9549
9550         [BZ #14981]
9551         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
9552         size is zero, record memory as freed.
9553
9554 2013-01-03  Andreas Jaeger  <aj@suse.de>
9555
9556         * po/ia.po: Add new Interlingua translation.
9557
9558 2012-01-03  Allan McRae  <allan@archlinux.org>
9559
9560         * locale/programs/localedef.c: Fix description of '--posix' flag.
9561
9562 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
9563
9564         * NEWS: Update dates in second copyright notice.
9565         * README: Update copyright dates in example.
9566         * manual/libc.texinfo: Update copyright dates.
9567         * scripts/test-installation.pl: Update copyright date in --version
9568         output.
9569
9570         * hurd/ctty-input.c: Fix copyright notice formatting.
9571         * hurd/ctty-output.c: Likewise.
9572         * hurd/dtable.c: Likewise.
9573         * hurd/hurd-raise.c: Likewise.
9574         * hurd/hurdprio.c: Likewise.
9575         * hurd/msgportdemux.c: Likewise.
9576         * misc/sys/file.h: Likewise.
9577         * misc/sys/ioctl.h: Likewise.
9578         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
9579         * sysdeps/mach/hurd/chdir.c: Likewise.
9580         * sysdeps/mach/hurd/fchdir.c: Likewise.
9581         * sysdeps/mach/hurd/rename.c: Likewise.
9582         * sysdeps/mach/hurd/rmdir.c: Likewise.
9583         * sysdeps/mach/hurd/seekdir.c: Likewise.
9584         * sysdeps/mach/hurd/setsid.c: Likewise.
9585         * sysdeps/posix/wait3.c: Likewise.
9586
9587         * All files with FSF copyright notices: Update copyright dates
9588         using scripts/update-copyrights.
9589         * intl/plural.c: Regenerated.
9590         * locale/programs/charmap-kw.h: Likewise.
9591         * locale/programs/locfile-kw.h: Likewise.
9592
9593 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
9594
9595         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
9596         four values.
9597
9598         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
9599         calculation loop and add branch prediction.
9600
9601         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
9602         check access beyond bounds of m1np.
9603
9604         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
9605         MPTWO.
9606         (__inv): Remove local variable MPTWO to use the global
9607         constant.
9608         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
9609         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
9610         variable MPTWO.
9611         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
9612         MP3HALFS static const.
9613
9614 2013-01-01  David S. Miller  <davem@davemloft.net>
9615
9616         * po/ca.po: Update from translation team.
9617
9618 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
9619
9620         * scripts/update-copyrights: New file.
9621         * Makeconfig: Reformat copyright notice.
9622         * ctype/ctype.h: Likewise.
9623         * debug/swprintf_chk.c: Likewise.
9624         * elf/dl-cache.c: Likewise.
9625         * elf/dl-debug.c: Likewise.
9626         * elf/dl-object.c: Likewise.
9627         * grp/initgroups.c: Likewise.
9628         * hurd/Makefile: Likewise.
9629         * hurd/hurd/signal.h: Likewise.
9630         * hurd/hurdfault.c: Likewise.
9631         * hurd/hurdioctl.c: Likewise.
9632         * hurd/hurdlookup.c: Likewise.
9633         * hurd/intr-msg.c: Likewise.
9634         * iconv/gconv_open.c: Likewise.
9635         * libio/swprintf.c: Likewise.
9636         * locale/lc-ctype.c: Likewise.
9637         * locale/nl_langinfo.c: Likewise.
9638         * mach/Machrules: Likewise.
9639         * mach/Makefile: Likewise.
9640         * malloc/obstack.h: Likewise.
9641         * manual/Makefile: Likewise.
9642         * manual/tsort.awk: Likewise.
9643         * misc/bits/stab.def: Likewise.
9644         * nis/nis_print_group_entry.c: Likewise.
9645         * nis/nis_table.c: Likewise.
9646         * nis/nss_compat/compat-pwd.c: Likewise.
9647         * nis/nss_compat/compat-spwd.c: Likewise.
9648         * po/Makefile: Likewise.
9649         * posix/fnmatch.c: Likewise.
9650         * posix/regex.h: Likewise.
9651         * resolv/Makefile: Likewise.
9652         * resolv/nss_dns/dns-network.c: Likewise.
9653         * resolv/res_hconf.c: Likewise.
9654         * scripts/gen-sorted.awk: Likewise.
9655         * soft-fp/soft-fp.h: Likewise.
9656         * stdio-common/printf.h: Likewise.
9657         * stdlib/monetary.h: Likewise.
9658         * stdlib/random.c: Likewise.
9659         * stdlib/random_r.c: Likewise.
9660         * sysdeps/generic/Makefile: Likewise.
9661         * sysdeps/gnu/Makefile: Likewise.
9662         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9663         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9664         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9665         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9666         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9667         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9668         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9669         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
9670         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9671         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9672         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
9673         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
9674         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
9675         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
9676         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
9677         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
9678         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
9679         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9680         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9681         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9682         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9683         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9684         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9685         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
9686         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
9687         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
9688         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
9689         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
9690         * sysdeps/mach/hurd/errnos.awk: Likewise.
9691         * sysdeps/mach/hurd/fork.c: Likewise.
9692         * sysdeps/mach/hurd/getcwd.c: Likewise.
9693         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
9694         * sysdeps/mach/hurd/mmap.c: Likewise.
9695         * sysdeps/mach/hurd/utimes.c: Likewise.
9696         * sysdeps/mach/hurd/xmknod.c: Likewise.
9697         * sysdeps/posix/profil.c: Likewise.
9698         * sysdeps/posix/readdir_r.c: Likewise.
9699         * sysdeps/powerpc/bits/mathdef.h: Likewise.
9700         * sysdeps/powerpc/bits/setjmp.h: Likewise.
9701         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
9702         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
9703         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
9704         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
9705         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
9706         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
9707         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
9708         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
9709         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
9710         * sysdeps/pthread/lio_listio.c: Likewise.
9711         * sysdeps/sparc/dl-procinfo.h: Likewise.
9712         * sysdeps/unix/i386/sysdep.S: Likewise.
9713         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
9714         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
9715         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
9716         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
9717         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
9718         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
9719         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
9720         * sysdeps/unix/sysv/linux/speed.c: Likewise.
9721         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
9722         * sysdeps/wordsize-32/divdi3.c: Likewise.
9723         * time/sys/time.h: Likewise.
9724         * wcsmbs/Makefile: Likewise.
9725
9726 2013-01-01  David S. Miller  <davem@davemloft.net>
9727
9728         * po/fr.po: Update from translation team.
9729
9730         * catgets/gencat.c: Update copyright year.
9731         * csu/version.c: Likewise.
9732         * debug/catchsegv.sh: Likewise.
9733         * debug/pcprofiledump.c: Likewise.
9734         * debug/xtrace.sh: Likewise.
9735         * elf/ldconfig.c: Likewise.
9736         * elf/ldd.bash.in: Likewise.
9737         * elf/pldd.c: Likewise.
9738         * elf/sotruss.ksh: Likewise.
9739         * elf/sprof.c: Likewise.
9740         * iconv/iconv_prog.c: Likewise.
9741         * iconv/iconvconfig.c: Likewise.
9742         * locale/programs/locale.c: Likewise.
9743         * locale/programs/localedef.c: Likewise.
9744         * login/programs/pt_chown.c: Likewise.
9745         * malloc/memusage.sh: Likewise.
9746         * malloc/memusagestat.c: Likewise.
9747         * malloc/mtrace.pl: Likewise.
9748         * nscd/nscd.c: Likewise.
9749         * nss/getent.c: Likewise.
9750         * nss/makedb.c: Likewise.
9751         * posix/getconf.c: Likewise.
9752
9753 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
9754
9755         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
9756         numbers.
9757
9758 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
9759
9760         * math/bits/mathcalls.h (modf): Use __nonnull.
9761
9762 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
9763
9764         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
9765         (split): Use macro CN instead of the bare value.
9766         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
9767         could be used.
9768         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
9769         instead of the bare value.
9770         (power1): Likewise.
9771
9772 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9773
9774         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
9775         __ATAN_TWOM.
9776         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
9777
9778         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
9779         their values.
9780         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
9781         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
9782         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
9783         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
9784
9785 2012-12-28  Andreas Jaeger  <aj@suse.de>
9786
9787         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
9788         values are from Linux 3.7.
9789
9790         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
9791         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
9792
9793 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9794
9795         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
9796         TRUE case.
9797
9798         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
9799         (norm): Likewise.
9800         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
9801         variables with preprocessor constants.
9802         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
9803         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
9804         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
9805
9806 2012-12-27  Bruno Haible  <bruno@clisp.org>
9807
9808         [BZ #14317]
9809         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
9810         only if needed.
9811
9812 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
9813
9814         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
9815         and use variable directly.
9816         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
9817
9818         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
9819         MPONE.
9820         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
9821         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
9822         variable MPONE.
9823         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
9824         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
9825         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
9826         include directive.  Remove local variable MPONE.
9827         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
9828         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
9829         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
9830
9831 2012-12-25  David S. Miller  <davem@davemloft.net>
9832
9833         * version.h (RELEASE): Set to "development".
9834         (VERSION): Set to "2.17.90".
9835         * NEWS: Add 2.18 section.
9836
9837 2012-12-21  David S. Miller  <davem@davemloft.net>
9838
9839         * po/hr.po: Update from translation team.
9840
9841 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9842
9843         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
9844
9845 2012-12-19  Steve Ellcey  <sellcey@mips.com>
9846
9847         * NEWS:  Mention new memcpy for MIPS.
9848
9849 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9850
9851         * manual/contrib.texi (Contributors): Spelling correction.
9852
9853 2012-12-15  David S. Miller  <davem@davemloft.net>
9854
9855         * po/ru.po: Update from translation team.
9856
9857 2012-12-13  David S. Miller  <davem@davemloft.net>
9858
9859         * NEWS: Mention IFUNC testsuite enhancements.
9860
9861         * po/pl.po: Update from translation team.
9862         * po/bg.po: Likewise.
9863
9864         * manual/contrib.texi (Contributors): Update entries for Hongjiu
9865         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
9866
9867 2012-12-11  David S. Miller  <davem@davemloft.net>
9868
9869         * po/sv.po: Update from translation team.
9870
9871         * po/vi.po: Update from translation team.
9872
9873         * po/cs.po: Update from translation team.
9874
9875         * po/de.po: Update from translation team.
9876         * po/eo.po: Likewise.
9877         * po/nl.po: Likewise.
9878
9879 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
9880
9881         [BZ #14246]
9882         * manual/argp.texi (Argp Helper Functions): Move node to follow
9883         Argp Parsing State.
9884
9885         [BZ #14872]
9886         * manual/conf.texi (Limits on File System Capacity): Mention if
9887         terminating null is included in the max size.
9888
9889 2012-12-10  Andreas Jaeger  <aj@suse.de>
9890
9891         * po/cs.po: Update from translation team.
9892
9893 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
9894
9895         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
9896         void pointer and cast to uintptr_t.
9897         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
9898         path.
9899         * sysdeps/s390/s390-64/memcpy.S: Likewise.
9900         * sysdeps/s390/s390-64/memset.S: Likewise.
9901
9902 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
9903
9904         [BZ #14833]
9905         * menual/message.texi (Message Translation): Fix typos.
9906         (Helper programs for gettext): Likewise.
9907
9908 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
9909
9910         [BZ #14898]
9911         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
9912         Change to -1.
9913
9914 2012-12-07  David S. Miller  <davem@davemloft.net>
9915
9916         * po/libc.pot: Update.
9917
9918 2012-12-07  Richard Henderson  <rth@redhat.com>
9919
9920         [BZ #10114]
9921         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
9922         normal/normal case to before the switch.
9923         (_FP_DIV): Likewise.
9924
9925 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
9926             Mike Frysinger  <vapier@gentoo.org>
9927
9928         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
9929         check for __NR_fadvise64_64.
9930
9931 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
9932
9933         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
9934         0, not just to plain "0" as a statement.
9935         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
9936         with cw.
9937
9938 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
9939
9940         * NEWS: Use sourceware.org in Bugzilla URL.
9941
9942 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
9943
9944         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
9945         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
9946
9947         * stdio-common/tst-put-error.c (do_test): Add newline to the
9948         padded test to ensure flush.
9949
9950 2012-12-05  Jeff Law  <law@redhat.com>
9951
9952         * sunrpc/etc.rpc (fedfs_admin): Add entry.
9953
9954 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
9955
9956         * README: Don't refer to ports add-on as distributed separately.
9957         Mention AArch64 in list of systems supported in the ports add-on.
9958
9959         * LICENSES: Add more non-FSF copyright and license notices.
9960
9961         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
9962         ((unused)).
9963
9964         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
9965
9966         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
9967         10000 as width of padded output.
9968
9969 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
9970
9971         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
9972
9973         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
9974         variable LX with __attribute__ ((unused)).
9975         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
9976         Likewise.
9977         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
9978         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
9979         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
9980         with __attribute__ ((unused)).
9981
9982 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
9983
9984         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
9985
9986 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
9987
9988         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
9989         (CFLAGS-nldbl-acos.c): New variable.
9990         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
9991         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
9992         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
9993         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
9994         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
9995         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
9996         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
9997         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
9998         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
9999         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
10000         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
10001         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
10002         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
10003         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
10004         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
10005         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
10006         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
10007         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
10008         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
10009         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
10010         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
10011         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
10012         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
10013         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
10014         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
10015         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
10016         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
10017         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
10018         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
10019         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
10020         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
10021         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
10022         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
10023         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
10024         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
10025         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
10026         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
10027         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
10028         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
10029         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
10030         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
10031         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
10032         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
10033         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
10034         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
10035         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
10036         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
10037         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
10038         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
10039         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
10040         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
10041         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
10042         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
10043         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
10044         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
10045         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
10046         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
10047         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
10048         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
10049         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
10050         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
10051         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
10052         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
10053         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
10054         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
10055         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
10056         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
10057         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
10058         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
10059         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
10060         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
10061         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
10062         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
10063         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
10064         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
10065         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
10066         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
10067         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
10068         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
10069         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
10070         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
10071         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
10072         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
10073         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
10074         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
10075         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
10076         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
10077         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
10078         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
10079         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
10080         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
10081         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
10082         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
10083         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
10084         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
10085         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
10086         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
10087
10088         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
10089         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
10090
10091         [BZ #14914]
10092         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
10093         whole low double instead of just low 47 bits when splitting values
10094         into two parts.
10095
10096 2012-12-03  Allan McRae  <allan@archlinux.org>
10097
10098         * manual/stdio.texi (Predefined Printf Handlers): Remove
10099         @hsep and @vsep usage.
10100
10101 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
10102
10103         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
10104         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
10105
10106 2012-12-03  Jeff Law  <law@redhat.com>
10107
10108         * time/sys/time.h (settimeofday): Do not mark TV argument
10109         as __nonnull.
10110
10111 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
10112
10113         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
10114         when currently writing and seek to current position when not.
10115         * libio/Makefile (tests): Remove bug-fclose1.
10116         * libio/bug-fclose1.c: Delete.
10117
10118 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
10119
10120         * manual/arith.texi (feenableexcept): Fix typo.
10121         (fedisableexcept): Likewise.
10122
10123 2012-11-30  Roland McGrath  <roland@hack.frob.com>
10124
10125         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
10126         second, differently-typed declaration, rather than a cast.
10127
10128 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
10129
10130         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
10131         * include/rpc/svc.h: ... here.
10132
10133 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
10134
10135         [BZ #13013]
10136         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
10137         depending n and resplen2 to catch cases where answer
10138         equals answerp2.
10139
10140 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
10141
10142         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
10143         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
10144
10145 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
10146
10147         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
10148
10149 2012-11-29  Roland McGrath  <roland@hack.frob.com>
10150
10151         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
10152
10153 2012-11-28  Jeff Law  <law@redhat.com>
10154
10155         [BZ #13761]
10156         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
10157         dataset_temporary.  Track alloca usage into alloca_used.
10158         If dataset is large allocate and release it via malloc/free.
10159
10160 2012-06-04  Florian Weimer  <fweimer@redhat.com>
10161
10162         [BZ #14197]
10163         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
10164
10165 2012-11-28  David S. Miller  <davem@davemloft.net>
10166
10167         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10168
10169 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
10170
10171         [BZ #14803]
10172         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
10173         of pi/2 rounded to nearest to 64 bits.
10174         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
10175         nearest to 64 bits.
10176         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
10177         bits.
10178
10179 2012-11-28  Jeff Law <law@redhat.com>
10180             Martin Osvald <mosvald@redhat.com>
10181
10182         [BZ #14889]
10183         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
10184         * sunrpc/svc.c: Include time.h.
10185         (__svc_accept_failed): New function.
10186         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
10187         any reason other than EINTR, call __svc_accept_failed.
10188         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
10189         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
10190
10191 2012-11-28  Andreas Schwab  <schwab@suse.de>
10192
10193         * scripts/abilist.awk: Also handle indirect functions in .opd
10194         section.
10195
10196 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
10197
10198         [BZ #13881]
10199         * sysdeps/x86/fpu/powl_helper.c: New file.
10200         * sysdeps/x86/fpu/Makefile: Likewise.
10201         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
10202         (p3): New object.
10203         (__ieee754_powl): Use __powl_helper for finite arguments except
10204         integer exponents below 8.
10205         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
10206         (p3): New object.
10207         (__ieee754_powl): Use __powl_helper for finite arguments except
10208         integer exponents below 8.
10209         * math/libm-test.inc (pow_test): Add more tests and enable some
10210         previously disabled tests.
10211         * sysdeps/i386/fpu/libm-test-ulps: Update.
10212         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10213
10214 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
10215             Carlos O'Donell  <carlos_odonell@mentor.com>
10216
10217         * nss/makedb.c (is_prime): Assert that input is odd and greater
10218         than 4.  Note that fact in a comment too.
10219         (next_prime): Add 4 to input.
10220
10221 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
10222
10223         [BZ #11741]
10224         * libio/Makefile (tests): Add test case tst-fwrite-error.
10225         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
10226         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
10227         * libio/tst-fwrite-error.c: New test case.
10228
10229 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
10230
10231         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
10232         before casting to void *.
10233         * include/libc-internal.h (__pointer_type): New macro.
10234         (__integer_if_pointer_type_sub): Likewise.
10235         (__integer_if_pointer_type): Likewise.
10236         (cast_to_integer): Likewise.
10237         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
10238         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
10239         before casting to atomic64_t.
10240         (atomic_exchange_acq): Likewise.
10241         (__arch_exchange_and_add_body): Likewise.
10242         (__arch_add_body): Likewise.
10243         (atomic_add_negative): Likewise.
10244         (atomic_add_zero): Likewise.
10245
10246 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
10247
10248         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
10249         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
10250         (add_fdes): Likewise.
10251         (linear_search_fdes): Likewise.
10252         (binary_search_unencoded_fdes): Likewise.
10253
10254 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
10255
10256         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
10257
10258 2012-11-24  Adam Conrad  <adconrad@0c3.net>
10259
10260         * configure.in: Autodetect C++ header directories.
10261         * configure: Regenerated.
10262
10263 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
10264
10265         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
10266
10267 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
10268
10269         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
10270
10271 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
10272
10273         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
10274         LDBL_MANT_DIG == 106]: Disable some tests.
10275         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
10276         Likewise.
10277         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
10278         Likewise.
10279
10280         [BZ #14871]
10281         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
10282         input for small inputs.  Return +/- pi/2 for large inputs.
10283         * math/libm-test.inc (atan_test): Add more tests.
10284
10285         * sysdeps/generic/unwind-dw2-fde-glibc.c
10286         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
10287         __attribute__ ((unused)).
10288
10289         [BZ #14645]
10290         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
10291         x * y if x and y are nonzero and z is zero.
10292
10293         [BZ #14811]
10294         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
10295         nonzero exponents with absolute value below 0x1p-117 to +/-
10296         0x1p-117.
10297
10298         [BZ #14869]
10299         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
10300         up arguments below 2**-450, not just those below 2**-500.
10301         * math/libm-test.inc (hypot_test): Add another test.
10302
10303         [BZ #14868]
10304         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
10305         Return a+b for ratio over 2**120, not 2**60.
10306         * math/libm-test.inc (hypot_test): Add another test.
10307
10308         * math/libm-test.inc (clog_test): Use
10309         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
10310         (clog10_test): Likewise.
10311
10312         [BZ #6778]
10313         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
10314
10315 2012-11-22  Andreas Schwab  <schwab@suse.de>
10316
10317         * sysdeps/i386/fpu/libm-test-ulps: Update.
10318
10319 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
10320
10321         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
10322         printf output with newline.
10323
10324 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
10325
10326         [BZ #14865]
10327         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
10328         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
10329         -z nodlopen, -z initfirst and -z execstack support.
10330         * configure: Regenerated.
10331
10332         * elf/elf.h (DF_1_NODIRECT): New macro.
10333         (DF_1_IGNMULDEF): Likewise.
10334         (DF_1_NOKSYMS): Likewise.
10335         (DF_1_NOHDR): Likewise.
10336         (DF_1_EDITED): Likewise.
10337         (DF_1_NORELOC): Likewise.
10338         (DF_1_SYMINTPOSE): Likewise.
10339         (DF_1_GLOBAUDIT): Likewise.
10340         (DF_1_SINGLETON): Likewise.
10341         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
10342         DT_1_SUPPORTED_MASK bits.
10343         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
10344
10345 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
10346
10347         * sysdeps/unix/make-syscalls.sh: Document prefixes.
10348
10349 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
10350
10351         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
10352         macro.
10353
10354         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
10355         (sendmmsg): Move declarations...
10356         * socket/sys/socket.h: ... here.
10357         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
10358         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
10359         include it from...
10360         * socket/recvmmsg.c: ... this new file.
10361         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
10362         (sendmmsg): Rename to __sendmmsg, create weak alias and make
10363         definition of __sendmmsg hidden.
10364         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
10365         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
10366         Move ENOSYS stub into and include it from...
10367         * socket/sendmmsg.c: ... this new file.
10368         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
10369         (sysdep_routines): Move recvmmsg and sendmmsg...
10370         * socket/Makefile (routines): ... here.
10371         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
10372         (GLIBC_PRIVATE): Add __sendmmsg.
10373         * include/sys/socket.h (__sendmmsg): Add declarations.
10374         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
10375         sendmmsg.
10376
10377 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
10378
10379         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
10380         variable I1 with __attribute__ ((unused)).
10381         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
10382
10383 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
10384
10385         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
10386         DUMMY variables with __attribute__ ((unused)).
10387
10388         * bits/byteswap.h: Include <bits/types.h>.
10389         (__bswap_64): Use __uint64_t instead of unsigned long long int.
10390
10391 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
10392
10393         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
10394         string_t.  Do not manually set errno.
10395         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
10396         length with __strnlen.  Make sure to both set errno and return it on
10397         failure.
10398
10399 2012-11-19  David S. Miller  <davem@davemloft.net>
10400
10401         With help from Joseph Myers.
10402         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
10403         very large arguments properly.
10404         * math/libm-test.inc (atan_test): New tests.
10405         (atan2_test): New tests.
10406         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10407         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10408
10409 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
10410
10411         [BZ #14856]
10412         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
10413         Define to 3.
10414
10415         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
10416         [POSIX] (EADDRNOTAVAIL): Likewise.
10417         [POSIX] (EAFNOSUPPORT): Likewise.
10418         [POSIX] (EALREADY): Likewise.
10419         [POSIX] (ECONNABORTED): Likewise.
10420         [POSIX] (ECONNREFUSED): Likewise.
10421         [POSIX] (ECONNRESET): Likewise.
10422         [POSIX] (EDESTADDRREQ): Likewise.
10423         [POSIX] (EDQUOT): Likewise.
10424         [POSIX] (EHOSTUNREACH): Likewise.
10425         [POSIX] (EIDRM): Likewise.
10426         [POSIX] (EISCONN): Likewise.
10427         [POSIX] (ELOOP): Likewise.
10428         [POSIX] (EMULTIHOP): Likewise.
10429         [POSIX] (ENETDOWN): Likewise.
10430         [POSIX] (ENETUNREACH): Likewise.
10431         [POSIX] (ENOBUFS): Likewise.
10432         [POSIX] (ENODATA): Likewise.
10433         [POSIX] (ENOLINK): Likewise.
10434         [POSIX] (ENOMSG): Likewise.
10435         [POSIX] (ENOPROTOOPT): Likewise.
10436         [POSIX] (ENOSR): Likewise.
10437         [POSIX] (ENOSTR): Likewise.
10438         [POSIX] (ENOTCONN): Likewise.
10439         [POSIX] (ENOTSOCK): Likewise.
10440         [POSIX] (EOPNOTSUPP): Likewise.
10441         [POSIX] (EOVERFLOW): Likewise.
10442         [POSIX] (EPROTO): Likewise.
10443         [POSIX] (EPROTONOSUPPORT): Likewise.
10444         [POSIX] (EPROTOTYPE): Likewise.
10445         [POSIX] (ESTALE): Likewise.
10446         [POSIX] (ETIME): Likewise.
10447         [POSIX] (ETXTBSY): Likewise.
10448         [POSIX] (EWOULDBLOCK): Likewise.
10449         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
10450         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
10451         [POSIX] (SEEK_CUR): Likewise.
10452         [POSIX] (SEEK_END): Likewise.
10453         [POSIX || UNIX98] (mode_t): Do not require.
10454         [POSIX] (off_t): Likewise.
10455         [POSIX] (pid_t): Likewise.
10456         [POSIX] (sys/stat.h): Do not allow header.
10457         [POSIX] (unistd.h): Likewise.
10458         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
10459         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
10460         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
10461         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
10462         require.
10463         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
10464         sigevent): Specify elements.
10465         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
10466         entry.
10467         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
10468         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
10469
10470         * conform/data/cpio.h-data [POSIX]: Disable whole file.
10471         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
10472         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
10473         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
10474         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
10475         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
10476         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
10477         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
10478         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
10479         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
10480         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
10481         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
10482         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
10483         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
10484         Likewise.
10485         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
10486         Likewise.
10487         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
10488         Likewise.
10489         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
10490         Likewise.
10491         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
10492         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
10493         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
10494         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
10495         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
10496         Specify lower bound on value.
10497         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
10498         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
10499         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
10500         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
10501         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
10502         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
10503         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
10504         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
10505         value.
10506         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
10507         as optional.
10508         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
10509         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
10510         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
10511         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
10512         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
10513         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
10514         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
10515         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
10516         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
10517         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
10518         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
10519         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
10520         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
10521         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
10522         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
10523         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
10524         entry.
10525         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
10526         optional.
10527         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
10528         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
10529         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
10530         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
10531         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
10532         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
10533         Likewise.
10534         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
10535         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
10536         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
10537         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
10538         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
10539         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
10540         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
10541         as optional.
10542         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
10543         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
10544         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
10545         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
10546         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
10547         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
10548         specify as optional.
10549         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
10550         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
10551         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
10552         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
10553         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
10554         [XPG3] (NL_LANGMAX): Likewise.
10555         [POSIX || XPG3] (NL_MSGMAX): Likewise.
10556         [POSIX || XPG3] (NL_NMAX): Likewise.
10557         [POSIX || XPG3] (NL_SETMAX): Likewise.
10558         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
10559         [XPG3] (NZERO): Likewise.
10560         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
10561         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
10562         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
10563         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
10564         (REG_ERANGE): Expect.
10565         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
10566         optional-constant.
10567         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
10568         Use (void) in prototype.
10569         [POSIX] (*_t): Allow.
10570         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
10571         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
10572         (WRDE_BADVAL): Expect.
10573
10574         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
10575         expect.
10576         [XPG3 || XPG4] (O_RSYNC): Likewise.
10577         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
10578         Likewise.
10579         [XPG3 || XPG4] (pthread_sigmask): Likewise.
10580         [XPG3 || XPG4] (sigqueue): Likewise.
10581         [XPG3 || XPG4] (sigtimedwait): Likewise.
10582         [XPG3 || XPG4] (sigwaitinfo): Likewise.
10583         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
10584         [XPG3 || XPG4] (vsnprintf): Likewise.
10585         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
10586         Likewise.
10587         [XPG3 || XPG4] (blksize_t): Likewise.
10588         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
10589         Likewise.
10590         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
10591         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
10592         [XPG3 || XPG4] (struct itimerspec): Likewise.
10593         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
10594         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
10595         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
10596         [XPG3 || XPG4] (clockid_t): Likewise.
10597         [XPG3 || XPG4] (timer_t): Likewise.
10598         [XPG3 || XPG4] (clock_getres): Likewise.
10599         [XPG3 || XPG4] (clock_gettime): Likewise.
10600         [XPG3 || XPG4] (clock_settime): Likewise.
10601         [XPG3 || XPG4] (nanosleep): Likewise.
10602         [XPG3 || XPG4] (timer_create): Likewise.
10603         [XPG3 || XPG4] (timer_delete): Likewise.
10604         [XPG3 || XPG4] (timer_gettime): Likewise.
10605         [XPG3 || XPG4] (timer_getoverrun): Likewise.
10606         [XPG3 || XPG4] (timer_settime): Likewise.
10607         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
10608         [XPG3 || XPG4] (getlogin_r): Likewise.
10609         [XPG3 || XPG4] (pread): Likewise.
10610         [XPG3 || XPG4] (pthread_atfork): Likewise.
10611         [XPG3 || XPG4] (pwrite): Likewise.
10612
10613         [BZ #14835]
10614         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
10615         <bits/siginfo.h>.
10616
10617 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
10618
10619         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
10620         finalizing MALLSTREAM.
10621
10622         * sysdeps/mach/hurd/syncfs.c: New file.
10623
10624 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
10625
10626         [BZ #14719]
10627         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
10628         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
10629         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
10630         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
10631         (_nss_dns_gethostbyname4_r): Likewise.
10632         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
10633         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
10634
10635 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
10636
10637         [BZ #13763]
10638         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
10639
10640 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
10641
10642         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
10643         * elf/cache.c (print_entry): Print ",AArch64" for
10644         FLAG_AARCH64_LIB64
10645
10646         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
10647         * elf/cache.c (print_entry): Print ",hard-float" for
10648         FLAG_ARM_LIBHF.
10649
10650 2012-11-18  David S. Miller  <davem@davemloft.net>
10651
10652         With help from Joseph Myers.
10653         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
10654         cutoff to 2**-13.
10655         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
10656         cutoff to 2**-25.
10657         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
10658         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
10659         small.
10660         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
10661         * math/libm-test.inc (y0_test): New tests.
10662         (y1_test): New tests.
10663         * sysdeps/i386/fpu/libm-test-ulps: Update.
10664         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
10665         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10666
10667 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
10668
10669         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
10670         64-bit targets.
10671         * configure: Regenerated.
10672
10673 2012-11-17  David S. Miller  <davem@davemloft.net>
10674
10675         [BZ #14811]
10676         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
10677         nonzero exponents with absolute value below 0x1p-128 to +/-
10678         0x1p-128.
10679
10680 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
10681
10682         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
10683
10684         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
10685
10686         * posix/getconf-speclist.c: New file.
10687         * posix/posix-envs.def: Likewise.
10688         * posix/confstr.c (START_ENV_GROUP): New macro.
10689         (END_ENV_GROUP): Likewise.
10690         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
10691         (KNOWN_PRESENT_ENV_STRING): Likewise.
10692         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
10693         (UNKNOWN_ENVIRONMENT): Likewise.
10694         (confstr): Include posix-envs.def instead of handling
10695         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
10696         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
10697         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
10698         (END_ENV_GROUP): Likewise.
10699         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
10700         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
10701         (UNKNOWN_ENVIRONMENT): Likewise.
10702         (__sysconf): Include posix-envs.def instead of handling associated
10703         cases directly here.
10704         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
10705         preprocessing getconf-speclist.c rather than running getconf or
10706         generating empty file.
10707
10708 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
10709
10710         * scripts/check-local-headers.sh: Ignore 'mach' headers.
10711
10712 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
10713
10714         [BZ #14672]
10715         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
10716
10717 2012-11-16  David S. Miller  <davem@davemloft.net>
10718
10719         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
10720         smaller than LDBL_EPSILON/2.0L, just return xm1.
10721
10722 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
10723
10724         * elf/tst-array1.c (init): Set constructor priority to 1000.
10725         (fini): Set destructor priority to 1000.
10726         * elf/tst-array2dep.c: Likewise.
10727
10728 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10729
10730         [BZ #11741]
10731         * libio/fileops.c (_IO_new_file_write): Correctly return error.
10732         (_IO_new_file_xsputn): Also return EOF if none of the input
10733         data was written when overflow failed.
10734         * libio/iopadn.c (_IO_padn): Likewise.
10735         * libio/iowpadn.c (_IO_wpadn): Likewise.
10736         * stdio-common/tst-put-error.c: Add copyright notice.
10737         (do_test): Add case for printing padded string.
10738         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
10739         _IO_padn returned error.
10740         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
10741         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
10742         return EOF.
10743
10744 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
10745
10746         * libio/libioP.h: Add comment note that the references to C++
10747         bits are now obsolete.
10748
10749 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10750
10751         * math/libm-test.inc (check_complex): Use asprintf.
10752
10753 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
10754
10755         * debug/pcprofiledump.c (print_version): Update copyright year.
10756         * malloc/memusagestat.c (print_version): Likewise.
10757
10758 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
10759
10760         [BZ #14831]
10761         * elf/Makefile (tests): Add tst-audit8.
10762         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
10763         ($(objpfx)tst-audit8.out): New target.
10764         (tst-audit8-ENV): New variable.
10765         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
10766         audit if l_reloc_result is NULL.
10767         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
10768         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
10769         * elf/tst-audit8.c: New file.
10770
10771 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10772
10773         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
10774         * misc/Makefile (CFLAGS-select.c): Define.
10775         * posix/Makefile (CFLAGS-pause.c): Define.
10776
10777 2012-11-13  David S. Miller  <davem@davemloft.net>
10778
10779         * crypt/Makefile: Move test targets after toplevel Rules
10780         inclusion.  Grab any necessary sysdep routines when linking.
10781         * crypt/md5.c (md5_process_block): Remove define, we will always
10782         name it __md5_process_block.
10783         (md5_finish_ctx): Update md5_process_block call.
10784         (md5_stream): Likewise.
10785         (md5_process_bytes): Likewise.
10786         (md5_process_block): Rename to __md5_process_block and move to ...
10787         * crypt/md5-block.c: ... here.
10788         * crypt/sha256.c (sha256_process_block): Move to ...
10789         * crypt/sha256-block.c: ... here.
10790         * crypt/sha512.c (sha512_process_block): Move to ...
10791         * crypt/sha512-block.c: ... here.
10792         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
10793         path.
10794         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
10795         * sysdeps/sparc/sparc64/multiarch/Makefile
10796         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
10797         crypt subdir.
10798         (localedef-aux): Add md5 crypto assembler when in locale subdir.
10799         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
10800         multiarch changes.
10801         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
10802         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
10803         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
10804         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
10805         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
10806         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
10807         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
10808         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
10809         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
10810         file.
10811         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
10812         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
10813         file.
10814         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
10815
10816 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
10817
10818         * timezone/tzselect.ksh: Update from tzcode git revision
10819         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
10820         * timezone/zdump.c: Likewise.
10821         * timezone/zic.c: Likewise.
10822         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
10823         in TZVERSION setting, not $(PKGVERSION).
10824         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
10825         REPORT_BUGS_TO settings.
10826
10827         [BZ #14838]
10828         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
10829         macro.
10830
10831 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10832
10833         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
10834         detection to immediately after _FP_ROUND().
10835         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
10836         bits are 0.
10837
10838 2012-11-11  David S. Miller  <davem@davemloft.net>
10839
10840         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
10841         inttypes.h
10842         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
10843         __close rather than their public counterparts.
10844
10845 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
10846
10847         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
10848         file.
10849         [UNIX98] (sem_timedwait): Do not expect.
10850         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
10851         [XPG4 || UNIX98] (sockatmark): Do not expect.
10852         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
10853         (clock_getcpuclockid): Do not expect.
10854         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
10855         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
10856         Do not expect.
10857         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
10858         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
10859         [UNIX98] (vwscanf): Likewise.
10860         [UNIX98] (vswscanf): Likewise.
10861
10862 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
10863
10864         * timezone/version.h: Remove file.
10865         * timezone/README: Do not refer to version.h.
10866         * timezone/Makefile ($(objpfx)zic.o): New dependency on
10867         $(objpfx)version.h.
10868         ($(objpfx)zdump.o): Likewise.
10869         ($(objpfx)version.h): New target.
10870
10871         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
10872         2012i.
10873         * timezone/README: Don't mention modification to tzselect.ksh.
10874         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
10875         work on unmodified tzselect.ksh.  Substitute version numbers in
10876         tzselect.ksh.
10877
10878         * Makefile (format-me): Remove.
10879         (INSTALL): Adjust indentation.  Use commands directly instead of
10880         using $(format-me).
10881
10882         * aclocal.m4 (ACX_PKGVERSION): New macro.
10883         (ACX_BUGURL): Likewise.
10884         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
10885         (PKGVERSION): New AC_DEFINE_UNQUOTED.
10886         (REPORT_BUGS_TO): Likewise.
10887         * configure: Regenerated.
10888         * config.h.in (PKGVERSION): New macro.
10889         (REPORT_BUGS_TO): Likewise.
10890         * config.make.in (PKGVERSION): New variable.
10891         (PKGVERSION_TEXI): Likewise.
10892         (REPORT_BUGS_TO): Likewise.
10893         (REPORT_BUGS_TEXI): Likewise.
10894         * Makefile (format-me): Use -I$(common-objpfx)manual.
10895         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
10896         ($(common-objpfx)manual/%): New target.
10897         (manual/%): Remove target.
10898         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
10899         (print_version): Use PKGVERSION.
10900         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
10901         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
10902         and REPORT_BUGS_TO.
10903         ($(objpfx)xtrace): Likewise.
10904         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
10905         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
10906         (print_version): Use PKGVERSION.
10907         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
10908         (do_version): Use PKGVERSION.
10909         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
10910         REPORT_BUGS_TO.
10911         (common-ldd-rewrite): Likewise.
10912         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
10913         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
10914         (print_version): Use PKGVERSION.
10915         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
10916         * elf/pldd.c (argp_program_bug_address): Remove variable.
10917         (more_help): New function.
10918         (argp): Use more_help.
10919         (print_version): Use PKGVERSION.
10920         * elf/sln.c (main): Use PKGVERSION.
10921         (usage): Use REPORT_BUGS_TO.
10922         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
10923         (top level): Use PKGVERSION.
10924         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
10925         (print_version): Use PKGVERSION.
10926         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
10927         (print_version): Use PKGVERSION.
10928         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
10929         (print_version): Use PKGVERSION.
10930         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
10931         (print_version): Use PKGVERSION.
10932         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
10933         (print_version): Use PKGVERSION.
10934         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
10935         (print_version): Use PKGVERSION.
10936         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
10937         and BUGURL.
10938         ($(objpfx)memusage): Likewise.
10939         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
10940         (do_version): Use PKGVERSION.
10941         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
10942         (print_version): Use PKGVERSION.
10943         * malloc/mtrace.pl ($PACKAGE): Remove variable.
10944         ($PKGVERSION): New variable.
10945         ($REPORT_BUGS_TO): Likewise.
10946         (usage): Use $REPORT_BUGS_TO.
10947         (top level): Use $PKGVERSION.
10948         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
10949         ($(objpfx)pkgvers.texi): New rule.
10950         ($(objpfx)stamp-pkgvers): Likewise.
10951         * manual/install.texi: Include pkgvers.texi.
10952         (--with-pkgversion): Document new configure option.
10953         (--with-bugurl): Likewise.
10954         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
10955         than necessarily for this particular distribution.  Use
10956         REPORT_BUGS_TO for where to report bugs.
10957         * INSTALL: Regenerated.
10958         * manual/libc.texinfo: Include pkgvers.texi.
10959         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
10960         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
10961         (print_version): Use PKGVERSION.
10962         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
10963         (print_version): Use PKGVERSION.
10964         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
10965         (print_version): Use PKGVERSION.
10966         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
10967         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
10968         macro.
10969         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
10970         (print_version): Use PKGVERSION.
10971         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
10972         (print_version): Use PKGVERSION.
10973         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
10974         and PKGVERSION.
10975
10976         * timezone/checktab.awk: Update from tzcode 2012i.
10977         * timezone/ialloc.c: Likewise.
10978         * timezone/private.h: Likewise.
10979         * timezone/scheck.c: Likewise.
10980         * timezone/tzfile.h: Likewise.
10981         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
10982         (TZVERSION): Hardcode tzcode version number.
10983         * timezone/zdump.c: Update from tzcode 2012i.
10984         * timezone/zic.c: Likewise.
10985         * timezone/version.h: New file.
10986         * timezone/README: Describe version.h.  Update upstream location.
10987
10988         [BZ #14824]
10989         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
10990         (mktemp): Enable declaration.
10991         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
10992         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
10993         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
10994         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
10995         Likewise.
10996         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
10997         Likewise.
10998         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
10999         Likewise.
11000         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
11001         Likewise.
11002         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
11003         Likewise.
11004         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
11005         Likewise.
11006
11007         [BZ #14821]
11008         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
11009         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
11010         for copies of such integer values.
11011         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
11012         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
11013
11014 2012-11-09  Andreas Jaeger  <aj@suse.de>
11015
11016         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
11017         definitions and declarations that are provided by
11018         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
11019
11020 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11021
11022         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
11023         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
11024         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
11025         definition.
11026
11027 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11028
11029         * elf/elf.h: Update comment before AArch64 relocations.
11030
11031 2012-11-07  David S. Miller  <davem@davemloft.net>
11032
11033         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
11034         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
11035         (__start_context): Declare.
11036         (__makecontext_ret): Delete.
11037         (__makecontext): Hook up __start_context instead of
11038         __makecontext_ret.
11039         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
11040         (sysdep_routines): Add __start_context when in stdlib.
11041
11042 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
11043
11044         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
11045         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
11046         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
11047         hardcoded "nm".
11048         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
11049         (READELF): New variable.  Use it instead of hardcoded "readelf".
11050
11051 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
11052
11053         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
11054         * sysdeps/x86/Makefile: Here.
11055         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
11056         * sysdeps/x86/tst-xmmymm.sh: This.
11057
11058 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
11059
11060         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
11061         expectations.
11062         [UNIX98] (pthread_barrier_t): Do not expect.
11063         [UNIX98] (pthread_barrierattr_t): Likewise.
11064         [UNIX98] (pthread_spinlock_t): Likewise.
11065         [UNIX98] (pthread_barrier_destroy): Likewise.
11066         [UNIX98] (pthread_barrier_init): Likewise.
11067         [UNIX98] (pthread_barrier_wait): Likewise.
11068         [UNIX98] (pthread_barrierattr_destroy): Likewise.
11069         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
11070         [UNIX98] (pthread_barrierattr_init): Likewise.
11071         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
11072         [UNIX98] (pthread_getcpuclockid): Likewise.
11073         [UNIX98] (pthread_mutex_timedlock): Likewise.
11074         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
11075         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
11076         [UNIX98] (pthread_sigmask): Likewise.
11077         [UNIX98] (pthread_spin_destroy): Likewise.
11078         [UNIX98] (pthread_spin_init): Likewise.
11079         [UNIX98] (pthread_spin_lock): Likewise.
11080         [UNIX98] (pthread_spin_trylock): Likewise.
11081         [UNIX98] (pthread_spin_unlock): Likewise.
11082         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
11083         Do not expect.
11084         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
11085         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
11086         [XPG3 || XPG4] (pthread_cond_t): Likewise.
11087         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
11088         [XPG3 || XPG4] (pthread_key_t): Likewise.
11089         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
11090         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
11091         [XPG3 || XPG4] (pthread_once_t): Likewise.
11092         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
11093         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
11094         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
11095         [XPG3 || XPG4] (pthread_t): Likewise.
11096
11097         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
11098         not expect.
11099         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
11100
11101         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
11102         Change function return type to int.
11103
11104         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
11105         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
11106         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
11107         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
11108         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
11109         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
11110         [!POSIX] (posix_madvise): Likewise.
11111         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
11112         && !UNIX98].
11113         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
11114         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
11115         (mode_t): Likewise.
11116         (posix_mem_offset): Likewise.
11117         (posix_typed_mem_get_info): Likewise.
11118         (posix_typed_mem_open): Likewise.
11119
11120         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
11121         Change condition to [XOPEN2K8].
11122
11123         * conform/conformtest.pl: Preprocess allow-header data with -x c
11124         instead of from stdin.
11125         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
11126         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
11127         [C99-based standards] (cerfc): Likewise.
11128         [C99-based standards] (cexp2): Likewise.
11129         [C99-based standards] (cexpm1): Likewise.
11130         [C99-based standards] (clog10): Likewise.
11131         [C99-based standards] (clog1p): Likewise.
11132         [C99-based standards] (clog2): Likewise.
11133         [C99-based standards] (clgamma): Likewise.
11134         [C99-based standards] (ctgamma): Likewise.
11135         [C99-based standards] (cerff): Likewise.
11136         [C99-based standards] (cerfcf): Likewise.
11137         [C99-based standards] (cexp2f): Likewise.
11138         [C99-based standards] (cexpm1f): Likewise.
11139         [C99-based standards] (clog10f): Likewise.
11140         [C99-based standards] (clog1pf): Likewise.
11141         [C99-based standards] (clog2f): Likewise.
11142         [C99-based standards] (clgammaf): Likewise.
11143         [C99-based standards] (ctgammaf): Likewise.
11144         [C99-based standards] (cerfl): Likewise.
11145         [C99-based standards] (cerfcl): Likewise.
11146         [C99-based standards] (cexp2l): Likewise.
11147         [C99-based standards] (cexpm1l): Likewise.
11148         [C99-based standards] (clog10l): Likewise.
11149         [C99-based standards] (clog1pl): Likewise.
11150         [C99-based standards] (clog2l): Likewise.
11151         [C99-based standards] (clgammal): Likewise.
11152         [C99-based standards] (ctgammal): Likewise.
11153         * conform/data/inttypes.h-data [C99-based standards]: Include
11154         stdint.h-data.  Remove all expectations for stdint.h contents.
11155         [C99-based standards] (PRI*): Do not allow.
11156         [C99-based standards] (SCN*): Likewise.
11157         [C99-based standards] (*_t): Likewise.
11158         [C99-based-standards] (PRId8): Expect macro.
11159         [C99-based-standards] (PRIi8): Likewise.
11160         [C99-based-standards] (PRIo8): Likewise.
11161         [C99-based-standards] (PRIu8): Likewise.
11162         [C99-based-standards] (PRIx8): Likewise.
11163         [C99-based-standards] (PRIX8): Likewise.
11164         [C99-based-standards] (SCNd8): Likewise.
11165         [C99-based-standards] (SCNi8): Likewise.
11166         [C99-based-standards] (SCNo8): Likewise.
11167         [C99-based-standards] (SCNu8): Likewise.
11168         [C99-based-standards] (SCNx8): Likewise.
11169         [C99-based-standards] (PRIdLEAST8): Likewise.
11170         [C99-based-standards] (PRIiLEAST8): Likewise.
11171         [C99-based-standards] (PRIoLEAST8): Likewise.
11172         [C99-based-standards] (PRIuLEAST8): Likewise.
11173         [C99-based-standards] (PRIxLEAST8): Likewise.
11174         [C99-based-standards] (PRIXLEAST8): Likewise.
11175         [C99-based-standards] (SCNdLEAST8): Likewise.
11176         [C99-based-standards] (SCNiLEAST8): Likewise.
11177         [C99-based-standards] (SCNoLEAST8): Likewise.
11178         [C99-based-standards] (SCNuLEAST8): Likewise.
11179         [C99-based-standards] (SCNxLEAST8): Likewise.
11180         [C99-based-standards] (PRIdFAST8): Likewise.
11181         [C99-based-standards] (PRIiFAST8): Likewise.
11182         [C99-based-standards] (PRIoFAST8): Likewise.
11183         [C99-based-standards] (PRIuFAST8): Likewise.
11184         [C99-based-standards] (PRIxFAST8): Likewise.
11185         [C99-based-standards] (PRIXFAST8): Likewise.
11186         [C99-based-standards] (SCNdFAST8): Likewise.
11187         [C99-based-standards] (SCNiFAST8): Likewise.
11188         [C99-based-standards] (SCNoFAST8): Likewise.
11189         [C99-based-standards] (SCNuFAST8): Likewise.
11190         [C99-based-standards] (SCNxFAST8): Likewise.
11191         [C99-based-standards] (PRId16): Likewise.
11192         [C99-based-standards] (PRIi16): Likewise.
11193         [C99-based-standards] (PRIo16): Likewise.
11194         [C99-based-standards] (PRIu16): Likewise.
11195         [C99-based-standards] (PRIx16): Likewise.
11196         [C99-based-standards] (PRIX16): Likewise.
11197         [C99-based-standards] (SCNd16): Likewise.
11198         [C99-based-standards] (SCNi16): Likewise.
11199         [C99-based-standards] (SCNo16): Likewise.
11200         [C99-based-standards] (SCNu16): Likewise.
11201         [C99-based-standards] (SCNx16): Likewise.
11202         [C99-based-standards] (PRIdLEAST16): Likewise.
11203         [C99-based-standards] (PRIiLEAST16): Likewise.
11204         [C99-based-standards] (PRIoLEAST16): Likewise.
11205         [C99-based-standards] (PRIuLEAST16): Likewise.
11206         [C99-based-standards] (PRIxLEAST16): Likewise.
11207         [C99-based-standards] (PRIXLEAST16): Likewise.
11208         [C99-based-standards] (SCNdLEAST16): Likewise.
11209         [C99-based-standards] (SCNiLEAST16): Likewise.
11210         [C99-based-standards] (SCNoLEAST16): Likewise.
11211         [C99-based-standards] (SCNuLEAST16): Likewise.
11212         [C99-based-standards] (SCNxLEAST16): Likewise.
11213         [C99-based-standards] (PRIdFAST16): Likewise.
11214         [C99-based-standards] (PRIiFAST16): Likewise.
11215         [C99-based-standards] (PRIoFAST16): Likewise.
11216         [C99-based-standards] (PRIuFAST16): Likewise.
11217         [C99-based-standards] (PRIxFAST16): Likewise.
11218         [C99-based-standards] (PRIXFAST16): Likewise.
11219         [C99-based-standards] (SCNdFAST16): Likewise.
11220         [C99-based-standards] (SCNiFAST16): Likewise.
11221         [C99-based-standards] (SCNoFAST16): Likewise.
11222         [C99-based-standards] (SCNuFAST16): Likewise.
11223         [C99-based-standards] (SCNxFAST16): Likewise.
11224         [C99-based-standards] (PRId32): Likewise.
11225         [C99-based-standards] (PRIi32): Likewise.
11226         [C99-based-standards] (PRIo32): Likewise.
11227         [C99-based-standards] (PRIu32): Likewise.
11228         [C99-based-standards] (PRIx32): Likewise.
11229         [C99-based-standards] (PRIX32): Likewise.
11230         [C99-based-standards] (SCNd32): Likewise.
11231         [C99-based-standards] (SCNi32): Likewise.
11232         [C99-based-standards] (SCNo32): Likewise.
11233         [C99-based-standards] (SCNu32): Likewise.
11234         [C99-based-standards] (SCNx32): Likewise.
11235         [C99-based-standards] (PRIdLEAST32): Likewise.
11236         [C99-based-standards] (PRIiLEAST32): Likewise.
11237         [C99-based-standards] (PRIoLEAST32): Likewise.
11238         [C99-based-standards] (PRIuLEAST32): Likewise.
11239         [C99-based-standards] (PRIxLEAST32): Likewise.
11240         [C99-based-standards] (PRIXLEAST32): Likewise.
11241         [C99-based-standards] (SCNdLEAST32): Likewise.
11242         [C99-based-standards] (SCNiLEAST32): Likewise.
11243         [C99-based-standards] (SCNoLEAST32): Likewise.
11244         [C99-based-standards] (SCNuLEAST32): Likewise.
11245         [C99-based-standards] (SCNxLEAST32): Likewise.
11246         [C99-based-standards] (PRIdFAST32): Likewise.
11247         [C99-based-standards] (PRIiFAST32): Likewise.
11248         [C99-based-standards] (PRIoFAST32): Likewise.
11249         [C99-based-standards] (PRIuFAST32): Likewise.
11250         [C99-based-standards] (PRIxFAST32): Likewise.
11251         [C99-based-standards] (PRIXFAST32): Likewise.
11252         [C99-based-standards] (SCNdFAST32): Likewise.
11253         [C99-based-standards] (SCNiFAST32): Likewise.
11254         [C99-based-standards] (SCNoFAST32): Likewise.
11255         [C99-based-standards] (SCNuFAST32): Likewise.
11256         [C99-based-standards] (SCNxFAST32): Likewise.
11257         [C99-based-standards] (PRId64): Likewise.
11258         [C99-based-standards] (PRIi64): Likewise.
11259         [C99-based-standards] (PRIo64): Likewise.
11260         [C99-based-standards] (PRIu64): Likewise.
11261         [C99-based-standards] (PRIx64): Likewise.
11262         [C99-based-standards] (PRIX64): Likewise.
11263         [C99-based-standards] (SCNd64): Likewise.
11264         [C99-based-standards] (SCNi64): Likewise.
11265         [C99-based-standards] (SCNo64): Likewise.
11266         [C99-based-standards] (SCNu64): Likewise.
11267         [C99-based-standards] (SCNx64): Likewise.
11268         [C99-based-standards] (PRIdLEAST64): Likewise.
11269         [C99-based-standards] (PRIiLEAST64): Likewise.
11270         [C99-based-standards] (PRIoLEAST64): Likewise.
11271         [C99-based-standards] (PRIuLEAST64): Likewise.
11272         [C99-based-standards] (PRIxLEAST64): Likewise.
11273         [C99-based-standards] (PRIXLEAST64): Likewise.
11274         [C99-based-standards] (SCNdLEAST64): Likewise.
11275         [C99-based-standards] (SCNiLEAST64): Likewise.
11276         [C99-based-standards] (SCNoLEAST64): Likewise.
11277         [C99-based-standards] (SCNuLEAST64): Likewise.
11278         [C99-based-standards] (SCNxLEAST64): Likewise.
11279         [C99-based-standards] (PRIdFAST64): Likewise.
11280         [C99-based-standards] (PRIiFAST64): Likewise.
11281         [C99-based-standards] (PRIoFAST64): Likewise.
11282         [C99-based-standards] (PRIuFAST64): Likewise.
11283         [C99-based-standards] (PRIxFAST64): Likewise.
11284         [C99-based-standards] (PRIXFAST64): Likewise.
11285         [C99-based-standards] (SCNdFAST64): Likewise.
11286         [C99-based-standards] (SCNiFAST64): Likewise.
11287         [C99-based-standards] (SCNoFAST64): Likewise.
11288         [C99-based-standards] (SCNuFAST64): Likewise.
11289         [C99-based-standards] (SCNxFAST64): Likewise.
11290         [C99-based-standards] (PRIdMAX): Likewise.
11291         [C99-based-standards] (PRIiMAX): Likewise.
11292         [C99-based-standards] (PRIoMAX): Likewise.
11293         [C99-based-standards] (PRIuMAX): Likewise.
11294         [C99-based-standards] (PRIxMAX): Likewise.
11295         [C99-based-standards] (PRIXMAX): Likewise.
11296         [C99-based-standards] (SCNdMAX): Likewise.
11297         [C99-based-standards] (SCNiMAX): Likewise.
11298         [C99-based-standards] (SCNoMAX): Likewise.
11299         [C99-based-standards] (SCNuMAX): Likewise.
11300         [C99-based-standards] (SCNxMAX): Likewise.
11301         [C99-based-standards] (PRIdPTR): Likewise.
11302         [C99-based-standards] (PRIiPTR): Likewise.
11303         [C99-based-standards] (PRIoPTR): Likewise.
11304         [C99-based-standards] (PRIuPTR): Likewise.
11305         [C99-based-standards] (PRIxPTR): Likewise.
11306         [C99-based-standards] (PRIXPTR): Likewise.
11307         [C99-based-standards] (SCNdPTR): Likewise.
11308         [C99-based-standards] (SCNiPTR): Likewise.
11309         [C99-based-standards] (SCNoPTR): Likewise.
11310         [C99-based-standards] (SCNuPTR): Likewise.
11311         [C99-based-standards] (SCNxPTR): Likewise.
11312         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
11313         allow.
11314         * conform/data/stdint.h-data: Update comments to clarify
11315         requirements.
11316         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
11317         type.
11318         [C99-based standards] (INT8_MAX): Likewise.
11319         [C99-based standards] (INT16_MIN): Likewise.
11320         [C99-based standards] (INT16_MAX): Likewise.
11321         [C99-based standards] (INT32_MIN): Likewise.
11322         [C99-based standards] (INT32_MAX): Likewise.
11323         [C99-based standards] (INT64_MIN): Likewise.
11324         [C99-based standards] (INT64_MAX): Likewise.
11325         [C99-based standards] (UINT8_MAX): Likewise.
11326         [C99-based standards] (UINT16_MAX): Likewise.
11327         [C99-based standards] (UINT32_MAX): Likewise.
11328         [C99-based standards] (UINT64_MAX): Likewise.
11329         [C99-based standards] (INT_LEAST8_MIN): Likewise.
11330         [C99-based standards] (INT_LEAST8_MAX): Likewise.
11331         [C99-based standards] (INT_LEAST16_MIN): Likewise.
11332         [C99-based standards] (INT_LEAST16_MAX): Likewise.
11333         [C99-based standards] (INT_LEAST32_MIN): Likewise.
11334         [C99-based standards] (INT_LEAST32_MAX): Likewise.
11335         [C99-based standards] (INT_LEAST64_MIN): Likewise.
11336         [C99-based standards] (INT_LEAST64_MAX): Likewise.
11337         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
11338         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
11339         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
11340         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
11341         [C99-based standards] (INT_FAST8_MIN): Likewise.
11342         [C99-based standards] (INT_FAST8_MAX): Likewise.
11343         [C99-based standards] (INT_FAST16_MIN): Likewise.
11344         [C99-based standards] (INT_FAST16_MAX): Likewise.
11345         [C99-based standards] (INT_FAST32_MIN): Likewise.
11346         [C99-based standards] (INT_FAST32_MAX): Likewise.
11347         [C99-based standards] (INT_FAST64_MIN): Likewise.
11348         [C99-based standards] (INT_FAST64_MAX): Likewise.
11349         [C99-based standards] (UINT_FAST8_MAX): Likewise.
11350         [C99-based standards] (UINT_FAST16_MAX): Likewise.
11351         [C99-based standards] (UINT_FAST32_MAX): Likewise.
11352         [C99-based standards] (UINT_FAST64_MAX): Likewise.
11353         [C99-based standards] (INTPTR_MIN): Likewise.
11354         [C99-based standards] (INTPTR_MAX): Likewise.
11355         [C99-based standards] (UINTPTR_MAX): Likewise.
11356         [C99-based standards] (INTMAX_MIN): Likewise.
11357         [C99-based standards] (INTMAX_MAX): Likewise.
11358         [C99-based standards] (UINTMAX_MAX): Likewise.
11359         [C99-based standards] (PTRDIFF_MIN): Likewise.
11360         [C99-based standards] (PTRDIFF_MAX): Likewise.
11361         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
11362         [C99-based standards] (SIZE_MAX): Likewise.
11363         [C99-based standards] (WCHAR_MAX): Likewise.
11364         [C99-based standards] (WINT_MAX): Likewise.
11365         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
11366         constraint on value.
11367         [C99-based standards] (WCHAR_MIN): Likewise.
11368         [C99-based standards] (WINT_MIN): Likewise.
11369         [C99-based standards] (*_t): Allow.
11370         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
11371         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
11372         Include math.h-data and complex.h-data.  Remove all expectations
11373         of math.h and complex.h contents.
11374         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
11375         at end of line.
11376         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
11377         (struct tm): Expect tag.
11378         [C99-based-standards] (wcstof): Expect function.
11379         [C99-based-standards] (wcstold): Likewise.
11380         [C99-based-standards] (wcstoll): Likewise.
11381         [C99-based-standards] (wcstoull): Likewise.
11382         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
11383         macro-int-constant.  Specify type.
11384         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
11385         constraint on value.
11386         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
11387         Specify type.
11388         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
11389         Specify value.
11390         [ISO C standards]: Do not allow headers.
11391         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
11392         wcs[abcdefghijklmnopqrstuvwxyz]*.
11393         [ISO C standards] (*_t): Do not allow.
11394         * conform/data/wctype.h-data [C99-based standards] (iswblank):
11395         Expect function.
11396         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
11397         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
11398         Specify type.
11399         [ISO C standards]: Do not allow headers.
11400         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
11401         is[abcdefghijklmnopqrstuvwxyz]*.
11402         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
11403         to[abcdefghijklmnopqrstuvwxyz]*.
11404         [ISO C standards] (*_t): Do not allow.
11405         * conform/data/stdalign.h-data: New file.
11406         * conform/data/stdbool.h-data: Likewise.
11407         * conform/data/stdnoreturn.h-data: Likewise.
11408
11409 2012-11-07  Roland McGrath  <roland@hack.frob.com>
11410
11411         [BZ #14815]
11412         * manual/filesys.texi (Directory Entries): Typo fix.
11413         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
11414
11415 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
11416
11417         * elf/elf.h (EM_AARCH64): New macro.
11418         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
11419         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
11420         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
11421         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
11422         (R_AARCH64_TLSDESC): Likewise.
11423         (NT_ARM_TLS): Likewise.
11424         (NT_ARM_HW_BREAK): Likewise.
11425         (NT_ARM_HW_WATCH): Likewise.
11426
11427 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
11428
11429         [BZ #14811]
11430         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
11431         (__ieee754_powl): Saturate nonzero exponents with absolute value
11432         below 0x1p-79 to +/- 0x1p-79.
11433         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
11434         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
11435         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
11436         nonzero exponents with absolute value below 0x1p-32 to +/-
11437         0x1p-32.
11438         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
11439         (__ieee754_powl): Saturate nonzero exponents with absolute value
11440         below 0x1p-79 to +/- 0x1p-79.
11441         * math/libm-test.inc (pow_test): Add more tests.
11442
11443 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
11444
11445         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
11446         _dl_s390_cap_flags with kernel. Increase string length.
11447         (_dl_s390_platforms): Add z196 and zEC12.
11448
11449 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
11450
11451         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
11452         Change XOPEN21K to XOPEN2K.
11453
11454 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
11455
11456         * string/memmove.c: Use memcpy when possible.
11457
11458 2012-11-06  Andreas Jaeger  <aj@suse.de>
11459
11460         * po/eo.po: Update from translation team.
11461
11462 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
11463
11464         [BZ #14793]
11465         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
11466         exponent and small x and y exponents, scale x or y up.  Increase
11467         by 2 the exponent used in scaling up.
11468         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11469         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11470         * math/libm-test.inc (fma_test): Add more tests.
11471         (fma_test_towardzero): Likewise.
11472         (fma_test_downward): Likewise.
11473         (fma_test_upward): Likewise.
11474
11475 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
11476
11477         [BZ #14805]
11478         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
11479         fenv_t *.
11480
11481         [BZ #14801]
11482         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
11483         namespace for names of struct fields.
11484         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
11485         fenv_t fields.
11486         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
11487         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
11488
11489 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11490
11491         [BZ #3665]
11492         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
11493
11494 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
11495
11496         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
11497         PTR_DEMANGLE.
11498
11499         [BZ #5246]
11500         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
11501         PTR_DEMANGLE.
11502
11503 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
11504
11505         [BZ #14797]
11506         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
11507         definitely overflow as x * y not x * y + z.
11508         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11509         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11510         * math/libm-test.inc (fma_test): Add more tests.
11511         (fma_test_towardzero): Likewise.
11512         (fma_test_downward): Likewise.
11513         (fma_test_upward): Likewise.
11514
11515 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
11516
11517         [BZ #157]
11518
11519         * include/stub-tag.h: Remove file.
11520         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
11521         '#include' of it.
11522         * manual/maint.texi (Porting): Don't reference it.
11523         * Makerules ($(objpfx)stubs): Likewise.
11524         * dirent/closedir.c: Don't include <stub-tag.h>.
11525         * dirent/dirfd.c: Likewise.
11526         * dirent/fdopendir.c: Likewise.
11527         * dirent/getdents.c: Likewise.
11528         * dirent/getdents64.c: Likewise.
11529         * dirent/opendir.c: Likewise.
11530         * dirent/readdir.c: Likewise.
11531         * dirent/readdir64.c: Likewise.
11532         * dirent/readdir64_r.c: Likewise.
11533         * dirent/readdir_r.c: Likewise.
11534         * dirent/rewinddir.c: Likewise.
11535         * dirent/seekdir.c: Likewise.
11536         * dirent/telldir.c: Likewise.
11537         * gmon/profil.c: Likewise.
11538         * grp/setgroups.c: Likewise.
11539         * inet/if_index.c: Likewise.
11540         * io/access.c: Likewise.
11541         * io/chdir.c: Likewise.
11542         * io/chmod.c: Likewise.
11543         * io/chown.c: Likewise.
11544         * io/close.c: Likewise.
11545         * io/dup.c: Likewise.
11546         * io/dup2.c: Likewise.
11547         * io/dup3.c: Likewise.
11548         * io/euidaccess.c: Likewise.
11549         * io/faccessat.c: Likewise.
11550         * io/fchdir.c: Likewise.
11551         * io/fchmod.c: Likewise.
11552         * io/fchmodat.c: Likewise.
11553         * io/fchown.c: Likewise.
11554         * io/fchownat.c: Likewise.
11555         * io/fcntl.c: Likewise.
11556         * io/flock.c: Likewise.
11557         * io/fstatfs.c: Likewise.
11558         * io/fstatfs64.c: Likewise.
11559         * io/fstatvfs.c: Likewise.
11560         * io/fstatvfs64.c: Likewise.
11561         * io/futimens.c: Likewise.
11562         * io/fxstat.c: Likewise.
11563         * io/fxstat64.c: Likewise.
11564         * io/fxstatat.c: Likewise.
11565         * io/fxstatat64.c: Likewise.
11566         * io/getcwd.c: Likewise.
11567         * io/isatty.c: Likewise.
11568         * io/lchmod.c: Likewise.
11569         * io/lchown.c: Likewise.
11570         * io/link.c: Likewise.
11571         * io/linkat.c: Likewise.
11572         * io/lseek.c: Likewise.
11573         * io/lseek64.c: Likewise.
11574         * io/lxstat64.c: Likewise.
11575         * io/mkdir.c: Likewise.
11576         * io/mkdirat.c: Likewise.
11577         * io/mkfifo.c: Likewise.
11578         * io/mkfifoat.c: Likewise.
11579         * io/open.c: Likewise.
11580         * io/open64.c: Likewise.
11581         * io/openat.c: Likewise.
11582         * io/openat64.c: Likewise.
11583         * io/pipe.c: Likewise.
11584         * io/pipe2.c: Likewise.
11585         * io/poll.c: Likewise.
11586         * io/posix_fadvise.c: Likewise.
11587         * io/posix_fadvise64.c: Likewise.
11588         * io/posix_fallocate.c: Likewise.
11589         * io/posix_fallocate64.c: Likewise.
11590         * io/read.c: Likewise.
11591         * io/readlink.c: Likewise.
11592         * io/readlinkat.c: Likewise.
11593         * io/rmdir.c: Likewise.
11594         * io/sendfile.c: Likewise.
11595         * io/sendfile64.c: Likewise.
11596         * io/statfs.c: Likewise.
11597         * io/statfs64.c: Likewise.
11598         * io/statvfs.c: Likewise.
11599         * io/statvfs64.c: Likewise.
11600         * io/symlink.c: Likewise.
11601         * io/symlinkat.c: Likewise.
11602         * io/ttyname.c: Likewise.
11603         * io/ttyname_r.c: Likewise.
11604         * io/umask.c: Likewise.
11605         * io/unlink.c: Likewise.
11606         * io/unlinkat.c: Likewise.
11607         * io/utime.c: Likewise.
11608         * io/utimensat.c: Likewise.
11609         * io/write.c: Likewise.
11610         * io/xmknod.c: Likewise.
11611         * io/xmknodat.c: Likewise.
11612         * io/xstat.c: Likewise.
11613         * io/xstat64.c: Likewise.
11614         * login/getpt.c: Likewise.
11615         * login/grantpt.c: Likewise.
11616         * login/unlockpt.c: Likewise.
11617         * math/e_acoshl.c: Likewise.
11618         * math/e_acosl.c: Likewise.
11619         * math/e_asinl.c: Likewise.
11620         * math/e_atan2l.c: Likewise.
11621         * math/e_atanhl.c: Likewise.
11622         * math/e_coshl.c: Likewise.
11623         * math/e_expl.c: Likewise.
11624         * math/e_fmodl.c: Likewise.
11625         * math/e_gammal_r.c: Likewise.
11626         * math/e_hypotl.c: Likewise.
11627         * math/e_j0l.c: Likewise.
11628         * math/e_j1l.c: Likewise.
11629         * math/e_jnl.c: Likewise.
11630         * math/e_lgammal_r.c: Likewise.
11631         * math/e_log10l.c: Likewise.
11632         * math/e_log2l.c: Likewise.
11633         * math/e_logl.c: Likewise.
11634         * math/e_powl.c: Likewise.
11635         * math/e_rem_pio2l.c: Likewise.
11636         * math/e_sinhl.c: Likewise.
11637         * math/e_sqrtl.c: Likewise.
11638         * math/fclrexcpt.c: Likewise.
11639         * math/fedisblxcpt.c: Likewise.
11640         * math/feenablxcpt.c: Likewise.
11641         * math/fegetenv.c: Likewise.
11642         * math/fegetexcept.c: Likewise.
11643         * math/fegetround.c: Likewise.
11644         * math/feholdexcpt.c: Likewise.
11645         * math/fesetenv.c: Likewise.
11646         * math/fesetround.c: Likewise.
11647         * math/feupdateenv.c: Likewise.
11648         * math/fgetexcptflg.c: Likewise.
11649         * math/fraiseexcpt.c: Likewise.
11650         * math/fsetexcptflg.c: Likewise.
11651         * math/ftestexcept.c: Likewise.
11652         * math/k_cosl.c: Likewise.
11653         * math/k_rem_pio2l.c: Likewise.
11654         * math/k_sinl.c: Likewise.
11655         * math/k_tanl.c: Likewise.
11656         * math/s_asinhl.c: Likewise.
11657         * math/s_atanl.c: Likewise.
11658         * math/s_cbrtl.c: Likewise.
11659         * math/s_erfl.c: Likewise.
11660         * math/s_expm1l.c: Likewise.
11661         * math/s_log1pl.c: Likewise.
11662         * math/s_tanhl.c: Likewise.
11663         * misc/acct.c: Likewise.
11664         * misc/brk.c: Likewise.
11665         * misc/chflags.c: Likewise.
11666         * misc/chroot.c: Likewise.
11667         * misc/fchflags.c: Likewise.
11668         * misc/fgetxattr.c: Likewise.
11669         * misc/flistxattr.c: Likewise.
11670         * misc/fremovexattr.c: Likewise.
11671         * misc/fsetxattr.c: Likewise.
11672         * misc/fsync.c: Likewise.
11673         * misc/ftruncate.c: Likewise.
11674         * misc/futimes.c: Likewise.
11675         * misc/futimesat.c: Likewise.
11676         * misc/getdomain.c: Likewise.
11677         * misc/getdtsz.c: Likewise.
11678         * misc/gethostid.c: Likewise.
11679         * misc/gethostname.c: Likewise.
11680         * misc/getloadavg.c: Likewise.
11681         * misc/getpagesize.c: Likewise.
11682         * misc/getsysstats.c: Likewise.
11683         * misc/getxattr.c: Likewise.
11684         * misc/gtty.c: Likewise.
11685         * misc/ioctl.c: Likewise.
11686         * misc/lgetxattr.c: Likewise.
11687         * misc/listxattr.c: Likewise.
11688         * misc/llistxattr.c: Likewise.
11689         * misc/lremovexattr.c: Likewise.
11690         * misc/lsetxattr.c: Likewise.
11691         * misc/lutimes.c: Likewise.
11692         * misc/madvise.c: Likewise.
11693         * misc/mincore.c: Likewise.
11694         * misc/mlock.c: Likewise.
11695         * misc/mlockall.c: Likewise.
11696         * misc/mmap.c: Likewise.
11697         * misc/mprotect.c: Likewise.
11698         * misc/msync.c: Likewise.
11699         * misc/munlock.c: Likewise.
11700         * misc/munlockall.c: Likewise.
11701         * misc/munmap.c: Likewise.
11702         * misc/preadv.c: Likewise.
11703         * misc/preadv64.c: Likewise.
11704         * misc/ptrace.c: Likewise.
11705         * misc/pwritev.c: Likewise.
11706         * misc/pwritev64.c: Likewise.
11707         * misc/readv.c: Likewise.
11708         * misc/reboot.c: Likewise.
11709         * misc/remap_file_pages.c: Likewise.
11710         * misc/removexattr.c: Likewise.
11711         * misc/revoke.c: Likewise.
11712         * misc/select.c: Likewise.
11713         * misc/setdomain.c: Likewise.
11714         * misc/setegid.c: Likewise.
11715         * misc/seteuid.c: Likewise.
11716         * misc/sethostid.c: Likewise.
11717         * misc/sethostname.c: Likewise.
11718         * misc/setregid.c: Likewise.
11719         * misc/setreuid.c: Likewise.
11720         * misc/setxattr.c: Likewise.
11721         * misc/sstk.c: Likewise.
11722         * misc/stty.c: Likewise.
11723         * misc/swapoff.c: Likewise.
11724         * misc/swapon.c: Likewise.
11725         * misc/sync.c: Likewise.
11726         * misc/syncfs.c: Likewise.
11727         * misc/syscall.c: Likewise.
11728         * misc/truncate.c: Likewise.
11729         * misc/ualarm.c: Likewise.
11730         * misc/usleep.c: Likewise.
11731         * misc/ustat.c: Likewise.
11732         * misc/utimes.c: Likewise.
11733         * misc/vhangup.c: Likewise.
11734         * misc/writev.c: Likewise.
11735         * posix/_exit.c: Likewise.
11736         * posix/alarm.c: Likewise.
11737         * posix/execve.c: Likewise.
11738         * posix/fexecve.c: Likewise.
11739         * posix/fork.c: Likewise.
11740         * posix/fpathconf.c: Likewise.
11741         * posix/getaddrinfo.c: Likewise.
11742         * posix/getegid.c: Likewise.
11743         * posix/geteuid.c: Likewise.
11744         * posix/getgid.c: Likewise.
11745         * posix/getgroups.c: Likewise.
11746         * posix/getlogin.c: Likewise.
11747         * posix/getlogin_r.c: Likewise.
11748         * posix/getpgid.c: Likewise.
11749         * posix/getpid.c: Likewise.
11750         * posix/getppid.c: Likewise.
11751         * posix/getresgid.c: Likewise.
11752         * posix/getresuid.c: Likewise.
11753         * posix/getsid.c: Likewise.
11754         * posix/getuid.c: Likewise.
11755         * posix/glob64.c: Likewise.
11756         * posix/nanosleep.c: Likewise.
11757         * posix/pathconf.c: Likewise.
11758         * posix/pause.c: Likewise.
11759         * posix/posix_madvise.c: Likewise.
11760         * posix/pread.c: Likewise.
11761         * posix/pread64.c: Likewise.
11762         * posix/pwrite.c: Likewise.
11763         * posix/pwrite64.c: Likewise.
11764         * posix/sched_getaffinity.c: Likewise.
11765         * posix/sched_getp.c: Likewise.
11766         * posix/sched_gets.c: Likewise.
11767         * posix/sched_primax.c: Likewise.
11768         * posix/sched_primin.c: Likewise.
11769         * posix/sched_rr_gi.c: Likewise.
11770         * posix/sched_setaffinity.c: Likewise.
11771         * posix/sched_setp.c: Likewise.
11772         * posix/sched_sets.c: Likewise.
11773         * posix/sched_yield.c: Likewise.
11774         * posix/setgid.c: Likewise.
11775         * posix/setlogin.c: Likewise.
11776         * posix/setpgid.c: Likewise.
11777         * posix/setresgid.c: Likewise.
11778         * posix/setresuid.c: Likewise.
11779         * posix/setsid.c: Likewise.
11780         * posix/setuid.c: Likewise.
11781         * posix/sleep.c: Likewise.
11782         * posix/spawni.c: Likewise.
11783         * posix/sysconf.c: Likewise.
11784         * posix/times.c: Likewise.
11785         * posix/wait.c: Likewise.
11786         * posix/wait3.c: Likewise.
11787         * posix/wait4.c: Likewise.
11788         * posix/waitpid.c: Likewise.
11789         * resolv/gai_sigqueue.c: Likewise.
11790         * resource/getpriority.c: Likewise.
11791         * resource/getrlimit.c: Likewise.
11792         * resource/getrusage.c: Likewise.
11793         * resource/nice.c: Likewise.
11794         * resource/setpriority.c: Likewise.
11795         * resource/setrlimit.c: Likewise.
11796         * resource/ulimit.c: Likewise.
11797         * rt/aio_cancel.c: Likewise.
11798         * rt/aio_fsync.c: Likewise.
11799         * rt/aio_read.c: Likewise.
11800         * rt/aio_sigqueue.c: Likewise.
11801         * rt/aio_suspend.c: Likewise.
11802         * rt/aio_write.c: Likewise.
11803         * rt/clock_getres.c: Likewise.
11804         * rt/clock_gettime.c: Likewise.
11805         * rt/clock_nanosleep.c: Likewise.
11806         * rt/clock_settime.c: Likewise.
11807         * rt/lio_listio.c: Likewise.
11808         * rt/mq_close.c: Likewise.
11809         * rt/mq_getattr.c: Likewise.
11810         * rt/mq_notify.c: Likewise.
11811         * rt/mq_open.c: Likewise.
11812         * rt/mq_receive.c: Likewise.
11813         * rt/mq_send.c: Likewise.
11814         * rt/mq_setattr.c: Likewise.
11815         * rt/mq_timedreceive.c: Likewise.
11816         * rt/mq_timedsend.c: Likewise.
11817         * rt/mq_unlink.c: Likewise.
11818         * rt/shm_open.c: Likewise.
11819         * rt/shm_unlink.c: Likewise.
11820         * rt/timer_create.c: Likewise.
11821         * rt/timer_delete.c: Likewise.
11822         * rt/timer_getoverr.c: Likewise.
11823         * rt/timer_gettime.c: Likewise.
11824         * rt/timer_settime.c: Likewise.
11825         * setjmp/__longjmp.c: Likewise.
11826         * setjmp/setjmp.c: Likewise.
11827         * signal/kill.c: Likewise.
11828         * signal/killpg.c: Likewise.
11829         * signal/raise.c: Likewise.
11830         * signal/sigaction.c: Likewise.
11831         * signal/sigaltstack.c: Likewise.
11832         * signal/sigblock.c: Likewise.
11833         * signal/sigignore.c: Likewise.
11834         * signal/sigintr.c: Likewise.
11835         * signal/signal.c: Likewise.
11836         * signal/sigpause.c: Likewise.
11837         * signal/sigpending.c: Likewise.
11838         * signal/sigqueue.c: Likewise.
11839         * signal/sigreturn.c: Likewise.
11840         * signal/sigset.c: Likewise.
11841         * signal/sigsetmask.c: Likewise.
11842         * signal/sigstack.c: Likewise.
11843         * signal/sigsuspend.c: Likewise.
11844         * signal/sigtimedwait.c: Likewise.
11845         * signal/sigvec.c: Likewise.
11846         * signal/sigwait.c: Likewise.
11847         * signal/sigwaitinfo.c: Likewise.
11848         * signal/sysv_signal.c: Likewise.
11849         * socket/accept.c: Likewise.
11850         * socket/accept4.c: Likewise.
11851         * socket/bind.c: Likewise.
11852         * socket/connect.c: Likewise.
11853         * socket/getpeername.c: Likewise.
11854         * socket/getsockname.c: Likewise.
11855         * socket/getsockopt.c: Likewise.
11856         * socket/isfdtype.c: Likewise.
11857         * socket/listen.c: Likewise.
11858         * socket/recv.c: Likewise.
11859         * socket/recvfrom.c: Likewise.
11860         * socket/recvmsg.c: Likewise.
11861         * socket/send.c: Likewise.
11862         * socket/sendmsg.c: Likewise.
11863         * socket/sendto.c: Likewise.
11864         * socket/setsockopt.c: Likewise.
11865         * socket/shutdown.c: Likewise.
11866         * socket/sockatmark.c: Likewise.
11867         * socket/socket.c: Likewise.
11868         * socket/socketpair.c: Likewise.
11869         * stdio-common/ctermid.c: Likewise.
11870         * stdio-common/cuserid.c: Likewise.
11871         * stdio-common/remove.c: Likewise.
11872         * stdio-common/rename.c: Likewise.
11873         * stdio-common/renameat.c: Likewise.
11874         * stdio-common/tempname.c: Likewise.
11875         * stdlib/getcontext.c: Likewise.
11876         * stdlib/makecontext.c: Likewise.
11877         * stdlib/setcontext.c: Likewise.
11878         * stdlib/swapcontext.c: Likewise.
11879         * stdlib/system.c: Likewise.
11880         * streams/fattach.c: Likewise.
11881         * streams/fdetach.c: Likewise.
11882         * streams/getmsg.c: Likewise.
11883         * streams/getpmsg.c: Likewise.
11884         * streams/putmsg.c: Likewise.
11885         * streams/putpmsg.c: Likewise.
11886         * sysdeps/unix/bsd/getpt.c: Likewise.
11887         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
11888         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
11889         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
11890         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
11891         Likewise.
11892         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
11893         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
11894         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
11895         * sysvipc/msgctl.c: Likewise.
11896         * sysvipc/msgget.c: Likewise.
11897         * sysvipc/msgrcv.c: Likewise.
11898         * sysvipc/msgsnd.c: Likewise.
11899         * sysvipc/semctl.c: Likewise.
11900         * sysvipc/semget.c: Likewise.
11901         * sysvipc/semop.c: Likewise.
11902         * sysvipc/semtimedop.c: Likewise.
11903         * sysvipc/shmat.c: Likewise.
11904         * sysvipc/shmctl.c: Likewise.
11905         * sysvipc/shmdt.c: Likewise.
11906         * sysvipc/shmget.c: Likewise.
11907         * termios/tcdrain.c: Likewise.
11908         * termios/tcflow.c: Likewise.
11909         * termios/tcflush.c: Likewise.
11910         * termios/tcgetattr.c: Likewise.
11911         * termios/tcgetpgrp.c: Likewise.
11912         * termios/tcsendbrk.c: Likewise.
11913         * termios/tcsetattr.c: Likewise.
11914         * termios/tcsetpgrp.c: Likewise.
11915         * time/adjtime.c: Likewise.
11916         * time/clock.c: Likewise.
11917         * time/getitimer.c: Likewise.
11918         * time/gettimeofday.c: Likewise.
11919         * time/setitimer.c: Likewise.
11920         * time/settimeofday.c: Likewise.
11921         * time/stime.c: Likewise.
11922         * time/time.c: Likewise.
11923
11924 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
11925
11926         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
11927         /usr/old/bin.
11928
11929         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
11930         instead of spaces.
11931         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
11932
11933 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
11934
11935         [BZ #14796]
11936         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
11937         FE_TONEAREST before applying Dekker multiplication and Knuth
11938         addition.  Clear inexact exceptions and check for exact zero
11939         results afterwards.
11940         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11941         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
11942         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11943         * math/libm-test.inc (fma_test): Add more tests.
11944         (fma_test_towardzero): Likewise.
11945         (fma_test_downward): Likewise.
11946         (fma_test_upward): Likewise.
11947         * sysdeps/generic/math_private.h (default_libc_fesetround): New
11948         function.
11949         (libc_fesetround): New macro.
11950         (libc_fesetroundf): Likewise.
11951         (libc_fesetroundl): Likewise.
11952         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
11953         function.
11954         (libc_fesetround_387): Likewise.
11955         (libc_fesetroundf): New macro.
11956         (libc_fesetround): Likewise.
11957         (libc_fesetroundl): Likewise.
11958         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
11959         function.
11960         (libc_fesetroundf): New macro.
11961         (libc_fesetround): Likewise.
11962         (libc_fesetroundl): Likewise.
11963         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
11964         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
11965         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
11966         libm_hidden_ver.
11967         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
11968         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
11969         libm_hidden_def.
11970         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
11971         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
11972         libm_hidden_ver.
11973         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
11974         libm_hidden_def.
11975
11976         [BZ #3439]
11977         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
11978         integer constant usable in #if and use that to give value to enum
11979         constant.
11980         (FE_DIVBYZERO): Likewise.
11981         (FE_UNDERFLOW): Likewise.
11982         (FE_OVERFLOW): Likewise.
11983         (FE_INVALID): Likewise.
11984         (FE_INVALID_SNAN): Likewise.
11985         (FE_INVALID_ISI): Likewise.
11986         (FE_INVALID_IDI): Likewise.
11987         (FE_INVALID_ZDZ): Likewise.
11988         (FE_INVALID_IMZ): Likewise.
11989         (FE_INVALID_COMPARE): Likewise.
11990         (FE_INVALID_SOFTWARE): Likewise.
11991         (FE_INVALID_SQRT): Likewise.
11992         (FE_INVALID_INTEGER_CONVERSION): Likewise.
11993         (FE_TONEAREST): Likewise.
11994         (FE_TOWARDZERO): Likewise.
11995         (FE_UPWARD): Likewise.
11996         (FE_DOWNWARD): Likewise.
11997         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
11998         (FE_DIVBYZERO): Likewise.
11999         (FE_OVERFLOW): Likewise.
12000         (FE_UNDERFLOW): Likewise.
12001         (FE_INEXACT): Likewise.
12002         (FE_TONEAREST): Likewise.
12003         (FE_DOWNWARD): Likewise.
12004         (FE_UPWARD): Likewise.
12005         (FE_TOWARDZERO): Likewise.
12006         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
12007         (FE_UNDERFLOW): Likewise.
12008         (FE_OVERFLOW): Likewise.
12009         (FE_DIVBYZERO): Likewise.
12010         (FE_INVALID): Likewise.
12011         (FE_TONEAREST): Likewise.
12012         (FE_TOWARDZERO): Likewise.
12013         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
12014         (FE_OVERFLOW): Likewise.
12015         (FE_UNDERFLOW): Likewise.
12016         (FE_DIVBYZERO): Likewise.
12017         (FE_INEXACT): Likewise.
12018         (FE_TONEAREST): Likewise.
12019         (FE_TOWARDZERO): Likewise.
12020         (FE_UPWARD): Likewise.
12021         (FE_DOWNWARD): Likewise.
12022         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
12023         (FE_DIVBYZERO): Likewise.
12024         (FE_OVERFLOW): Likewise.
12025         (FE_UNDERFLOW): Likewise.
12026         (FE_INEXACT): Likewise.
12027         (FE_TONEAREST): Likewise.
12028         (FE_DOWNWARD): Likewise.
12029         (FE_UPWARD): Likewise.
12030         (FE_TOWARDZERO): Likewise.
12031
12032 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
12033
12034         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
12035
12036 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
12037
12038         * scripts/cross-test-ssh.sh (command): Use newlines to separate
12039         commands.  Quote $PWD.
12040         (blacklist_exports): Don't use remove_newlines.  Replace "declare
12041         -x" by "export".
12042         (remove_newlines): Remove.
12043
12044 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
12045
12046         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
12047         * stdlib/stdlib.h (atof): Moved to ...
12048         * include/bits/stdlib-float.h: Here.  New file.
12049         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
12050         * stdlib/bits/stdlib-float.h: New file.
12051         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
12052         -mno-sse -mno-mmx.
12053         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
12054         <xmmintrin.h>.
12055
12056 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
12057
12058         * conform/conformtest.pl (@headers): Add fenv.h.
12059         * conform/data/fenv.h-data: New file.
12060         * include/fenv.h [_ISOMAC]: Disable all contents of file except
12061         include of <math/fenv.h>.
12062
12063         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
12064         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
12065         && !UNIX98].  Enables tests for XOPEN2K8.
12066         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
12067         POSIX2008]: Likewise.
12068
12069         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
12070         (struct rusage): Do not expect type or its members.
12071
12072         [BZ #3439]
12073         * math/math.h (FP_NAN): Define macro to integer constant usable in
12074         #if and use that to give value to enum constant.
12075         (FP_INFINITE): Likewise.
12076         (FP_ZERO): Likewise.
12077         (FP_SUBNORMAL): Likewise.
12078         (FP_NORMAL): Likewise.
12079
12080 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
12081
12082         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
12083         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
12084         arguments.
12085
12086 2012-11-02  Roland McGrath  <roland@hack.frob.com>
12087
12088         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
12089         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
12090         autoconf-time if not.
12091         * configure.in: Remove AC_PREREQ.
12092
12093 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12094
12095         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
12096         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
12097         of the internal implementation.
12098
12099 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
12100
12101         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
12102         except include of <misc/sys/syslog.h>.
12103
12104 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
12105
12106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
12107         function returns with a NULL context exit with zero.
12108
12109 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12110
12111         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
12112
12113 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
12114
12115         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
12116         (run_program_cmd): This.
12117         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
12118         (tst_langinfo): New variable.  Use it.
12119
12120 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
12121
12122         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
12123         floating point opcodes.
12124
12125 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
12126
12127         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
12128         variable.
12129
12130         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
12131
12132         * sysdeps/mach/hurd/powerpc: Remove directory.
12133         * sysdeps/mach/powerpc: Likewise.
12134
12135 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
12136
12137         * scripts/check-local-headers.sh: Ignore c++ headers.
12138
12139 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
12140
12141         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
12142         __libc_cleanup_region_start argument.
12143
12144 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
12145
12146         [BZ #14784]
12147         [BZ #14785]
12148         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
12149         x * y using scaling, not as x * y + z.
12150         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12151         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12152         * math/libm-test.inc (fma_test): Add more tests.
12153         (fma_test_towardzero): Likewise.
12154         (fma_test_downward): Likewise.
12155         (fma_test_upward): Likewise.
12156
12157 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
12158
12159         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
12160
12161 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
12162
12163         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
12164         New variable.
12165
12166 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
12167
12168         * rt/tst-shm.c (worker): Correct checking for mmap failure.
12169
12170 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
12171
12172         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12173         Fix sort order.
12174         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12175         Likewise.
12176
12177 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12178
12179         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12180         Fix the order of the list for glibc 2.17.
12181         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12182         Likewise.
12183
12184 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
12185
12186         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12187
12188 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
12189
12190         [BZ #14610]
12191         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
12192         for low part of x being zero before using __atanl (y).
12193         * math/libm-test.inc (atan2_test): Add another test.
12194
12195         * manual/install.texi (Configuring and compiling): Document
12196         general use of test-wrapper and test-wrapper-env.
12197         * INSTALL: Regenerated.
12198
12199         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
12200         (__fma): Do not extract and scale down low bits on after-rounding
12201         systems when result rounded to normal precision would have normal
12202         exponent.
12203         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
12204         (__fmal): Do not extract and scale down low bits on after-rounding
12205         systems when result rounded to normal precision would have normal
12206         exponent.
12207         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
12208         (__fmal): Do not extract and scale down low bits on after-rounding
12209         systems when result rounded to normal precision would have normal
12210         exponent.
12211         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
12212         macro.
12213         (fma_test): Add more tests.
12214         (fma_test_towardzero): Likewise.
12215         (fma_test_downward): Likewise.
12216         (fma_test_upward): Likewise.
12217
12218 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
12219
12220         * sysdeps/i386/tininess.h: Renamed to ...
12221         * sysdeps/x86/tininess.h: This.
12222         * sysdeps/x86_64/tininess.h: Removed.
12223
12224 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
12225
12226         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
12227         input.  Use $(build-program-cmd).
12228         ($(objpfx)tst-array1-static.out): Likewise.
12229         ($(objpfx)tst-array2.out): Likewise.
12230         ($(objpfx)tst-array3.out): Likewise.
12231         ($(objpfx)tst-array4.out): Likewise.
12232         ($(objpfx)tst-array5.out): Likewise.
12233         ($(objpfx)tst-array5-static.out): Likewise.
12234
12235 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
12236
12237         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
12238         if defined.
12239
12240         * nss/nsswitch.h (nss_interface_function): Provide new
12241         macro for use with NSS functions.
12242         * grp/initgroups.c: Use new macro.
12243         * nss/getXXbyYY.c: Likewise.
12244         * nss/getXXbyYY_r.c: Likewise.
12245         * nss/getXXent.c: Likewise.
12246         * nss/getXXent_r.c: Likewise.
12247         * sysdeps/posix/getaddrinfo.c: Likewise.
12248
12249 2012-10-30  Andreas Jaeger  <aj@suse.de>
12250
12251         * po/ru.po: Update Russion translation from translation project.
12252
12253 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
12254
12255         [BZ #14152]
12256         [BZ #14783]
12257         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
12258         result and shift together with sticky bit instead of replicating
12259         round-to-nearest rounding.
12260         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12261         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12262         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
12263         missing underflow exceptions.
12264         (fma_test_towardzero): Add more tests.
12265         (fma_test_downward): Likewise.
12266         (fma_test_upward): Likewise.
12267
12268         [BZ #14047]
12269         * sysdeps/generic/tininess.h: New file.
12270         * sysdeps/i386/tininess.h: Likewise.
12271         * sysdeps/sh/tininess.h: Likewise.
12272         * sysdeps/x86_64/tininess.h: Likewise.
12273         * stdlib/tst-strtod-underflow.c: Likewise.
12274         * stdlib/tst-tininess.c: Likewise.
12275         * stdlib/strtod_l.c: Include <tininess.h>.
12276         (round_and_return): Do not set errno for exact underflow cases.
12277         Force an underflow exception when setting errno for underflow.
12278         Determine underflow based on rounding to normal precision if
12279         TININESS_AFTER_ROUNDING.
12280         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
12281         ERANGE for exact underflow cases.
12282         * stdlib/Makefile (tests): Add tst-tininess and
12283         tst-strtod-underflow.
12284         ($(objpfx)tst-tininess): Use $(link-libm).
12285         ($(objpfx)tst-strtod-underflow): Likewise.
12286
12287 2012-10-30  Andreas Jaeger  <aj@suse.de>
12288
12289         [BZ#14767]
12290         * elf/Makefile (tests): Remove conditional for have-initfini-array
12291         since this is now always required and the variable does not exist
12292         anymore.
12293         (tests-static): Likewise.
12294         (modules-names): Likewise.
12295
12296         * po/eo.po: Add Esperanto translation from translation project.
12297
12298         * elf/tst-array1.c (fini_array): Make writeable so that it can be
12299         merged with constructor/destructor.
12300         (init_array): Likewise.
12301         * elf/tst-array2dep.c (fini_array): Likewise.
12302         (init_array): Likewise.
12303
12304 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
12305
12306         * manual/message.texi: Delete @cartouche tags.
12307
12308 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
12309
12310         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
12311         EOPNOTSUPP.
12312         * sysdeps/mach/hurd/fsync.c: Likewise.
12313
12314         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
12315         [_POSIX_REALTIME_SIGNALS]: Change condition to
12316         [_POSIX_REALTIME_SIGNALS > 0].
12317
12318 2012-10-27  Andreas Jaeger  <aj@suse.de>
12319
12320         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
12321         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
12322         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
12323         [__WORDSIZE != 64]: Likewise.
12324
12325 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
12326
12327         *  iconvdata/tst-table.sh: Remove ${SHELL}.
12328         *  iconvdata/tst-tables.sh: Likewise.
12329
12330 2012-10-25  David S. Miller  <davem@davemloft.net>
12331
12332         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12333         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
12334         of strtoull.
12335
12336         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
12337         ifunc-impl-list.c
12338         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
12339         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
12340         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
12341         file.
12342
12343 2012-10-25  Roland McGrath  <roland@hack.frob.com>
12344
12345         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12346         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
12347         __getdirentries.
12348
12349 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
12350             Jim Blandy  <jimb@codesourcery.com>
12351
12352         * scripts/cross-test-ssh.sh: New file.
12353         * manual/install.texi (Configuring and compiling): Document use of
12354         cross-test-ssh.sh.
12355         * INSTALL: Regenerated.
12356
12357 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
12358
12359         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
12360         EOPNOTSUPP.
12361
12362 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
12363
12364         * Makeconfig (run-program-prefix): Fix comment.
12365
12366 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
12367             Jim Blandy  <jimb@codesourcery.com>
12368
12369         * Makeconfig (test-wrapper): New variable,
12370         (test-wrapper-env): Likewise.
12371         [$(cross-compiling) = yes && $(test-wrapper) != ""]
12372         (run-built-tests): Define to yes.
12373         (run-program-prefix): Use $(test-wrapper).
12374         (built-program-cmd): Likewise.
12375         * Rules (make-test-out): Use $(test-wrapper-env) and
12376         $(host-built-program-cmd).
12377         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
12378         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
12379         tst-pathopt.sh.
12380         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
12381         $(test-wrapper-env) to tst-rtld-load-self.sh.
12382         ($(objpfx)order2.out): Use $(test-wrapper).
12383         ($(objpfx)tst-initorder.out): Likewise.
12384         ($(objpfx)tst-initorder2.out): Likewise.
12385         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
12386         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
12387         (test_wrapper_env): New variable.  Use it to run ld.so.
12388         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
12389         Use it to run ld.so.
12390         (test_wrapper_env): Likewise.
12391         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
12392         $(test-wrapper) to run-iconv-test.sh.
12393         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
12394         (ICONV): Use $test_wrapper.
12395         * posix/Makefile ($(objpfx)globtest.out): Pass
12396         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
12397         globtest.sh, not $(run-program-prefix).
12398         * posix/globtest.sh (run_via_rtld_prefix): New variable.
12399         (test_wrapper): Likewise.
12400         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
12401         set together with run_via_rtld_prefix.
12402         (run_program_prefix): Define in terms of test_wrapper and
12403         run_via_rtld_prefix.
12404
12405 2012-10-24  Roland McGrath  <roland@hack.frob.com>
12406
12407         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
12408         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
12409         Targets removed.
12410
12411         [BZ #14743]
12412         * include/time.h: Remove librt_hidden_proto (clock_gettime).
12413         Declare __clock_getres, __clock_gettime, __clock_settime,
12414         __clock_nanosleep, and __clock_getcpuclockid.
12415         * rt/clock_gettime.c: Define __clock_gettime as an alias.
12416         Remove librt_hidden_def (clock_gettime).
12417         * sysdeps/unix/clock_gettime.c: Likewise.
12418         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
12419         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
12420         * rt/clock_getres.c: Define __clock_getres as an alias.
12421         * sysdeps/posix/clock_getres.c: Likewise.
12422         * rt/clock_settime.c: Define __clock_settime as an alias.
12423         * sysdeps/unix/clock_settime.c: Likewise.
12424         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
12425         * sysdeps/unix/clock_nanosleep.c: Likewise.
12426         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
12427         * rt/clock-compat.c: New file.
12428         * rt/Makefile (librt-routines): Add clock-compat and move
12429         $(clock-routines) to ...
12430         (routines): ... here, new variable.
12431         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
12432         Don't add get_clockfreq here.
12433         * rt/Versions (libc: GLIBC_2.17): New version set.
12434         Add clock_* symbols here.
12435         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
12436         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
12437         (GLIBC_2.17): Add clock_* symbols.
12438         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
12439         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
12440         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
12441         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
12442         Likewise.
12443         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
12444         Likewise.
12445         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
12446         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
12447         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
12448         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
12449         * NEWS: Mention the move.
12450
12451         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
12452         Use __open, __read, __close rather than their public counterparts.
12453         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
12454         (__get_clockfreq_via_cpuinfo): Likewise.
12455         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
12456         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
12457
12458         * config.h.in (HAVE_IFUNC): New #undef.
12459         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
12460         was successful.
12461         * configure: Regenerated.
12462
12463 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
12464
12465         * configure.in: Move READELF check to start of file.
12466         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
12467         libc_cv_asm_gnu_indirect_function in the process.
12468         * configure: Regenerated.
12469
12470 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
12471
12472         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
12473         send the output to /dev/null.
12474         (libc_cv_cc_with_libunwind): Likewise.
12475         (libc_cv_as_noexecstack): Likewise.
12476         * configure: Regenerate.
12477
12478 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
12479
12480         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
12481
12482         * posix/globtest.sh (TMPDIR): Do not set.
12483         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
12484         (testout): Likewise.
12485
12486 2012-10-24  Andreas Jaeger  <aj@suse.de>
12487
12488         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
12489         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
12490         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
12491         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
12492         posix_fadvise64, posix_fallocate64.
12493
12494         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
12495         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
12496         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
12497         Likewise.
12498         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
12499         Likewise.
12500         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
12501
12502         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
12503         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
12504         <bits/fcntl-linux.h>.
12505         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
12506
12507         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
12508         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
12509         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
12510         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
12511         [__WORDSIZE != 64]: Likewise.
12512
12513 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
12514
12515         * Makeconfig (run-built-tests): New variable.
12516         * Rules [$(cross-compiling) = yes]: Change condition to
12517         [$(run-built-tests) = no].
12518         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
12519         to [$(run-built-tests) = yes].
12520         * elf/Makefile [$(cross-compiling) = no]: Likewise
12521         * grp/Makefile [$(cross-compiling) = no]: Likewise.
12522         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
12523         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
12524         * intl/Makefile [$(cross-compiling) = no]: Likewise.
12525         * io/Makefile [$(cross-compiling) = no]: Likewise.
12526         * libio/Makefile [$(cross-compiling) = no]: Likewise.
12527         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
12528         * misc/Makefile [$(cross-compiling) = no]: Likewise.
12529         * posix/Makefile [$(cross-compiling) = no]: Likewise.
12530         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
12531         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
12532         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
12533         * string/Makefile [$(cross-compiling) = no]: Likewise.
12534
12535         * posix/Makefile ($(objpfx)globtest.out): Pass
12536         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
12537         $(rtld-installed-name).
12538         * posix/globtest.sh (elf_objpfx): Remove variable.
12539         (rtld_installed_name): Likewise.
12540         (library_path): Likewise.
12541         (run_program_prefix): New variable.  Use for running globtest
12542         binary.
12543
12544 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
12545             Joseph Myers  <joseph@codesourcery.com>
12546
12547         * Makeconfig (host-built-program-cmd): New variable.
12548         * elf/Makefile (tst-stackguard1-ARGS): Use
12549         $(host-built-program-cmd).
12550         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
12551         (tst-spawn-ARGS): Likewise.
12552         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
12553
12554 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
12555             Jim Blandy  <jimb@codesourcery.com>
12556
12557         * Makeconfig (run-via-rtld-prefix): New variable.
12558         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
12559         (built-program-cmd): Likewise.
12560
12561 2012-10-22  Andreas Jaeger  <aj@suse.de>
12562
12563         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
12564         __O_RSYNC if it exists, otherwise to O_SYNC.
12565
12566 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
12567             Joseph Myers  <joseph@codesourcery.com>
12568
12569         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
12570         /dev/null.
12571         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
12572         from /dev/null
12573         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
12574         /dev/null.
12575
12576 2012-10-22  Andreas Jaeger  <aj@suse.de>
12577
12578         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
12579         Define always.
12580         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
12581
12582         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
12583         bits/fcntl-linux.h.
12584
12585         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
12586         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
12587
12588         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
12589         to __O_LARGEFILE.
12590         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
12591         to __O_LARGEFILE.
12592
12593 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
12594             Joseph Myers  <joseph@codesourcery.com>
12595
12596         * config.make.in (NM): New variable.
12597
12598 2012-10-21  Andreas Jaeger  <aj@suse.de>
12599
12600         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
12601         definitions and declarations that are provided by
12602         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
12603
12604 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
12605
12606         [BZ #14683]
12607         * elf/Makefile (tests-static): Add tst-leaks1-static.
12608         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
12609         ($(objpfx)tst-leaks1-static): New rule.
12610         ($(objpfx)tst-leaks1-static-mem): Likewise.
12611         (tst-leaks1-static-ENV): New macro.
12612         * elf/dl-open.c (dl_open_worker): Check the main application
12613         only if SHARED is defined.
12614         * elf/tst-leaks1-static.c: New file.
12615
12616 2012-10-20  Andreas Jaeger  <aj@suse.de>
12617
12618         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
12619         generic values for Linux.
12620         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
12621         and declarations that are provided by <bits/fcntl-linux.h> and
12622         include <bits/fcntl-linux.h>.
12623         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
12624         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
12625
12626 2012-10-20  Roland McGrath  <roland@hack.frob.com>
12627
12628         * io/fcntl.h: Move include of <bits/types.h> to the top and
12629         include it unconditionally.
12630
12631 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
12632
12633         * wcsmbs/Makefile (tests-ifunc): New variable.
12634         (tests): Add $(tests-ifunc).
12635         * wcsmbs/test-wcschr-ifunc.c: New file.
12636         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
12637         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
12638         * wcsmbs/test-wcslen-ifunc.c: Likewise.
12639         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
12640         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
12641
12642         * string/Makefile (tests-ifunc): New variable.
12643         (tests): Add $(tests-ifunc).
12644         * string/test-memccpy.c (TEST_NAME): New macro.
12645         * string/test-memchr.c (TEST_NAME): Likewise.
12646         * string/test-memcmp.c (TEST_NAME): Likewise.
12647         * string/test-memcpy.c (TEST_NAME): Likewise.
12648         * string/test-memmem.c (TEST_NAME): Likewise.
12649         * string/test-memmove.c (TEST_NAME): Likewise.
12650         * string/test-memset.c (TEST_NAME): Likewise.
12651         * string/test-rawmemchr.c (TEST_NAME): Likewise.
12652         * string/test-stpcpy.c (TEST_NAME): Likewise.
12653         * string/test-stpncpy.c (TEST_NAME): Likewise.
12654         * string/test-strcasecmp.c (TEST_NAME): Likewise.
12655         * string/test-strcasestr.c (TEST_NAME): Likewise.
12656         * string/test-strcat.c (TEST_NAME): Likewise.
12657         * string/test-strchr.c (TEST_NAME): Likewise.
12658         * string/test-strcmp.c(TEST_NAME): Likewise.
12659         * string/test-strcpy.c (TEST_NAME): Likewise.
12660         * string/test-strcspn.c (TEST_NAME): Likewise.
12661         * string/test-strlen.c (TEST_NAME): Likewise.
12662         * string/test-strncasecmp.c (TEST_NAME): Likewise.
12663         * string/test-strncmp.c (TEST_NAME): Likewise.
12664         * string/test-strncpy.c (TEST_NAME): Likewise.
12665         * string/test-strnlen.c (TEST_NAME): Likewise.
12666         * string/test-strpbrk.c (TEST_NAME): Likewise.
12667         * string/test-strrchr.c (TEST_NAME): Likewise.
12668         * string/test-strspn.c (TEST_NAME): Likewise.
12669         * string/test-strstr.c (TEST_NAME): Likewise.
12670         * string/test-bcopy-ifunc.c: New file.
12671         * string/test-bzero-ifunc.c: Likewise.
12672         * string/test-memccpy-ifunc.c: Likewise.
12673         * string/test-memchr-ifunc.c: Likewise.
12674         * string/test-memcmp-ifunc.c: Likewise.
12675         * string/test-memcpy-ifunc.c: Likewise.
12676         * string/test-memmem-ifunc.c: Likewise.
12677         * string/test-memmove-ifunc.c: Likewise.
12678         * string/test-mempcpy-ifunc.c: Likewise.
12679         * string/test-memset-ifunc.c: Likewise.
12680         * string/test-rawmemchr-ifunc.c: Likewise.
12681         * string/test-stpcpy-ifunc.c: Likewise.
12682         * string/test-stpncpy-ifunc.c: Likewise.
12683         * string/test-strcasecmp-ifunc.c: Likewise.
12684         * string/test-strcasestr-ifunc.c: Likewise.
12685         * string/test-strcat-ifunc.c: Likewise.
12686         * string/test-strchr-ifunc.c: Likewise.
12687         * string/test-strchrnul-ifunc.c: Likewise.
12688         * string/test-strcmp-ifunc.c: Likewise.
12689         * string/test-strcpy-ifunc.c: Likewise.
12690         * string/test-strcspn-ifunc.c: Likewise.
12691         * string/test-strlen-ifunc.c: Likewise.
12692         * string/test-strncasecmp-ifunc.c: Likewise.
12693         * string/test-strncat-ifunc.c: Likewise.
12694         * string/test-strncmp-ifunc.c: Likewise.
12695         * string/test-strncpy-ifunc.c: Likewise.
12696         * string/test-strnlen-ifunc.c: Likewise.
12697         * string/test-strpbrk-ifunc.c: Likewise.
12698         * string/test-strrchr-ifunc.c: Likewise.
12699         * string/test-strspn-ifunc.c: Likewise.
12700         * string/test-strstr-ifunc.c: Likewise.
12701
12702         * debug/Makefile (tests-ifunc): New variable.
12703         (tests): Add $(tests-ifunc).
12704         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
12705         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
12706         * debug/test-stpcpy_chk-ifunc.c: New file.
12707         * debug/test-strcpy_chk-ifunc.c: Likewise.
12708
12709 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
12710
12711         [BZ #13601]
12712         * elf/dl-load.c (open_verify): Retry read if the entire ELF
12713         header is not read in.
12714
12715 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
12716
12717         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
12718         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
12719         directly.  Pass built executable to script as
12720         $(built-program-cmd).
12721         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
12722         $testprogram without using LD_LIBRARY_PATH and $ldso.
12723
12724         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
12725         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
12726         $(rtld-installed-name).
12727         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
12728         (rtld_installed_name): Likewise.
12729         (library_path): Likewise.
12730         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
12731         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
12732         $(run-program-prefix) to tst-tables.sh.
12733         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
12734         it to run tst-table-from and tst-table-to.
12735         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
12736         Pass it to tst-table.sh.
12737         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
12738         $(run-program-prefix) to tst-gettext.sh.
12739         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
12740         tst-translit.sh.
12741         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
12742         tst-gettext2.sh.
12743         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
12744         to run tst-gettext.
12745         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
12746         to run tst-gettext2.
12747         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
12748         to run tst-translit.
12749         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
12750         $(run-program-prefix) to tst-mtrace.sh.
12751         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
12752         to run tst-mtrace.
12753         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
12754         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
12755         $(rtld-installed-name).
12756         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
12757         (rtld_installed_name): Likewise.
12758         (run_program_prefix): New variable.  Use it to run wordexp-test.
12759
12760         * Makeconfig (ARCH): Remove all definitions.
12761         (machine): Likewise.
12762         [ARCH]: Remove conditional code.
12763         [!objdir]: Give error.
12764         [!objdir] (objpfx): Remove.
12765         [!objdir] (common-objpfx): Likewise.
12766         [!objdir] (common-objdir): Likewise.
12767         * configure.in (config_makefile): Remove.  Hardcode Makefile in
12768         AC_CONFIG_FILES call.
12769         * configure: Regenerated.
12770
12771         [BZ #13888]
12772         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
12773         or TMPDIR.
12774         (testout): Likewise.
12775
12776         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
12777         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
12778         $(rtld-installed-name).
12779         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
12780         (rtld_installed_name): Likwise.
12781         (runit): Remove function.
12782         (run_getconf): New variable,  Use it for running getconf binary.
12783
12784 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
12785
12786         [BZ #14716]
12787         * string/test-memmem.c (check_result): New function.
12788         (do_one_test): Use it.
12789         (check1): New function.
12790         (test_main): Use it.
12791
12792 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
12793
12794         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
12795
12796 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
12797
12798         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
12799         (_G_LSEEK64): Likewise.
12800         (_G_MMAP64): Likewise.
12801         (_G_FSTAT64): Likewise.
12802         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
12803         (_G_LSEEK64): Likewise.
12804         (_G_MMAP64): Likewise.
12805         (_G_FSTAT64): Likewise.
12806         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
12807         unconditional.  Call __mmap64 directly.
12808         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
12809         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
12810         __lseek64 directly.
12811         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
12812         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
12813         __mmap64 directly.
12814         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
12815         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
12816         __lseek64 directly.
12817         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
12818         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
12819         __lseek64 directly.
12820         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
12821         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
12822         __lseek64 directly.
12823         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
12824         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
12825         __fxstat64 directly.
12826         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
12827         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
12828         unconditional.
12829         (freopen64) [!_G_OPEN64]: Remove conditional code.
12830         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
12831         unconditional.
12832         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
12833         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
12834         unconditional.
12835         (ftello64) [!_G_LSEEK64]: Remove conditional code.
12836         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
12837         unconditional.
12838         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
12839         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
12840         unconditional.
12841         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
12842         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
12843         unconditional.
12844         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
12845         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
12846         unconditional.
12847         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
12848         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
12849         unconditional.
12850         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
12851
12852 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
12853
12854         [BZ #12140]
12855         * manual/memory.texi (Malloc Tunable Parameters): Add note
12856         about free list pointers overwriting some perturb bytes.
12857         Wording suggested by Roland McGrath.
12858
12859 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
12860
12861         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
12862         (lgamma_test): Likewise.
12863         (tgamma_test): Likewise.
12864
12865 2012-10-16  Florian Weimer  <fweimer@redhat.com>
12866
12867         [BZ #14700]
12868         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
12869         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
12870
12871 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
12872
12873         * NEWS: Mention BZ #14716.
12874         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
12875         when removing AVAILABLE1_USES_J macro.
12876
12877 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
12878
12879         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
12880         (__bswap_64): __uint64_t for unsigned 64-bit int.
12881
12882 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
12883
12884         * include/string.h (memmem): Declare libc hidden alias.
12885         * string/memmem.c (memmem): Define libc hidden alias.
12886         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
12887         __read, __close instead of open, read, close.
12888
12889 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
12890
12891         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
12892         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
12893         global and hidden.
12894         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
12895         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
12896         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
12897         Likewise.
12898         (__rawmemchr_sse2): Likewise.
12899         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
12900         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
12901         (__strchr_sse2): Likewise.
12902         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
12903         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
12904         (__strcasecmp_sse2): Likewise.
12905         (__strncasecmp_sse2): Likewise.
12906         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
12907         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
12908         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
12909         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
12910         (__strrchr_sse2): Likewise.
12911         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
12912         ifunc-impl-list.c.
12913         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
12914         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
12915         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
12916         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
12917         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
12918         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
12919         * sysdeps/x86_64/multiarch/memset.S: Likewise.
12920         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
12921         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
12922         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
12923         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
12924         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
12925         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
12926         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
12927         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
12928         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
12929         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
12930         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
12931         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
12932         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
12933         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
12934         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
12935         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
12936         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
12937         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
12938         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
12939         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
12940         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
12941         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
12942         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
12943
12944         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
12945         global and hidden.
12946         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
12947         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
12948         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
12949         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
12950         Likewise.
12951         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
12952         Likewise.
12953         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
12954         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
12955         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
12956         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
12957         ifunc-impl-list.c.
12958         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12959         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12960         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12961         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12962         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12963         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12964         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12965         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12966         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12967         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12968         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12969         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12970         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12971         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
12972         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
12973         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12974         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
12975         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
12976         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12977         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12978         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12979         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12980         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12981         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12982         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12983         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
12984         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
12985         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
12986         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
12987         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12988         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
12989         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12990         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12991         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
12992         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12993         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12994         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12995         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12996         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12997         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12998         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
12999
13000         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
13001         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
13002         * include/ifunc-impl-list.h: New file.
13003         * misc/ifunc-impl-list.c: Likewise.
13004         * misc/Makefile (routines): Add ifunc-impl-list.
13005         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
13006         * string/test-string.h: Include <ifunc-impl-list.h>.
13007         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
13008         impl_array): New variables.
13009         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
13010         are defined.
13011         (test_init): Call __libc_ifunc_impl_list to initialize
13012         func_list if TEST_IFUNC and TEST_NAME are defined.
13013
13014         * string/Makefile (strop-tests): Add bcopy and bzero.
13015         * string/test-bcopy.c: New file.
13016         * string/test-bzero.c: Likewise.
13017         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
13018         defined.
13019         * string/test-memset.c: Support bzero test if TEST_BZERO is
13020         defined.
13021         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
13022         __libc_memmove.
13023         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
13024         __libc_memset.
13025         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
13026         of memset.
13027
13028 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
13029
13030         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
13031         * configure: Regenerated.
13032
13033         * Makeconfig (+link-static-before-libc): Don't include
13034         $(link-static-libc).
13035
13036         * libio/libio.h (_IO_pos_t): Remove.
13037
13038 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
13039
13040         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
13041         McGrath.
13042
13043 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
13044
13045         * crypt/crypt-entry.c: Include fips-private.h.
13046         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
13047         * crypt/md5c-test.c (main): Tolerate disabled MD5.
13048         * sysdeps/unix/sysv/linux/fips-private.h: New file.
13049         * sysdeps/generic/fips-private.h: New file, dummy fallback.
13050
13051 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
13052
13053         * crypt/crypt-private.h: Include stdbool.h.
13054         (_ufc_setup_salt_r): Return bool.
13055         * crypt/crypt-entry.c: Include errno.h.
13056         (__crypt_r): Return NULL with EINVAL for bad salt.
13057         * crypt/crypt_util.c (bad_for_salt): New.
13058         (_ufc_setup_salt_r): Check that salt is long enough and within
13059         the specified alphabet.
13060         * crypt/badsalttest.c: New file.
13061         * crypt/Makefile (tests): Add it.
13062         ($(objpfx)badsalttest): New.
13063
13064 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
13065
13066         * NEWS: Add entry for BZ #14602.
13067
13068 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
13069
13070         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
13071         type-generic.
13072         * math/libm-test.inc: Update comment listing what functions and
13073         macros are tested.
13074         (isgreater_test): New function.
13075         (isgreaterequal_test): Likewise.
13076         (isless_test): Likewise.
13077         (islessequal_test): Likewise.
13078         (islessgreater_test): Likewise.
13079         (isunordered_test): Likewise.
13080         (main): Call the new functions.
13081
13082 2012-10-09  Roland McGrath  <roland@hack.frob.com>
13083
13084         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
13085         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
13086         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
13087         * sysdeps/i386/configure: Regenerated.
13088         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
13089         * sysdeps/mach/configure: Regenerated.
13090         * sysdeps/mach/hurd/configure: Regenerated.
13091         * sysdeps/powerpc/configure: Regenerated.
13092         * sysdeps/powerpc/powerpc32/configure: Regenerated.
13093         * sysdeps/powerpc/powerpc64/configure: Regenerated.
13094         * sysdeps/s390/s390-32/configure: Regenerated.
13095         * sysdeps/s390/s390-64/configure: Regenerated.
13096         * sysdeps/sh/configure: Regenerated.
13097         * sysdeps/sparc/configure: Regenerated.
13098         * sysdeps/unix/sysv/linux/configure: Regenerated.
13099         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
13100         * sysdeps/x86_64/configure: Regenerated.
13101
13102         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
13103         defined.  Don't check if MAP is NULL.
13104
13105 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
13106
13107         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
13108         (_G_stat64): Likewise.
13109         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
13110         (_G_stat64): Likewise.
13111         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
13112         instead of struct _G_stat64.
13113         * libio/fileops.c (mmap_remap_check): Likewise.
13114         (decide_maybe_mmap): Likewise.
13115         (_IO_new_file_seekoff): Likewise.
13116         (_IO_file_stat): Likewise.
13117         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
13118         _G_off64_t.
13119         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
13120         instead of struct _G_stat64.
13121         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
13122
13123 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
13124
13125         [BZ #14602]
13126         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
13127         Replace with ...
13128         (CHECK_EOL): New macro.
13129         (two_way_short_needle): Check beginning of haystack for EOL.  Use
13130         CHECK_EOL.
13131         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
13132         Replace with CHECK_EOL.
13133         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
13134         Replace with CHECK_EOL.
13135
13136 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
13137
13138         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
13139         type-generic.
13140         * math/libm-test.inc: Update comment listing what functions and
13141         macros are tested.
13142         (finite_test): New function.
13143         (isinf_test): Likewise.
13144         (isnan_test): Likewise.
13145         (fpclassify_test): Test subnormal input.
13146         (isfinite_test): Likewise.
13147         (isnormal_test): Likewise.
13148         (main): Call the new functions.
13149
13150 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
13151
13152         [BZ #14660]
13153         * Makerules (%.dynsym): Force C locale when running
13154         $(OBJDUMP) --dynamic-syms.
13155
13156 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
13157
13158         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
13159         <stdint.h>.
13160
13161 2012-10-06  David S. Miller  <davem@davemloft.net>
13162
13163         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
13164         upper 32-bits of the length value in %o2 since we use branch-on-register
13165         tests which consider the entire 64-bit register.
13166
13167 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
13168
13169         * string/test-strstr.c (check2): Add a test for page boundary.
13170
13171 2012-10-05  David S. Miller  <davem@davemloft.net>
13172
13173         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
13174         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
13175         file.
13176         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
13177         sysdep_routines.
13178         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
13179         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
13180         and bzero when HWCAP_SPARC_CRYPTO is present.
13181
13182 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
13183
13184         [BZ #14602]
13185         * string/test-strstr.c (check2): New function.
13186         (test_main): Call check2.
13187
13188         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
13189         and bug-strchr1.
13190         * string/bug-strcasestr1.c (do_test): Moved to ...
13191         * string/test-strcasestr.c (check1): Here.  New function.
13192         (do_one_test): Break out result checking code into ...
13193         (check_result): This.  New function.
13194         (do_one_test): Call check_result.
13195         (test_main): Call check1.
13196         * string/bug-strchr1.c (do_test): Moved to ...
13197         * string/test-strchr.c (check1): Here.  New function.
13198         (do_one_test): Break out result checking code into ...
13199         (check_result): This.  New function.
13200         (do_one_test): Call check_result.
13201         (test_main): Call check1.
13202         * string/bug-strstr1.c (main): Moved to ...
13203         * string/test-strstr.c (check1): Here.  New function.
13204         (do_one_test): Break out result checking code into ...
13205         (check_result): This.  New function.
13206         (do_one_test): Call check_result.
13207         (test_main): Call check1.
13208         * string/bug-strcasestr1.c: Removed.
13209         * string/bug-strchr1.c: Likewise.
13210         * string/bug-strstr1.c: Likewise.
13211
13212         * elf/Makefile (dl-routines): Add hwcaps.
13213         * elf/dl-support.c (_dl_important_hwcaps): Removed.
13214         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
13215         (_dl_important_hwcaps): Moved to ...
13216         * elf/dl-hwcaps.c: Here.  New file.
13217         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
13218
13219         [BZ #14557]
13220         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
13221         if IS_IN_rtld isn't defined.
13222
13223         * elf/dl-support.c (_dl_sysinfo_map): New.
13224         Include "get-dynamic-info.h" and "setup-vdso.h".
13225         (_dl_non_dynamic_init): Call setup_vdso.
13226         * elf/dynamic-link.h: Don't include <assert.h>.
13227         (elf_get_dynamic_info): Moved to ...
13228         * elf/get-dynamic-info.h: Here.  New file.
13229         * elf/dynamic-link.h: Include "get-dynamic-info.h".
13230         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
13231         * elf/setup-vdso.h: Here.  New file.
13232         * elf/rtld.c: Include "setup-vdso.h".
13233         (dl_main): Call setup_vdso.
13234
13235 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
13236
13237         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
13238         creal in comment listing functions tested.  List finite, isinf,
13239         isnan, isless, islessequal, isgreater, isgreaterequal,
13240         islessgreater, isunordered, lgamma_r and pow10 as functions and
13241         macros not tested.  Mention which functions not tested are aliases
13242         for other functions.  Fix typo.  Note that signs of NaNs are not
13243         tested.
13244
13245         * scripts/config.guess: Update from config.git.
13246         * scripts/config.sub: Likewise.
13247
13248 2012-10-04  Roland McGrath  <roland@hack.frob.com>
13249
13250         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
13251         * misc/madvise.c (madvise): Renamed to __madvise.
13252         Make madvise a weak alias.
13253         * include/sys/mman.h: Declare __madvise.
13254         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
13255         * sysdeps/unix/syscalls.list
13256         (madvise): Make __madvise the strong name, and madvise a weak alias.
13257         * sysdeps/unix/sysv/linux/syscalls.list
13258         (madvise, mmap): Remove redundant entries.
13259         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
13260         * malloc/malloc.c (mtrim): Likewise.
13261         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
13262
13263 2012-10-03  Roland McGrath  <roland@hack.frob.com>
13264
13265         * sysdeps/mach/hurd/dl-cache.c: File removed.
13266         * config.h.in (USE_LDCONFIG): New #undef.
13267         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
13268         * configure: Regenerated.
13269         * elf/Makefile (dl-routines): Add dl-cache only under
13270         [$(use-ldconfig) = yes].
13271         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
13272         cache on [USE_LDCONFIG].
13273         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
13274         [USE_LDCONFIG].
13275         * elf/rtld.c (dl_main): Likewise.
13276
13277 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
13278
13279         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
13280         _SC_LEVEL4_CACHE_LINESIZE.
13281
13282 2012-10-03  Roland McGrath  <roland@hack.frob.com>
13283
13284         * sysdeps/unix/bsd/confstr.h: File removed.
13285
13286 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
13287
13288         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
13289         sys/sdt-config.h.
13290
13291 2012-10-02  Roland McGrath  <roland@hack.frob.com>
13292
13293         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
13294         Make 'mapoff' field ElfW(Off) rather than off_t.
13295
13296 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
13297
13298         * nscd/Makefile: Remove nscd-cflags and all its users.
13299         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
13300         (CFLAGS-nonlib): Add compiler flags for nscd modules.
13301
13302         [BZ #10631]
13303         * malloc.c (malloc_printerr): Clarify error message.
13304
13305 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
13306
13307         [BZ #14648]
13308         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13309         Set bit_FMA_Usable if FMA is supported.
13310         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
13311         macro.
13312         (bit_FMA4_Usable): Updated.
13313         (index_FMA_Usable): New macro.
13314         (CPUID_FMA): Likewise
13315         (HAS_FMA): Defined with bit_FMA_Usable.
13316
13317 2012-10-01  Roland McGrath  <roland@hack.frob.com>
13318
13319         * bits/types.h (__swblk_t): Type removed.
13320         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
13321         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
13322         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
13323         (__SWBLK_T_TYPE): Likewise.
13324         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
13325         (__SWBLK_T_TYPE): Likewise.
13326         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
13327         (__SWBLK_T_TYPE): Likewise.
13328         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
13329         (__SWBLK_T_TYPE): Likewise.
13330
13331 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
13332             Honza Horak <hhorak@redhat.com>
13333
13334         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
13335         (xdr_mapname): Use YPMAXMAP as maxsize.
13336         (xdr_peername): Use YPMAXPEER as maxsize.
13337         (xdr_keydat): Use YPAXRECORD as maxsize.
13338         (xdr_valdat): Use YPMAXRECORD as maxsize.
13339
13340 2012-10-01  Roland McGrath  <roland@hack.frob.com>
13341
13342         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
13343
13344         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
13345         * csu/init-first.c: ... here.
13346         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
13347         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
13348         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
13349         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
13350         * sysdeps/i386/init-first.c: File removed.
13351         * sysdeps/sh/init-first.c: File removed.
13352
13353 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
13354
13355         [BZ #14645]
13356         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
13357         if x * y might underflow to zero and z is zero.
13358         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13359         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13360         * math/libm-test.inc (min_subnorm_value): New variable.
13361         (fma_test): Add more tests.
13362         (fma_test_towardzero): Likewise.
13363         (fma_test_downward): Likewise
13364         (fma_test_upward): Likewise.
13365         (initialize): Set min_subnorm_value.
13366
13367 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
13368
13369         [BZ #14638]
13370         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
13371         0 + 0.
13372         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
13373         mode for addition resulting in exact zero.
13374         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
13375         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
13376         exact 0 + 0.
13377         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
13378         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13379         * math/libm-test.inc (fma_test): Add more tests.
13380         (fma_test_towardzero): New function.
13381         (fma_test_downward): Likewise.
13382         (fma_test_upward): Likewise.
13383         (main): Call the new functions.
13384
13385 2012-09-28  David S. Miller  <davem@davemloft.net>
13386
13387         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
13388
13389 2012-09-28  Roland McGrath  <roland@hack.frob.com>
13390
13391         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
13392         instead of SIGALRM.
13393
13394         * sysdeps/gnu/_G_config.h: Moved to ...
13395         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
13396         * sysdeps/mach/hurd/_G_config.h: Moved to ...
13397         * sysdeps/generic/_G_config.h: ... here.
13398
13399         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
13400
13401         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
13402
13403         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
13404         Conditionalize target on [libnss_test1.so-version].
13405
13406         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
13407
13408         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
13409         (elfobjdir): Move out of conditionals.
13410
13411         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
13412         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
13413         (__nss_lookup_function): Conditionalize label remove_from_tree on
13414         [!DO_STATIC_NSS || SHARED], matching its only use.
13415
13416 2012-09-28  David S. Miller  <davem@davemloft.net>
13417
13418         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
13419         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
13420         file.
13421         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
13422         sysdep_routines.
13423         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
13424         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
13425         when HWCAP_SPARC_CRYPTO is present.
13426
13427 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
13428
13429         * io/tst-mknodat.c: Create a FIFO instead of a socket.
13430
13431 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
13432
13433         [BZ #6530]
13434         * stdio-common/vfprintf.c (process_string_arg): Revert
13435         2000-07-22 change.
13436
13437 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
13438
13439         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
13440         for testcase.
13441         * stdio-common/tst-sprintf.c: Include <locale.h>
13442         (main): Test sprintf's handling of incomplete multibyte
13443         characters.
13444
13445 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
13446
13447         * elf/dl-runtime.c (VERSYMIDX): Removed.
13448         * elf/dl-version.c (VERSYMIDX): Likewise.
13449         * elf/do-rel.h (VERSYMIDX): Likewise.
13450         (VALIDX): Likewise.
13451         * elf/dynamic-link.h (VERSYMIDX): Likewise.
13452         * elf/rtld.c (VALIDX): Likewise.
13453         (ADDRIDX): Likewise.
13454         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
13455         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
13456         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
13457         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
13458         (VALIDX): Likewise.
13459         (ADDRIDX): Likewise.
13460
13461 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
13462
13463         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
13464
13465 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
13466
13467         [BZ #11438]
13468         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
13469         to global scope.
13470         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
13471         addresses are in the same scope as 192.0.2/24.
13472         * posix/gai.conf: Document new scope table defaults.
13473
13474 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
13475
13476         [BZ #5298]
13477         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
13478         for ftell.  Compute offsets from write pointers instead.
13479         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
13480
13481 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
13482
13483         [BZ #14543]
13484         * libio/Makefile (tests): New test case tst-fseek.
13485         * libio/tst-fseek.c: New test case to verify that fseek/ftell
13486         combination works in wide mode.
13487         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
13488         state when the external buffer state changes.
13489
13490 2012-09-27  David S. Miller  <davem@davemloft.net>
13491
13492         [BZ #14376]
13493         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
13494         pass reloc->r_addend in as the 'high' argument to
13495         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
13496
13497         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13498
13499 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
13500
13501         * rt/tst-aio2.c: Include <pthread.h>.
13502         * rt/tst-aio3.c: Likewise.
13503
13504 2012-09-27  Steve Ellcey  <sellcey@mips.com>
13505
13506         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
13507
13508 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
13509
13510         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
13511         contents on [SHARED].
13512
13513 2012-09-26  Marek Polacek  <polacek@redhat.com>
13514
13515         [BZ #14530]
13516         [BZ #13741]
13517         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
13518         for C++ and GCC <4.3 as well as for non GCC compilers.
13519
13520 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
13521
13522         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13523
13524 2012-09-25  Roland McGrath  <roland@hack.frob.com>
13525
13526         * Makefile.in (all, install): Declare with .PHONY.
13527         Reported by Michael Hope <michael.hope@linaro.org>.
13528
13529 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
13530
13531         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
13532         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
13533         system header.
13534         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
13535         Likewise.
13536         (sydep_routines): Add the new and the internal functions.
13537         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
13538         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
13539         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
13540         (GLIBC_2.17): Add the new function.
13541         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
13542         (GLIBC_2.17): Likewise.
13543         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
13544         (GLIBC_2.17): Likewise.
13545         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
13546         (GLIBC_2.17): Likewise.
13547         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
13548
13549 2012-09-25  Alan Modra  <amodra@gmail.com>
13550
13551         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
13552         Add release barrier before setting once_control to say
13553         initialisation is done.  Add hints on lwarx.  Use macro in
13554         place of isync.
13555         (clear_once_control): Add release barrier.
13556
13557 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
13558
13559         [BZ #13629]
13560         * math/s_clog.c (__clog): Handle more values close to |z| = 1
13561         specially.
13562         * math/s_clog10.c (__clog10): Likewise.
13563         * math/s_clog10f.c (__clog10f): Likewise.
13564         * math/s_clog10l.c (__clog10l): Likewise.
13565         * math/s_clogf.c (__clogf): Likewise.
13566         * math/s_clogl.c (__clogl): Likewise.
13567         * math/Makefile (libm-calls): Add x2y2m1.
13568         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
13569         (__x2y2m1): Likewise.
13570         (__x2y2m1l): Likewise.
13571         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
13572         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
13573         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
13574         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
13575         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
13576         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
13577         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
13578         * sysdeps/i386/fpu/libm-test-ulps: Update.
13579         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
13580
13581         [BZ #14621]
13582         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
13583         int as type of variable DEPTH.
13584         (glob): Use size_t instead of int as type of variables NEWCOUNT
13585         and OLD_PATHC.
13586
13587 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13588
13589         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
13590         Add s_sincosf-sse2.
13591         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
13592         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
13593         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
13594         macros for using routine as __sincosf_ia32.
13595         Use macro for function declaration and weak_alias.
13596         * sysdeps/i386/fpu/libm-test-ulps: Update.
13597
13598         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
13599         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13600
13601         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
13602         subnormal argument.
13603         * math/s_cexpf.c (__cexpf): Likewise.
13604         * math/s_csinf.c (__csinf): Likewise.
13605         * math/s_csinhf.c (__csinhf): Likewise.
13606         * math/s_ctanf.c (__ctanf): Likewise.
13607         * math/s_ctanhf.c (__ctanhf): Likewise.
13608         * math/s_ccosh.c (__ccoshf): Likewise.
13609         * math/s_cexp.c (__cexpl): Likewise.
13610         * math/s_csin.c (__csin): Likewise.
13611         * math/s_csinh.c (__csinh): Likewise.
13612         * math/s_ctan.c (__ctan): Likewise.
13613         * math/s_ctanh.c (ctanh): Likewise.
13614         * math/s_ccoshl.c (__ccoshl): Likewise.
13615         * math/s_cexpl.c (__cexpl): Likewise.
13616         * math/s_csinl.c (__csinl): Likewise.
13617         * math/s_csinhl.c (__csinhl): Likewise.
13618         * math/s_ctanl.c (__ctanl): Likewise.
13619         * math/s_ctanhl.c (__ctanhl): Likewise.
13620
13621 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
13622
13623         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
13624         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
13625         (_IO_off_t): Define to __off_t, not _G_off_t.
13626         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
13627         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
13628         (_IO_wint_t): Define to wint_t, not _G_wint_t.
13629         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
13630         type of __dummy and __dummy2 fields.
13631         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
13632         (_G_ssize_t): Likewise.
13633         (_G_off_t): Likewise.
13634         (_G_pid_t): Likewise.
13635         (_G_uid_t): Likewise.
13636         (_G_wchar_t): Likewise.
13637         (_G_wint_t): Likewise.
13638         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
13639         (_G_ssize_t): Likewise.
13640         (_G_off_t): Likewise.
13641         (_G_pid_t): Likewise.
13642         (_G_uid_t): Likewise.
13643         (_G_wchar_t): Likewise.
13644         (_G_wint_t): Likewise.
13645         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
13646         (_G_ssize_t): Likewise.
13647         (_G_off_t): Likewise.
13648         (_G_pid_t): Likewise.
13649         (_G_uid_t): Likewise.
13650         (_G_wchar_t): Likewise.
13651         (_G_wint_t): Likewise.
13652
13653 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
13654
13655         * malloc/arena.c: Include malloc-sysdep.h.
13656         (shrink_heap): Use check_may_shrink_heap to decide if madvise
13657         is sufficient to shrink the heap or an unmap is needed.
13658         * sysdeps/generic/malloc-sysdep.h: New file.  Define
13659         new function check_may_shrink_heap.
13660         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
13661         new function check_may_shrink_heap.
13662
13663 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
13664
13665         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
13666         comments.
13667
13668 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
13669
13670         * catgets/test-gencat.sh: Add "set -e".
13671         * elf/tst-pathopt.sh: Likewise.
13672         * grp/tst_fgetgrent.sh: Likewise.
13673         * iconvdata/run-iconv-test.sh: Likewise.
13674         * intl/tst-gettext.sh: Likewise.
13675         * intl/tst-gettext2.sh: Likewise.
13676         * intl/tst-gettext4.sh: Likewise.
13677         * intl/tst-gettext6.sh: Likewise.
13678         * intl/tst-translit.sh: Likewise.
13679         * io/ftwtest-sh: Likewise.
13680         * libio/test-freopen.sh: Likewise.
13681         * malloc/tst-mtrace.sh: Likewise.
13682         * posix/globtest.sh: Likewise.
13683         * posix/tst-getconf.sh: Likewise.
13684         * posix/wordexp-tst.sh: Likewise.
13685         * stdio-common/tst-printf.sh: Likewise.
13686         * stdio-common/tst-unbputc.sh: Likewise.
13687         * stdlib/tst-fmtmsg.sh: Likewise.
13688         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
13689         * catgets/Makefile: Do not specify -e option when running
13690         testsuite shell scripts.
13691         * elf/Makefile: Likewise.
13692         * grp/Makefile: Likewise.
13693         * iconvdata/Makefile: Likewise.
13694         * intl/Makefile: Likewise.
13695         * io/Makefile: Likewise.
13696         * libio/Makefile: Likewise.
13697         * malloc/Makefile: Likewise.
13698         * posix/Makefile: Likewise.
13699         * stdio-common/Makefile: Likewise.
13700         * stdlib/Makefile: Likewise.
13701         * sysdeps/x86_64/Makefile: Likewise.
13702
13703         * io/ftwtest-sh: Add copyright header.
13704         * posix/globtest.sh: Likewise.
13705         * posix/tst-getconf.sh: Likewise.
13706         * posix/wordexp-tst.sh: Likewise.
13707         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
13708
13709 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
13710
13711         [BZ #13679]
13712         * Makeconfig (+link): Defined as $(+link-static) if
13713         $(build-shared) isn't yes.
13714         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
13715         isn't yes.
13716         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
13717
13718         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
13719
13720         [BZ #14562]
13721         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
13722         new chunk size with MALLOC_ALIGN_MASK.
13723
13724 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
13725
13726         [BZ #5044]
13727         * stdio-common/printf_fphex.c: Include <stdbool.h> and
13728         <rounding-mode.h>.
13729         (__printf_fphex): Determine rounding using get_rounding_mode and
13730         round_away.
13731         * stdio-common/tst-printf-round.c (struct hex_test): New
13732         structure.
13733         (hex_tests): New variable.
13734         (test_hex_in_one_mode): New function.
13735         (do_test): Also run tests for hex float output.
13736
13737 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
13738
13739         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
13740         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
13741         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
13742         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
13743         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
13744         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
13745         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
13746         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
13747
13748 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
13749
13750         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
13751         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
13752         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
13753         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
13754
13755 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
13756
13757         [BZ #14579]
13758         * elf/rtld.c (dl_main): Limit the check for self loading to normal
13759         mode only.
13760         * elf/tst-rtld-load-self.sh: New test.
13761         * elf/Makefile: Run it.
13762
13763 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
13764
13765         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
13766         (tst-writev-ENV): Remove.
13767         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
13768
13769 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
13770
13771         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
13772
13773 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
13774
13775         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
13776         unconditional.
13777         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
13778         Likewise.
13779         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
13780         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
13781         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
13782         Likewise.
13783
13784 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
13785
13786         [BZ #14587]
13787         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
13788         * config.make.in (have-cpp-asm-debuginfo): Removed.
13789         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
13790         * configure: Regenerated.
13791
13792 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
13793
13794         [BZ #5044]
13795         * stdio-common/printf_fp.c: Include <stdbool.h> and
13796         <rounding-mode.h>.
13797         (___printf_fp): Determine rounding using get_rounding_mode and
13798         round_away.
13799         * stdio-common/tst-printf-round.c: New file.
13800         * stdio-common/Makefile (tests): Add tst-printf-round.
13801         (link-libm): New variable.
13802         ($(objpfx)tst-printf-round): Depend in $(link-libm).
13803
13804 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
13805
13806         [BZ #14576]
13807         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
13808         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
13809         Likewise.
13810         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
13811         Likewise.
13812
13813 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
13814
13815         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
13816         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
13817         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
13818         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
13819
13820 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
13821
13822         [BZ #14518]
13823         * include/rounding-mode.h: New file.
13824         * sysdeps/generic/get-rounding-mode.h: Likewise.
13825         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
13826         * stdlib/strtod_l.c: Include <rounding-mode.h>.
13827         (MAX_VALUE): New macro.
13828         (MIN_VALUE): Likewise.
13829         (overflow_value): New function.
13830         (underflow_value): Likewise.
13831         (round_and_return): Use overflow_value and underflow_value to
13832         determine return values in overflow and underflow cases.  Use
13833         round_away to determine rounding depending on rounding mode.
13834         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
13835         determine return values in overflow and underflow cases.
13836         * stdlib/tst-strtod-round.c: Include <fenv.h>.
13837         (struct test_results): New structure.
13838         (struct test): Use struct test_results to store expected results
13839         for all rounding modes.
13840         (TEST): Include expected results for all rounding modes.
13841         (test_in_one_mode): New function.
13842         (do_test): Use test_in_one_mode to compute and check results.
13843         Check results for all rounding modes.
13844         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
13845         $(link-libm).
13846
13847 2012-12-09  Allan McRae  <allan@archlinux.org>
13848
13849         * sysdeps/i386/fpu/libm-test-ulps: Update
13850
13851 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
13852
13853         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
13854         (_G_int32_t): Likewise.
13855         (_G_uint16_t): Likewise.
13856         (_G_uint32_t): Likewise.
13857         (_G_HAVE_BOOL): Likewise.
13858         (_G_HAVE_ATEXIT): Likewise.
13859         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
13860         (_G_HAVE_IO_FILE_OPEN): Likewise.
13861         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
13862         (_G_int32_t): Likewise.
13863         (_G_uint16_t): Likewise.
13864         (_G_uint32_t): Likewise.
13865         (_G_HAVE_BOOL): Likewise.
13866         (_G_HAVE_ATEXIT): Likewise.
13867         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
13868         (_G_HAVE_IO_FILE_OPEN): Likewise.
13869         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
13870         (_G_int32_t): Likewise.
13871         (_G_uint16_t): Likewise.
13872         (_G_uint32_t): Likewise.
13873         (_G_HAVE_BOOL): Likewise.
13874         (_G_HAVE_ATEXIT): Likewise.
13875         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
13876         (_G_HAVE_IO_FILE_OPEN): Likewise.
13877
13878 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
13879
13880         * csu/libc-tls.c: Update copyright years.
13881
13882 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
13883
13884         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
13885         [!_G_USING_THUNKS]: Remove conditional code.
13886         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
13887         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
13888
13889         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
13890         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
13891         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
13892         (_G_VTABLE_LABEL_PREFIX): Likewise.
13893         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
13894         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
13895         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
13896         (_G_VTABLE_LABEL_PREFIX): Likewise.
13897         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
13898         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
13899         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
13900         (_G_VTABLE_LABEL_PREFIX): Likewise.
13901         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
13902
13903 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
13904
13905         * libio/Makefile: Include ../Makeconfig before tests.
13906         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
13907         only if $(build-shared) is yes.
13908
13909         * iconv/gconv_db.c: Update copyright years.
13910
13911 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13912
13913         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
13914         unwind info if defined PIC. Fix special cases description.
13915         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
13916
13917         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
13918         DP_HI_MASK entry.
13919         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
13920
13921 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
13922
13923         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
13924
13925         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
13926         is NULL.
13927
13928         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
13929         (LDLIBS-tst-chk4): This.
13930         (LDFLAGS-tst-chk5): Renamed to ...
13931         (LDLIBS-tst-chk5): This.
13932         (LDFLAGS-tst-chk6): Renamed to ...
13933         (LDLIBS-tst-chk6): This.
13934         (LDFLAGS-tst-lfschk4): Renamed to ...
13935         (LDLIBS-tst-lfschk4): This.
13936         (LDFLAGS-tst-lfschk5): Renamed to ...
13937         (LDLIBS-tst-lfschk5): This.
13938         (LDFLAGS-tst-lfschk6): Renamed to ...
13939         (LDLIBS-tst-lfschk6): This.
13940
13941         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
13942         on $(common-objpfx)soversions.mk.
13943
13944 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
13945
13946         [BZ #10014]
13947         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
13948         example host name.
13949
13950 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
13951
13952         * malloc/arena.c (arena_get_retry): New function that gets
13953         another arena for the caller to try its request on.
13954         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
13955         current arena cannot fulfill the request.
13956         (__libc_memalign): Likewise.
13957         (__libc_memalign): Likewise.
13958         (__libc_pvalloc): Likewise.
13959         (__libc_calloc): Likewise.
13960
13961 2012-09-05  John Tobey  <john.tobey@gmail.com>
13962
13963         [BZ #13542]
13964         * manual/arith.texi (Operations on Complex): Fix description
13965         of carg branch cut.
13966
13967 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
13968
13969         [BZ #10014]
13970         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
13971         host name.
13972
13973         [BZ #10038]
13974         * manual/memory.texi (Memory): Make order of menu items match
13975         order of sections.
13976
13977 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13978
13979         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
13980         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
13981         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
13982
13983 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13984
13985         * csu/libc-tls.c (static_dtv): Renamed to ...
13986         (_dl_static_dtv): This.  Make it global.
13987         (_dl_initial_dtv): Removed.
13988         (__libc_setup_tls): Updated.
13989         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
13990         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
13991         DL_INITIAL_DTV.
13992
13993 2012-09-06  Petr Machata  <pmachata@redhat.com>
13994
13995         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
13996         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
13997         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
13998         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
13999
14000 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
14001
14002         [BZ #14545]
14003         * csu/libc-tls.c (_dl_initial_dtv): New variable.
14004         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
14005         freeing dtv[-1].
14006
14007 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
14008
14009         [BZ #14544]
14010         * Makeconfig (link-static-before-libc): Replace $(+prector)
14011         with $(+prectorT).
14012         (link-static-after-libc): Replace $(+postctor) with
14013         $(+postctorT).
14014         (link-bounded): Replace $(+prector)/$(+postctor) with
14015         $(+prectorT)/$(+postctorT).
14016         (+prectorT): New macro.
14017         (+postctorT): Likewise.
14018
14019 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
14020
14021         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
14022         (round_str): Handle values above the maximum for IBM long double
14023         as inexact.
14024         * stdlib/tst-strtod-round.c (tests): Regenerated.
14025
14026 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14027
14028         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
14029         assembler flag.
14030         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
14031         zarch_nohighgprs around the zarch optimized routines.
14032         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
14033         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
14034         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
14035         for zarch.
14036
14037 2012-09-05  David S. Miller  <davem@davemloft.net>
14038
14039         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14040
14041         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
14042         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
14043         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
14044         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
14045         entries.
14046
14047 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14048
14049         * malloc/arena.c: Fold copyright years.
14050         * malloc/mcheck.c, malloc/memusage.c: Likewise.
14051
14052 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14053
14054         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
14055
14056 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14057
14058         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
14059
14060 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14061
14062         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
14063         change internal state upon failure.
14064
14065 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
14066
14067         * malloc/mcheck.c (mcheck_check_all): Fix typo.
14068         * malloc/memusage.c (mmap): Likewise.
14069         (mmap64, mremap): Likewise.  Adjust name in comment.
14070
14071 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
14072
14073         * libio/fileops.c: Fix typos in comments.
14074         * libio/oldfileops.c: Likewise.
14075         * libio/wfileops.c: Likewise.
14076
14077 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
14078
14079         [BZ #1349]
14080         * malloc/Makefile (tests): Add tst-malloc-usable test case.
14081         (tst-malloc-usable-ENV): Set environment for test case.
14082         * malloc/hooks.c (malloc_check_get_size): New function to get
14083         requested size.
14084         * malloc/malloc.c (musable): Use malloc_check_get_size.
14085         * malloc/tst-malloc-usable.c: New test case.
14086
14087 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
14088
14089         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
14090
14091 2012-09-05  Allan McRae  <allan@archlinux.org>
14092
14093         [BZ #13966]
14094         * configure.in (CXX_SYSINCLUDES): Use compiler output to
14095         determine header location.
14096         * configure: Regenerated.
14097
14098 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
14099
14100         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
14101         float format.
14102         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
14103         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
14104         format.
14105         (test): Regenerate.
14106
14107 2012-09-04  David S. Miller  <davem@davemloft.net>
14108
14109         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
14110         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
14111         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
14112
14113 2012-09-04  Florian Weimer  <fweimer@redhat.com>
14114
14115         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
14116         failures.
14117
14118         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
14119
14120 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
14121
14122         [BZ #9914]
14123         * libio/iogetdelim.c: Include <limits.h>.
14124         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
14125         + len + 1 would overflow.
14126
14127 2012-09-03  Andreas Jaeger  <aj@suse.de>
14128
14129         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14130         * sysdeps/i386/fpu/libm-test-ulps: Update.
14131
14132 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14133
14134         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
14135         Add s_sinf-sse2, s_conf-sse2.
14136
14137         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
14138         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
14139         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
14140         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
14141
14142         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
14143         for using routine as __sinf_ia32.
14144         Use macro for function declaration and weak_alias.
14145         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
14146         for using routine as __cosf_ia32.
14147         Use macro for function declaration and weak_alias.
14148
14149         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
14150         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
14151
14152         * sysdeps/x86_64/fpu/s_sinf.S: New file.
14153         * sysdeps/x86_64/fpu/s_cosf.S: New file.
14154         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14155
14156         * math/libm-test.inc (cos_test): Add more test cases.
14157         (sin_test): Likewise.
14158         (sincos_test): Likewise.
14159
14160 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14161
14162         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
14163         (IFUNC_RESOLVE): Make pointers to the specialized implementations
14164         hidden.
14165         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
14166
14167 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
14168
14169         [BZ #14538]
14170         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
14171         first element of the GOT.
14172         (elf_machine_load_address): Return the difference between
14173         the runtime address of _DYNAMIC and elf_machine_dynamic ().
14174
14175 2012-09-01  Allan McRae  <allan@archlinux.org>
14176
14177         [BZ #13412]
14178         * configure.in (AWK): Require gawk version 3.0 or later.
14179         * configure: Regenerated.
14180
14181 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
14182
14183         * sysdeps/unix/sysv/linux/kernel-features.h
14184         (__ASSUME_POSIX_CPU_TIMERS): Remove.
14185         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
14186         [__NR_clock_getres]: Make code unconditional.
14187         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
14188         (clock_getcpuclockid): Remove code left unreachable by removal of
14189         conditionals.
14190         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
14191         code unconditional.
14192         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
14193         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
14194         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
14195         Make code unconditional.
14196         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
14197         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
14198         * sysdeps/unix/sysv/linux/clock_settime.c
14199         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
14200         conditional code.
14201         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
14202         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
14203
14204 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
14205
14206         [BZ #14476]
14207         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
14208         scripts/test-installation.pl.
14209
14210         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
14211         and $ld_so_version if it is set.
14212
14213 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
14214
14215         [BZ #14516]
14216         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
14217         failure if reading from procfs failed.
14218         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
14219
14220 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
14221
14222         * sysdeps/unix/sysv/linux/kernel-features.h
14223         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
14224         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
14225         Remove conditional code.
14226         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
14227         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
14228         Remove conditional code.
14229         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
14230         * sysdeps/unix/sysv/linux/i386/fxstat.c
14231         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
14232         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
14233         * sysdeps/unix/sysv/linux/i386/fxstatat.c
14234         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
14235         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
14236         * sysdeps/unix/sysv/linux/i386/lxstat.c
14237         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
14238         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
14239         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
14240         Remove conditional code.
14241         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
14242         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
14243         Remove conditional code.
14244         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
14245         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
14246         <kernel-features.h>.
14247         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
14248         Remove.
14249         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
14250         Remove conditional code.
14251         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
14252         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
14253         Remove conditional.
14254
14255 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
14256
14257         [BZ #5400]
14258         * NEWS: Add fixed bug number.
14259
14260 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
14261
14262         [BZ #14519]
14263         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
14264         underflowing exponent in case of negative sign.
14265         * stdlib/tst-strtod-round-data: Add more tests.
14266         * stdlib/tst-strtod-round.c (tests): Regenerated.
14267
14268         [BZ #3479]
14269         * stdlib/strtod_l.c (NDIG): Remove.
14270         (HEXNDIG): Likewise.
14271         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
14272         smallest representable value.
14273         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
14274         lie within an exact representation of 1/2 ulp of the result.
14275         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
14276         unconditionally.
14277         (TENS_P9_IDX): Define unconditionally.
14278         (TENS_P9_SIZE): Likewise.
14279         (TENS_P10_IDX): Likewise.
14280         (TENS_P10_SIZE): Likewise.
14281         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
14282         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
14283         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
14284         entries for 10^2^13 and 10^2^14.
14285         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
14286         (TENS_P13_IDX): Define.
14287         (TENS_P13_SIZE): Likewise.
14288         (TENS_P14_IDX): Likewise.
14289         (TENS_P14_SIZE): Likewise.
14290         (_fpioconst_pow10): Change array size to
14291         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
14292         unconditional.
14293         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
14294         1024]: Add entries for 10^2^13 and 10^2^14.
14295         [LAST_POW10 > _LAST_POW10]: Remove #error.
14296         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
14297         (_fpioconst_pow10): Change array size to
14298         FPIOCONST_POW10_ARRAY_SIZE.
14299         * stdlib/gen-fpioconst.c: New file.
14300         * stdlib/gen-tst-strtod-round.c: Likewise.
14301         * stdlib/tst-strtod-round-data: Likewise.
14302         * stdlib/tst-strtod-round.c: Likewise.
14303         * stdlib/Makefile (tests): Add tst-strtod-round.
14304
14305         [BZ #14459]
14306         * stdlib/strtod_l.c: Include <stdint.h>.
14307         (NDEBUG): Do not define.
14308         (round_and_return): Change EXPONENT parameter to type intmax_t.
14309         Rearrange calculations to avoid internal overflow possibilities.
14310         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
14311         Rearrange calculations to avoid internal overflow possibilities.
14312         Assert that number fits inside MPNSIZE limbs.
14313         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
14314         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
14315         calculations and add assertions to avoid internal overflow
14316         possibilities.  Add casts to avoid signed/unsigned operations.
14317         * stdlib/tst-strtod-overflow.c: New file.
14318         * stdlib/Makefile (tests): Add tst-strtod-overflow.
14319
14320 2012-08-25  Marek Polacek  <polacek@redhat.com>
14321
14322         * time/time.h: Fix some typos in comments.
14323
14324 2012-08-23  Roland McGrath  <roland@hack.frob.com>
14325
14326         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
14327         * posix/tst-rfc3484-2.c: Likewise.
14328         * posix/tst-rfc3484-3.c: Likewise.
14329
14330 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
14331
14332         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
14333         (EF_ARM_ABI_FLOAT_HARD): Likewise.
14334
14335 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
14336
14337         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
14338         #include of fxstatat64.c.
14339
14340 2012-08-22  Roland McGrath  <roland@hack.frob.com>
14341
14342         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
14343         * shadow/getspent_r.c: Likewise.
14344         * shadow/getspnam.c: Likewise.
14345         * shadow/getspnam_r.c: Likewise.
14346         * gshadow/getsgent.c: Likewise.
14347         * gshadow/getsgent_r.c: Likewise.
14348         * gshadow/getsgnam.c: Likewise.
14349         * gshadow/getsgnam_r.c: Likewise.
14350         * inet/getnetbyad.c: Likewise.
14351         * inet/getnetbyad_r.c: Likewise.
14352         * inet/getnetbynm.c: Likewise.
14353         * inet/getnetbynm_r.c: Likewise.
14354         * inet/getnetent.c: Likewise.
14355         * inet/getnetent_r.c: Likewise.
14356         * inet/getproto.c: Likewise.
14357         * inet/getproto_r.c: Likewise.
14358         * inet/getprtent.c: Likewise.
14359         * inet/getprtent_r.c: Likewise.
14360         * inet/getprtname.c: Likewise.
14361         * inet/getprtname_r.c: Likewise.
14362         * inet/getrpcbyname.c: Likewise.
14363         * inet/getrpcbyname_r.c: Likewise.
14364         * inet/getrpcbynumber.c: Likewise.
14365         * inet/getrpcbynumber_r.c: Likewise.
14366         * inet/getrpcent.c: Likewise.
14367         * inet/getrpcent_r.c: Likewise.
14368         * inet/getaliasent.c: Likewise.
14369         * inet/getaliasent_r.c: Likewise.
14370         * inet/getaliasname.c: Likewise.
14371         * inet/getaliasname_r.c: Likewise.
14372         * nscd/getgrgid_r.c: Likewise.
14373         * nscd/getgrnam_r.c: Likewise.
14374         * nscd/gethstbyad_r.c: Likewise.
14375         * nscd/gethstbynm3_r.c: Likewise.
14376         * nscd/getpwnam_r.c: Likewise.
14377         * nscd/getpwuid_r.c: Likewise.
14378         * nscd/getsrvbynm_r.c: Likewise.
14379         * nscd/getsrvbypt_r.c: Likewise.
14380         * nscd/gai.c: Likewise.
14381
14382         * configure.in (build_nscd): New substituted variable, set
14383         by --disable-build-nscd and defaults to $use_nscd.
14384         * configure: Regenerated.
14385         * config.make.in (build-nscd): New substituted variable.
14386         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
14387         Change conditional to require [$(build-nscd) = yes] as well.
14388         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
14389
14390         [BZ# 13696]
14391         * configure.in (use_nscd): New substituted variable, set by
14392         --disable-nscd.  If enabled, define USE_NSCD.
14393         * configure: Regenerated.
14394         * config.h.in: Add USE_NSCD.
14395         * config.make.in (use-nscd): New substituted variable.
14396         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
14397         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
14398         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
14399         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
14400         (CFLAGS-getgrnam_r.c): Likewise.
14401         (CFLAGS-initgroups.c): Likewise.
14402         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
14403         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
14404         Variables removed.
14405         * inet/getnetgrent_r.c
14406         (nscd_setnetgrent): New function, broken out of ...
14407         (setnetgrent): ... here.  Call it.
14408         (innetgr): Conditionalize nscd bits on [USE_NSCD].
14409         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
14410         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
14411         * nscd/Makefile (routines, aux): Move definitions after include of
14412         Makeconfig.  Conditionalize on [$(use-nscd) != no].
14413         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
14414         Conditionalize on [USE_NSCD].
14415         (is_nscd, nscd_init_cb): Likewise.
14416         (nss_load_library): Conditionalize init callback on [USE_NSCD].
14417         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
14418         * nss/nss_db/db-init.c: Likewise.
14419         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
14420         [USE_NSCD].
14421         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
14422         (make_request): Use it.
14423         (cache_valid_p): New function.
14424         (__check_pf): Use it.
14425         * NEWS: Add item for --disable-nscd.
14426
14427 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
14428
14429         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
14430         to support sed >= 4.2.1-20-ga9bf076.
14431         * configure: Regenerated.
14432
14433 2012-08-22  Roland McGrath  <roland@hack.frob.com>
14434
14435         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
14436         Conditionalize whole body on [IREL].
14437
14438 2012-08-22  Jeff Law <law@redhat.com>
14439
14440         [BZ #14505]
14441         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
14442         if the family is PF_UNSPEC.
14443
14444 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
14445
14446         * Makerules (lib-version): Rename from V.
14447         (install-lib-nosubdir): Change V to lib-version.
14448
14449 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
14450
14451         [BZ #14252]
14452         * powerpc32/power6/wcschr.c: New file.
14453         * powerpc32/power6/wcscpy.c: New file.
14454         * powerpc32/power6/wcsrchr.c: New file.
14455         * powerpc64/power6/wcschr.c: New file.
14456         * powerpc64/power6/wcscpy.c: New file.
14457         * powerpc64/power6/wcsrchr.c: New file.
14458
14459 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
14460
14461         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
14462         (two_way_short_needle): Use it.
14463         * string/strstr.c (AVAILABLE1_USES_J): Define.
14464         * string/strcasestr.c: Likewise.
14465
14466         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
14467         array references.
14468         * string/strcasestr.c (TOLOWER): Make side-effect safe.
14469
14470         [BZ #11607]
14471         * NEWS: Add an entry.
14472         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
14473         define their defaults.
14474         (two_way_short_needle): Detect end-of-string on-the-fly.
14475         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
14476         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
14477         * string/bug-strcasestr1.c: New test.
14478         * string/Makefile: Run it.
14479
14480 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
14481
14482         [BZ #11607]
14483         * string/str-two-way.h (two_way_short_needle): Optimize matching of
14484         the first character.
14485
14486 2012-08-21  Roland McGrath  <roland@hack.frob.com>
14487
14488         * csu/elf-init.c (__libc_csu_irel): Function removed.
14489         * csu/libc-start.c (apply_irel): New function.
14490         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
14491
14492 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
14493
14494         * sysdeps/unix/sysv/linux/kernel-features.h
14495         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
14496         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
14497         <kernel-features.h>.
14498         [__NR_fadvise64_64]: Make code unconditional.
14499         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
14500         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
14501         !__NR_fadvise64_64)]: Likewise.
14502         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
14503         !__NR_fadvise64_64))]: Likewise.
14504         [__NR_fadvise64]: Make code unconditional.
14505         [!__NR_fadvise64]: Remove conditional code.
14506         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
14507         <kernel-features.h>.
14508         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
14509         unconditional.
14510         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
14511         conditional code.
14512         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
14513         not include <kernel-features.h>.
14514         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
14515         unconditional.
14516         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
14517         conditional code.
14518         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
14519         include <kernel-features.h>.
14520         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
14521         unconditional.
14522         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
14523         conditional code.
14524
14525 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
14526
14527         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
14528         slight instruction rearrangements per scrollpipe analysis.
14529         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
14530
14531 2012-08-20  Roland McGrath  <roland@hack.frob.com>
14532
14533         * manual/syslog.texi (syslog; vsyslog, closelog):
14534         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
14535         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
14536
14537         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
14538         DSOCAPS to match condition on defining it.
14539
14540 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
14541
14542         * sysdeps/unix/sysv/linux/kernel-features.h
14543         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
14544         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
14545         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
14546         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
14547         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
14548         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
14549         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
14550         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
14551         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
14552         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
14553
14554         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
14555         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
14556
14557         * sysdeps/unix/sysv/linux/kernel-features.h
14558         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
14559         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
14560         unconditional.
14561         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
14562         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
14563         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
14564         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
14565         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
14566         Make code unconditional.
14567         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
14568         (__mmap64) [!__NR_mmap2]: Likewise.
14569         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
14570         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
14571         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
14572         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
14573         [__NR_mmap2]: Make code unconditional.
14574         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
14575         (__mmap64) [!__NR_mmap2]: Likewise.
14576
14577 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14578
14579         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
14580
14581 2012-08-18  Andreas Jaeger  <aj@suse.de>
14582
14583         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
14584
14585 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
14586
14587         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
14588         * include/unistd.h (__have_sock_cloexec): Likewise.
14589         (__have_pipe2): Likewise.
14590         (__have_dup3): Likewise.
14591
14592 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
14593
14594         [BZ #9685]
14595         * include/unistd.h (__have_pipe2): Change define into an extern int.
14596         (__have_dup3): Likewise.
14597         * socket/have_sock_cloexec.c: Include fcntl.h.
14598         (__have_pipe2): New variable.
14599         (__have_dup3): Likewise.
14600
14601 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
14602
14603         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
14604
14605 2012-08-17  Marek Polacek  <polacek@redhat.com>
14606
14607         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
14608         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
14609
14610 2012-08-17  Roland McGrath  <roland@hack.frob.com>
14611
14612         * configure.in: Add AC_SUBST for sysheaders.
14613         * configure: Regenerated.
14614         * config.make.in (sysheaders): New substituted variable.
14615
14616         * sysdeps/unix/mkfifo.c: Moved ...
14617         * sysdeps/posix/mkfifo.c: ... here.
14618         * sysdeps/unix/mkfifoat.c: Moved ...
14619         * sysdeps/posix/mkfifoat.c: ... here.
14620
14621         * sysdeps/unix/utime.c: Moved ...
14622         * sysdeps/posix/utime.c: ... here.
14623
14624         * sysdeps/unix/time.c: Moved ...
14625         * sysdeps/posix/time.c: ... here.
14626         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
14627         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
14628
14629         * sysdeps/unix/nice.c: Moved ...
14630         * sysdeps/posix/nice.c: ... here.
14631
14632         * sysdeps/unix/alarm.c: Moved ...
14633         * sysdeps/posix/alarm.c: ... here.
14634
14635         * intl/Makefile ($(codeset_mo)): Depend on the input file.
14636
14637 2012-08-17  Jeff Law <law@redhat.com>
14638
14639         * intl/Makefile (codeset_mo): New variable.
14640         ($(codeset_mo)): New target.
14641         (tst-codeset.out): Depend on that.  Remove explicit rule.
14642         (tst-gettext3.out, tst-gettext5.out): Likewise.
14643         (LOCPATH-ENV, tst-codeset-ENV): New variables.
14644         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
14645         * intl/tst-codeset.sh: Remove.
14646         * intl/tst-gettext3.sh: Likewise.
14647         * intl/tst-gettext5.sh: Likewise.
14648
14649 2012-08-17  Roland McGrath  <roland@hack.frob.com>
14650
14651         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
14652         * sysdeps/unix/syscalls.list: ... here.
14653
14654         * sysdeps/posix/getaddrinfo.c
14655         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
14656         (gaiconf_init, gaiconf_reload): Use them.
14657         [!_STATBUF_ST_NSEC]
14658         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
14659         Define using time_t rather than struct timespec.
14660
14661         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
14662         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
14663         Macros removed.
14664         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
14665         [!NO_THREADS].
14666         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
14667         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
14668         Likewise.
14669
14670         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
14671         __libc_cleanup_push argument.
14672
14673         * bits/param.h: New file.
14674         * misc/sys/param.h: New file.
14675         * include/sys/param.h: New file.
14676         * misc/Makefile (headers): Add bits/param.h.
14677         * sysdeps/generic/sys/param.h: File removed.
14678         * sysdeps/unix/sysv/linux/bits/param.h: New file.
14679         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
14680         * sysdeps/mach/hurd/bits/param.h: New file.
14681         * sysdeps/mach/hurd/sys/param.h: File removed.
14682
14683         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
14684         last change.
14685
14686         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
14687         [_IO_MTSAFE_IO].
14688         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
14689         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
14690         New macros.
14691
14692         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
14693         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
14694         rather than -D_IO_MTSAFE_IO conditionally.
14695         * stdio-common/Makefile (CPPFLAGS): Likewise.
14696         * wcsmbs/Makefile (CPPFLAGS): Likewise.
14697         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
14698         Use $(libio-mtsafe).
14699         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
14700         of -D_IO_MTSAFE_IO.
14701         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
14702         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
14703         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
14704         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
14705         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
14706         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
14707         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
14708         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
14709         (CFLAGS-fread_u_chk.c): Likewise.
14710         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
14711         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
14712         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
14713         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
14714         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
14715         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
14716         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
14717         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
14718         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
14719
14720         * libio/Makefile: Test [$(libc-reentrant) = yes]
14721         instead of [$(filter %REENTRANT, $(defines)) nonempty].
14722
14723         * Makeconfig
14724         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
14725         * sysdeps/pthread/configure: File removed.
14726         * sysdeps/pthread/Makeconfig: New file.
14727         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
14728         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
14729
14730 2012-08-16  Gary Benson  <gbenson@redhat.com>
14731
14732         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
14733         unmapping the first object in a namespace.
14734
14735 2012-08-16  Roland McGrath  <roland@hack.frob.com>
14736
14737         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
14738         (__internal_setnetgrent): ... this.  Add internal_function to
14739         definition.  Add libc_hidden_def.
14740         (setnetgrent): Update caller.
14741         (internal_endnetgrent): Renamed to ...
14742         (__internal_endnetgrent): ... this.  Add internal_function to
14743         definition.  Add libc_hidden_def.
14744         (endnetgrent): Update caller.
14745         (internal_getnetgrent_r): Renamed to ...
14746         (__internal_getnetgrent_r): ... this.  Add internal_function to
14747         definition.  Add libc_hidden_def.
14748         (__getnetgrent_r): Update caller.
14749         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
14750
14751 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
14752
14753         * stdlib/longlong.h: Update from GCC.
14754
14755 2012-08-16  Roland McGrath  <roland@hack.frob.com>
14756
14757         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
14758         on _QL, which is set by umul_ppmm but never used.
14759         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
14760         variables, which are set by GMP macros but never used.
14761         * stdio-common/_itowa.c (_itowa): Likewise.
14762         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
14763         * stdlib/mod_1.c (mpn_mod_1): Likewise.
14764
14765 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
14766
14767         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
14768         struct La_sh_regs is not constant.
14769         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
14770         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
14771         and struct La_sparc64_regs are not constant.
14772
14773 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
14774
14775         * sysdeps/unix/sysv/linux/kernel-features.h
14776         (__ASSUME_POSIX_TIMERS): Remove.
14777         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
14778         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
14779         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
14780         Make code unconditional.
14781         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
14782         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
14783         Make code unconditional.
14784         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
14785         * sysdeps/unix/sysv/linux/clock_nanosleep.c
14786         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
14787         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
14788         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
14789         Make code unconditional.
14790         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
14791         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
14792         (__libc_missing_posix_timers): Remove.
14793
14794 2012-08-15  Roland McGrath  <roland@hack.frob.com>
14795
14796         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
14797         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
14798
14799         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
14800
14801         * elf/dl-sym.c: Include <stdlib.h>.
14802
14803         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
14804         constants, which avoids warnings in 32-bit builds.
14805
14806         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
14807         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
14808
14809         * misc/lseek.c: File moved to ...
14810         * io/lseek.c: ... here.
14811
14812         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
14813
14814         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
14815         shifting LEN more than 31 bits at once.
14816
14817 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
14818
14819         [BZ #14195]
14820         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
14821         segmentation fault for a case of two empty input strings.
14822         * string/test-strncasecmp.c (check1): Renamed to...
14823         (bz12205): ...this.
14824         (bz14195): Add new testcase for two empty input strings and N > 0.
14825         (test_main): Call new testcase, adapt for renamed function.
14826
14827 2012-08-15  Andreas Jaeger  <aj@suse.de>
14828
14829         [BZ #14090]
14830         * crypt/md5test2.c: New test, based on test supplied by Serge
14831         Belyshev <belyshev@depni.sinp.msu.ru>.
14832         * crypt/Makefile (xtests): Add md5test-giant..
14833         * crypt/Makefile ($(objpfx)md5test-giant): Add.
14834
14835 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
14836
14837         [BZ #14090]
14838         * crypt/md5.c (md5_process_block): Don't assume the buffer
14839         length is less than 2**32.
14840         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
14841         length is less than 2**64.
14842
14843 2012-08-15  Roland McGrath  <roland@hack.frob.com>
14844
14845         * string/str-two-way.h: Include <sys/param.h>.
14846         (MAX): Macro removed.
14847
14848         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
14849         Move #define and #undef of memmove to just before and after
14850         including <string.h>.
14851
14852         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
14853         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
14854         and after including <string.h>.  Move declarations of
14855         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
14856         to before #include "string/memmove.c".
14857
14858         * include/dirent.h: Declare __getdirentries.
14859
14860         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
14861         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
14862
14863 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
14864
14865         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
14866         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
14867         * sysdeps/i386/configure: Regenerated.
14868         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
14869         STABS_CURRENT_FILE, and STABS_FUN.
14870         (END): Remove call to STABS_FUN_END.
14871         (STABS_CURRENT_FILE1): Delete.
14872         (STABS_CURRENT_FILE): Likewise.
14873         (STABS_FUN): Likewise.
14874         (STABS_FUN_END): Likewise.
14875         (STABS_FUN2): Likewise.
14876         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
14877         * sysdeps/x86_64/configure: Regenerated.
14878
14879 2012-08-14  Roland McGrath  <roland@hack.frob.com>
14880
14881         * elf/dl-open.c: Include <atomic.h>.
14882         * elf/dl-lookup.c: Likewise.
14883
14884 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
14885
14886         * sysdeps/unix/sysv/linux/kernel-features.h
14887         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
14888         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
14889         unconditionally.
14890         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
14891         unconditionally.
14892         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
14893         condition on __ASSUME_CLONE_THREAD_FLAGS.
14894
14895 2012-08-14  Andreas Jaeger  <aj@suse.de>
14896
14897         * sysdeps/i386/fpu/libm-test-ulps: Update.
14898
14899 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
14900
14901         * include/atomic.h (atomic_exchange_and_add): Split into ...
14902         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
14903         New atomic macros.
14904
14905 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
14906
14907         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
14908
14909 2012-08-13  Jeff Law <law@redhat.com>
14910
14911         * manual/stdio.texi (snprintf): Clarify handling of the trailing
14912         null byte in the output string.
14913
14914 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
14915
14916         * sysdeps/unix/sysv/linux/kernel-features.h
14917         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
14918         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
14919         (__ASSUME_ARG_MAX_STACK_BASED): Define.
14920         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
14921         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
14922         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
14923         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
14924
14925 2012-08-09  Jeff Law <law@redhat.com>
14926
14927         [BZ #13939]
14928         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
14929         When avoid_arena is set, don't retry in the that arena.  Pick the
14930         next one, whatever it might be.
14931         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
14932         (arena_lock): Pass in new parameter to arena_get2.
14933         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
14934         arena_get2.
14935         (__libc_malloc): Unify retrying after main arena failure with
14936         __libc_memalign version.
14937         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
14938
14939 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
14940
14941         [BZ #14166]
14942         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
14943         to __redirect_strstr.
14944         (__strstr_sse42): Use typeof __redirect_strstr.
14945         (__strstr_ia32): Likewise.
14946         (__libc_strstr): New prototype.
14947         (strstr): Renamed to ...
14948         (__libc_strstr): This.
14949         (strstr): New strong alias of __libc_strstr.
14950         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
14951         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
14952         __redirect_time.
14953         Include <time.h>.
14954         (__libc_time): New prototype.
14955         (time_ifunc): Replace time with __libc_time.
14956         (time): New strong alias and hidden definition of __libc_time.
14957         (__GI_time): Remove strong alias.
14958         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
14959         Include <stddef.h>.
14960         (memmove): Redefined to __redirect_memmove.
14961         (__memmove_sse2): Use typeof __redirect_memmove.
14962         (__memmove_ssse3): Likewise.
14963         (__memmove_ssse3_back): Likewise.
14964         (__libc_memmove): New prototype.
14965         (memmove): Renamed to ...
14966         (__libc_memmove): This.
14967         (memmove): New strong alias of __libc_memmove.
14968
14969 2012-08-08  Mark Salter  <msalter@redhat.com>
14970
14971         * elf/elf.h
14972         (R_MN10300_TLS_GD): Define.
14973         (R_MN10300_TLS_LD): Likewise.
14974         (R_MN10300_TLS_LDO): Likewise.
14975         (R_MN10300_TLS_GOTIE): Likewise.
14976         (R_MN10300_TLS_IE): Likewise.
14977         (R_MN10300_TLS_LE): Likewise.
14978         (R_MN10300_TLS_DTPMOD): Likewise.
14979         (R_MN10300_TLS_DTPOFF): Likewise.
14980         (R_MN10300_TLS_TPOFF): Likewise.
14981         (R_MN10300_SYM_DIFF): Likewise.
14982         (R_MN10300_ALIGN): Likewise.
14983         (R_MN10300_NUM): Update.
14984
14985 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
14986
14987         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
14988         Remove.
14989
14990 2012-08-08  Roland McGrath  <roland@hack.frob.com>
14991
14992         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
14993
14994         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
14995         sysdeps/unix -> sysdeps/posix move.
14996         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14997
14998 2012-08-07      Allan McRae     <allan@archlinux.org>
14999
15000         [BZ #14303]
15001         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
15002         (SUNOS_CPP): Likewise.
15003         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
15004         not found.
15005         (open_input): Call CPP using execvp.
15006
15007 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
15008
15009         * sysdeps/unix/sysv/linux/kernel-features.h
15010         (__ASSUME_PROT_GROWSUPDOWN): Remove.
15011         (__ASSUME_NO_CLONE_DETACHED): Likewise.
15012         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
15013         (__ASSUME_WAITID_SYSCALL): Likewise.
15014         * sysdeps/unix/sysv/linux/dl-execstack.c
15015         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
15016         code unconditional.
15017         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
15018         conditional code.
15019         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
15020         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
15021         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
15022         code.
15023         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
15024         unconditional.
15025         [__ASSUME_WAITID_SYSCALL]: Likewise.
15026         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
15027
15028 2012-08-07  Roland McGrath  <roland@hack.frob.com>
15029
15030         * sysdeps/unix/closedir.c: Renamed to ...
15031         * sysdeps/posix/closedir.c: ... here.
15032         * sysdeps/unix/dirfd.c: Renamed to ...
15033         * sysdeps/posix/dirfd.c: ... here.
15034         * sysdeps/unix/dirstream.h: Renamed to ...
15035         * sysdeps/posix/dirstream.h: ... here.
15036         * sysdeps/unix/fdopendir.c: Renamed to ...
15037         * sysdeps/posix/fdopendir.c: ... here.
15038         * sysdeps/unix/opendir.c: Renamed to ...
15039         * sysdeps/posix/opendir.c: ... here.
15040         * sysdeps/unix/readdir.c: Renamed to ...
15041         * sysdeps/posix/readdir.c: ... here.
15042         * sysdeps/unix/readdir_r.c: Renamed to ...
15043         * sysdeps/posix/readdir_r.c: ... here.
15044         * sysdeps/unix/rewinddir.c: Renamed to ...
15045         * sysdeps/posix/rewinddir.c: ... here.
15046         * sysdeps/unix/seekdir.c: Renamed to ...
15047         * sysdeps/posix/seekdir.c: ... here.
15048         * sysdeps/unix/telldir.c: Renamed to ...
15049         * sysdeps/posix/telldir.c: ... here.
15050         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
15051         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
15052         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
15053         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
15054
15055         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
15056         * bits/fcntl.h: ... here.
15057
15058         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
15059         not 0.
15060         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
15061         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
15062         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
15063         (struct flock): Move l_start, l_len to the beginning.
15064         Use __pid_t for l_pid.
15065         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
15066         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
15067         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
15068         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
15069         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
15070         [__USE_LARGEFILE64] (struct flock64): New type.
15071         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
15072
15073         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
15074         * bits/dirent.h: ... here.
15075
15076         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
15077         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
15078
15079 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
15080
15081         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
15082         Change from 2.6.0 to 2.6.16.
15083         * sysdeps/unix/sysv/linux/configure: Regenerated.
15084         * sysdeps/unix/sysv/linux/kernel-features.h
15085         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
15086         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
15087         version.
15088         (__ASSUME_UTIMES): Likewise.
15089         (__ASSUME_CLONE_STOPPED): Remove.
15090         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
15091         architectures, not kernel version.
15092         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
15093         (__ASSUME_NO_CLONE_DETACHED): Likewise.
15094         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
15095         (__ASSUME_WAITID_SYSCALL): Likewise.
15096         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
15097         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
15098         * README: State 2.6.16 as minimum Linux kernel version.  Do not
15099         refer to older versions.
15100
15101 2012-08-06  Roland McGrath  <roland@hack.frob.com>
15102
15103         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
15104         Define alphasort64 as an alias.
15105         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
15106         Define versionsort64 as an alias.
15107         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
15108         Define scandir64 as an alias.
15109         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
15110         Define scandirat64 as an alias.
15111         * dirent/alphasort64.c (alphasort64):
15112         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
15113         * dirent/versionsort64.c: Likewise.
15114         * dirent/scandir64.c: Likewise.
15115         * dirent/scandirat64.c: Likewise.
15116         * sysdeps/wordsize-64/alphasort.c: File removed.
15117         * sysdeps/wordsize-64/alphasort64.c: File removed.
15118         * sysdeps/wordsize-64/scandir.c: File removed.
15119         * sysdeps/wordsize-64/scandir64.c: File removed.
15120         * sysdeps/wordsize-64/scandirat.c: File removed.
15121         * sysdeps/wordsize-64/scandirat64.c: File removed.
15122         * sysdeps/wordsize-64/versionsort.c: File removed.
15123         * sysdeps/wordsize-64/versionsort64.c: File removed.
15124         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
15125         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
15126         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
15127         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
15128         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
15129         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
15130         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
15131         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
15132
15133         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
15134         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
15135         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
15136         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15137         [defined __arch64__ || defined __sparcv9]
15138         (__INO_T_MATCHES_INO64_T): New macro.
15139         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
15140         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
15141         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
15142         * sysdeps/unix/sysv/linux/bits/dirent.h
15143         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
15144         (_DIRENT_MATCHES_DIRENT64): New macro.
15145
15146         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
15147         Define lockf64 as an alias.
15148         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
15149         Define fseeko64 as an alias.
15150         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
15151         Define ftello64 as an alias.
15152         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
15153         Define _IO_fgetpos64 and fgetpos64 as aliases.
15154         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
15155         Define _IO_fsetpos64 and fsetpos64 as aliases.
15156         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
15157         Conditionalize body on this.
15158         * libio/fseeko64.c: Likewise.
15159         * libio/ftello64.c: Likewise.
15160         * libio/iofgetpos64.c: Likewise.
15161         * libio/iofsetpos64.c: Likewise.
15162         * sysdeps/wordsize-64/lockf.c: File removed.
15163         * sysdeps/wordsize-64/lockf64.c: File removed.
15164         * sysdeps/wordsize-64/fseeko.c: File removed.
15165         * sysdeps/wordsize-64/fseeko64.c: File removed.
15166         * sysdeps/wordsize-64/ftello.c: File removed.
15167         * sysdeps/wordsize-64/ftello64.c: File removed.
15168         * sysdeps/wordsize-64/iofgetpos.c: File removed.
15169         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
15170         * sysdeps/wordsize-64/iofsetpos.c: File removed.
15171         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
15172         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
15173         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
15174         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
15175         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
15176         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
15177         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
15178         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
15179         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
15180         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
15181         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
15182
15183         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
15184         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
15185         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
15186         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15187         [defined __arch64__ || defined __sparcv9]
15188         (__OFF_T_MATCHES_OFF64_T): New macro.
15189         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
15190         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
15191         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15192         (__OFF_T_MATCHES_OFF64_T): New macro.
15193
15194 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
15195
15196         * stdlib/secure-getenv.c (__secure_getenv): Replace
15197         GLIBC_2_16 with GLIBC_2_17.
15198
15199 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
15200
15201         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
15202         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
15203
15204 2012-08-03  David S. Miller  <davem@davemloft.net>
15205
15206         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15207
15208 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
15209
15210         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
15211         Remove.
15212         (__ASSUME_CORRECT_SI_PID): Likewise.
15213         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
15214         (__ASSUME_TMPFS_NAME): Likewise.
15215         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
15216         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
15217         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
15218         (HAVE_AUX_SECURE): Make definition unconditional.
15219         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
15220         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
15221
15222 2012-08-03  Roland McGrath  <roland@hack.frob.com>
15223
15224         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
15225         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
15226         * sysdeps/mach/hurd/eloop-threshold.h: New file.
15227         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
15228         __eloop_threshold instead of SYMLOOP_MAX.
15229
15230         * sysdeps/generic/eloop-threshold.h: New file.
15231         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
15232         of MAXSYMLINKS.
15233         * elf/chroot_canon.c (chroot_canon): Likewise.
15234
15235 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
15236
15237         [BZ #13717]
15238         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
15239         Change to 2.6.0 everywhere.
15240         * sysdeps/unix/sysv/linux/configure: Regenerated.
15241         * sysdeps/unix/sysv/linux/kernel-features.h
15242         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
15243         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
15244         kernel versions.
15245         (__ASSUME_POSIX_TIMERS): Define unconditionally.
15246         (__ASSUME_FUTEX_REQUEUE): Remove.
15247         (__ASSUME_STATFS64): Define unconditionally.
15248         (__ASSUME_AT_SECURE): Likewise.
15249         (__ASSUME_CORRECT_SI_PID): Likewise.
15250         (__ASSUME_TGKILL): Define without depending on kernel version for
15251         i386.
15252         (__ASSUME_UTIMES): Likewise.
15253         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
15254         kernel version.
15255         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
15256         (__ASSUME_TMPFS_NAME): Likewise.
15257         * README: Update reference to Linux kernel versions.
15258
15259 2012-08-02  Marek Polacek  <polacek@redhat.com>
15260
15261         [BZ# 14150]
15262         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
15263         libc_cv_asm_type_prefix with %.
15264         * configure: Regenerated.
15265         * include/libc-symbols.h: Remove comment about
15266         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
15267         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
15268         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
15269         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
15270         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
15271         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
15272         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
15273         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
15274         * elf/tst-unique2mod1.c: Likewise.
15275         * elf/tst-unique1mod2.c: Likewise.
15276         * elf/tst-unique1mod1.c: Likewise.
15277         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
15278         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
15279         Replace ASM_TYPE_DIRECTIVE with .type.
15280         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15281         * sysdeps/i386/sysdep.h: Likewise.
15282         * sysdeps/x86_64/sysdep.h: Likewise.
15283         * sysdeps/sh/sysdep.h: Likewise.
15284         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
15285         Do not define ASM_TYPE_DIRECTIVE.
15286         * sysdeps/powerpc/sysdep.h: Likewise.
15287         * sysdeps/powerpc/powerpc32/sysdep.h:
15288         Replace ASM_TYPE_DIRECTIVE with .type.
15289         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
15290         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
15291         * sysdeps/i386/fpu/e_powf.S: Likewise.
15292         * sysdeps/i386/fpu/e_expl.S: Likewise.
15293         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
15294         * sysdeps/i386/fpu/e_acosh.S: Likewise.
15295         * sysdeps/i386/fpu/e_pow.S: Likewise.
15296         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
15297         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
15298         * sysdeps/i386/fpu/s_expm1.S: Likewise.
15299         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
15300         * sysdeps/i386/fpu/e_log2.S: Likewise.
15301         * sysdeps/i386/fpu/e_log2l.S: Likewise.
15302         * sysdeps/i386/fpu/e_scalb.S: Likewise.
15303         * sysdeps/i386/fpu/e_powl.S: Likewise.
15304         * sysdeps/i386/fpu/e_log10f.S: Likewise.
15305         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
15306         * sysdeps/i386/fpu/e_logl.S: Likewise.
15307         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
15308         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
15309         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
15310         * sysdeps/i386/fpu/e_log2f.S: Likewise.
15311         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
15312         * sysdeps/i386/fpu/e_log.S: Likewise.
15313         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
15314         * sysdeps/i386/fpu/e_logf.S: Likewise.
15315         * sysdeps/i386/fpu/e_log10l.S: Likewise.
15316         * sysdeps/i386/fpu/e_atanh.S: Likewise.
15317         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
15318         * sysdeps/i386/fpu/e_log10.S: Likewise.
15319         * sysdeps/i386/fpu/s_frexp.S: Likewise.
15320         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
15321         * sysdeps/i386/fpu/s_asinh.S: Likewise.
15322         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
15323         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
15324         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
15325         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
15326         * sysdeps/i386/i686/strtok.S: Likewise.
15327         * sysdeps/i386/i386-mcount.S: Likewise.
15328         * sysdeps/i386/strtok.S: Likewise.
15329         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
15330         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
15331         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
15332         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
15333         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
15334         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
15335         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
15336         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
15337         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
15338         * sysdeps/x86_64/_mcount.S: Likewise.
15339         * sysdeps/x86_64/strtok.S: Likewise.
15340         * sysdeps/sh/_mcount.S: Likewise.
15341
15342 2012-08-01  Roland McGrath  <roland@hack.frob.com>
15343
15344         * libio/iofopen.c: Include <fcntl.h>.
15345         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
15346         (_IO_fopen64, fopen64): Define as aliases.
15347         * libio/iofopen64.c: Include <fcntl.h>.
15348         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
15349         Conditionalize body on this.
15350         * sysdeps/wordsize-64/iofopen.c: File removed.
15351         * sysdeps/wordsize-64/iofopen64.c: File removed.
15352
15353 2012-08-01  Marek Polacek  <polacek@redhat.com>
15354
15355         * libc/Makeconfig: Use elf in place of binfmt-subdir.
15356         Use dlfcn directly instead of a variable.
15357         (binfmt-subdir): Do not define.
15358         (dlfcn): Likewise.
15359
15360 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
15361
15362         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
15363         Remove all definitions.
15364         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
15365         <kernel-features.h>.
15366         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
15367         (miss_F_GETOWN_EX): Remove all definitions.
15368         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
15369         macro definition.
15370         [!__ASSUME_FCNTL64]: Remove conditional code.
15371         [__ASSUME_FCNTL64]: Make code unconditional.
15372         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
15373         <kernel-features.h>.
15374         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
15375         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
15376         (lockf64) [__NR_fcntl64]: Make code unconditional.
15377         (lockf64) [__ASSUME_FCNTL64]: Likewise.
15378
15379         * sysdeps/unix/sysv/linux/kernel-features.h
15380         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
15381         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
15382         Make code unconditional.
15383         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
15384         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
15385         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
15386         [__NR_vfork]: Make code unconditional.
15387         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
15388         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
15389         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
15390         [__NR_vfork]: Make code unconditional.
15391         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
15392         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
15393
15394 2012-08-01  Roland McGrath  <roland@hack.frob.com>
15395
15396         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
15397         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
15398
15399         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
15400         Define mkstemp64 as an alias.
15401         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
15402         Define mkstemps64 as an alias.
15403         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
15404         Define mkostemp64 as an alias.
15405         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
15406         Define mkostemps64 as an alias.
15407         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
15408         Conditionalize body on this.
15409         * misc/mkostemp64.c: Likewise.
15410         * misc/mkostemps64.c: Likewise.
15411         * misc/mkstemps64.c: Likewise.
15412         * sysdeps/wordsize-64/mkstemp64.c: File removed.
15413         * sysdeps/wordsize-64/mkostemp64.c: File removed.
15414         * sysdeps/wordsize-64/mkostemp.c: File removed.
15415         * sysdeps/wordsize-64/mkstemp.c: File removed.
15416         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
15417         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
15418         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
15419         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
15420
15421         [BZ #14138]
15422         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
15423         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
15424         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
15425         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
15426
15427         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
15428         compat_symbol macros from <shlib-compat.h> rather than the underlying
15429         default_symbol_version and symbol_version macros, so that DEFAULT
15430         lines in shlib-versions are respected.
15431         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
15432
15433 2012-08-01  Florian Weimer  <fweimer@redhat.com>
15434
15435         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
15436         Declare with warn_unused_result.
15437         (setgid, setregid, setegid, setresgid): Likewise.
15438         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
15439         Likewise.
15440         * WUR-REPORT: Remove set*id functions.
15441
15442 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
15443
15444         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
15445
15446 2012-07-31  Roland McGrath  <roland@hack.frob.com>
15447
15448         [BZ #10191]
15449         * include/sys/socket.h (__libc_accept, __libc_accept4):
15450         Add attribute_hidden.
15451         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
15452
15453         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
15454         use of PTR_MANGLE.
15455         * inet/getnetgrent_r.c (setup): Likewise.
15456
15457         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
15458
15459 2012-07-31  David S. Miller  <davem@davemloft.net>
15460
15461         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15462
15463 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
15464
15465         [BZ #13629]
15466         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
15467         value between 1.0 and 2.0 and smaller part has absolute value less
15468         than 1.0.
15469         * math/s_clog10.c (__clog10): Likewise.
15470         * math/s_clog10f.c (__clog10f): Likewise.
15471         * math/s_clog10l.c (__clog10l): Likewise.
15472         * math/s_clogf.c (__clogf): Likewise.
15473         * math/s_clogl.c (__clogl): Likewise.
15474         * math/libm-test.inc (clog_test): Add more tests.
15475         (clog10_test): Likewise.
15476         * sysdeps/i386/fpu/libm-test-ulps: Update.
15477         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15478
15479 2012-07-31  Florian Weimer  <fweimer@redhat.com>
15480
15481         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
15482         Exit with zero in case no suitable GID is found, and write a
15483         message to standard error.
15484
15485 2012-07-30  Roland McGrath  <roland@hack.frob.com>
15486
15487         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
15488         rather than to 1.
15489         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
15490         (MAXPATHLEN): Removed.
15491         (NOGROUP, NODEV): New macros.
15492         (setbit, clrbit, isset, isclr): New macros.
15493         (howmany, roundup, powerof2): New macros.
15494         (DEV_BSIZE): New macro.
15495
15496         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
15497         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
15498
15499         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
15500         definition on [!__NO_LONG_DOUBLE_MATH].
15501
15502         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
15503         PTR_MANGLE and PTR_DEMANGLE.
15504
15505         * socket/accept4.c (accept4): Rename to __libc_accept4.
15506         Define accept4 as a weak alias.
15507
15508         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
15509         on [_DIRENT_HAVE_D_TYPE].
15510         * io/ftw.c (ftw_dir): Likewise.
15511
15512         * io/xmknod.c (__xmknod): Don't check PATH for being null.
15513
15514         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
15515
15516         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
15517         Use the BSD numbers rather than the arbitrary ones we had.
15518         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
15519         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
15520         (SIGXCPU, SIGXFSZ): New macros.
15521         (_NSIG): Now 32.
15522
15523         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
15524         initializer on [_LIBC_REENTRANT].
15525
15526         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
15527         definitions inside [_POSIX_MAPPED_FILES].
15528
15529         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
15530
15531         * dirent/opendir.c: Include <fcntl.h>.
15532
15533         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
15534         (__libc_getspecific): Likewise.
15535         (__libc_key_create): Likewise.
15536
15537         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
15538         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
15539         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
15540         (tmpfile64): Define as alias.
15541         * sysdeps/wordsize-64/tmpfile.c: File removed.
15542         * sysdeps/wordsize-64/tmpfile64.c: File removed.
15543         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
15544         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
15545
15546         * stdio-common/vfscanf.c: Include <stdbool.h>.
15547         * nss/makedb.c: Likewise.
15548         * stdio-common/_i18n_number.h: Likewise.
15549         * argp/argp-help.c: Likewise.
15550         * posix/wordexp.c: Likewise.
15551         * sysdeps/posix/spawni.c: Likewise.
15552         * nss/nss_files/files-initgroups.c: Likewise.
15553         * stdio-common/reg-modifier.c: Include <stdlib.h>.
15554         * nss/nss_files/files-initgroups.c: Likewise.
15555         * nss/nss_db/db-netgrp.c: Likewise.
15556         * nss/nss_db/db-initgroups.c: Likewise.
15557         * io/fchmodat.c: Include <sys/stat.h>.
15558
15559         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
15560         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
15561
15562         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
15563         [HAVE_MMAP].
15564
15565         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
15566         Add multiple inclusion protection.
15567
15568 2012-07-27  David S. Miller  <davem@davemloft.net>
15569
15570         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15571
15572 2012-07-27  Gary Benson  <gbenson@redhat.com>
15573
15574         [BZ #14298]
15575         * elf/rtld.c: Include <stap-probe.h>.
15576         (dl_main): Added static probes "init_start" and "init_complete".
15577         * elf/dl-load.c: Include <stap-probe.h>.
15578         (lose): Take new parameter "nsid".
15579         Added static probe "map_failed".
15580         (_dl_map_object_from_fd): Pass namespace id to lose.
15581         Added static probe "map_start".
15582         (open_verify): Pass namespace id to lose.
15583         * elf/dl-open.c: Include <stap-probe.h>.
15584         (dl_open_worker) Added static probes "map_complete", "reloc_start"
15585         and "reloc_complete".
15586         * elf/dl-close.c: Include <stap-probe.h>.
15587         (_dl_close_worker): Added static probes "unmap_start" and
15588         "unmap_complete".
15589         * elf/rtld-debugger-interface.txt: New file documenting the above.
15590
15591 2012-07-26  Roland McGrath  <roland@hack.frob.com>
15592
15593         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
15594         rather than a string variable.
15595         * sunrpc/rpc_main.c (h_output): Likewise.
15596         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
15597
15598 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
15599
15600         * inet/check_native.c: New file.
15601
15602 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
15603
15604         [BZ #13629]
15605         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
15606         if larger part has absolute value 1.0.
15607         * math/s_clog10.c (__clog10): Likewise.
15608         * math/s_clog10f.c (__clog10f): Likewise.
15609         * math/s_clog10l.c (__clog10l): Likewise.
15610         * math/s_clogf.c (__clogf): Likewise.
15611         * math/s_clogl.c (__clogl): Likewise.
15612         * math/libm-test.inc (clog_test): Add more tests.
15613         (clog10_test): Likewise.
15614         * sysdeps/i386/fpu/libm-test-ulps: Update.
15615         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15616
15617         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
15618         (pltexit): Likewise.
15619         (La_regs): Likewise.
15620         (La_retval): Likewise.
15621         (int_retval): Likewise.
15622         Update #error for removed macros to refer only to definitions in
15623         tst-audit.h.
15624         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
15625         macro.
15626         (pltexit): Likewise.
15627         (La_regs): Likewise.
15628         (La_retval): Likewise.
15629         (int_retval): Likewise.
15630         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
15631         macro.
15632         (pltexit): Likewise.
15633         (La_regs): Likewise.
15634         (La_retval): Likewise.
15635         (int_retval): Likewise.
15636         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
15637         macro.
15638         (pltexit): Likewise.
15639         (La_regs): Likewise.
15640         (La_retval): Likewise.
15641         (int_retval): Likewise.
15642         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
15643         macro.
15644         (pltexit): Likewise.
15645         (La_regs): Likewise.
15646         (La_retval): Likewise.
15647         (int_retval): Likewise.
15648         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
15649         macro.
15650         (pltexit): Likewise.
15651         (La_regs): Likewise.
15652         (La_retval): Likewise.
15653         (int_retval): Likewise.
15654         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
15655         macro.
15656         (pltexit): Likewise.
15657         (La_regs): Likewise.
15658         (La_retval): Likewise.
15659         (int_retval): Likewise.
15660         * sysdeps/generic/tst-audit.h: Update comment to refer only to
15661         macro definitions in tst-audit.h.
15662         * sysdeps/i386/tst-audit.h: New file.
15663         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
15664         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
15665         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
15666         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
15667         * sysdeps/sh/tst-audit.h: Likewise.
15668         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
15669         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
15670         * sysdeps/x86_64/tst-audit.h: Likewise.
15671
15672 2012-07-26  Andreas Jaeger  <aj@suse.de>
15673
15674         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
15675         ptrace.
15676
15677         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
15678         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
15679         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
15680         PTRACE_O_MASK.
15681         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
15682         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
15683         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
15684
15685         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
15686         value.
15687
15688         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
15689         _sigsys.
15690         (si_call_addr, si_syscall, si_arch): Define new macro.
15691         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
15692         _sigsys.
15693         (si_call_addr, si_syscall, si_arch): Define new marcro.
15694         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
15695         _sigsys.
15696         (si_call_addr, si_syscall, si_arch): Define new macro.
15697         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
15698         _sigsys.
15699         (si_call_addr, si_syscall, si_arch): Define new macro.
15700
15701 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
15702
15703         [BZ #13717]
15704         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
15705         Change to 2.4.21 where previously 2.4.1.
15706         * sysdeps/unix/sysv/linux/configure: Regenerated.
15707         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
15708         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
15709         Linux kernel version.
15710         (__ASSUME_STD_AUXV): Remove.
15711         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
15712         kernel version.
15713         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
15714         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
15715         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
15716         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
15717         (__ASSUME_NETLINK_SUPPORT): Likewise.
15718         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
15719         (__no_netlink_support): Remove conditional definition.
15720         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
15721         Remove.
15722         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
15723         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
15724         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
15725         (if_nameindex_ioctl): Remove.
15726         (if_nameindex_netlink): Do not handle __no_netlink_support.
15727         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
15728         code.
15729         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
15730         Remove conditional code.
15731         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
15732         code.
15733         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
15734         unconditional.
15735         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
15736         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
15737         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
15738         Remove.
15739         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
15740         [!__ASSUME_STD_AUXV]: Remove conditional code.
15741         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
15742         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
15743         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
15744         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
15745         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
15746         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
15747         code.
15748         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
15749         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
15750         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
15751         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
15752         conditional code.
15753         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
15754         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
15755         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
15756         code.
15757         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
15758         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
15759         conditional code.
15760         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
15761         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
15762         code unconditional.
15763         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
15764         conditional code.
15765         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
15766         unconditional.
15767         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
15768         conditional code.
15769         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
15770         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
15771         unconditional.
15772         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
15773         conditional code.
15774         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
15775         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
15776         code unconditional.
15777         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
15778         conditional code.
15779         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
15780         unconditional.
15781         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
15782         conditional code.
15783         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
15784         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
15785         code unconditional.
15786         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
15787         conditional code.
15788         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
15789         unconditional.
15790         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
15791         conditional code.
15792
15793 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
15794
15795         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
15796         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
15797         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
15798         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
15799         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
15800         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
15801         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
15802         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
15803         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
15804         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
15805         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
15806         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
15807         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
15808         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
15809         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
15810         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
15811         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
15812         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
15813         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
15814         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
15815         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
15816         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
15817         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
15818
15819 2012-07-25  Florian Weimer  <fweimer@redhat.com>
15820
15821         * Versions.def: Add GLIBC_2.17.
15822         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
15823         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
15824         Introduce __libc_secure_getenv.
15825         * stdlib/Versions (2.17): Add secure_getenv
15826         (GLIBC_PRIVATE): Add __libc_secure_getenv.
15827         * stdlib/secure-getenv.c: Rename __secure_getenv to
15828         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
15829         symbol __secure_getenv for GLIBC_2.0.
15830         * stdlib/tst-secure-getenv.c: New.
15831         * stdlib/Makefile (tests): Add testcase.
15832         * manual/startup.texi (Environment Access): Document
15833         secure_getenv.
15834         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
15835         __libc_secure_getenv.
15836         * inet/ruserpass.c (ruserpass): Likewise.
15837         * malloc/mtrace.c (mtrace): Likewise.
15838         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
15839         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
15840         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
15841         * sysdeps/posix/tempname.c: Likewise.  Evaluate
15842         HAVE_SECURE_GETENV.
15843         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
15844         __secure_getenv to __libc_secure_getenv.
15845         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
15846         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
15847         Likewise.
15848         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
15849         Likewise.
15850         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
15851         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
15852         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
15853         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
15854         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
15855         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
15856         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
15857
15858 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
15859
15860         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
15861         (struct La_i86_retval): Likewise.
15862         (struct La_x86_64_regs): Likewise.
15863         (struct La_x86_64_retval): Likewise.
15864         (struct La_x32_regs): Likewise.
15865         (struct La_x32_retval): Likewise.
15866         (struct La_ppc32_regs): Likewise.
15867         (struct La_ppc32_retval): Likewise.
15868         (struct La_ppc64_regs): Likewise.
15869         (struct La_ppc64_retval): Likewise.
15870         (struct La_sh_regs): Likewise.
15871         (struct La_sh_retval): Likewise.
15872         (struct La_s390_32_regs): Likewise.
15873         (struct La_s390_32_retval): Likewise.
15874         (struct La_s390_64_regs): Likewise.
15875         (struct La_s390_64_retval): Likewise.
15876         (struct La_sparc32_regs): Likewise.
15877         (struct La_sparc32_retval): Likewise.
15878         (struct La_sparc64_regs): Likewise.
15879         (struct La_sparc64_retval): Likewise.
15880         (struct audit_ifaces): Remove architecture-specific pltenter and
15881         pltexit members.
15882         * sysdeps/i386/ldsodefs.h: New file.
15883         * sysdeps/powerpc/ldsodefs.h: Likewise.
15884         * sysdeps/s390/ldsodefs.h: Likewise.
15885         * sysdeps/sh/ldsodefs.h: Likewise.
15886         * sysdeps/sparc/ldsodefs.h: Likewise.
15887         * sysdeps/x86_64/ldsodefs.h: Likewise.
15888
15889 2012-07-25  Marek Polacek  <polacek@redhat.com>
15890
15891         [BZ #6808]
15892         * math/libm-test.inc (yn_test): Add another test.
15893         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
15894         to ERANGE when the result is +-Inf.
15895         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
15896         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
15897         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
15898         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
15899
15900 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
15901
15902         * conform/data/time.h-data (NULL): Use macro-constant.  Require
15903         equal to 0.
15904         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
15905         clock_t.
15906         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
15907
15908 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
15909
15910         * configure.in <sysdeps resolving>: Correct printing
15911         Implies_before.
15912         * configure: Regenerate.
15913
15914 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
15915
15916         * math/w_ilogb.c: Include <limits.h>.
15917         * math/w_ilogbl.c: Likewise.
15918
15919 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
15920
15921         * manual/lang.texi (__va_copy): Document primarily as ISO C99
15922         va_copy.  Document allowing for unavailable va_copy only as
15923         pre-C99 compatibility.
15924         * manual/string.texi (Copying and Concatenation): Use va_copy
15925         instead of __va_copy in concat example.
15926
15927 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
15928
15929         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
15930         (__sendto): Use create_address_port.  Initialize APORT and deallocate
15931         it if not null.
15932
15933         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
15934         with O_NOLINK passed to __file_name_lookup.
15935
15936         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
15937         with O_NOLINK passed to __file_name_lookup.
15938
15939         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
15940         negative N or less than NGIDS.
15941
15942         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
15943         type to string_t.  Set ERANGE as errno and return it if NAME is not big
15944         enough.  Use memcpy instead of strncpy.
15945
15946 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
15947
15948         * elf/Makefile (check-data): Remove.
15949         (localplt.data): New vpath directive.
15950         ($(objpfx)check-localplt.out): Use localplt.data from vpath
15951         instead of $(check-data).
15952         * scripts/data/localplt-generic.data: Move to ...
15953         * sysdeps/generic/localplt.data: ... here.
15954         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
15955         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
15956         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
15957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
15958         ... here.
15959         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
15960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
15961         ... here.
15962         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
15963         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
15964         ... here.
15965         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
15966         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
15967         ... here.
15968         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
15969         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
15970         ... here.
15971         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
15972         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
15973         ... here.
15974
15975 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15976
15977         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
15978         PPC32 and PPC64 files.
15979         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
15980         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
15981
15982 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15983
15984         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
15985         __makecontext_ret to ...
15986         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15987         ... here and call exit if uc_link is NULL.  New file.
15988         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
15989         __makecontext_ret.S.
15990         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
15991         __makecontext_ret to ...
15992         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15993         ... here and call exit if uc_link is NULL.  New file.
15994         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
15995         __makecontext_ret.S.
15996
15997 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15998
15999         * elf/elf.h (R_390_IRELATIVE): New definition.
16000         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
16001         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
16002         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
16003         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
16004         (elf_machine_lazy_rel): Likewise.
16005         * sysdeps/s390/dl-irel.h: New file.
16006         * sysdeps/s390/s390-64/memcpy.S: New asm code.
16007         * sysdeps/s390/s390-64/memset.S: New asm code.
16008         * sysdeps/s390/s390-64/memcmp.S: New asm code.
16009         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
16010         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
16011         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
16012         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
16013         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
16014         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
16015         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
16016         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
16017         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
16018         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
16019         * sysdeps/s390/s390-32/memcpy.S: New asm code.
16020         * sysdeps/s390/s390-32/memset.S: New asm code.
16021         * sysdeps/s390/s390-32/memcmp.S: New asm code.
16022
16023 2012-07-17  Marek Polacek  <polacek@redhat.com>
16024
16025         [BZ #14349]
16026         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
16027         * sysdeps/s390/s390-64/configure.in: Likewise.
16028         * sysdeps/sparc/configure.in: Likewise.
16029         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
16030         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
16031         * sysdeps/i386/configure.in: Likewise.
16032         * sysdeps/x86_64/configure.in: Likewise.
16033         * sysdeps/sh/configure.in: Likewise.
16034         * sysdeps/s390/s390-32/configure: Regenerated.
16035         * sysdeps/s390/s390-64/configure: Likewise.
16036         * sysdeps/x86_64/configure: Likewise.
16037         * sysdeps/sh/configure: Likewise.
16038         * sysdeps/powerpc/powerpc64/configure: Likewise.
16039         * sysdeps/powerpc/powerpc32/configure: Likewise.
16040         * sysdeps/sparc/configure: Likwise.
16041         * sysdeps/i386/configure: Likewise.
16042
16043         * elf/dl-open.c: Comment fixes.
16044
16045 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
16046
16047         * Makefile [CXX] (check-data): Remove.
16048         [CXX] (c++-types.data): New vpath directive.
16049         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
16050         vpath.  Do not allow for C++ type data being missing.
16051         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
16052         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
16053         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
16054         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
16055         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
16056         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
16057         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
16058         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
16059         ... here.
16060         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
16061         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
16062         ... here.
16063         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
16064         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
16065         ... here.
16066         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
16067         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
16068         ... here.
16069         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
16070         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
16071         ... here.
16072         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
16073         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
16074         ... here.
16075         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
16076         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
16077         ... here.
16078         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
16079         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
16080
16081         * elf/tls-macros.h (TLS_LE): Move architecture-specific
16082         definitions to architecture-specific files.
16083         (TLS_IE): Likewise.
16084         (TLS_LD): Likewise.
16085         (TLS_GD): Likewise.
16086         * sysdeps/i386/tls-macros.h: New file.
16087         * sysdeps/powerpc/tls-macros.h: Likewise.
16088         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
16089         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
16090         * sysdeps/sh/tls-macros.h: Likewise.
16091         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
16092         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
16093         * sysdeps/x86_64/tls-macros.h: Likewise.
16094
16095 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
16096
16097         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
16098         zero value for regular exit case.
16099
16100         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
16101         (__start_context): Preserve zero value for regular exit case.
16102
16103 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
16104             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16105
16106         * manual/setjmp.texi (setcontext): Clarify normal process
16107         termination when uc_link is the null pointer.
16108         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
16109         exit call.
16110
16111 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
16112
16113         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
16114         preprocessor.  Test for each exception mask separately.
16115
16116 2012-07-16  Andreas Jaeger  <aj@suse.de>
16117
16118         * po/ru.po: Update from translation team.
16119
16120 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
16121
16122         * conform/data/string.h-data (NULL): Use macro-constant.  Require
16123         equal to 0.
16124         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
16125         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
16126         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
16127         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
16128         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16129
16130 2012-07-13  Andreas Jaeger  <aj@suse.de>
16131
16132         * po/fr.po: Update from translation team.
16133
16134 2012-07-12  Marek Polacek  <polacek@redhat.com>
16135
16136         [BZ #14173]
16137         * math/libm-test.inc (yn_test): Add test for BZ #14173.
16138         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
16139         loop condition.
16140
16141 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
16142
16143         [BZ #13717]
16144         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
16145         Change to 2.4.1 where previously 2.4.0.
16146         * sysdeps/unix/sysv/linux/configure: Regenerated.
16147         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
16148         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
16149         version.
16150         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
16151         (__ASSUME_AT_CLKTCK): Remove.
16152         (__ASSUME_AT_PAGESIZE): Likewise.
16153         (__ASSUME_AT_XID): Likewise.
16154         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
16155         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
16156         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
16157         unconditionally.
16158         (HAVE_AUX_PAGESIZE): Likewise.
16159         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
16160         [__ASSUME_AT_CLKTCK]: Make code unconditional.
16161         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
16162
16163 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
16164
16165         [BZ #14307]
16166         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
16167         the temporary buffer used to invoke __gethostbyname2_r,
16168         __gethostbyaddr_r and gethostbyname4_r to make room for struct
16169         host_data / struct gaih_addrtuple.
16170         * resolv/nss_dns/dns-host.c (global scope): Move definition of
16171         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
16172         header file nss/nsswitch.h.
16173         * nss/nsswitch.h (global scope): Add definition of implementation
16174         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
16175         resolv/nss_dns/dns-host.c).
16176
16177 2012-07-11  Andreas Jaeger  <aj@suse.de>
16178
16179         * po/fr.po: Update from translation team.
16180
16181         * po/sv.po: Update from translation team
16182         * po/fr.po: Another update from translation team.
16183
16184 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16185
16186         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
16187         for subnormals or multiply small sinh result by itself.
16188         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
16189         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
16190
16191 2012-07-11  David S. Miller  <davem@davemloft.net>
16192
16193         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16194
16195 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
16196
16197         [BZ #14347]
16198         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
16199         (INTERNAL_MARK): Shift it here.
16200
16201 2012-07-10  Marek Polacek  <polacek@redhat.com>
16202
16203         [BZ #14151]
16204         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
16205         libc_cv_asm_global_directive with .globl.
16206         * configure: Regenerated.
16207         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
16208         with .globl.
16209         * sysdeps/i386/configure: Regenerated.
16210         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
16211         with .globl.
16212         * sysdeps/x86_64/configure: Regenerated.
16213         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
16214         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
16215         * elf/tst-unique2mod2.c: Likewise.
16216         * elf/tst-unique2mod1.c: Likewise.
16217         * elf/tst-unique1mod2.c: Likewise.
16218         * elf/tst-unique1mod1.c: Likewise.
16219         * sysdeps/s390/s390-32/sysdep.h: Likewise.
16220         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
16221         * sysdeps/s390/s390-64/sysdep.h: Likewise.
16222         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
16223         * sysdeps/mach/sysdep.h: Likewise.
16224         * sysdeps/i386/sysdep.h: Likewise.
16225         * sysdeps/i386/i386-mcount.S: Likewise.
16226         * sysdeps/x86_64/_mcount.S: Likewise.
16227         * sysdeps/x86_64/sysdep.h: Likewise.
16228         * sysdeps/sh/_mcount.S: Likewise.
16229         * sysdeps/sh/sysdep.h: Likewise.
16230         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
16231         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
16232         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
16233         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
16234         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
16235         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
16236         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
16237         * locale/localeinfo.h: Likewise.
16238         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
16239         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
16240
16241 2012-07-09  Roland McGrath  <roland@hack.frob.com>
16242
16243         [BZ #14336]
16244         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
16245         system".
16246         * manual/message.texi (The Uniforum approach): Likewise.
16247         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
16248         (glibc iconv Implementation): Likewise.
16249
16250 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
16251
16252         [BZ #14337]
16253         * math/s_clog.c (__clog): Avoid scaling a value down where that
16254         could result in underflow.
16255         * math/s_clog10.c (__clog10): Likewise.
16256         * math/s_clog10f.c (__clog10f): Likewise.
16257         * math/s_clog10l.c (__clog10l): Likewise.
16258         * math/s_clogf.c (__clogf): Likewise.
16259         * math/s_clogl.c (__clogl): Likewise.
16260         * math/libm-test.inc (clog_test): Add more tests.
16261         (clog10_test): Likewise.
16262         * sysdeps/i386/fpu/libm-test-ulps: Update.
16263         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16264
16265 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
16266
16267         [BZ #14283]
16268         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
16269         by 7 not 8 to examine high bit of fractional part.
16270
16271         [BZ #14042]
16272         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
16273         for call to __mcount_internal.
16274         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
16275         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
16276         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
16277
16278 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
16279
16280         [BZ #14154]
16281         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
16282         approximation for values within 0x1p-13f of an odd multiple of
16283         pi/4.
16284         * math/libm-test.inc (tan_test): Do not allow spurious underflow
16285         exception.  Add more tests.
16286         * sysdeps/i386/fpu/libm-test-ulps: Update.
16287
16288         [BZ #6778]
16289         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
16290         inputs and return -1 for them.  Do not check for +Inf in case not
16291         reachable for +Inf.
16292         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
16293         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
16294         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
16295         and return -1 for them.  Do not check for +Inf in case not
16296         reachable for +Inf.
16297         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
16298         define.
16299         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
16300         and return -1 for them.  Do not check for +Inf in case not
16301         reachable for +Inf.
16302         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
16303         spurious underflow.
16304         * sysdeps/i386/fpu/libm-test-ulps: Update.
16305         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16306
16307 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
16308
16309         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
16310
16311 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
16312
16313         [BZ #14157]
16314         [BZ #14331]
16315         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
16316         could result in spurious underflow.  Scale down values above
16317         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
16318         * math/s_csqrtf.c (__csqrtf): Likewise.
16319         * math/s_csqrtl.c (__csqrtl): Likewise.
16320         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
16321         spurious underflow.
16322         * sysdeps/i386/fpu/libm-test-ulps: Update.
16323         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16324
16325 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
16326
16327         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
16328         xopen-msg.sed.
16329         * catgets/xopen-msg.awk: New file.
16330         * catgets/xopen-msg.sed: Removed.
16331
16332         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
16333         po2text.sed.
16334         * intl/po2test.awk: New file.
16335         * intl/po2test.sed: Removed.
16336
16337 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
16338
16339         [BZ #14328]
16340         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
16341         or multiply small sinh result by itself.
16342         * math/s_ctanf.c (__ctanf): Likewise.
16343         * math/s_ctanh.c (__ctanh): Likewise.
16344         * math/s_ctanhf.c (__ctanhf): Likewise.
16345         * math/s_ctanhl.c (__ctanhl): Likewise.
16346         * math/s_ctanl.c (__ctanl): Likewise.
16347         * math/libm-test.inc (ctan_test_tonearest): New function.
16348         (ctan_test_towardzero): Likewise.
16349         (ctan_test_downward): Likewise.
16350         (ctan_test_upward): Likewise.
16351         (ctanh_test_tonearest): Likewise.
16352         (ctanh_test_towardzero): Likewise.
16353         (ctanh_test_downward): Likewise.
16354         (ctanh_test_upward): Likewise.
16355         (main): Call these new functions.
16356         * sysdeps/i386/fpu/libm-test-ulps: Update.
16357         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16358
16359 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
16360
16361         * .gitignore: Delete /ports entry.
16362
16363 2012-07-03  Andreas Jaeger  <aj@suse.de>
16364
16365         * po/bg.po: Update from translation team.
16366         * po/cs.po: Likewise.
16367         * po/de.po: Likewise.
16368         * po/hr.po: Likewise.
16369         * po/nl.pl: Likewise.
16370         * po/pl.po: Likewise.
16371         * po/vi.po: Likewise.
16372
16373 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
16374
16375         * Makeconfig [!+link] (+link-before-libc): New variable.
16376         [!+link] (+link-after-libc): Likewise.
16377         [!+link] (+link-tests): Likewise.
16378         [!+link] (+link): Define in terms of $(+link-before-libc) and
16379         $(+link-after-libc).
16380         [!+link-static] (+link-static-before-libc): New variable.
16381         [!+link-static] (+link-static-after-libc): Likewise.
16382         [!+link-static] (+link-static-tests): Likewise.
16383         [!+link-static] (+link-static): Define in terms of
16384         $(+link-static-before-libc) and $(+link-static-after-libc).
16385         [build-shared] (link-libc-before-gnulib): New variable.
16386         [build-shared] (link-libc-tests): Likewise.
16387         [build-shared] (link-libc): Define in terms of
16388         $(link-libc-before-gnulib).
16389         [!build-shared] (link-libc-tests): New variable.
16390         (link-libc-static-tests): New variable.
16391         [!gnulib] (gnulib-arch): New variable.
16392         [!gnulib] (gnulib-tests): Likewise.
16393         [!gnulib] (static-gnulib-arch): Likewise.
16394         [!gnulib] (static-gnulib-tests): Likewise.
16395         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
16396         Define with "=" instead of ":=".
16397         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
16398         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
16399         * Rules (binaries-all-notests): New variable.
16400         (binaries-all-tests): Likewise.
16401         (binaries-static-notests): Likewise.
16402         (binaries-static-tests): Likewise.
16403         (binaries-all): Define using $(binaries-all-notests) and
16404         $(binaries-all-tests).
16405         (binaries-static): Define using $(binaries-static-notests) and
16406         $(binaries-static-tests).
16407         (binaries-shared-tests): New variable.
16408         (binaries-shared-notests): Likewise.
16409         (binaries-shared): Remove variable.
16410         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
16411         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
16412         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
16413         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
16414         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
16415         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
16416         * elf/Makefile (sln-modules): New variable.
16417         (extra-objs): Add $(sln-modules:=.o).
16418         (ldconfig-modules): Add static-stubs.
16419         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
16420         * elf/static-stubs.c: New file.
16421
16422         [BZ #14283]
16423         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
16424         by 7 not 8 to examine high bit of fractional part.  Use volatile
16425         variables when splitting into final array of floats if
16426         __FLT_EVAL_METHOD__ != 0.
16427         * math/libm-test.inc (cos_test): Add another test.
16428         (sin_test): Likewise.
16429         * sysdeps/i386/fpu/libm-test-ulps: Update.
16430
16431         [BZ #14273]
16432         * math/libm-test.inc (cosh_test): Add more tests.
16433
16434         * version.h (RELEASE): Set to "development".
16435         (VERSION): Set to "2.16.90".
16436
16437 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
16438
16439         * NEWS: Update copyright. Remove last-updated date.
16440         Mention math library bug fixes and timezone data changes.
16441         * README: Mention GNU/Hurd, x32, and HPPA support status.
16442
16443 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
16444
16445         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
16446
16447 2012-06-27  Andreas Jaeger  <aj@suse.de>
16448
16449         * manual/contrib.texi (Contributors): Add Samuel Thibault.
16450
16451 2012-06-25  Andreas Jaeger  <aj@suse.de>
16452
16453         * sysdeps/s390/fpu/libm-test-ulps: Update.
16454
16455 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
16456             Thomas Schwinge  <thomas@codesourcery.com>
16457
16458         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
16459         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
16460         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
16461         fanotify_mark.
16462
16463 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
16464
16465         * sysdeps/mach/start.c: Remove file.
16466         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
16467         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
16468         * sysdeps/sh/init-first.c: Likewise.
16469
16470         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
16471         registers for frame unwinding purposes, add CFI directives.
16472         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
16473         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
16474         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
16475         Likewise.
16476
16477         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
16478         __fortify_fail returning.
16479         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
16480
16481         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
16482         sysdeps/sh/____longjmp_chk.S.
16483         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
16484         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
16485         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
16486         (gen-as-const-headers): Append sigaltstack-offsets.sym.
16487
16488         * sysdeps/sh/abort-instr.h: New file.
16489         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
16490         process in case exit returns.
16491
16492         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
16493         initialize the GOT register before use.
16494
16495         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
16496         calculation of ARGC > 4.
16497
16498         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
16499         meaningful names to some local labels.
16500
16501 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
16502             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16503
16504         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
16505         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
16506         (__arch_compare_and_exchange_val_16_acq): Likewise.
16507         (__arch_compare_and_exchange_val_32_acq): Likewise.
16508         (atomic_exchange_and_add): Fix gUSA sequence.
16509         (atomic_add): Likewise.
16510         (atomic_add_negative): Likewise.
16511         (atomic_add_zero): Likewise.
16512         (atomic_bit_test_set): Likewise.
16513
16514 2012-06-22  Andreas Schwab  <schwab@redhat.com>
16515
16516         [BZ #13579]
16517         * include/link.h (struct link_map): Add l_free_initfini.
16518         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
16519         l_initfini.
16520         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
16521         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
16522         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
16523         set.
16524
16525 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
16526
16527         * configure.in: Use AC_LANG_SOURCE.
16528         * configure: Regenerate.
16529
16530 2012-06-22  Roland McGrath  <roland@hack.frob.com>
16531
16532         * configure.in (libc_cv_localstatedir): New substituted variable.
16533         * configure: Regenerated.
16534         * config.make.in (localstatedir): New variable, substituted from
16535         libc_cv_localstatedir.
16536         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
16537         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
16538         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
16539         * sysdeps/gnu/configure: Regenerated.
16540
16541 2012-06-21  Jeff Law  <law@redhat.com>
16542
16543         [BZ #14277]
16544         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
16545         free.  Simplify list management for _LIBC case.
16546
16547 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
16548
16549         [BZ #14273]
16550         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
16551         Clear sign bit of 64-bit integer value before comparing against
16552         overflow value.
16553
16554         * sysdeps/mach/configure: Regenerated.
16555
16556 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
16557
16558         [BZ #14278]
16559         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
16560
16561 2012-06-21  Jeff Law  <law@redhat.com>
16562
16563         [BZ #13882]
16564         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
16565         uint16_t for elements in the "seen" array to avoid char overflows.
16566         * elf/dl-fini.c (_dl_sort_fini): Likewise.
16567         * elf/dl-open.c (dl_open_worker): Likewise.
16568
16569 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
16570
16571         * scripts/list-sources.sh: Scan PORTS for translations.
16572         * po/libc.pot: Regenerated.
16573
16574 2012-06-21  Andreas Jaeger  <aj@suse.de>
16575
16576         [BZ #12194]
16577         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
16578         warning.
16579         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
16580         * bits/byteswap-16.h (__bswap_16): Likewise.
16581         * bits/byteswap.h (__bswap_constant_16): Likewise.
16582
16583 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
16584
16585         [BZ #14117]
16586         * sysdeps/i386/fpu_control.h: Removed.
16587         * sysdeps/x86_64/fpu_control.h: Moved to ...
16588         * sysdeps/x86/fpu_control.h: Here.
16589
16590         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
16591         (_FPU_SETCW): Likewise.
16592
16593 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
16594
16595         [BZ #14117]
16596         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
16597         * sysdeps/x86/fpu/bits/mathinline.h: This.
16598         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
16599
16600         [BZ #14050]
16601         [BZ #14117]
16602         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
16603         functions if __x86_64__ is defined.
16604
16605 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
16606
16607         * string/endian.h: Add !__ASSEMBLER__ condition for including
16608         conversion interfaces.
16609
16610 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
16611
16612         [BZ #14241]
16613         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
16614         of ABS(x) in calculating zero to negative powers other than odd
16615         integers.
16616         * math/libm-test.inc (pow_test): Add more tests.
16617
16618 2012-06-15  Andreas Jaeger  <aj@suse.de>
16619
16620         * manual/contrib.texi (Contributors): Update entry of Liubov
16621         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
16622         Machado Filho.
16623
16624 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
16625
16626         * string/string.h: Add __wur to GNU version of strerror_r.
16627
16628 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
16629
16630         [BZ #14229]
16631         * string/Makefile (tests): Add tst-strtok_r.
16632         * string/tst-strtok_r.c: New file.
16633         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
16634         RAX_LP/RDX_LP on SAVE_PTR.
16635
16636 2012-06-14  Roland McGrath  <roland@hack.frob.com>
16637
16638         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
16639
16640 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
16641
16642         * libm_test.inc (csqrt_test): Allow more spurious underflow
16643         exceptions.
16644         (j0_test): Likewise.
16645         (j1_test): Likewise.
16646         (y0_test): Likewise.
16647         (y1_test): Likewise.
16648
16649 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
16650
16651         * po/Makefile (libc.pot): Use UTF-8 charset.
16652
16653 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
16654
16655         [BZ #14210]
16656         Suppress sign-conversion warning from FD_SET.
16657         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
16658         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
16659         not unsigned long int.
16660         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
16661
16662 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
16663
16664         [BZ #14050]
16665         [BZ #14117]
16666         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
16667         __extern_always_inline instead of __extern_inline.
16668         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
16669         (__signbit): Likewise.
16670         (__signbitl): Support C++ namespace.
16671         (lrintf): New inline function.
16672         (lrint): Likewise.
16673         (llrintf): Likewise.
16674         (llrint): Likewise.
16675         (fmaxf): Likewise.
16676         (fmax): Likewise.
16677         (fminf): Likewise.
16678         (fmin): Likewise.
16679         (rint): Likewise.
16680         (rintf): Likewise.
16681         (ceil): Likewise.
16682         (ceilf): Likewise.
16683         (floor): Likewise.
16684         (floorf): Likewise.
16685         (nearbyint): Likewise.
16686         (nearbyintf): Likewise.
16687
16688 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
16689
16690         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
16691         non-default versions.
16692
16693 2012-06-11  Roland McGrath  <roland@hack.frob.com>
16694
16695         [BZ #14218]
16696         * manual/argp.texi (Argp): Reword argp_parse description slightly.
16697
16698 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
16699
16700         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
16701         (FE_UPWARD, FE_DOWNWARD): Don't define.
16702         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
16703         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
16704
16705         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
16706         reading it.
16707         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
16708         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
16709
16710 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16711
16712         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
16713         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
16714         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
16715         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
16716
16717 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
16718
16719         [BZ #14117]
16720         * sysdeps/i386/fpu/bits/fenv.h: Removed.
16721         * sysdeps/i386/fpu/Implies: New file.
16722         * sysdeps/x86_64/fpu/Implies: Likewise.
16723         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
16724         * sysdeps/x86/fpu/bits/fenv.h: This.
16725
16726         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
16727         __SSE_MATH__.
16728
16729 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
16730
16731         [BZ #14134]
16732         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
16733         character 0xffff that matches the last element of the
16734         conversion table.
16735
16736 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16737
16738         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
16739         fmodl commit.
16740
16741 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16742
16743         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
16744         values higher than 25.6283.
16745
16746 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16747
16748         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
16749         subnormal exponent extraction and add some __builtin_expect.
16750         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
16751         Fix for subnormal mantissa calculation.
16752
16753 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
16754
16755         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
16756         cpu2 is -1 and errno is not ENOSYS.
16757
16758 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
16759
16760         [BZ #14117]
16761         * sysdeps/i386/i486/bits/string.h: Renamed to ...
16762         * sysdeps/x86/bits/string.h: This.
16763         * sysdeps/x86_64/bits/string.h: Removed.
16764
16765         * sysdeps/i386/i486/bits/string.h: Define inline functions only
16766         if not compiling for x86-64, but compiling for >= i486.
16767
16768         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
16769         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
16770
16771         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
16772         New macro from Linux kernel 3.4.0.
16773         (FP_XSTATE_MAGIC2): Likewise.
16774         (FP_XSTATE_MAGIC2_SIZE): Likewise.
16775         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
16776         (struct _fpx_sw_bytes): New struct.
16777         (struct _xsave_hdr): Likewise.
16778         (struct _ymmh_state): Likewise.
16779         (struct _xstate): Likewise.
16780
16781         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
16782         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
16783         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
16784         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
16785         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
16786         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
16787
16788         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
16789         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
16790         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
16791         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
16792         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
16793         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
16794
16795 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
16796
16797         [BZ #13743]
16798         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
16799         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
16800         (sysdep_headers): Include sys/platform/ppc.h.
16801         * sysdeps/powerpc/test-gettimebase.c: Test for
16802         __ppc_get_timebase() to catch future ISA opcode/insn changes.
16803         * manual/Makefile (appendices): Include platform.texi.
16804         * manual/contrib.texi (Contributors): Update @node pointers.
16805         * manual/maint.texi (Maintenance): Likewise.
16806         (Platform): New node.
16807         * manual/platform.texi: New file.  Document the new features.
16808
16809 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
16810             Jakub Jelinek  <jakub@redhat.com>
16811
16812         [BZ #14188]
16813         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
16814         where __builtin_expect is unavailable.
16815
16816 2012-06-03  David S. Miller  <davem@davemloft.net>
16817
16818         * stdlib/longlong.h: Updated from GCC.
16819
16820 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
16821
16822         [BZ #14042]
16823         * sysdeps/powerpc/powerpc32/mcount.c: New file.
16824         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
16825         __mcount_internal.
16826         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
16827         (GLIBC_2.16): Likewise.
16828
16829 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
16830
16831         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
16832
16833 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
16834
16835         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
16836         (default-abi): New variable.
16837         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
16838         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
16839         variable.
16840         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
16841         Likewise.
16842         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
16843         Likewise.
16844         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
16845         Likewise.
16846
16847         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
16848         definition.  Document in comment.
16849
16850 2012-06-01  David S. Miller  <davem@davemloft.net>
16851
16852         * stdlib/longlong.h: Updated from GCC.
16853
16854 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
16855
16856         [BZ #14117]
16857         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
16858         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
16859         sys/debugreg.h sys/io.h here.
16860         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
16861         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
16862         sys/io.h.
16863         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
16864         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
16865         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
16866         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
16867         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
16868         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
16869
16870         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
16871         Define only if __x86_64__ is defined.
16872
16873 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
16874
16875         [BZ #14048]
16876         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
16877         Use int64_t for variable i.
16878         * math/libm-test.inc (fmod_test): Add more tests.
16879
16880         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
16881         z computation is not scheduled after fetestexcept.
16882         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
16883         Use math_force_eval instead of asm to ensure calculation scheduled
16884         before exception test.
16885         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
16886         Ensure a1 + u.d computation is not scheduled after fetestexcept.
16887
16888 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
16889
16890         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
16891         computation is not scheduled after fetestexcept.
16892
16893 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
16894
16895         [BZ #14117]
16896         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
16897         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
16898
16899 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
16900
16901         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
16902         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
16903
16904 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
16905
16906         [BZ #14117]
16907         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
16908         <bits/wordsize.h>.
16909         (__WCHAR_MIN): Support __WORDSIZE == 64.
16910         (__WCHAR_MAX): Likewise.
16911
16912         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
16913         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
16914
16915         [BZ #14183]
16916         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
16917         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
16918
16919         [BZ #14117]
16920         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
16921         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
16922
16923         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
16924         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
16925
16926         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
16927         Defined to 1 if __x86_64__ isn't defined.
16928         (_STAT_VER_LINUX_OLD): New.
16929         (st_atime): Remove duplicate.
16930         (st_mtime): Likewise.
16931         (st_ctime): Likewise.
16932
16933 2012-05-31  David S. Miller  <davem@davemloft.net>
16934
16935         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
16936         entries.
16937
16938 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
16939
16940         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
16941         gen-libm-test.pl.
16942
16943         [BZ #14132]
16944         * elf/dl-reloc.c: Include <_itoa.h>.
16945         (_dl_reloc_bad_type): Remove use of INTUSE.
16946         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
16947         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
16948         * stdio-common/psiginfo.c (psiginfo): Likewise.
16949         * stdio-common/psignal.c (psignal): Likewise.
16950         * string/strsignal.c (strsignal): Likewise.
16951         * include/signal.h (_sys_siglist): Declare hidden proto.
16952         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
16953         INTVARDEF with libc_hidden_data_def.
16954         * stdio-common/itoa-udigits.c: Likewise.
16955         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
16956         (_itoa_lower_digits_internal): Remove declaration.
16957         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
16958         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
16959         (_sys_sigabbrev_internal): Remove aliases.
16960         (_sys_siglist): Define hidden alias.
16961
16962 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
16963
16964         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16965         bits/sysctl.h.
16966
16967 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
16968
16969         [BZ #14117]
16970         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
16971         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
16972
16973         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
16974         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
16975         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
16976         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
16977         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
16978         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
16979
16980         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
16981         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
16982         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
16983
16984         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
16985         with __addr.
16986         (insw): Likewise.
16987         (insl): Likewise.
16988         (outsb): Likewise.
16989         (outsw): Likewise.
16990         (outsl): Likewise.
16991
16992         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
16993         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
16994         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
16995
16996         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
16997         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
16998         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
16999         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
17000         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
17001         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
17002
17003         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
17004         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
17005
17006         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
17007         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
17008
17009         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
17010         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
17011         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
17012
17013         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
17014         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
17015         to ...
17016         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
17017
17018         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
17019         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
17020         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
17021
17022         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
17023         for x86-64.
17024         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
17025
17026 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
17027
17028         * math/math.h (M_El): Use two more decimal places.
17029         (M_LOG2El): Likewise.
17030         (M_LOG10El): Likewise.
17031         (M_LN2l): Likewise.
17032         (M_LN10l): Likewise.
17033         (M_PIl): Likewise.
17034         (M_PI_2l): Likewise.
17035         (M_PI_4l): Likewise.
17036         (M_1_PIl): Likewise.
17037         (M_2_PIl): Likewise.
17038         (M_2_SQRTPIl): Likewise.
17039         (M_SQRT2l): Likewise.
17040         (M_SQRT1_2l): Likewise.
17041
17042 2012-05-31  David S. Miller  <davem@davemloft.net>
17043
17044         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
17045         values between float registers.
17046         * sysdeps/sparc/sparc64/memset.S: Likewise.
17047         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
17048
17049 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
17050
17051         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
17052         -D_FORTIFY_SOURCE=1.
17053         (CPPFLAGS-tst-longjmp_chk.c): Define.
17054         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
17055         (CPPFLAGS-tst-longjmp_chk2.c): Define.
17056         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
17057         CFLAGS-tst-wchar-h.c.
17058
17059 2012-05-31  Marek Polacek  <polacek@redhat.com>
17060
17061         [BZ #14132]
17062         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
17063         __endmntent_internal): Remove declaration.
17064         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
17065         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
17066         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
17067
17068 2012-05-30  David S. Miller  <davem@davemloft.net>
17069
17070         * sysdeps/sparc/sparc32/soft-fp/q_util.c
17071         (___Q_simulate_exceptions): Use real FP ops rather than writing
17072         into the %fsr.
17073         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
17074         Likewise.
17075
17076 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
17077
17078         [BZ #14117]
17079         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
17080         * sysdeps/x86/bits/xtitypes.h: This.
17081
17082         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
17083         * sysdeps/x86/bits/wordsize.h: This.
17084
17085         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
17086         * sysdeps/x86/bits/huge_vall.h: This.
17087
17088         * sysdeps/i386/bits/select.h: Removed.
17089         * sysdeps/x86_64/bits/select.h: Renamed to ...
17090         * sysdeps/x86/bits/select.h: This.
17091
17092         * sysdeps/i386/bits/setjmp.h: Removed.
17093         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
17094         * sysdeps/x86/bits/setjmp.h: This.
17095
17096         * sysdeps/i386/bits/mathdef.h: Removed.
17097         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
17098         * sysdeps/x86/bits/mathdef.h: This.
17099
17100 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
17101
17102         [BZ #14132]
17103         * include/sys/socket.h (__connect_internal)
17104         (__libc_sa_len_internal): Remove declaration.
17105         (__connect, __libc_sa_len): Declare hidden_proto.
17106         (SA_LEN): Remove use of INTUSE.
17107         * socket/connect.c: Add libc_hidden_def.
17108         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
17109         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
17110         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
17111         alias.
17112         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
17113         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
17114         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
17115         of adding _internal alias.
17116
17117 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
17118
17119         [BZ #14117]
17120         * sysdeps/i386/bits/link.h: Removed.
17121         * sysdeps/i386/bits/linkmap.h: Likewise.
17122         * sysdeps/x86_64/bits/link.h: Renamed to ...
17123         * sysdeps/x86/bits/link.h: This.
17124         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
17125         * sysdeps/x86/bits/linkmap.h: This.
17126
17127         * sysdeps/i386/bits/endian.h: Removed.
17128         * sysdeps/x86_64/bits/endian.h: Renamed to ...
17129         * sysdeps/x86/bits/endian.h: This.
17130
17131         * sysdeps/i386/bits/byteswap.h: Removed.
17132         * sysdeps/i386/bits/byteswap-16.h: Likewise.
17133         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
17134         * sysdeps/x86/bits/byteswap.h: This.
17135         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
17136         * sysdeps/x86/bits/byteswap-16.h: This.
17137         * sysdeps/i386/Implies: Add x86.
17138         * sysdeps/x86_64/Implies: Likewise.
17139
17140 2012-05-30  David S. Miller  <davem@davemloft.net>
17141
17142         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
17143         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
17144         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
17145         (FP_TRAPPING_EXCEPTIONS): Define.
17146         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
17147         (FP_TRAPPING_EXCEPTIONS): Define.
17148         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
17149         subnormals only when inexact has been signalled or underflow
17150         exceptions are enabled.
17151         (_FP_PACK_CANONICAL): Likewise.
17152
17153 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
17154
17155         [BZ #14183]
17156         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
17157         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
17158
17159 2012-05-30  Richard Henderson  <rth@twiddle.net>
17160
17161         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
17162         with #ifndef NOT_IN_libc.
17163
17164         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
17165         marked to avoid plt entry.
17166
17167 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
17168
17169         [BZ #14112]
17170         * Makeconfig (default-abi): New macro.
17171         (abi-includes): Likewise.
17172         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
17173         $(abi-$(default-abi)-lib-soname) for soname if defined.
17174         ($(common-objpfx)gnu/lib-names.stmp): Generate from
17175         abi-variants.
17176         * Makefile (installed-stubs): Likewise.
17177         * include/stubs-biarch.h: Removed.
17178         * scripts/lib-names.awk: Only handle one library at a time.
17179         * scripts/soversions.awk: Remove WORDSIZE support.
17180         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
17181         entries.
17182         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
17183         Removed.
17184         (syscall-list-default-condition): Likewise.
17185         (syscall-list-default-condition): Likewise.
17186         (syscall-list-includes): Likewise.
17187         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
17188         syscall-list-* with abi-*.  Handle undefined abi-variants.
17189         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
17190         * sysdeps/unix/sysv/linux/i386/Implies: New file.
17191         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
17192         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
17193         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
17194         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
17195         Removed.
17196         (syscall-list-32-options): Likewise.
17197         (syscall-list-32-condition): Likewise.
17198         (syscall-list-64-options): Likewise.
17199         (syscall-list-64-condition): Likewise.
17200         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
17201         macro.
17202         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
17203         Renamed to ...
17204         (abi-*): This.
17205         (abi-64-ld-soname): New macro.
17206         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
17207         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
17208         Renamed to ...
17209         (abi-*): This.
17210         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
17211         * sysdeps/x86_64/x32/shlib-versions: Likewise.
17212
17213 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
17214
17215         * sysdeps/unix/sysv/linux/kernel-features.h
17216         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
17217         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
17218         include <kernel-features.h>.
17219         [!__NR_ftruncate64]: Remove conditional code.
17220         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
17221         [__NR_ftruncate64]: Make code unconditional.
17222         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
17223         * sysdeps/unix/sysv/linux/truncate64.c: Do not
17224         include <kernel-features.h>.
17225         [!__NR_ftruncate64]: Remove conditional code.
17226         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
17227         [__NR_ftruncate64]: Make code unconditional.
17228         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
17229         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
17230         include <kernel-features.h>.
17231         [!__NR_ftruncate64]: Remove conditional code.
17232         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
17233         [__NR_ftruncate64]: Make code unconditional.
17234         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
17235         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
17236         include <kernel-features.h>.
17237         [!__NR_ftruncate64]: Remove conditional code.
17238         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
17239         [__NR_ftruncate64]: Make code unconditional.
17240         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
17241
17242         * configure.in (libc_cv_fpie): Weaken to a compile test using
17243         LIBC_TRY_CC_OPTION.
17244         * configure: Regenerated.
17245
17246 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
17247
17248         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
17249         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
17250         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
17251         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
17252         Refreshed.
17253         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
17254         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
17255         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
17256         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
17257         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
17258         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
17259         Refreshed.
17260
17261 2012-05-27  David S. Miller  <davem@davemloft.net>
17262
17263         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
17264         (___Q_zero): New.
17265         (__Q_simulate_exceptions): Return void.  Change to simulate
17266         exceptions by writing into the %fsr.
17267         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
17268         (__Qp_handle_exceptions): Likewise.
17269         (numbers): Delete.
17270         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
17271         __Qp_handle_exceptions.
17272         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
17273         __Qp_handle_exceptions.
17274         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
17275         as unused and give dummy FP_RND_NEAREST initializer.
17276         (FP_INHIBIT_RESULTS): Define.
17277         (___Q_simulate_exceptions): Update declaration.
17278         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
17279         formatting.
17280         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
17281         as unused and give dummy FP_RND_NEAREST initializer.
17282         (__Qp_handle_exceptions): Update declaration.
17283         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
17284         formatting.
17285
17286 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
17287
17288         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
17289         the temporary FPU control word.
17290         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
17291         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
17292         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
17293         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
17294         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
17295         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
17296         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
17297         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
17298         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
17299         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
17300         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
17301
17302 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
17303
17304         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
17305         fields.
17306
17307 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
17308
17309         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
17310         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
17311         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
17312         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
17313         Likewise.
17314         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
17315         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
17316         Likewise.
17317
17318 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
17319
17320         * po/h.po: Update from translation team.
17321
17322 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
17323
17324         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
17325
17326         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
17327         handling of denormals.
17328         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
17329         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
17330         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
17331         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
17332         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
17333         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
17334         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
17335         Likewise.
17336
17337 2012-05-26  Marek Polacek  <polacek@redhat.com>
17338
17339         [BZ #14152]
17340         * math/libm-test.inc (fma_test): Don't always expect underflow
17341         exception.
17342
17343 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
17344
17345         [BZ #12416]
17346         * elf/tst-execstack.c: Include stackinfo.h.
17347         (do_test): Adjust test case to ensure that pthread_getattr_np
17348         behaviour remains the same after marking stack executable.
17349
17350 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
17351
17352         * sysdeps/unix/sysv/linux/kernel-features.h
17353         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
17354         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
17355         kernel-features.h.
17356         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
17357         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
17358         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
17359         kernel-features.h.
17360         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
17361         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
17362
17363 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
17364
17365         * configure.in: Define the default includes to being none.
17366         * configure: Regenerated.
17367
17368 2012-05-25  Roland McGrath  <roland@hack.frob.com>
17369
17370         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
17371         * sysdeps/x86_64/setjmp.S: Likewise.
17372         * sysdeps/i386/bsd-setjmp.S: Likewise.
17373         * sysdeps/i386/bsd-_setjmp.S: Likewise.
17374         * sysdeps/i386/setjmp.S: Likewise.
17375         * sysdeps/i386/__longjmp.S: Likewise.
17376         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
17377         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
17378
17379         * include/stap-probe.h: New file.
17380         * configure.in: Handle --enable-systemtap.
17381         * configure: Regenerated.
17382         * config.h.in (USE_STAP_PROBE): New #undef.
17383         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
17384         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
17385         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
17386
17387 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
17388
17389         [BZ #13717]
17390         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
17391         to 2.4.0 where earlier.
17392         * sysdeps/unix/sysv/linux/configure: Regenerated.
17393         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
17394         <kernel-features.h>.
17395         [__ASSUME_32BITUIDS]: Make code unconditional.
17396         [!__ASSUME_32BITUIDS]: Remove conditional code.
17397         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
17398         <kernel-features.h>.
17399         [__ASSUME_32BITUIDS]: Make code unconditional.
17400         [!__ASSUME_32BITUIDS]: Remove conditional code.
17401         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
17402         [__ASSUME_32BITUIDS]: Make code unconditional.
17403         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
17404         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
17405         <kernel-features.h>.
17406         [__ASSUME_32BITUIDS]: Make code unconditional.
17407         [!__ASSUME_32BITUIDS]: Remove conditional code.
17408         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
17409         <kernel-features.h>.
17410         [__ASSUME_32BITUIDS]: Make code unconditional.
17411         [!__ASSUME_32BITUIDS]: Remove conditional code.
17412         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
17413         <kernel-features.h>.
17414         [__ASSUME_32BITUIDS]: Make code unconditional.
17415         [!__ASSUME_32BITUIDS]: Remove conditional code.
17416         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
17417         <kernel-features.h>.
17418         [__ASSUME_32BITUIDS]: Make code unconditional.
17419         [!__ASSUME_32BITUIDS]: Remove conditional code.
17420         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
17421         <kernel-features.h>.
17422         [__ASSUME_32BITUIDS]: Make code unconditional.
17423         [!__ASSUME_32BITUIDS]: Remove conditional code.
17424         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
17425         <kernel-features.h>.
17426         [__ASSUME_32BITUIDS]: Make code unconditional.
17427         [!__ASSUME_32BITUIDS]: Remove conditional code.
17428         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
17429         <kernel-features.h>.
17430         [__ASSUME_32BITUIDS]: Make code unconditional.
17431         [!__ASSUME_32BITUIDS]: Remove conditional code.
17432         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
17433         <kernel-features.h>.
17434         [__ASSUME_32BITUIDS]: Make code unconditional.
17435         [!__ASSUME_32BITUIDS]: Remove conditional code.
17436         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
17437         <kernel-features.h>.
17438         [__ASSUME_32BITUIDS]: Make code unconditional.
17439         [!__ASSUME_32BITUIDS]: Remove conditional code.
17440         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
17441         <kernel-features.h>.
17442         [__ASSUME_32BITUIDS]: Make code unconditional.
17443         [!__ASSUME_32BITUIDS]: Remove conditional code.
17444         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
17445         <kernel-features.h>.
17446         [__NR_setresgid] (__setresgid): Do not declare.
17447         [__ASSUME_32BITUIDS]: Make code unconditional.
17448         [!__ASSUME_32BITUIDS]: Remove conditional code.
17449         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
17450         <kernel-features.h>.
17451         [__NR_setresuid] (__setresuid): Do not declare.
17452         [__ASSUME_32BITUIDS]: Make code unconditional.
17453         [!__ASSUME_32BITUIDS]: Remove conditional code.
17454         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
17455         <kernel-features.h>.
17456         [__ASSUME_32BITUIDS]: Make code unconditional.
17457         [!__ASSUME_32BITUIDS]: Remove conditional code.
17458         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
17459         <kernel-features.h>.
17460         [__ASSUME_32BITUIDS]: Make code unconditional.
17461         [!__ASSUME_32BITUIDS]: Remove conditional code.
17462         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
17463         <kernel-features.h>.
17464         [__ASSUME_32BITUIDS]: Make code unconditional.
17465         [!__ASSUME_32BITUIDS]: Remove conditional code.
17466         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
17467         <kernel-features.h>.
17468         [__ASSUME_32BITUIDS]: Make code unconditional.
17469         [!__ASSUME_32BITUIDS]: Remove conditional code.
17470         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
17471         <kernel-features.h>.
17472         [__ASSUME_32BITUIDS]: Make code unconditional.
17473         [!__ASSUME_32BITUIDS]: Remove conditional code.
17474         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
17475         <kernel-features.h>.
17476         [__ASSUME_32BITUIDS]: Make code unconditional.
17477         [!__ASSUME_32BITUIDS]: Remove conditional code.
17478         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
17479         <kernel-features.h>.
17480         [__ASSUME_32BITUIDS]: Make code unconditional.
17481         [!__ASSUME_32BITUIDS]: Remove conditional code.
17482         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
17483         <kernel-features.h>.
17484         [__ASSUME_32BITUIDS]: Make code unconditional.
17485         [!__ASSUME_32BITUIDS]: Remove conditional code.
17486         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
17487         <kernel-features.h>.
17488         [__ASSUME_32BITUIDS]: Make code unconditional.
17489         [!__ASSUME_32BITUIDS]: Remove conditional code.
17490         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
17491         <kernel-features.h>.
17492         [__ASSUME_32BITUIDS]: Make code unconditional.
17493         [!__ASSUME_32BITUIDS]: Remove conditional code.
17494         * sysdeps/unix/sysv/linux/kernel-features.h
17495         (__ASSUME_SETRESUID_SYSCALL): Remove.
17496         (__ASSUME_SETRESGID_SYSCALL): Likewise.
17497         (__ASSUME_32BITUIDS): Likewise.
17498         (__ASSUME_LDT_WORKS): Likewise.
17499         (__ASSUME_O_DIRECTORY): Likewise.
17500         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
17501         architecture but not kernel version.
17502         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
17503         (__ASSUME_MMAP2_SYSCALL): Likewise.
17504         (__ASSUME_STAT64_SYSCALL): Likewise.
17505         (__ASSUME_IPC64): Likewise.
17506         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
17507         <kernel-features.h>.
17508         [__ASSUME_32BITUIDS]: Make code unconditional.
17509         [!__ASSUME_32BITUIDS]: Remove conditional code.
17510         * sysdeps/unix/sysv/linux/opendir.c: Do not include
17511         <kernel-features.h>.
17512         [__ASSUME_O_DIRECTORY]: Make code unconditional.
17513         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
17514         132096]: Remove conditional code.
17515         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
17516         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
17517         <kernel-features.h>.
17518         [__ASSUME_32BITUIDS]: Make code unconditional.
17519         [!__ASSUME_32BITUIDS]: Remove conditional code.
17520         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
17521         <kernel-features.h>.
17522         [__ASSUME_32BITUIDS]: Make code unconditional.
17523         [!__ASSUME_32BITUIDS]: Remove conditional code.
17524         * sysdeps/unix/sysv/linux/setegid.c: Do not include
17525         <kernel-features.h>.
17526         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
17527         unconditional.
17528         (__setresgid): Do not declare.
17529         [__ASSUME_32BITUIDS]: Make code unconditional.
17530         [!__ASSUME_32BITUIDS]: Remove conditional code.
17531         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
17532         <kernel-features.h>.
17533         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
17534         unconditional.
17535         (__setresuid): Do not declare.
17536         [__ASSUME_32BITUIDS]: Make code unconditional.
17537         [!__ASSUME_32BITUIDS]: Remove conditional code.
17538         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
17539         <kernel-features.h>.
17540         [__ASSUME_32BITUIDS]: Make code unconditional.
17541         [!__ASSUME_32BITUIDS]: Remove conditional code.
17542         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
17543         <kernel-features.h>.
17544         [__ASSUME_32BITUIDS]: Make code unconditional.
17545         [!__ASSUME_32BITUIDS]: Remove conditional code.
17546
17547 2012-05-25  Richard Henderson  <rth@twiddle.net>
17548
17549         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
17550         dl_hwcap to ifunc resolver.
17551         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
17552         elf_ifunc_invoke.
17553         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
17554         dl_hwcap to ifunc resolver.
17555         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
17556
17557 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
17558
17559         [BZ #14153]
17560         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
17561         for |x| <= 2**-26, not 2**-57.
17562         * math/libm-test.inc (acos_test): Do not allow spurious underflow
17563         exception.
17564
17565 2012-05-24  Jeff Law  <law@redhat.com>
17566
17567         * stdio-common/Makefile (tests): Add bug25.
17568         * stdio-common/bug25.c: New test.
17569
17570 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
17571
17572         [BZ #13576]
17573         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
17574         multiple of MALLOC_ALIGNMENT in size.
17575         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
17576
17577 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
17578
17579         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
17580         Require >= 256.
17581         (FILENAME_MAX): Use macro-int-constant.
17582         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
17583         (_IOFBF): Use macro-int-constant.
17584         (_IOLBF): Likewise.
17585         (_IONBF): Likewise.
17586         (SEEK_CUR): Likewise.
17587         (SEEK_END): Likewise.
17588         (SEEK_SET): Likewise.
17589         (TMP_MAX): Likewise.
17590         (EOF): Use macro-int-constant.  Require < 0.
17591         (NULL): Use macro-constant.  Require == 0.
17592         (stdin): Require type to be FILE *.
17593         (stdout): Likewise.
17594         (stderr): Likewise.
17595         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
17596         macro-int-constant.
17597         (EXIT_SUCCESS): Likewise.
17598         (NULL): Use macro-constant.  Require == 0.
17599         (RAND_MAX): Use macro-int-constant.
17600         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
17601         [C99-based standards] (strtof): Require function.
17602         [C99-based standards] (strtold): Likewise.
17603         [C99-based standards] (strtoll): Likewise.
17604         [C99-based standards] (strtoull): Likewise.
17605         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
17606         [ISO || ISO99 || ISO11] (limits.h): Likewise.
17607         [ISO || ISO99 || ISO11] (math.h): Likewise.
17608         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
17609         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
17610         [ISO || ISO99 || ISO11] (*_t): Do not allow.
17611
17612 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
17613
17614         [BZ #14132]
17615         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
17616         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
17617         * intl/dgettext.c (DCGETTEXT): Likewise.
17618         * intl/gettext.c (DCGETTEXT): Likewise.
17619         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
17620         * posix/regex_internal.h (gettext): Likewise.
17621         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
17622         Remove declaration.
17623         * include/argz.h (__argz_count_internal)
17624         (__argz_stringify_internal): Remove declaration.
17625         (__argz_count, __argz_stringify): Declare hidden proto.
17626         * intl/dcgettext.c: Remove use of INTDEF.
17627         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
17628         * string/argz-stringify.c: Likewise.
17629         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
17630         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
17631         Declare hidden proto.
17632         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
17633         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
17634         Declare hidden proto.
17635         * include/stdio.h (__asprintf_internal): Don't declare.
17636         (__asprintf): Don't define as macro.  Declare hidden proto.
17637         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
17638         (__fsetlocking): Declare hidden proto.
17639         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
17640         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
17641         hidden proto.
17642         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
17643         (_IO_setlinebuf): Remove use of INTUSE.
17644         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
17645         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
17646         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
17647         Remove declaration.
17648         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
17649         (_IO_do_flush): Remove use of INTUSE.
17650         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
17651         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
17652         (_IO_adjust_column, _IO_least_wmarker)
17653         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
17654         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
17655         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
17656         (_IO_default_doallocate, _IO_wdefault_doallocate)
17657         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
17658         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
17659         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
17660         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
17661         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
17662         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
17663         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
17664         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
17665         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
17666         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
17667         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
17668         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
17669         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
17670         proto.
17671         (_IO_flush_all_internal, _IO_adjust_column_internal)
17672         (_IO_default_uflow_internal, _IO_default_finish_internal)
17673         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
17674         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
17675         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
17676         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
17677         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
17678         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
17679         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
17680         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
17681         (_IO_file_close_internal, _IO_file_close_it_internal)
17682         (_IO_file_underflow_internal, _IO_file_overflow_internal)
17683         (_IO_file_init_internal, _IO_file_attach_internal)
17684         (_IO_file_fopen_internal, _IO_file_read_internal)
17685         (_IO_file_sync_internal, _IO_file_seek_internal)
17686         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
17687         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
17688         (_IO_str_underflow_internal, _IO_str_overflow_internal)
17689         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
17690         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
17691         (_IO_list_all_internal, _IO_link_in_internal)
17692         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
17693         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
17694         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
17695         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
17696         (_IO_do_write_internal, _IO_padn_internal)
17697         (_IO_getline_info_internal, _IO_getline_internal)
17698         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
17699         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
17700         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
17701         (_IO_vfscanf_internal, _IO_vfprintf_internal)
17702         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
17703         (_IO_init_internal, _IO_un_link_internal): Don't declare.
17704         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
17705         with libc_hidden_ver, remove use of INTUSE.
17706         * libio/genops.c: Likewise.
17707         * libio/freopen.c: Likewise.
17708         * libio/freopen64.c: Likewise.
17709         * libio/iofclose.c: Likewise.
17710         * libio/iofdopen.c: Likewise.
17711         * libio/iofflush.c: Likewise.
17712         * libio/iofflush_u.c: Likewise.
17713         * libio/iofgets.c: Likewise.
17714         * libio/iofgets_u.c: Likewise.
17715         * libio/iofopen.c: Likewise.
17716         * libio/iofopncook.c: Likewise.
17717         * libio/iofread.c: Likewise.
17718         * libio/iofread_u.c: Likewise.
17719         * libio/ioftell.c: Likewise.
17720         * libio/iofwrite.c: Likewise.
17721         * libio/iogetline.c: Likewise.
17722         * libio/iogets.c: Likewise.
17723         * libio/iogetwline.c: Likewise.
17724         * libio/iopadn.c: Likewise.
17725         * libio/iopopen.c: Likewise.
17726         * libio/ioseekoff.c: Likewise.
17727         * libio/ioseekpos.c: Likewise.
17728         * libio/iosetbuffer.c: Likewise.
17729         * libio/iosetvbuf.c: Likewise.
17730         * libio/ioungetc.c: Likewise.
17731         * libio/ioungetwc.c: Likewise.
17732         * libio/iovdprintf.c: Likewise.
17733         * libio/iovsprintf.c: Likewise.
17734         * libio/iovsscanf.c: Likewise.
17735         * libio/memstream.c: Likewise.
17736         * libio/obprintf.c: Likewise.
17737         * libio/oldfileops.c: Likewise.
17738         * libio/oldiofclose.c: Likewise.
17739         * libio/oldiofdopen.c: Likewise.
17740         * libio/oldiofopen.c: Likewise.
17741         * libio/oldiopopen.c: Likewise.
17742         * libio/oldstdfiles.c: Likewise.
17743         * libio/putc.c: Likewise.
17744         * libio/setbuf.c: Likewise.
17745         * libio/setlinebuf.c: Likewise.
17746         * libio/stdfiles.c: Likewise.
17747         * libio/strops.c: Likewise.
17748         * libio/vasprintf.c: Likewise.
17749         * libio/vscanf.c: Likewise.
17750         * libio/vsnprintf.c: Likewise.
17751         * libio/vswprintf.c: Likewise.
17752         * libio/wfiledoalloc.c: Likewise.
17753         * libio/wfileops.c: Likewise.
17754         * libio/wgenops.c: Likewise.
17755         * libio/wmemstream.c: Likewise.
17756         * libio/wstrops.c: Likewise.
17757         * libio/__fpurge.c: Likewise.
17758         * libio/__fsetlocking.c: Likewise.
17759         * assert/assert.c: Likewise.
17760         * debug/fgets_chk.c: Likewise.
17761         * debug/fgets_u_chk.c: Likewise.
17762         * debug/fread_chk.c: Likewise.
17763         * debug/fread_u_chk.c: Likewise.
17764         * debug/gets_chk.c: Likewise.
17765         * debug/obprintf_chk.c: Likewise.
17766         * debug/vasprintf_chk.c: Likewise.
17767         * debug/vdprintf_chk.c: Likewise.
17768         * debug/vsnprintf_chk.c: Likewise.
17769         * debug/vsprintf_chk.c: Likewise.
17770         * malloc/mtrace.c: Likewise.
17771         * misc/error.c: Likewise.
17772         * misc/syslog.c: Likewise.
17773         * stdio-common/asprintf.c: Likewise.
17774         * stdio-common/fxprintf.c: Likewise.
17775         * stdio-common/getw.c: Likewise.
17776         * stdio-common/isoc99_fscanf.c: Likewise.
17777         * stdio-common/isoc99_scanf.c: Likewise.
17778         * stdio-common/isoc99_vfscanf.c: Likewise.
17779         * stdio-common/isoc99_vscanf.c: Likewise.
17780         * stdio-common/isoc99_vsscanf.c: Likewise.
17781         * stdio-common/printf-prs.c: Likewise.
17782         * stdio-common/printf_fp.c: Likewise.
17783         * stdio-common/printf_fphex.c: Likewise.
17784         * stdio-common/printf_size.c: Likewise.
17785         * stdio-common/putw.c: Likewise.
17786         * stdio-common/scanf.c: Likewise.
17787         * stdio-common/sprintf.c: Likewise.
17788         * stdio-common/tmpfile.c: Likewise.
17789         * stdio-common/vfprintf.c: Likewise.
17790         * stdio-common/vfscanf.c: Likewise.
17791         * stdlib/strfmon_l.c: Likewise.
17792         * sunrpc/openchild.c: Likewise.
17793         * sunrpc/xdr_stdio.c: Likewise.
17794         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
17795         * sysdeps/mach/hurd/tmpfile.c: Likewise.
17796
17797 2012-05-24  Roland McGrath  <roland@hack.frob.com>
17798
17799         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
17800
17801         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
17802         in the third column, to generate for the shared library an IFUNC
17803         that uses _dl_vdso_vsym.
17804         * Makerules (COMPILE.c, compile-stdin.c): New variables.
17805         * Makeconfig (object-suffixes-noshared): New variable.
17806
17807         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
17808         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
17809         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
17810         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
17811
17812         [BZ #14132]
17813         * include/sys/time.h (__gettimeofday): Remove macro.
17814         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
17815         * time/gettimeofday.c (__gettimeofday): Remove #undef.
17816         Remove INTDEF.
17817         (__gettimeofday): Add libc_hidden_def.
17818         (gettimeofday): Add libc_hidden_weak.
17819         * sysdeps/mach/gettimeofday.c: Likewise.
17820         * sysdeps/posix/gettimeofday.c: Likewise.
17821         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
17822         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
17823         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
17824         (__gettimeofday_internal): Remove strong_alias.
17825         (__gettimeofday): Add libc_hidden_def.
17826         (gettimeofday): Add libc_hidden_weak.
17827         * sysdeps/unix/syscalls.list (gettimeofday):
17828         Remove __gettimeofday_internal alias.
17829
17830 2012-05-24  Daniel Jacobowitz  <drow@false.org>
17831             H.J. Lu  <hongjiu.lu@intel.com>
17832
17833         [BZ #12495]
17834         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
17835         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
17836         (largebin_index_32_big): New.
17837         (largebin_index): Use it for 16-byte alignment.
17838         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
17839         correction with front_misalign.
17840
17841 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
17842
17843         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
17844         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
17845         Likewise.
17846         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
17847         Likewise.
17848         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
17849         Likewise.
17850         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
17851         Likewise.
17852         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
17853         Likewise.
17854         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
17855         Likewise.
17856         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
17857         Likewise.
17858         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
17859         Likewise.
17860         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
17861         Likewise.
17862         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
17863         Likewise.
17864         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
17865         Likewise.
17866         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
17867         Likewise.
17868
17869         * scripts/data/c++-types-x32-linux-gnu.data: New file.
17870         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
17871
17872 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
17873
17874         [BZ #10846]
17875         [BZ #14036]
17876         * math/libm-test.inc (exp_test): Add test from bug 14036.
17877         (pow_test): Add test from bug 10846.
17878
17879         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
17880         and other flags.
17881         (special_function): Do not include flags in test name.
17882         (parse_args): Likewise.
17883         * sysdeps/i386/fpu/libm-test-ulps: Update.
17884         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
17885         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
17886         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
17887         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17888
17889         * math/gen-libm-test.pl (%beautify): Add entries for underflow
17890         exceptions.
17891         * math/libm-test.inc ("Philosophy"): Update comment about
17892         exception testing.
17893         (UNDERFLOW_EXCEPTION): New macro.
17894         (UNDERFLOW_EXCEPTION_OK): Likewise.
17895         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
17896         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
17897         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
17898         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
17899         (INVALID_EXCEPTION_OK): Update value.
17900         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
17901         (OVERFLOW_EXCEPTION_OK): Likewise.
17902         (IGNORE_ZERO_INF_SIGN): Likewise.
17903         (test_exceptions): Handle underflow exceptions.
17904         (acos_test): Update for underflow exception expectations.
17905         (cexp_test): Likewise.
17906         (clog_test): Likewise.
17907         (clog10_test): Likewise.
17908         (csqrt_test): Likewise.
17909         (ctan_test): Likewise.
17910         (ctanh_test): Likewise.
17911         (exp_test): Likewise.
17912         (exp10_test): Likewise.
17913         (exp2_test): Likewise.
17914         (expm1_test): Likewise.
17915         (fma_test): Likewise.
17916         (j0_test): Likewise.
17917         (jn_test): Likewise.
17918         (nexttoward_test): Likewise.
17919         (pow_test): Likewise.
17920         (scalbn_test): Likewise.
17921         (scalbln_test): Likewise.
17922         (tan_test): Likewise.
17923         (y1_test): Likewise.
17924         * sysdeps/i386/fpu/libm-test-ulps: Update.
17925         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17926
17927 2012-05-23  David S. Miller  <davem@davemloft.net>
17928
17929         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
17930         (__libc_sigaction): Remove unused local variables.
17931
17932 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
17933
17934         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
17935
17936 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17937
17938         mktime: avoid signed integer overflow
17939         * time/mktime.c (__mktime_internal): Do not mishandle the case
17940         where diff == INT_MIN.
17941
17942         mktime: simplify computation of average
17943         * time/mktime.c (ranged_convert): Use new time_t_avg function
17944         instead of rolling our own (probably-slower) code.
17945
17946         mktime: do not assume signed right shift propagates sign bit
17947         * time/mktime.c (isdst_differ): New static function.
17948         (__mktime_internal): No need to normalize tm_isdst now.
17949         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
17950         tm_isdst values.
17951
17952         mktime: merge another wrapv change from gnulib
17953         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
17954         from some compilers.
17955
17956         mktime: remove incorrect attempt at unusual arithmetics
17957         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
17958         The code didn't really work on such machines anyway.
17959         (TYPE_MINIMUM): Assume two's complement.
17960         (twos_complement_arithmetic): Verify that long_int and time_t
17961         are two's complement (or unsigned, in the latter case).
17962
17963         mktime: check signed shifts on long_int and time_t, too
17964         * time/mktime.c (SHR): Check that shifts work as desired
17965         on the types long_int and time_t too, as SHR is used on
17966         such types.
17967
17968         mktime: do not assume 'long' is wide enough
17969         * time/mktime.c (verify): Move decl up.
17970         (long_int): New type.
17971         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
17972         to remove assumption in the code that 'long' is wide enough to
17973         store year values.  This assumption is not true on x32 and on
17974         some non-glibc platforms.
17975
17976         mktime: merge wrapv change from gnulib
17977         * time/mktime.c (WRAPV): New macro.
17978         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
17979         (guess_time_tm, __mktime_internal): Do not assume that signed
17980         integer overflow wraps around; modern compilers generate code
17981         where this assumption is no longer valid.
17982
17983 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
17984
17985         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
17986         Replace "jmp L(pseudo_end)" with "ret".
17987         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
17988         Likewise.
17989
17990 2012-05-23  Andreas Jaeger  <aj@suse.de>
17991
17992         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
17993         * sysdeps/unix/sysv/linux/poll.c: Remove file.
17994
17995 2012-05-23  Andreas Jaeger  <aj@suse.de>
17996             Maximilian Attems  <max@stro.at>
17997
17998         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
17999         New macros.
18000
18001 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
18002
18003         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
18004         code so that pseudo_end is just ret and the stack pointer is
18005         correct also for static library in error case.
18006
18007 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
18008
18009         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
18010         move to syscalls.list.
18011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
18012         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
18013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
18014         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
18015
18016         * manual/install.texi (Running make install): Do not mention Linux
18017         kernel version for which pt_chown is not needed.
18018         (Linux): Do not mention problems with nscd with 2.0 kernels.
18019         * INSTALL: Regenerated.
18020
18021 2012-05-23  Andreas Jaeger  <aj@suse.de>
18022
18023         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
18024         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
18025         macro.
18026         * sysdeps/unix/sysv/linux/s390/bits/mman.h
18027         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18028         * sysdeps/unix/sysv/linux/sh/bits/mman.h
18029         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18030         * sysdeps/unix/sysv/linux/i386/bits/mman.h
18031         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18032         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
18033         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18034         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
18035         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
18036         * sysdeps/unix/sysv/linux/bits/in.h
18037         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
18038
18039 2012-05-22  Roland McGrath  <roland@hack.frob.com>
18040
18041         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
18042         (PREPARE_VERSION): Just use assert instead, it will be elided
18043         under [NDEBUG] anyway.
18044
18045 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18046
18047         * sysdeps/unix/sysv/linux/Makefile: Include
18048         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
18049         (sysdep_routines): Remove sysctl.
18050         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
18051         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
18052         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
18053         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
18054         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
18055
18056 2012-05-22  Andreas Jaeger  <aj@suse.de>
18057
18058         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
18059         that pseudo_end is just ret and the stack pointer is correct also
18060         for static library in error case.
18061
18062 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
18063
18064         [BZ #14122]
18065         * nss/nsswitch.c (defconfig_entries): New variable.
18066         (__nss_database_lookup): Don't leak defconfig entries.
18067         (nss_parse_service_list): Don't leak on error paths.
18068         (free_database_entries): New function.
18069         (free_defconfig): New function.
18070         (free_mem): Move common code to free_database_entries.
18071
18072 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18073
18074         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
18075         Add arch_prctl.
18076         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
18077
18078         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
18079         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
18080         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
18081         New macro.
18082         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
18083         (INTERNAL_SYSCALL_TYPES): Likewise.
18084         (LOAD_ARGS_TYPES_[1-6]): Likewise.
18085         (LOAD_REGS_TYPES_[1-6]): Likewise.
18086         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
18087         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
18088
18089 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18090
18091         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
18092         copysignl for GLIBC_2_0.
18093         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
18094         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
18095         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
18096         logbl for GLIBC_2_0.
18097         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
18098         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
18099
18100 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18101
18102         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
18103         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
18104
18105         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
18106         Use "neg %eax".
18107
18108         * time/mktime.c: Update copyright years.
18109
18110 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
18111
18112         mktime: merge comment-quoting-style change from gnulib
18113         * time/mktime.c: Quote 'like this' in comments.
18114         The GNU coding standards suggest that we no longer quote `like this',
18115         as "`" and "'" are typically rendered asymmetrically nowadays.
18116         The typical gnulib style is to quote 'like this' when quoting
18117         code, and "like this" when quoting English.
18118
18119         * time/mktime.c (compile-command): Add "-I.".
18120
18121         mktime: merge mktime-internal.h change from gnulib
18122         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
18123
18124         mktime: merge time_r change from gnulib
18125         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
18126
18127         mktime: merge DEBUG change from gnulib
18128         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
18129         case system <time.h> has a #define.
18130
18131         mktime: merge <sys/types.h> change from gnulib
18132         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
18133         since <time.t> is now guaranteed to define time_t.
18134
18135         mktime: merge HAVE_CONFIG_H change from gnulib
18136         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
18137
18138 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
18139
18140         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
18141         Use "neg %eax".
18142
18143         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
18144         __rlim_t cast.
18145         (struct rusage): Use anonymous union to pad each field to
18146         __syscall_slong_t.
18147
18148 2012-05-21  David S. Miller  <davem@davemloft.net>
18149
18150         * Makefules (o-iterator): Remove .s cases.
18151         (compile-command.s): Delete.
18152         (COMPILE.s): Delete.
18153         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
18154
18155 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
18156
18157         * configure.in (libc_cv_predef_stack_protector): Only consider
18158         "foobar" and "__stack_chk_fail" lines in libc_undefs.
18159         * configure: Regenerated.
18160
18161 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18162
18163         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
18164         New macro.  Use R*LP on int and pointer.
18165         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
18166         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
18167         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
18168         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
18169
18170         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
18171         [__WORDSIZE_TIME64_COMPAT32] instead of
18172         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
18173         (struct utmp): Likewise.
18174         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
18175         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
18176         Renamed to ...
18177         (__WORDSIZE_TIME64_COMPAT32): This.
18178         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
18179         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
18180         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
18181         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
18182         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
18183         (__WORDSIZE_TIME64_COMPAT32): New macro.
18184
18185 2012-05-21  Andreas Jaeger  <aj@suse.de>
18186
18187         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
18188         only if [SHARED]. Add prototype for __wcschr_ia32.
18189
18190 2012-05-21  Roland McGrath  <roland@hack.frob.com>
18191
18192         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
18193         of %rbp unmolested in the jmp_buf while mangling the low bits.
18194         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
18195         unmolested high bits of %rbp while demangling the low bits.
18196         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
18197
18198 2012-05-21  Andreas Jaeger  <aj@suse.de>
18199
18200         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
18201         * sunrpc/svc_simple.c: Use it for registerrpc.
18202         * sunrpc/xcrypt.c: Use it for passwd2des.
18203
18204         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
18205
18206 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18207
18208         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
18209         Don't define if [__SYSCALL_WORDSIZE != 32].
18210         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
18211         New macro.
18212
18213 2012-05-21  Bruno Haible  <bruno@clisp.org>
18214             Andreas Jaeger  <aj@suse.de>
18215
18216         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
18217         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
18218         inptr and inend for must_buffer_ch.
18219         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
18220         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
18221         * stdio-common/Makefile (tests): Remove bug15.
18222         (bug15-ENV): Remove macro.
18223         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
18224         anymore.
18225
18226 2012-05-19  Andreas Jaeger  <aj@suse.de>
18227             Roland McGrath  <roland@hack.frob.com>
18228
18229         * manual/contrib.texi: Completely rewritten. It contains now an
18230         alphabetical list of contributors and their contributions.
18231
18232 2012-05-21  Richard Henderson  <rth@twiddle.net>
18233
18234         * misc/getauxval.c (__getauxval): Use unsigned long int.
18235         * misc/sys/auxv.h: Include <sys/cdefs.h>.
18236         (getauxval): Use unsigned long int.
18237
18238 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
18239
18240         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
18241
18242 2012-05-21  Roland McGrath  <roland@hack.frob.com>
18243
18244         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
18245         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
18246         __alignof__ (long double).
18247
18248 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18249
18250         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18251
18252 2012-05-20  Richard Henderson  <rth@twiddle.net>
18253
18254         * misc/getauxval.c: New file.
18255         * misc/sys/auxv.h: New file.
18256         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
18257         (routines): Add getauxval.
18258         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
18259         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
18260         * elf/dl-sysdep.c (_dl_auxv): Remove.
18261         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
18262         * elf/dl-support.c (_dl_auxv): New variable.
18263         (_dl_aux_init): Initialize it.
18264         * manual/startup.texi (Auxiliary Vector): New node.
18265         * sysdeps/generic/bits/hwcap.h: New file.
18266         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
18267         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
18268         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
18269         * sysdeps/sparc/sysdep.h: ... here.  Include it.
18270         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
18271         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
18272         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
18273         Update.
18274         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
18275         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
18276         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
18277         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
18278         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
18279         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
18280         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
18281         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
18282
18283 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18284
18285         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18286
18287 2012-05-19  David S. Miller  <davem@davemloft.net>
18288
18289         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18290
18291 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
18292
18293         [BZ #14123]
18294         * math/s_ccosh.c: Include <float.h>
18295         (__ccosh): Avoid internal overflow calculating sinh and cosh
18296         values before multiplying by sin and cos values.
18297         * math/s_ccoshf.c: Likewise.
18298         * math/s_ccoshl.c: Likewise.
18299         * math/s_csin.c: Likewise.
18300         * math/s_csinf.c: Likewise.
18301         * math/s_csinl.c: Likewise.
18302         * math/s_csinh.c: Likewise.
18303         * math/s_csinhf.c: Likewise.
18304         * math/s_csinhl.c: Likewise.
18305         * math/libm-test.inc (ccos_test): Add more tests.
18306         (ccosh_test): Likewise.
18307         (csin_test): Likewise.
18308         (csinh_test): Likewise.
18309         * sysdeps/i386/fpu/libm-test-ulps: Update.
18310         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18311
18312 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
18313
18314         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
18315         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
18316
18317         * sysdeps/x86_64/x32/_itoa.h: Add comment.
18318
18319 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
18320
18321         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
18322         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
18323         * sysdeps/powerpc/soft-fp/Versions: Likewise.
18324         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
18325         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
18326         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
18327         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
18328         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
18329         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
18330         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
18331         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
18332         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
18333         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
18334         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
18335         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
18336         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
18337         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
18338         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
18339         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
18340         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
18341         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
18342         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
18343         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
18344         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
18345         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
18346         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
18347         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
18348         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
18349         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
18350         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
18351         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
18352
18353 2012-05-18  Andreas Jaeger  <aj@suse.de>
18354
18355         * csu/.gitignore: Delete.
18356
18357 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
18358
18359         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
18360         (timex): Use __syscall_slong_t.
18361
18362 2012-05-18  Andreas Jaeger  <aj@suse.de>
18363             Carlos O'Donell  <carlos_odonell@mentor.com>
18364
18365         * manual/install.texi (Configuring and compiling): Update
18366         description about files modified in the source directory.
18367         * INSTALL: Regenerated.
18368
18369 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
18370
18371         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
18372         value.  Use "or" to set return value to -1.
18373         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
18374         negate return value.
18375
18376 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
18377
18378         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
18379         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
18380         failure if the compiler has Graphite support disabled.
18381         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
18382         Likewise.
18383         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
18384         CFLAGS-memmove.c): Likewise.
18385         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
18386         Likewise.
18387
18388 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
18389
18390         * sysdeps/x86_64/x32/_itoa.h: New file.
18391
18392         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
18393         getdents system call only if kernel and user dirents have the
18394         same d_ino and d_off.
18395
18396         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
18397         LLONG_MAX != LONG_MAX.
18398         (_itoa_word): Use _ITOA_WORD_TYPE on value.
18399         (_fitoa_word): Likewise.
18400
18401         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
18402         years.
18403         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
18404         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
18405         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
18406
18407         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
18408         include <bits/wordsize.h>.  Check __x86_64__ instead of
18409         __WORDSIZE.
18410         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
18411         if __x86_64__ is defined.  Use anonymous union on fpstate.
18412
18413         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
18414         anonymous union.
18415
18416 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
18417
18418         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
18419         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
18420         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
18421         Refer to _rtld_local_ro instead of _rtld_global_ro.
18422         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
18423         Likewise.
18424         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
18425         Likewise.
18426         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
18427         Likewise.
18428         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
18429         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
18430         of _rtld_global, and rtld_progname instead of _dl_argv[0].
18431
18432         * sysdeps/powerpc/powerpc32/dl-machine.c
18433         (__elf_machine_runtime_setup) [PROF]: Don't reference
18434         _dl_prof_resolve.
18435
18436 2012-05-18  Andreas Jaeger  <aj@suse.de>
18437
18438         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
18439         function only available for GCCs before 3.4 since GCC 3.4
18440         introduced a builtin.
18441         (lrint): Likewise.
18442         (llrintf): Likewise.
18443         (llrint): Likewise.
18444         (fmaxf): Likewise.
18445         (fmax): Likewise.
18446         (fminf): Likewise.
18447         (fmin): Likewise.
18448         (rint): Likewise.
18449         (rintf): Likewise.
18450         (nearbyint): Likewise.
18451         (nearbyintf): Likewise.
18452         (ceil): Likewise.
18453         (ceilf): Likewise.
18454         (floor): Likewise.
18455         (floorf): Likewise.
18456
18457 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18458
18459         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
18460         on both fields and cast pointer to __syscall_ulong_t.
18461
18462         * bits/types.h (__fsword_t): New type.
18463         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
18464         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
18465         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18466         (__FSWORD_T_TYPE): Likewise.
18467         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18468         (__FSWORD_T_TYPE): Likewise.
18469         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18470         (__FSWORD_T_TYPE): Likewise.
18471         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
18472         (__FSWORD_T_TYPE): Likewise.
18473         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
18474         __SWORD_TYPE with __fsword_t.
18475         (statfs64): Likewise.
18476
18477 2012-05-17  David S. Miller  <davem@davemloft.net>
18478
18479         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
18480
18481 2012-05-17  Andreas Jaeger  <aj@suse.de>
18482
18483         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
18484         warning.
18485
18486 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18487
18488         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
18489
18490 2012-05-17  Andreas Jaeger  <aj@suse.de>
18491
18492         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
18493         when it is used.
18494
18495 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
18496
18497         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
18498
18499 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
18500
18501         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
18502         * sysdeps/x86_64/tst-mallocalign1.c: New file.
18503
18504 2012-05-17  Andreas Jaeger  <aj@suse.de>
18505             Carlos O'Donell  <carlos_odonell@mentor.com>
18506
18507         [BZ #14059]
18508         * sysdeps/x86_64/multiarch/init-arch.h
18509         (bit_YMM_Usable): Rename to...
18510         (bit_AVX_Usable): ... this.
18511         (bit_FMA4_Usable): New macro.
18512         (bit_XMM_state): New macro.
18513         (bit_YMM_state): New macro.
18514         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
18515         [__ASSEMBLER__] (index_AVX_Usable): ... this.
18516         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
18517         (CPUID_OSXSAVE): New macro.
18518         (CPUID_AVX): New macro.
18519         (CPUID_FMA4): New macro.
18520         (index_YMM_Usable): Rename to...
18521         (index_AVX_Usable): ... this.
18522         (HAS_AVX): Use HAS_ARCH_FEATURE.
18523         (HAS_FMA4): Likewise.
18524         (HAS_YMM_USABLE): Remove.
18525         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
18526         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
18527         are present.
18528         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
18529         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
18530         * sysdeps/x86_64/multiarch/Makefile: Likewise.
18531         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
18532         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
18533
18534 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
18535
18536         * math/libm-test.c: Support platforms without multiple rounding modes.
18537         * math/bug-nextafter.c: Support platforms without FP exceptions.
18538         * math/bug-nexttoward.c: Likewise.
18539         * math/test-fenv.c: Likewise.
18540         * math/test-misc.c: Likewise.
18541         * stdlib/bug-getcontext.c: Likewise.
18542
18543 2012-05-17  Andreas Jaeger  <aj@suse.de>
18544
18545         * manual/examples/search.c (critter_cmp): Change signature to
18546         avoid warnings.
18547         * manual/string.texi (Collation Functions): Likewise.
18548
18549 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18550
18551         * bits/types.h: Fold copyright years.
18552         * bits/typesizes.h: Likewise.
18553         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
18554         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
18555         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
18556         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
18557         * time/time.h: Likewise.
18558
18559 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
18560
18561         [BZ #208]
18562         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
18563         in instead of returning them.  Return void.
18564         (__libc_mallinfo): Accumulate over all arenas.
18565         (__malloc_stats): Adjust for change in int_mallinfo interface.
18566
18567 2012-05-16  Roland McGrath  <roland@hack.frob.com>
18568
18569         [BZ #10375]
18570         * configure.in (NM): Add AC_CHECK_TOOL for it.
18571         (libc_extra_cflags): New substituted variable.
18572         Check for -fstack-protector being used implicitly.
18573         * configure: Regenerated.
18574         * config.make.in (config-extra-cflags): New variable,
18575         gets @libc_extra_cflags@.
18576         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
18577
18578         [BZ #10375]
18579         * configure.in: Check for _FORTIFY_SOURCE being predefined.
18580         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
18581         * configure: Regenerated.
18582         * config.make.in (CPPUNDEFS): New substituted variable.
18583         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
18584         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
18585         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
18586
18587 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18588
18589         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
18590         (mq_attr): Use __syscall_slong_t.
18591
18592 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18593
18594         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
18595         Check __x86_64__ instead of __WORDSIZE.
18596         (_STAT_VER_LINUX): Likewise.
18597         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
18598         __syscall_ulong_t and __syscall_slong_t.
18599         (stat64): Likewise.
18600
18601 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18602
18603         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
18604
18605 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18606
18607         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
18608
18609 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18610
18611         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
18612         __syscall_ulong_t.
18613
18614         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
18615         include <bits/wordsize.h>.  Check __x86_64__ instead of
18616         __WORDSIZE.
18617         (greg_t): Use "__extension__ long long int" if __x86_64__ is
18618         defined.
18619         (mcontext_t): Replace "unsigned long" with "unsigned long long".
18620
18621         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
18622         include <bits/wordsize.h>.  Check __x86_64__ instead of
18623         __WORDSIZE.
18624         (user_regs_struct): Use "__extension__ unsigned long long"
18625         instead of "unsigned long" if __x86_64__ is defined.
18626         (user): Likewise.  Pad after pointer field if __ILP32__ is
18627         defined.
18628
18629 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
18630
18631         * configure.in (makeinfo): Require version 4.5 or later.  Allow
18632         versions 5 to 9.
18633         * configure: Regenerated.
18634         * manual/install.texi (texinfo): Increase version requirement to
18635         4.5 or later.
18636         * INSTALL: Regenerated.
18637
18638         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
18639
18640 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
18641
18642         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
18643
18644         * sysdeps/x86_64/x32/ffs.c: New file.
18645
18646         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
18647         __syscall_ulong_t.
18648         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
18649         defined.  Use __syscall_ulong_t.
18650         (shminfo): Use __syscall_ulong_t.
18651         (shm_info): Likewise.
18652
18653         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
18654         __syscall_ulong_t.
18655
18656         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
18657         <bits/wordsize.h>.
18658         (msgqnum_t): Use __syscall_ulong_t.
18659         (msglen_t): Likewise.
18660         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
18661         __syscall_ulong_t.
18662
18663         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
18664         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
18665
18666         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
18667
18668         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
18669         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
18670
18671         * sysvipc/sys/msg.h (msgbuf): Replace long int with
18672         __syscall_slong_t.
18673
18674         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
18675         include <bits/wordsize.h>.  Check __x86_64__ instead of
18676         __WORDSIZE.
18677
18678         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
18679         "unsigned long long int" if __x86_64__ is defined.
18680         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
18681
18682         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
18683         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
18684         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
18685
18686         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
18687         <stdint.h>.
18688         (GET_PC): Cast to uintptr_t first.
18689         (GET_FRAME): Likewise.
18690         (GET_STACK): Likewise.
18691
18692         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
18693         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
18694         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
18695         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
18696         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
18697         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
18698         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
18699         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
18700         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
18701         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
18702         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
18703         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
18704         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
18705         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
18706         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
18707         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
18708         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
18709         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
18710         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
18711         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
18712         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
18713         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
18714         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
18715         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
18716         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
18717         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
18718         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
18719         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
18720         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
18721
18722 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
18723
18724         * Makerules (+depfiles): Also collect depfiles from .oS in
18725         $(extra-objs).
18726         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
18727         .oS, $(libnldbl-routines)).
18728
18729         * Makerules (native-compile-mkdep-flags): Define.
18730         * sunrpc/Makefile (extra-objs): Add $(addprefix
18731         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
18732         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
18733         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
18734         calling $(make-target-directory).
18735
18736 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18737
18738         * bits/types.h (__snseconds_t): Removed.
18739         * time/time.h (struct timespec): Replace __snseconds_t with
18740         __syscall_slong_t.
18741         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
18742         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
18743         Likewise.
18744         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18745         (__SNSECONDS_T_TYPE): Likewise.
18746         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18747         (__SNSECONDS_T_TYPE): Likewise.
18748         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18749         (__SNSECONDS_T_TYPE): Likewise.
18750
18751 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18752
18753         * sysdeps/mach/hurd/bits/typesizes.h
18754         (__SYSCALL_SLONG_TYPE): New macro.
18755         (__SYSCALL_ULONG_TYPE): Likewise.
18756
18757 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18758
18759         * bits/types.h (__syscall_slong_t): New type.
18760         (__syscall_ulong_t): Likewise.
18761
18762         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
18763         (__SYSCALL_ULONG_TYPE): Likewise.
18764         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
18765         (__SYSCALL_SLONG_TYPE): Likewise.
18766         (__SYSCALL_ULONG_TYPE): Likewise.
18767         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
18768         (__SYSCALL_SLONG_TYPE): Likewise.
18769         (__SYSCALL_ULONG_TYPE): Likewise.
18770         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
18771         (__SYSCALL_SLONG_TYPE): Likewise.
18772         (__SYSCALL_ULONG_TYPE): Likewise.
18773
18774 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18775
18776         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
18777         Add sigaltstack-offsets.sym.
18778         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
18779         <sigaltstack-offsets.h>.
18780         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
18781         longjmp_msg pointer.
18782         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
18783         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
18784         signal stack.
18785         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
18786
18787 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
18788
18789         * elf/stackguard-macros.h: Remove file.
18790         * sysdeps/generic/stackguard-macros.h: New file.
18791         * sysdeps/i386/stackguard-macros.h: Likewise.
18792         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
18793         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
18794         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
18795         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
18796         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
18797         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
18798         * sysdeps/x86_64/stackguard-macros.h: Likewise.
18799         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
18800         <elf/stackguard-macros.h>.
18801
18802         [BZ #14109]
18803         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
18804         __aligned__ in attribute.
18805         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
18806         (gregset_t): Likewise.
18807
18808 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18809
18810         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
18811         * sysdeps/x86_64/64/Implies-after: Here.  New file.
18812         * sysdeps/x86_64/x32/Implies-after: New file.
18813
18814 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18815
18816         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
18817         and access return value for _dl_profile_fixup.  Use R10_LP to
18818         load frame size.
18819
18820 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18821
18822         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
18823
18824 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18825
18826         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
18827         * sysdeps/x86_64/x32/sysdep.h: New file.
18828
18829 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18830
18831         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
18832         * sysdeps/x86_64/setjmp.S: Likewise.
18833
18834 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18835
18836         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
18837         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
18838         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
18839         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
18840         remove unused global constant.
18841
18842 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
18843
18844         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
18845         include of <not-cancel.h>.
18846
18847 2012-05-15  Roland McGrath  <roland@hack.frob.com>
18848
18849         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
18850
18851 2012-05-15  Jeff Law  <law@redhat.com>
18852             Andreas Jaeger  <aj@suse.de>
18853
18854         [BZ #13594]
18855         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
18856         out from...
18857         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
18858         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
18859         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
18860         code changing __hst_map_handle.map.
18861
18862 2012-05-15  Roland McGrath  <roland@hack.frob.com>
18863
18864         * configure.in (sysnames): Look for Implies-before and Implies-after
18865         files.
18866         * configure: Regenerated.
18867
18868 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18869
18870         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
18871         8-byte data alignment with LP_SIZE alignment.
18872
18873 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18874
18875         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
18876         into R10_LP.
18877
18878 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18879
18880         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
18881
18882 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18883
18884         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
18885         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
18886         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
18887         Likewise.
18888         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
18889
18890 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18891
18892         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
18893         (stackinfo_sub_sp): Likewise.
18894
18895 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18896
18897         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
18898         RAX_LP.
18899
18900 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18901
18902         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
18903         into R*_LP.
18904
18905 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18906
18907         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
18908         sizes into R*_LP.
18909
18910 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18911
18912         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
18913
18914 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18915
18916         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
18917         into R11_LP and load __x86_64_shared_cache_size_half into
18918         R8_LP.
18919
18920 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18921
18922         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
18923         R8_LP.
18924
18925 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18926
18927         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
18928         logb for POWER7.
18929         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
18930         logbf for POWER7.
18931         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
18932         logbl for POWER7.
18933         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
18934         powerpc32/power7/fpu/s_logb.c via #include.
18935         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
18936         powerpc32/power7/fpu/s_logbf.c via #include.
18937         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
18938         powerpc32/power7/fpu/s_logbl.c via #include.
18939
18940 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
18941
18942         * README.libm: Remove file.
18943
18944 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18945
18946         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
18947         count for x32.  Use R*_LP and omit operand-size suffix.
18948
18949 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18950
18951         * shlib-versions: Move x86_64-.*-linux.* entries to ...
18952         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
18953         * sysdeps/x86_64/x32/shlib-versions: New file.
18954
18955 2012-05-14  Roland McGrath  <roland@hack.frob.com>
18956
18957         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
18958         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
18959         Use _dl_fatal_printf instead.
18960
18961 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
18962
18963         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
18964         set if not set by the user.  Do not allow for being unset.
18965         * sysdeps/unix/sysv/linux/configure: Regenerated.
18966
18967 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18968
18969         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
18970         the `q' suffix from lea and replace .quad with ASM_ADDR.
18971
18972 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18973
18974         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
18975         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
18976         instead of $17.
18977         (PTR_DEMANGLE): Likewise.
18978
18979 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18980
18981         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
18982         (LP_OP): Likewise.
18983         (ASM_ADDR): Likewise.
18984         (RAX_LP): Likewise.
18985         (RBP_LP): Likewise.
18986         (RBX_LP): Likewise.
18987         (RCX_LP): Likewise.
18988         (RDI_LP): Likewise.
18989         (RSI_LP): Likewise.
18990         (RSP_LP): Likewise.
18991         (R8_LP): Likewise.
18992         (R9_LP): Likewise.
18993         (R10_LP): Likewise.
18994         (R10_LP): Likewise.
18995         (R11_LP): Likewise.
18996         (R12_LP): Likewise.
18997         (R13_LP): Likewise.
18998         (R14_LP): Likewise.
18999         (R15_LP): Likewise.
19000
19001 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19002
19003         * sysdeps/x86_64/x32/dl-machine.h: New file.
19004
19005 2012-05-14  Andreas Jaeger  <aj@suse.de>
19006
19007         * manual/Makefile (subdir): Remove export of subdir.
19008         (all): Remove target.
19009         (.PHONY): Remove all from list.
19010         (mkinstalldirs): Remove.
19011         (.PHONY): Remove installdirs from list.
19012         ($(inst_infodir)/libc.info): Use make-target-directory.
19013         (installdirs): Remove.
19014         (subdir_%): Remove.
19015         (glibc-targets): Remove.
19016         (lib): Remove.
19017         (stubs): Remove.
19018         ($(objpfx)stubs ../po/manual.pot): Remove.
19019         ($(objpfx)stamp%): Remove.
19020         (make-target-directory): Remove.
19021         (subdir_install): Remove.
19022         (routines): Remove.
19023         (aux): Remove.
19024         (sources): Remove.
19025         (objects): Remove.
19026         (headers): Remove.
19027
19028         [BZ #13750]
19029         * manual/.gitignore: Remove, it's not needed anymore.
19030         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
19031         all files in it.
19032         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
19033         directory.
19034         (texis): Renamed to $(objpfx)texis.
19035         (texis-path): New, contains path to generated files.
19036         (chapters.%): Use texis-path for complete path, add extra argument
19037         libc-texinfo.sh.
19038         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
19039         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
19040         (summary,texi, stamp-summary): Use complete path of
19041         files. Generate files in build dir.
19042         (dir-add.texi): Build in build dir.
19043         (libm-err.texi,stamp-libm-err): Likewise.
19044         (version.texi, stamp-version): Likewise.
19045         (.%c.texi): Likewise.
19046         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
19047         (mostlyclean): Remove target.
19048         (realclean): Remove target.
19049         (generated): Add new variable with contents from mostlyclean and
19050         realclean, remove entries duplicated in common-mostlyclean, add
19051         stamp-libm-err and stamp-version.
19052         (generated-dirs): Add libc directory.
19053         ($(inst_infodir)/libc.info): Install files from build dir.
19054
19055         * manual/install.texi (Configuring and compiling): Adjust since
19056         the info files are not part of the tar ball anymore.
19057
19058 2012-05-14  Andreas Jaeger  <aj@suse.de>
19059
19060         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
19061         variable.
19062
19063 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
19064
19065         [BZ #13717]
19066         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
19067         to 2.2.0 where earlier.
19068         * sysdeps/unix/sysv/linux/configure: Regenerated.
19069         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
19070         Remove conditional code.
19071         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
19072         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
19073         Remove conditional code.
19074         [!__NR_lchown]: Likewise.
19075         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
19076         [__NR_lchown]: Likewise.
19077         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
19078         comment referencing __ASSUME_LCHOWN_SYSCALL.
19079         * sysdeps/unix/sysv/linux/i386/sigaction.c
19080         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
19081         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
19082         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
19083         Remove conditional code.
19084         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
19085         (__protocol_available): Remove #if 0 code.
19086         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
19087         conditional code.
19088         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
19089         * sysdeps/unix/sysv/linux/kernel-features.h
19090         (__ASSUME_GETCWD_SYSCALL): Don't define.
19091         (__ASSUME_REALTIME_SIGNALS): Likewise.
19092         (__ASSUME_PREAD_SYSCALL): Likewise.
19093         (__ASSUME_PWRITE_SYSCALL): Likewise.
19094         (__ASSUME_POLL_SYSCALL): Likewise.
19095         (__ASSUME_LCHOWN_SYSCALL): Likewise.
19096         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
19097         non-SPARC.
19098         (__ASSUME_SIOCGIFNAME): Don't define.
19099         (__ASSUME_MSG_NOSIGNAL): Likewise.
19100         (__ASSUME_SENDFILE): Define unconditionally.
19101         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
19102         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
19103         conditional code.
19104         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
19105         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
19106         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
19107         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
19108         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
19109         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
19110         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
19111         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
19112         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
19113         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
19115         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
19116         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19117         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
19118         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
19119         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19120         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
19121         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
19122         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
19124         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
19125         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19126         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
19127         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
19128         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
19130         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
19131         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
19133         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
19134         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19135         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
19136         Remove conditional code.
19137         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19138         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
19139         Remove conditional code.
19140         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19141         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
19142         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
19143         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
19144         Remove conditional code.
19145         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19146         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
19147         Remove conditional code.
19148         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19149         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
19150         Remove conditional code.
19151         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19152         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
19153         Remove conditional code.
19154         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
19155         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
19156         Remove conditional code.
19157         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19158         * sysdeps/unix/sysv/linux/sh/pwrite64.c
19159         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
19160         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
19161         * sysdeps/unix/sysv/linux/sigaction.c
19162         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
19163         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
19164         * sysdeps/unix/sysv/linux/sigpending.c
19165         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
19166         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
19167         * sysdeps/unix/sysv/linux/sigprocmask.c
19168         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
19169         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
19170         * sysdeps/unix/sysv/linux/sigsuspend.c
19171         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
19172         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
19173         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
19174         (__libc_missing_rt_sigs): Remove.
19175         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
19176         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
19177         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
19178         Remove conditional code.
19179         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
19180         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
19181         return 1.
19182         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
19183         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
19184         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
19185         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
19186
19187 2012-05-14  Andreas Jaeger  <aj@suse.de>
19188
19189         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
19190         it's not used in glibc.
19191         (__coshm1): Likewise.
19192         (__acosh1p): Likewise.
19193         (__sgn): Likewise.
19194
19195         * manual/string.texi (Copying and Concatenation): Add missing
19196         variable in concat example.
19197         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
19198
19199 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19200
19201         [BZ #14103]
19202         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
19203         __builtin_clzl with __builtin_clzll.
19204
19205 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
19206
19207         [BZ #14104]
19208         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
19209         libc_freeres_ptr.
19210
19211 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
19212
19213         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
19214         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
19215         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
19216         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
19217
19218 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
19219
19220         * NEWS: Update ia64 info.
19221
19222 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
19223
19224         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
19225         used as bcopy.
19226
19227 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
19228
19229         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
19230         * sysdeps/unix/syscalls.list (dup3): Likewise.
19231         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
19232         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
19233
19234 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
19235
19236         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
19237         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
19238
19239 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
19240
19241         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
19242         thread pointer.
19243         (TLS_IE): Use mov/add instead of movq/addq to load thread
19244         pointer.
19245         (TLS_GD_PREFIX): New.
19246         (TLS_GD): Use it.
19247
19248 2012-05-11  David S. Miller  <davem@davemloft.net>
19249
19250         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
19251         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
19252         (_FPU_SETCW): Likewise.
19253
19254 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
19255
19256         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
19257         is 32-byte aligned.
19258
19259 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
19260
19261         [BZ #11837]
19262         * iconvdata/gb18030.c: Update tables.
19263         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
19264         characters specially.
19265         (BODY for TO_LOOP): Add encoding of missing ranges.
19266
19267 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
19268
19269         [BZ #13673]
19270         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
19271         * sysdeps/mach/hurd/dup3.c: Likewise.
19272         * sysdeps/mach/hurd/readlinkat.c: Likewise.
19273         * sysdeps/powerpc/memmove.c:: Likewise.
19274
19275 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
19276
19277         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
19278         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
19279
19280 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
19281
19282         * elf/elf.h (R_X86_64_RELATIVE64): New.
19283         (R_X86_64_NUM): Updated.
19284         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
19285         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
19286         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
19287         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
19288         tst-quad1pie tst-quad2pie
19289         (modules-names): Add tst-quadmod1 tst-quadmod2.
19290         ($(objpfx)tst-quad1): New dependency.
19291         ($(objpfx)tst-quad2): Likewise.
19292         ($(objpfx)tst-quad1pie): Likewise.
19293         ($(objpfx)tst-quad2pie): Likewise.
19294         * sysdeps/x86_64/tst-quad1.c: New file.
19295         * sysdeps/x86_64/tst-quad1pie.c: New file.
19296         * sysdeps/x86_64/tst-quad2.c: Likewise.
19297         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
19298         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
19299         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
19300         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
19301         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
19302
19303 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19304
19305         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
19306         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
19307         * streams/stropts.h (t_scalar_t): Define type.
19308
19309         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
19310         (_PATH_PRESERVE): Set to "/var/lib".
19311         (_PATH_RWHODIR): Set to "/var/spool/rwho".
19312
19313         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
19314         instead of int.
19315
19316         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
19317         if __dir_mkfile succeeded.
19318
19319         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
19320         checking for _hurd_dtablesize.  Unlock it right after having
19321         finished _hurd_dtable allocation.
19322
19323 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19324
19325         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
19326         * sysdeps/mach/hurd/configure: Regenerated.
19327         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
19328         special-casing to...
19329         * sysdeps/gnu/configure.in: ... this new file.
19330         * sysdeps/unix/sysv/linux/configure: Regenerated.
19331         * sysdeps/gnu/configure: New generated file.
19332
19333         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
19334         for Linux: use nsec instead of usec, as well as:
19335         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
19336         members of type struct timespec.
19337         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
19338         New macros.
19339         (struct stat64): Likewise.
19340         (_STATBUF_ST_NSEC): New macro.
19341         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
19342
19343         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
19344         __strtoul_internal rather than strtoul.
19345
19346 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
19347
19348         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
19349         and reject them.
19350
19351 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19352
19353         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
19354         which preserves existing values.
19355         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
19356
19357 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
19358
19359         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
19360         TIMEOUT values.  Return EINVAL for NFDS values either negative or
19361         greater than FD_SETSIZE.
19362
19363 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19364
19365         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
19366         allocated, call __vm_protect to finish enabling the existing space, and
19367         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
19368         allocate the remainder.
19369
19370 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
19371
19372         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
19373         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
19374
19375 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19376
19377         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
19378         sysdeps/mach/hurd/readlink.c.
19379
19380         * posix/tst-sysconf.c (posix_options): Only use
19381         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
19382         _POSIX_SYNCHRONIZED_IO when they are defined
19383         * sysdeps/mach/hurd/bits/posix_opt.h:
19384         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
19385         (_XOPEN_REALTIME): Undefine macro.
19386         (_XOPEN_REALTIME_THREADS): Undefine macro.
19387         (_XOPEN_SHM): Undefine macro.
19388         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
19389         macro to -1.
19390         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
19391         macro to -1.
19392         (_POSIX_ASYNC_IO): Undefine macro.
19393         (_POSIX_PRIORITIZED_IO): Undefine macro.
19394         (_POSIX_SPIN_LOCKS): Define macro to -1.
19395
19396         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
19397         SA_NODEFER, SA_RESETHAND.
19398         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
19399         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
19400         F_DUPFD_CLOEXEC.
19401
19402 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19403
19404         * elf/Makefile (pldd-modules): Define unconditionally.
19405
19406 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19407
19408         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
19409
19410 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19411
19412         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
19413         Return ENOENT when name is empty.
19414         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
19415
19416 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19417
19418         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
19419
19420         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
19421
19422 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19423
19424         Fix mlock in all cases except non-readable pages.
19425         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
19426         instead of VM_PROT_ALL as parameter to __vm_wire function.
19427
19428         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
19429         (__mkdir): When path is `/', just fail with EEXIST.
19430         * sysdeps/mach/hurd/mkdirat.c: Likewise.
19431
19432 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19433
19434         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
19435         <sys/uio.h> (for writev).
19436         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
19437         and <sys/param.h> (for MIN).
19438
19439 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
19440
19441         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
19442         REQUESTED_TIME.  Properly set the remaining time and return EINTR
19443         if interrupted.
19444
19445 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19446
19447         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
19448         Depend on against $(link-rpcuserlibs).
19449
19450 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19451
19452         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
19453         (__libc_stack_end): Do not use attribute_relro.
19454         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
19455         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
19456         to libthread-provided value.
19457         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
19458         attribute_relro.
19459
19460 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19461
19462         [BZ #3748]
19463         * bits/libc-lock.h (__libc_once_get): New macro.
19464         * sysdeps/mach/bits/libc-lock.h: Likewise.
19465         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
19466         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
19467         instead of using implementation details.
19468
19469         * libio/fileops.c: Unconditionally include <kernel-features.h>.
19470         * libio/freopen.c: Likewise.
19471         * libio/freopen64.c: Likewise.
19472         * misc/syslog.c: Likewise.
19473         * nscd/connections.c: Likewise.
19474         * nscd/netgroupcache.c: Likewise.
19475         * sysdeps/posix/getcwd.c: Likewise.
19476
19477 2012-05-10  Roland McGrath  <roland@hack.frob.com>
19478
19479         * math/w_ilogbf.c: Add #include <limits.h>.
19480
19481 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19482
19483         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
19484         path instead of returning without unlocking.
19485
19486         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
19487         immediate-write ioctls.
19488         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
19489
19490 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19491
19492         * sysdeps/mach/hurd/i386/init-first.c (init): Use
19493         __builtin_frame_address instead of making assumptions about the
19494         location of the return address relative to DATA.  Force early load of
19495         the return address.
19496         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
19497         __builtin_frame_address.
19498
19499         dup3 for GNU Hurd.
19500         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
19501         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
19502         implement dup3 and do some further code clean-ups.
19503         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
19504         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
19505
19506 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19507
19508         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
19509
19510         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
19511         HURD_CRITICAL_END around holding _hurd_dtable_lock.
19512         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
19513         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
19514         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
19515         d->port.lock.
19516
19517         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
19518         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
19519         when handler == SIG_ERR, not when handler != SIG_ERR.
19520
19521 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19522
19523         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
19524         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
19525         definitions.
19526
19527         accept4 for GNU Hurd.
19528         * include/sys/socket.h (__libc_accept4): New prototype.
19529         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
19530         to implement __libc_accept4.
19531         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
19532         __libc_accept4.
19533         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
19534
19535         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
19536         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
19537         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
19538         signal-defines.sym.
19539
19540 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19541
19542         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
19543
19544 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
19545
19546         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
19547         assertion on O_CLOEXEC flag.
19548         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
19549         * hurd/intern-fd.c: Likewise.
19550         * hurd/port2fd.c: Likewise.
19551
19552 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
19553
19554         [BZ #3906]
19555         * bits/in.h (IPV6_PKTINFO): Define new macro.
19556         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
19557
19558 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19559
19560         [BZ #13954]
19561         [BZ #13955]
19562         [BZ #13956]
19563         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
19564         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
19565         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
19566         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
19567         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
19568         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
19569         * math/libm-test.inc (logb_test) : Additional logb tests.
19570
19571 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
19572             Andreas Jaeger  <aj@suse.de>
19573
19574         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
19575         * configure: Regenerated.
19576         * config.h.in (LINK_OBSOLETE_RPC): New macro.
19577         * config.make.in (link-obsolete-rpc): New substituted variable.
19578         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
19579         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
19580         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
19581         (shared-only-routines): Don't set it under [link-obsolete-rpc],
19582         so that libc.a contains the symbols.
19583         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
19584         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
19585         * sunrpc/auth_none.c: Likewise.
19586         * sunrpc/auth_unix.c: Likewise.
19587         * sunrpc/authdes_prot.c: Likewise.
19588         * sunrpc/authuxprot.c: Likewise.
19589         * sunrpc/clnt_gen.c: Likewise.
19590         * sunrpc/clnt_perr.c: Likewise.
19591         * sunrpc/clnt_raw.c: Likewise.
19592         * sunrpc/clnt_simp.c: Likewise.
19593         * sunrpc/clnt_tcp.c: Likewise.
19594         * sunrpc/clnt_udp.c: Likewise.
19595         * sunrpc/clnt_unix.c: Likewise.
19596         * sunrpc/des_crypt.c: Likewise.
19597         * sunrpc/des_soft.c: Likewise.
19598         * sunrpc/get_myaddr.c: Likewise.
19599         * sunrpc/key_call.c: Likewise.
19600         * sunrpc/key_prot.c: Likewise.
19601         * sunrpc/netname.c: Likewise.
19602         * sunrpc/pm_getmaps.c: Likewise.
19603         * sunrpc/pm_getport.c: Likewise.
19604         * sunrpc/pmap_clnt.c: Likewise.
19605         * sunrpc/pmap_prot.c: Likewise.
19606         * sunrpc/pmap_prot2.c: Likewise.
19607         * sunrpc/pmap_rmt.c: Likewise.
19608         * sunrpc/publickey.c: Likewise.
19609         * sunrpc/rpc_cmsg.c: Likewise.
19610         * sunrpc/rpc_common.c: Likewise.
19611         * sunrpc/rpc_dtable.c: Likewise.
19612         * sunrpc/rpc_prot.c: Likewise.
19613         * sunrpc/rpc_thread.c: Likewise.
19614         * sunrpc/rtime.c: Likewise.
19615         * sunrpc/svc.c: Likewise.
19616         * sunrpc/svc_auth.c: Likewise.
19617         * sunrpc/svc_raw.c: Likewise.
19618         * sunrpc/svc_run.c: Likewise.
19619         * sunrpc/svc_tcp.c: Likewise.
19620         * sunrpc/svc_udp.c: Likewise.
19621         * sunrpc/svc_unix.c: Likewise.
19622         * sunrpc/svcauth_des.c: Likewise.
19623         * sunrpc/xcrypt.c: Likewise.
19624         * sunrpc/xdr.c: Likewise.
19625         * sunrpc/xdr_array.c: Likewise.
19626         * sunrpc/xdr_float.c: Likewise.
19627         * sunrpc/xdr_intXX_t.c: Likewise.
19628         * sunrpc/xdr_mem.c: Likewise.
19629         * sunrpc/xdr_rec.c: Likewise.
19630         * sunrpc/xdr_ref.c: Likewise.
19631         * sunrpc/xdr_sizeof.c: Likewise.
19632         * sunrpc/xdr_stdio.c: Likewise.
19633
19634 2012-05-10  Roland McGrath  <roland@hack.frob.com>
19635
19636         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
19637         change.  Update copyright years.
19638
19639 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
19640
19641         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
19642
19643 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
19644             Joseph Myers  <joseph@codesourcery.com>
19645             Paul Pluzhnikov  <ppluzhnikov@google.com>
19646
19647         [BZ #14012]
19648         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
19649         requiring rpcgen.
19650         [cross-compiling] (extra-libs): Likewise.
19651         [cross-compiling] (extra-libs-others): Likewise.
19652         [cross-compiling] (librpcsvc-routines): Likewise.
19653         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
19654         [cross-compiling] (omit-deps): Likewise.
19655         (sunrpc-CPPFLAGS): New variable.
19656         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
19657         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
19658         (cross-rpcgen-objs): New variable.
19659         (extra-objs): Append $(cross-rpcgen-objs).
19660         ($(cross-rpcgen-objs)): New rule.
19661         ($(objpfx)cross-rpcgen): Likewise.
19662         (rpcgen-cmd): Define to use $(built-program-file).  Expand
19663         comment.
19664         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
19665         ($(objpfx)x%.stmp): Likewise.
19666         * sunrpc/proto.h [IS_IN_build] (_): Define.
19667         [IS_IN_build] (_libc_intl_domainname): Likewise.
19668
19669 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
19670
19671         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
19672         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
19673         and R_X86_64_TPOFF64.
19674
19675 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
19676
19677         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
19678         sysdeps/unix/sysv/syscalls.list.
19679         (stime): Likewise.
19680         (utime): Likewise.
19681         * sysdeps/unix/sysv/syscalls.list: Remove file.
19682
19683 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
19684
19685         [BZ #3440]
19686         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
19687         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
19688         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
19689         (__LC_IDENTIFICATION): Make these macros useful in #if
19690         expressions, as required by C99.
19691
19692 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
19693
19694         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
19695         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
19696         after this.
19697
19698 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
19699
19700         * stdlib/longlong.h: Updated from GCC.
19701
19702 2012-05-09  Andreas Jaeger  <aj@suse.de>
19703
19704         * nscd/nscd.c (run_modes): Make named enum, reorder so that
19705         default is first entry.
19706         (run_mode): Set type.
19707         (main): Remove informal message about syslog.
19708         (options): Fix typo.
19709
19710         [BZ #14053]
19711         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
19712         to asm.
19713         (lrint): Likewise.
19714         (llrintf): Likewise.
19715         (llrint): Likewise.
19716         (rint): Likewise.
19717         (rintf): Likewise.
19718         (nearbyint): Likewise.
19719         (nearbyintf): Likewise.
19720
19721 2012-05-09  Andreas Jaeger  <aj@suse.de>
19722             Pedro Alves  <palves@redhat.com>
19723
19724         * nscd/nscd.c (run_mode): Use enum.
19725         (main): Cleanup coding style issue.
19726
19727 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
19728             Andreas Jaeger  <aj@suse.de>
19729
19730         * nscd/nscd.c (go_background): Replaced with...
19731         (run_mode): ... this.
19732         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
19733         (options): Add -F --foreground.
19734         (main): Implement it.
19735         (parse_opt): Parse it.
19736
19737 2012-05-09  Andreas Jaeger  <aj@suse.de>
19738
19739         [BZ #14083]
19740         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
19741         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
19742         -Wconversion warning.
19743         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
19744         Likewise.
19745
19746 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
19747
19748         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
19749         == 0.
19750         (LC_ALL): Use macro-int-constant.
19751         (LC_COLLATE): Likewise.
19752         (LC_CTYPE): Likewise.
19753         (LC_MESSAGES): Likewise.
19754         (LC_MONETARY): Likewise.
19755         (LC_NUMERIC): Likewise.
19756         (LC_TIME): Likewise.
19757         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
19758         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
19759         [ISO || ISO99 || ISO11] (*_t): Do not allow.
19760         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
19761         Specify type.
19762         [C99-based standards] (float_t): Expect type.
19763         [C99-based standards] (double_t): Expect type.
19764         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
19765         type.
19766         [C99-based standards] (HUGE_VALL): Likewise.
19767         [C99-based standards] (INFINITY): Likewise.
19768         [C99-based standards] (NAN): Likewise.
19769         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
19770         [C99-based standards] (FP_NAN): Likewise.
19771         [C99-based standards] (FP_NORMAL): Likewise.
19772         [C99-based standards] (FP_SUBNORMAL): Likewise.
19773         [C99-based standards] (FP_ZERO): Likewise.
19774         [C99-based standards] (FP_FAST_FMA): Use
19775         optional-macro-int-constant.  Specify type.  Require == 1.
19776         [C99-based standards] (FP_FAST_FMAF): Likewise.
19777         [C99-based standards] (FP_FAST_FMAL): Likewise.
19778         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
19779         [C99-based standards] (FP_ILOGBNAN): Likewise.
19780         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
19781         Specify type.
19782         [C99-based standards] (MATH_ERREXCEPT): Likewise.
19783         [C99-based standards] (math_errhandling): Specify type.
19784         [ISO99 || ISO11] (signgam): Do not allow.
19785         [non-C99-based standards] (copysignf): Do not allow.
19786         [non-C99-based standards] (exp2f): Likewise.
19787         [non-C99-based standards] (log2f): Likewise.
19788         [non-C99-based standards] (modff): Allow.
19789         [non-C99-based standards] (erff): Do not allow.
19790         [non-C99-based standards] (erfcf): Likewise.
19791         [non-C99-based standards] (gammaf): Likewise.
19792         [non-C99-based standards] (hypotf): Likewise.
19793         [non-C99-based standards] (j0f): Likewise.
19794         [non-C99-based standards] (j1f): Likewise.
19795         [non-C99-based standards] (jnf): Likewise.
19796         [non-C99-based standards] (lgammaf): Likewise.
19797         [non-C99-based standards] (tgammaf): Likewise.
19798         [non-C99-based standards] (y0f): Likewise.
19799         [non-C99-based standards] (y1f): Likewise.
19800         [non-C99-based standards] (ynf): Likewise.
19801         [non-C99-based standards] (isnanf): Likewise.
19802         [non-C99-based standards] (acoshf): Likewise.
19803         [non-C99-based standards] (asinhf): Likewise.
19804         [non-C99-based standards] (atanhf): Likewise.
19805         [non-C99-based standards] (cbrtf): Likewise.
19806         [non-C99-based standards] (expm1f): Likewise.
19807         [non-C99-based standards] (ilogbf): Likewise.
19808         [non-C99-based standards] (log1pf): Likewise.
19809         [non-C99-based standards] (logbf): Likewise.
19810         [non-C99-based standards] (nextafterf): Likewise.
19811         [non-C99-based standards] (remainderf): Likewise.
19812         [non-C99-based standards] (rintf): Likewise.
19813         [non-C99-based standards] (scalbf): Likewise.
19814         [non-C99-based standards] (copysignl): Likewise.
19815         [non-C99-based standards] (exp2l): Likewise.
19816         [non-C99-based standards] (log2l): Likewise.
19817         [non-C99-based standards] (modfl): Allow.
19818         [non-C99-based standards] (erfl): Do not allow.
19819         [non-C99-based standards] (erfcl): Likewise.
19820         [non-C99-based standards] (gammal): Likewise.
19821         [non-C99-based standards] (hypotl): Likewise.
19822         [non-C99-based standards] (j0l): Likewise.
19823         [non-C99-based standards] (j1l): Likewise.
19824         [non-C99-based standards] (jnl): Likewise.
19825         [non-C99-based standards] (lgammal): Likewise.
19826         [non-C99-based standards] (tgammal): Likewise.
19827         [non-C99-based standards] (y0l): Likewise.
19828         [non-C99-based standards] (y1l): Likewise.
19829         [non-C99-based standards] (ynl): Likewise.
19830         [non-C99-based standards] (isnanl): Likewise.
19831         [non-C99-based standards] (acoshl): Likewise.
19832         [non-C99-based standards] (asinhl): Likewise.
19833         [non-C99-based standards] (atanhl): Likewise.
19834         [non-C99-based standards] (cbrtl): Likewise.
19835         [non-C99-based standards] (expm1l): Likewise.
19836         [non-C99-based standards] (ilogbl): Likewise.
19837         [non-C99-based standards] (log1pl): Likewise.
19838         [non-C99-based standards] (logbl): Likewise.
19839         [non-C99-based standards] (nextafterl): Likewise.
19840         [non-C99-based standards] (remainderl): Likewise.
19841         [non-C99-based standards] (rintl): Likewise.
19842         [non-C99-based standards] (scalbl): Likewise.
19843         [ISO || ISO99 || ISO11] (*_t): Do not allow.
19844         [non-C99-based standards] (FP_*): Do not allow.
19845         [C99-based standards] (FP_*): Change to
19846         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
19847         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
19848         allow.
19849         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
19850         (SIG_ERR): Likewise.
19851         [X/Open-based standards] (SIG_HOLD): Likewise.
19852         (SIG_IGN): Likewise.
19853         (SIGABRT): Use macro-int-constant.  Specify type.  Require
19854         positive value.
19855         (SIGFPE): Likewise.
19856         (SIGILL): Likewise.
19857         (SIGINT): Likewise.
19858         (SIGSEGV): Likewise.
19859         (SIGTER): Likewise.
19860         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
19861         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
19862         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
19863         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
19864         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
19865         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
19866         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
19867         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
19868         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
19869         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
19870         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
19871         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
19872         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
19873         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
19874         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
19875         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
19876         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
19877         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
19878         [X/Open-based standards] (SIGTRAP): Likewise.
19879         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
19880         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
19881         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
19882         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
19883         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
19884         allow.
19885
19886 2012-05-08  Ian Wienand  <ianw@vmware.com>
19887
19888         [BZ #14080]
19889         * time/tzset.c (__tzset_parse_tz): Update default rules for
19890         daylight time changes in the Energy Policy Act of 2005.
19891
19892 2012-05-09  Andreas Jaeger  <aj@suse.de>
19893
19894         [BZ #13983]
19895         * elf/ldconfig.c (parse_conf): Change string to make clear that
19896         ldconfig only issued a warning if ld.so.conf does not exist.
19897
19898 2012-05-08  David S. Miller  <davem@davemloft.net>
19899
19900         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
19901         movxtod instead of popping the value on the stack.
19902
19903         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19904
19905 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
19906
19907         * config.h.in: Add HAVE_ARM_PCS_VFP.
19908
19909 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
19910
19911         [BZ #13979]
19912         * include/features.h: Warn if user requests __FORTIFY_SOURCE
19913         checking but the checks are disabled for any reason.
19914
19915 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
19916
19917         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
19918         and ELF64_R_TYPE with ELFW(R_TYPE).
19919
19920 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
19921
19922         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
19923         (ulimit): Likewise.
19924
19925         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
19926         (settimeofday): Likewise.
19927
19928 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
19929
19930         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
19931         a struct th_u2 inside the union, and move tu_block/tu_code into
19932         a new th_u3 union of tu_block/tu_code inside of that.  Move
19933         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
19934         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
19935         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
19936         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
19937         (th_stuff): Change to th_u1.tu_stuff.
19938         (th_data): Define.
19939         (th_msg): Change to th_u1.th_u2.tu_data.
19940
19941 2012-05-07  David S. Miller  <davem@davemloft.net>
19942
19943         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19944
19945         [BZ #14074]
19946         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
19947         (SETUP_PIC_REG): Use it.
19948         (SETUP_PIC_REG_LEAF): Use it.
19949
19950 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
19951
19952         [BZ #13885]
19953         [BZ #13923]
19954         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
19955         USE_AS_EXPM1L.
19956         (EXPL_FINITE): Likewise.
19957         (FLDLOG): Likewise.
19958         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
19959         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
19960         e_expl.S.
19961         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
19962         USE_AS_EXPM1L.
19963         (EXPL_FINITE): Likewise.
19964         (FLDLOG): Likewise.
19965         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
19966         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
19967         e_expl.S.
19968         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
19969         test of -max_value argument for long double.
19970         * sysdeps/i386/fpu/libm-test-ulps: Update.
19971         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19972
19973 2012-05-06  David S. Miller  <davem@davemloft.net>
19974
19975         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
19976         quad soft-float symbols whose references which are compiler
19977         generated.
19978         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
19979
19980 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
19981
19982         [BZ #13884]
19983         [BZ #13914]
19984         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
19985         USE_AS_EXP10L.
19986         (EXPL_FINITE): Likewise.
19987         (FLDLOG): Likewise.
19988         (c0): Likewise.
19989         (c1): Likewise.
19990         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
19991         Adjust comments for base varying.
19992         (__expl_finite): Change alias to EXPL_FINITE.
19993         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
19994         e_expl.S.
19995         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
19996         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
19997         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
19998         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
19999         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
20000         USE_AS_EXP10L.
20001         (EXPL_FINITE): Likewise.
20002         (FLDLOG): Likewise.
20003         (c0): Likewise.
20004         (c1): Likewise.
20005         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
20006         Adjust comments for base varying.
20007         (__expl_finite): Change alias to EXPL_FINITE.
20008         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
20009         tests for bugs.
20010         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20011
20012         [BZ #14064]
20013         * math/libm-test.inc (check_float_internal): Correct ulp
20014         calculation for subnormal expected results.
20015
20016 2012-05-06  Andreas Jaeger  <aj@suse.de>
20017
20018         * Makeconfig (+math-flags): New, set to -frounding-math.
20019         (+cflags): Add +math-flags so that all of glibc gets compiled with
20020         it.
20021
20022         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
20023
20024 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
20025
20026         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
20027         Disable one test.
20028
20029         [BZ #13787]
20030         [BZ #13922]
20031         [BZ #14036]
20032         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
20033         (__ieee754_expl): Allow for and saturate large arguments.
20034         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
20035         (u_threshold): Likewise.
20036         (__exp): Call __ieee754_exp before checking for overflow and
20037         underflow.
20038         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
20039         (u_threshold): Likewise.
20040         (__expf): Call __ieee754_expf before checking for overflow and
20041         underflow.
20042         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
20043         (u_threshold): Likewise.
20044         (__expl): Call __ieee754_expl before checking for overflow and
20045         underflow.
20046         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
20047         (__ieee754_expl): Allow for and saturate large arguments.
20048         * math/libm-test.inc (exp_test): Add another test.  Do not allow
20049         missing overflow exception on overflow.
20050         (expm1_test): Do not allow missing overflow exception on overflow.
20051
20052         * sysdeps/i386/fpu/e_expl.c: Move to ...
20053         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
20054         rather than using inline asm.
20055         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
20056         * sysdeps/x86_64/fpu/e_expl.S: Copy from
20057         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
20058
20059         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
20060         (nice): Likewise.
20061         (poll): Likewise.
20062         (signal): Likewise.
20063         (time): Likewise.
20064         (times): Likewise.
20065
20066 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
20067
20068         * sysdeps/unix/syscalls.list (adjtime): Add entry from
20069         sysdeps/unix/common/syscalls.list.
20070         (fchmod): Likewise.
20071         (fchown): Likewise.
20072         (ftruncate): Likewise.
20073         (getrusage): Likewise.
20074         (gettimeofday): Likewise.
20075         (setpgid): Likewise.
20076         (setregid): Likewise.
20077         (setreuid): Likewise.
20078         (sigaction): Likewise.
20079         (truncate): Likewise.
20080         (vhangup): Likewise.
20081         * sysdeps/unix/common/syscalls.list: Remove file.
20082         * sysdeps/unix/bsd/Implies: Don't include unix/common.
20083         * sysdeps/unix/sysv/linux/Implies: Likewise.
20084
20085 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
20086
20087         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
20088         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
20089         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
20090         Moved to ...
20091         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
20092         Here.
20093         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
20094         to ...
20095         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
20096         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
20097         to ...
20098         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
20099         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
20100         to ...
20101         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
20102         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
20103         to ...
20104         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
20105         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
20106         to ...
20107         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
20108         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
20109         to ...
20110         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
20111         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
20112         to ...
20113         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
20114         Here.
20115         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
20116         to ...
20117         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
20118         Here.
20119         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
20120         to ...
20121         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
20122         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
20123         Moved to ...
20124         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
20125         Here.
20126         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
20127         to ...
20128         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
20129
20130 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
20131
20132         * sysdeps/unix/common/bits/dirent.h: Remove file.
20133         * sysdeps/unix/common/bits/fcntl.h: Likewise.
20134
20135         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
20136         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
20137         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
20138         * sysdeps/unix/bsd/isatty.c: Likewise.
20139         * sysdeps/unix/bsd/tcdrain.c: Likewise.
20140         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
20141         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
20142
20143 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20144
20145         [BZ #13563]
20146         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
20147         long double comparison inaccuracies.
20148         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
20149         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20150
20151 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
20152
20153         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
20154         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
20155
20156 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
20157
20158         [BZ #14049]
20159         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
20160         nonzero digits before rounding a hex value.
20161         * stdlib/tst-strtod.c (tests): Add another test.
20162
20163 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
20164
20165         * sysdeps/s390/fpu/libm-test-ulps: Update.
20166
20167 2012-05-03  Andreas Jaeger  <aj@suse.de>
20168
20169         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
20170         does not get optimized out.
20171         (malloc_opt_barrier): New.
20172
20173 2012-05-03  Andreas Jaeger  <aj@suse.de>
20174             Roland McGrath  <roland@hack.frob.com>
20175
20176         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
20177         intermediate file deletion.
20178         (generated): Add .symlist files.
20179
20180 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
20181
20182         [BZ #13775]
20183         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
20184         Redirect under this condition.
20185         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
20186         [__USE_GNU] (__dprintf_chk): Not under this condition.
20187         [__USE_GNU] (__vdprintf_chk): Likewise.
20188         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
20189         under this condition.
20190         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
20191         [__USE_XOPEN2K8] (dprintf): Define under this condition.
20192         [__USE_XOPEN2K8] (vdprintf): Likewise.
20193         [__USE_GNU] (__dprintf_chk): Not under this condition.
20194         [__USE_GNU] (__vdprintf_chk): Likewise.
20195         [__USE_GNU] (dprintf): Likewise.
20196         [__USE_GNU] (vdprintf): Likewise.
20197
20198 2012-05-03  Roland McGrath  <roland@hack.frob.com>
20199
20200         * elf/Makefile (common-generated): Set this instead of generated for
20201         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
20202         $(all-built-dso)-derived lists.
20203
20204 2012-05-03  Andreas Jaeger  <aj@suse.de>
20205
20206         * sysdeps/i386/fpu/libm-test-ulps: Update.
20207
20208         * FAQ: Removed.
20209         * FAQ.in: Likewise.
20210         * scripts/gen-FAQ.pl: Likewise.
20211         * manual/install.texi (Installation): Point to online location of
20212         FAQ.
20213         * Makefile (files-for-dist): Remove FAQ.
20214         (FAQ): Remove.
20215
20216 2012-05-02  Allan McRae  <allan@archlinux.org>
20217
20218         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
20219         (LDFLAGS-reldepmod5.so): Likewise.
20220         (LDFLAGS-reldep6mod1.so): Likewise.
20221         (LDFLAGS-reldep6mod4.so): Likewise.
20222         (LDFLAGS-reldep8mod3.so): Likewise.
20223         (LDFLAGS-unload4mod1.so): Likewise.
20224         (LDFLAGS-unload4mod2.so): Likewise.
20225         (LDFLAGS-tst-initorder): Likewise.
20226         (LDFLAGS-tst-initordera2.so): Likewise.
20227         (LDFLAGS-tst-initordera3.so): Likewise.
20228         (LDFLAGS-tst-initordera4.so): Likewise.
20229         (LDFLAGS-tst-initorderb2.so): Likewise.
20230         (LDFLAGS-noload): Likewise.
20231         (LDFLAGS-next): Likewise.
20232         (LDFLAGS-order2mod1.so): Likewise.
20233         (LDFLAGS-order2mod2.so): Likewise.
20234         (LDFLAGS-tst-initorder2): Likewise.
20235         (LDFLAGS-tst-initorder2a.so): Likewise.
20236         (LDFLAGS-tst-initorder2b.so): Likewise.
20237         (LDFLAGS-tst-initorder2c.so): Likewise.
20238         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
20239
20240 2012-05-02  David S. Miller  <davem@davemloft.net>
20241
20242         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20243
20244 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
20245
20246         [BZ #14055]
20247         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
20248
20249 2012-05-02  Andreas Jaeger  <aj@suse.de>
20250
20251         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
20252         since we manipulate rounding mode.
20253         (CPPFLAGS-test-idouble.c): Likewise.
20254         (CPPFLAGS-test-ifloat.c): Likewise.
20255         (CFLAGS-test-ldouble.c): Likewise.
20256         (CFLAGS-test-double.c): Likewise.
20257         (CFLAGS-test-float.c): Likewise.
20258         (CFLAGS-test-misc.c): Likewise.
20259         (CFLAGS-test-test-fenv.c): Likewise.
20260
20261 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20262
20263         [BZ #2550]
20264         [BZ #2570]
20265         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
20266         comparisons to determine direction to adjust input.
20267
20268 2012-05-01  Roland McGrath  <roland@hack.frob.com>
20269
20270         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
20271         output to the target.
20272
20273         * scripts/localplt.awk: New file.
20274         * elf/Makefile ($(objpfx)check-localplt): Target removed.
20275         (check-localplt-CFLAGS): Variable removed.
20276         ($(all-built-dso:=.jmprel)): New static pattern rule.
20277         (generated): Add those targets.
20278         (localplt-built-dso): New variable.
20279         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
20280
20281         * elf/check-localplt.c: File removed.
20282
20283         * scripts/check-execstack.awk: New file.
20284         * elf/Makefile ($(objpfx)check-execstack): Target removed.
20285         (check-execstack-CFLAGS): Variable removed.
20286         ($(objpfx)check-execstack.h): Target removed.
20287         ($(objpfx)execstack-default): New target.
20288         (generated): Add that instead of check-execstack.h.
20289         ($(all-built-dso:=.phdr)): New static pattern rule.
20290         (generated): Add those targets.
20291         * elf/check-execstack.c: File removed.
20292
20293         * scripts/check-textrel.awk: New file.
20294         * elf/Makefile ($(objpfx)check-textrel): Target removed.
20295         (check-textrel-CFLAGS): Variable removed.
20296         (all-built-dso): Use := to define.o
20297         ($(all-built-dso:=.dyn)): New static pattern rule.
20298         (generated): Add those targets.
20299         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
20300         * config.make.in (READELF): New substituted variable.
20301         * elf/check-textrel.c: File removed.
20302
20303 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
20304
20305         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
20306         allow.
20307         * conform/data/ctype.h-data [C99-based standards] (isblank):
20308         Expect function.
20309         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
20310         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
20311         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20312         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
20313         Specify type.  Require positive value.
20314         (EILSEQ): Likewise.
20315         (ERANGE): Likewise.
20316         [ISO || POSIX] (EILSEQ): Do not expect.
20317         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
20318         Specify type.  Require positive value.
20319         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
20320         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
20321         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
20322         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
20323         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
20324         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
20325         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
20326         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
20327         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
20328         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
20329         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
20330         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
20331         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
20332         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
20333         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
20334         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
20335         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
20336         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
20337         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
20338         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
20339         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
20340         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
20341         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
20342         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
20343         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
20344         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
20345         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
20346         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
20347         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
20348         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
20349         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
20350         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
20351         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
20352         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
20353         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
20354         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
20355         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
20356         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
20357         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
20358         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
20359         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
20360         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
20361         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
20362         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
20363         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
20364         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
20365         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
20366         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
20367         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
20368         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
20369         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
20370         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
20371         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
20372         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
20373         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
20374         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
20375         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
20376         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
20377         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
20378         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
20379         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
20380         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
20381         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
20382         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
20383         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
20384         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
20385         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
20386         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
20387         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
20388         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
20389         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
20390         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
20391         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
20392         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
20393         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
20394         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
20395         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
20396         Require >= 2.
20397         (FLT_ROUNDS): Expect as macro, not constant.
20398         (FLT_MANT_DIG): Use macro-int-constant.
20399         (DBL_MANT_DIG): Likewise.
20400         (LDBL_MANT_DIG): Likewise.
20401         (FLT_DIG): Likewise.
20402         (DBL_DIG): Likewise.
20403         (LDBL_DIG): Likewise.
20404         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
20405         (DBL_MIN_EXP): Likewise.
20406         (LDBL_MIN_EXP): Likewise.
20407         (FLT_MAX_EXP): Use macro-int-constant.
20408         (DBL_MAX_EXP): Likewise.
20409         (LDBL_MAX_EXP): Likewise.
20410         (FLT_MAX_10_EXP): Likewise.
20411         (DBL_MAX_10_EXP): Likewise.
20412         (LDBL_MAX_10_EXP): Likewise.
20413         (FLT_MAX): Use macro-constant.
20414         (DBL_MAX): Likewise.
20415         (LDBL_MAX): Likewise.
20416         (FLT_EPSILON): Use macro-constant.  Give upper bound.
20417         (DBL_EPSILON): Likewise.
20418         (LDBL_EPSILON): Likewise.
20419         (FLT_MIN): Likewise.
20420         (DBL_MIN): Likewise.
20421         (LDBL_MIN): Likewise.
20422         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
20423         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
20424         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
20425         [ISO11] (FLT_HAS_SUBNORM): Likewise.
20426         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
20427         [ISO11] (DBL_DECIMAL_DIG): Likewise.
20428         [ISO11] (FLT_DECIMAL_DIG): Likewise.
20429         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
20430         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
20431         [ISO11] (FLT_TRUE_MIN): Likewise.
20432         [ISO11] (LDBL_TRUE_MIN): Likewise.
20433         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20434         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
20435         (SCHAR_MIN): Use macro-int-constant.  Specify type.
20436         (SCHAR_MAX): Likewise.
20437         (UCHAR_MAX): Likewise.
20438         (CHAR_MIN): Likewise.
20439         (CHAR_MAX): Likewise.
20440         (MB_LEN_MAX): Use macro-int-constant.
20441         (SHRT_MIN): Use macro-int-constant.  Specify type.
20442         (SHRT_MAX): Likewise.
20443         (USHRT_MAX): Likewise.
20444         (INT_MAX): Likewise.
20445         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
20446         bound negative.
20447         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
20448         bound with "U".
20449         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
20450         bound with "L".
20451         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
20452         bound negative.  Suffix upper bound with "L".
20453         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
20454         bound with "UL".
20455         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
20456         Specify type.
20457         [C99-based standards] (LLONG_MAX): Likewise.
20458         [C99-based standards] (ULLONG_MAX): Likewise.
20459         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
20460         == 0.
20461         [ISO11] (max_align_t): Require type.
20462         [ISO || ISO99 || ISO11] (*_t): Do not allow.
20463
20464         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
20465         from $CFLAGS, without defining away __attribute__ calls.
20466         (checknamespace): Use $CFLAGS_namespace.
20467
20468         * conform/conformtest.pl (@keywords): Only include C99 keywords
20469         for standards based on C99 or C11.
20470
20471         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
20472         Disable tests.
20473         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
20474         UNIX98]: Likewise.
20475
20476         * conform/conformtest.pl: Handle "macro-int-constant" and test for
20477         usability of symbols in #if.
20478
20479         * conform/conformtest.pl: If macro or constant types start
20480         "promoted:", expect the symbol to be of the following type
20481         promoted by the integer promotions.
20482
20483         * conform/conformtest.pl: Parse all "constant" and "macro" lines
20484         in one place.  Also handle "macro-constant".
20485
20486         * conform/conformtest.pl: Only accept expected macro values with
20487         "==".  Parse all "macro" lines in one place.
20488         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
20489
20490         * conform/conformtest.pl: Handle braced types on "constant" lines
20491         instead of handling "typed-constant".
20492         * conform/data/signal.h-data: Use "constant" instead of
20493         "typed-constant".
20494
20495         * conform/conformtest.pl: Handle "optional-" at start of lines in
20496         one place rather than duplicating several cases.  Handle each
20497         format of "macro" line with initial "optional-".
20498
20499         * conform/conformtest.pl: Only accept expected constant or
20500         optional-constant values with "==".  Parse all "constant" lines in
20501         one place.  Parse all "optional-constant" lines in one place.
20502         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
20503         * conform/data/fmtmsg.h-data: Likewise.
20504         * conform/data/netinet/in.h-data: Likewise.
20505         * conform/data/tar.h-data: Likewise.
20506         * conform/data/limits.h-data: Use "==" form on "constant" and
20507         "optional-constant" lines.
20508
20509         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
20510         Use -std=c99 for XOPEN2K.
20511         (@knownproblems): Remove.
20512         (newtoken): Don't check %isknown.
20513
20514         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
20515         Do not expect macro.
20516         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
20517         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
20518         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
20519         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
20520         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
20521         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
20522         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
20523         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
20524         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
20525         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
20526         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
20527         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
20528         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
20529         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
20530         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
20531         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
20532         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
20533         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
20534         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
20535         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
20536         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
20537         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
20538         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
20539         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
20540         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
20541         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
20542         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
20543         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
20544         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
20545         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
20546         [XPG3] (acosh): Likewise.
20547         [XPG3] (asinh): Likewise.
20548         [XPG3] (atanh): Likewise.
20549         [XPG3] (cbrt): Likewise.
20550         [XPG3] (expm1): Likewise.
20551         [XPG3] (ilogb): Likewise.
20552         [XPG3] (log1p): Likewise.
20553         [XPG3] (logb): Likewise.
20554         [XPG3] (nextafter): Likewise.
20555         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
20556         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
20557         [XPG3] (remainder): Likewise.
20558         [XPG3] (rint): Likewise.
20559         [XPG3 || XPG4 || UNIX98] (round): Likewise.
20560         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
20561         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
20562         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
20563         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
20564         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
20565         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
20566         [UNIX98 || XOPEN2K] (scalb): Expect.
20567         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
20568         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
20569         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
20570         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
20571         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
20572         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
20573         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
20574         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
20575         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
20576         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
20577         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
20578         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
20579         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
20580         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
20581         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
20582         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
20583         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
20584         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
20585         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
20586         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
20587         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
20588         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
20589         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
20590         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
20591         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
20592         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
20593         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
20594         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
20595         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
20596         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
20597         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
20598         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
20599         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
20600         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
20601         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
20602         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
20603         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
20604         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
20605         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
20606         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
20607         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
20608         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
20609         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
20610         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
20611         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
20612         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
20613         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
20614         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
20615         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
20616         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
20617         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
20618         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
20619         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
20620         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
20621         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
20622         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
20623         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
20624         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
20625         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
20626         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
20627         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
20628         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
20629         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
20630         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
20631         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
20632         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
20633         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
20634         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
20635         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
20636         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
20637         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
20638         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
20639         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
20640         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
20641         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
20642         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
20643         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
20644         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
20645         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
20646         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
20647         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
20648         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
20649         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
20650         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
20651         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
20652         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
20653         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
20654         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
20655         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
20656         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
20657         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
20658         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
20659         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
20660         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
20661         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
20662         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
20663         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
20664         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
20665         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
20666         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
20667         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
20668         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
20669         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
20670         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
20671         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
20672         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
20673         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
20674         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
20675         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
20676         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
20677         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
20678         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
20679         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
20680         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
20681         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
20682         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
20683         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
20684         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
20685         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
20686         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
20687         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
20688         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
20689         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
20690         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
20691         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
20692         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
20693         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
20694         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
20695         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
20696         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
20697         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
20698         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
20699         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
20700         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
20701         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
20702         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
20703         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
20704
20705         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
20706         _XOPEN_SOURCE_EXTENDED for XPG4.
20707
20708         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
20709
20710         * Makeconfig (localtime): Remove variable.
20711         (inst_localtime-file): Likewise.
20712
20713 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
20714
20715         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
20716         Update.
20717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
20718         Update.
20719         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
20720         Update.
20721         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
20722         Update.
20723         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
20724         Update.
20725         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
20726         Update.
20727         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
20728         Update.
20729         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
20730         Update.
20731         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
20732         Update.
20733
20734 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
20735
20736         [BZ #2550]
20737         [BZ #2570]
20738         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
20739         comparisons to determine direction to adjust input.
20740         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
20741         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
20742         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
20743         Likewise.
20744         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
20745         Likewise.
20746         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
20747         Likewise.
20748         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
20749         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
20750         Likewise.
20751         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
20752         Likewise.
20753         * math/libm-test.inc (nexttoward_test): Add more tests.
20754
20755 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
20756
20757         [BZ #14040]
20758         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
20759         in version GLIBC_2.1, not GLIBC_2.0.
20760         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
20761         Likewise.
20762
20763 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
20764
20765         [BZ #13942]
20766         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
20767         (1 - x) * (1 + x).
20768         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
20769         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
20770         * math/libm-test.inc (acos_test): Add more tests.
20771         (asin_test): Likewise.
20772         * sysdeps/i386/fpu/libm-test-ulps: Update.
20773         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20774
20775         [BZ #14034]
20776         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
20777         of square root.
20778         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
20779         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
20780         * math/libm-test.inc (acos_test_tonearest): New function.
20781         (acos_test_towardzero): Likewise.
20782         (acos_test_downward): Likewise.
20783         (acos_test_upward): Likewise.
20784         (asin_test_tonearest): Likewise.
20785         (asin_test_towardzero): Likewise.
20786         (asin_test_downward): Likewise.
20787         (asin_test_upward): Likewise.
20788         (main): Call the new functions.
20789         * sysdeps/i386/fpu/libm-test-ulps: Update.
20790         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20791
20792         [BZ #13884]
20793         [BZ #13924]
20794         * math/e_exp10.c: Include <float.h>.
20795         (__ieee754_exp10): Handle underflow here rather than multiplying
20796         large negative argument by M_LN10.
20797         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
20798         of __ieee754_expf.
20799         * math/e_exp10l.c: Include <float.h>.
20800         (__ieee754_exp10l): Handle underflow here rather than multiplying
20801         large negative argument by M_LN10l.
20802         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
20803         spurious overflow exception on underflow.
20804
20805 2012-04-29  Marek Polacek  <polacek@redhat.com>
20806
20807         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
20808         (__fortify_function): New macro.
20809         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
20810         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
20811         __extern_always_inline.
20812         * libio/bits/stdio2.h: Likewise.
20813         * libio/bits/stdio.h: Likewise.
20814         * string/string.h: Likewise.
20815         * string/bits/string3.h: Likewise.
20816         * include/stdio.h: Likewise.
20817         * stdlib/bits/stdlib.h: Likewise.
20818         * stdlib/stdlib.h: Likewise.
20819         * rt/bits/mqueue2.h: Likewise.
20820         * rt/mqueue.h: Likewise.
20821         * posix/bits/unistd.h: Likewise.
20822         * posix/unistd.h: Likewise.
20823         * io/bits/poll2.h: Likewise.
20824         * io/bits/fcntl2.h: Likewise.
20825         * io/fcntl.h: Likewise.
20826         * io/sys/poll.h: Likewise.
20827         * misc/bits/syslog.h: Likewise.
20828         * misc/bits/syslog-ldbl.h: Likewise.
20829         * misc/sys/syslog.h: Likewise.
20830         * socket/bits/socket2.h: Likewise.
20831         * socket/sys/socket.h: Likewise.
20832         * debug/tst-chk1.c: Likewise.
20833         * wcsmbs/bits/wchar2.h: Likewise.
20834         * wcsmbs/bits/wchar-ldbl.h: Likewise.
20835         * wcsmbs/wchar.h: Likewise.
20836
20837 2012-04-29  Andreas Jaeger  <aj@suse.de>
20838
20839         * Makerules (tests): Remove enable-check-abi protection.
20840         (check-abi-warn): Remove.
20841         (check-abi-%): Remove check-abi-warn usage.
20842
20843         * configure.in: Remove check-abi configure option.
20844         * configure: Regenerated.
20845         * config.make.in (enable-check-abi): Remove.
20846
20847 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
20848
20849         [BZ #14033]
20850         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
20851         double functions to double *_finite functions.
20852
20853         [BZ #13941]
20854         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
20855         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
20856         LDBL_MIN_EXP.
20857         * stdio-common/Makefile (tests): Add tst-sprintf3.
20858         * stdio-common/tst-sprintf3.c: New file.
20859
20860         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
20861         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
20862
20863 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
20864
20865         * conform/conformtest.pl: Remove duplicate typed-constant
20866         handling.
20867
20868 2012-04-28  David S. Miller  <davem@davemloft.net>
20869
20870         * Makerules (%.abilist): Add vpath on sysdep_dirs.
20871         (check-abi-%): Remove AWK script prerequisite and explicit
20872         abilist directory.
20873         (check-abi): Rewrite to just diff the symlist with the abilist.
20874         (config-tls, config-abi-config): Delete, no longer used.
20875         (update-abi-%): Remove AWK script and explicit abilist directory.
20876         (update-abi): Rewrite to simply compare and conditionally copy the
20877         symlist and the sysdep abilist file.  Remove update-abi-config
20878         checks.
20879         * abilist/ld.abilist: Remove.
20880         * abilist/libBrokenLocale.abilist: Remove.
20881         * abilist/libanl.abilist: Remove.
20882         * abilist/libcrypt.abilist: Remove.
20883         * abilist/libdl.abilist: Remove.
20884         * abilist/librt.abilist: Remove.
20885         * abilist/libthread_db.abilist: Remove.
20886         * abilist/libutil.abilist: Remove.
20887         * scripts/extract-abilist.awk: Remove.
20888         * scripts/merge-abilist.awk: Remove.
20889         * sysdeps/generic/libcidn.abilist: New file.
20890         * sysdeps/generic/libnss_compat.abilist: New file.
20891         * sysdeps/generic/libnss_db.abilist: New file.
20892         * sysdeps/generic/libnss_dns.abilist: New file.
20893         * sysdeps/generic/libnss_files.abilist: New file.
20894         * sysdeps/generic/libnss_hesiod.abilist: New file.
20895         * sysdeps/generic/libnss_nis.abilist: New file.
20896         * sysdeps/generic/libnss_nisplus.abilist: New file.
20897         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
20898         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
20899         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
20900         file.
20901         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
20902         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
20903         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
20904         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
20905         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
20906         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
20907         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
20908         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
20909         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
20910         file.
20911         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
20912         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
20913         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
20914         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
20915         file.
20916         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
20917         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
20918         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
20919         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
20920         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
20921         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
20922         file.
20923         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
20924         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
20925         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
20926         file.
20927         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
20928         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
20929         New file.
20930         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
20931         New file.
20932         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
20933         New file.
20934         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
20935         New file.
20936         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
20937         New file.
20938         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
20939         New file.
20940         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
20941         New file.
20942         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
20943         New file.
20944         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
20945         New file.
20946         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
20947         New file.
20948         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
20949         New file.
20950         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
20951         New file.
20952         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
20953         New file.
20954         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
20955         file.
20956         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
20957         New file.
20958         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
20959         New file.
20960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
20961         file.
20962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
20963         New file.
20964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
20965         New file.
20966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
20967         file.
20968         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
20969         New file.
20970         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
20971         New file.
20972         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
20973         New file.
20974         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
20975         New file.
20976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
20977         New file.
20978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
20979         New file.
20980         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
20981         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
20982         file.
20983         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
20984         New file.
20985         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
20986         file.
20987         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
20988         file.
20989         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
20990         file.
20991         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
20992         file.
20993         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
20994         file.
20995         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
20996         New file.
20997         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
20998         file.
20999         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
21000         file.
21001         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
21002         New file.
21003         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
21004         file.
21005         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
21006         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
21007         file.
21008         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
21009         New file.
21010         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
21011         file.
21012         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
21013         file.
21014         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
21015         file.
21016         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
21017         file.
21018         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
21019         file.
21020         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
21021         New file.
21022         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
21023         file.
21024         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
21025         file.
21026         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
21027         New file.
21028         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
21029         file.
21030         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
21031         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
21032         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
21033         file.
21034         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
21035         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
21036         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
21037         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
21038         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
21039         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
21040         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
21041         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
21042         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
21043         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
21044         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
21045         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
21046         file.
21047         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
21048         New file.
21049         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
21050         file.
21051         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
21052         file.
21053         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
21054         file.
21055         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
21056         file.
21057         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
21058         file.
21059         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
21060         New file.
21061         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
21062         New file.
21063         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
21064         file.
21065         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
21066         New file.
21067         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
21068         file.
21069         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
21070         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
21071         file.
21072         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
21073         New file.
21074         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
21075         file.
21076         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
21077         file.
21078         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
21079         file.
21080         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
21081         file.
21082         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
21083         file.
21084         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
21085         New file.
21086         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
21087         New file.
21088         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
21089         file.
21090         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
21091         New file.
21092         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
21093         file.
21094
21095 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
21096
21097         * conform/conformtest.pl: Fix typo in handling typed-constant from
21098         allow-header.
21099
21100 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
21101
21102         * README: Cut down references to pre-2.6 Linux kernels and
21103         Linuxthreads.  Update lists of configurations in libc and ports
21104         and sort alphabetically.  Say "or newer" with Linux kernel version
21105         requirements.
21106
21107         * config.h.in [IS_IN_build]: Allow compiling without optimization.
21108
21109 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
21110
21111         [BZ #887]
21112         * math/libm-test.inc (logb_test_downward): New test to expose
21113         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
21114         rounding mode.
21115
21116 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
21117
21118         [BZ #14027]
21119         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
21120         to be done.
21121         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
21122         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
21123
21124 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
21125
21126         * sysdeps/unix/i386/brk.S: Remove file.
21127         * sysdeps/unix/i386/dl-brk.S: Likewise.
21128         * sysdeps/unix/i386/pipe.S: Likewise.
21129         * sysdeps/unix/i386/sigreturn.S: Likewise.
21130         * sysdeps/unix/i386/syscall.S: Likewise.
21131         * sysdeps/unix/i386/vfork.S: Likewise.
21132         * sysdeps/unix/i386/wait.S: Likewise.
21133
21134         * sysdeps/unix/common/tcsendbrk.c: Move to ...
21135         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
21136
21137         * configure.in (arm*-none*): Do not allow without
21138         --enable-hacker-mode.
21139         (netbsd*): Remove case setting base_os.
21140         (386bsd*): Likewise.
21141         (freebsd*): Likewise.
21142         (bsdi*): Likewise.
21143         (osf*): Likewise.
21144         (sunos*): Likewise.
21145         (ultrix*): Likewise.
21146         (newsos*): Likewise.
21147         (dynix*): Likewise.
21148         (*bsd*): Likewise.
21149         (sysv*): Likewise.
21150         (isc*): Likewise.
21151         (esix*): Likewise.
21152         (sco*): Likewise.
21153         (minix*): Likewise.
21154         (irix4*): Likewise.
21155         (irix6*): Likewise.
21156         (solaris[2-9]*): Likewise.
21157         (none): Likewise.
21158         * configure: Regenerated.
21159
21160 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21161
21162         [BZ #11521]
21163         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
21164         overflow or cancellation in calculating denominator.
21165         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
21166         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
21167         down expression to avoid unexpected rounding in newer GCCs.
21168         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
21169
21170 2012-04-26  David S. Miller  <davem@davemloft.net>
21171
21172         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
21173         long-double compat symbols.
21174         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
21175         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
21176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
21177         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
21178         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
21179         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
21180         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
21181         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
21182         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
21183         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
21184         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
21185         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
21186         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
21187
21188 2012-04-25  David S. Miller  <davem@davemloft.net>
21189
21190         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
21191         HWCAP_* values only after the memory barriers have been defined.
21192         (atomic_full_barrier): Define.
21193         (atomic_read_barrier): Define.
21194         (atomic_write_barrier): Define.
21195
21196 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
21197
21198         * shlib-versions: Add libgcc_s version information.
21199         * sysdeps/generic/libgcc_s.h: Remove.
21200         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
21201         libgcc_s.h.
21202         * sysdeps/gnu/unwind-resume.c: Likewise.
21203         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
21204
21205 2012-04-25  David S. Miller  <davem@davemloft.net>
21206
21207         * sysdeps/unix/sparc/brk.S: Delete.
21208         * sysdeps/unix/sparc/dl-brk.S: Delete.
21209         * sysdeps/unix/sparc/pipe.S: Delete.
21210         * sysdeps/unix/sparc/sysdep.S: Delete.
21211         * sysdeps/unix/sparc/sysdep.h: Delete.
21212         * sysdeps/unix/sparc/vfork.S: Delete.
21213         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
21214         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
21215         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
21216         ret_ERRVAL, r0, r1, MOVE): Define.
21217         (JUMPTARGET): Remove.
21218         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
21219         sysdeps/unix/sparc/sysdep.h
21220         (ENTRY, END): Remove.
21221         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
21222
21223 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
21224
21225         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
21226         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
21227         -DIS_IN_build.
21228
21229         * timezone/README: Update upstream location and email address for
21230         tzcode and tzdata.
21231         * timezone/zdump.c: Update from tzcode 2012b.
21232         * timezone/zic.c: Likewise.
21233
21234         * configure.in (libc_cv_as_needed): Remove test.
21235         * configure: Regenerated.
21236         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
21237         conditional definition.
21238         [$(have-as-needed) != yes] (no-as-needed): Likewise.
21239         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
21240         * config.make.in (have-as-needed): Remove variable.
21241
21242 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
21243             Paul Pluzhnikov  <ppluzhnikov@google.com>
21244
21245         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
21246         strings correctly.
21247
21248 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
21249
21250         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
21251         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
21252         * sysdeps/sh/strlen.S: Likewise.
21253
21254 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
21255
21256         * sysdeps/unix/fork.S: Remove file.
21257         * sysdeps/unix/i386/fork.S: Likewise.
21258         * sysdeps/unix/sparc/fork.S: Likewise.
21259
21260         * sysdeps/unix/system.c: Remove file.
21261         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
21262
21263         * sysdeps/unix/getegid.S: Remove file.
21264         * sysdeps/unix/geteuid.S: Likewise.
21265
21266 2012-04-24  Roland McGrath  <roland@hack.frob.com>
21267
21268         * scripts/check-localplt.awk: New file.
21269         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
21270         of diff.
21271         * scripts/data/localplt-generic.data: Add a comment.
21272
21273         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
21274         NODE when __dir_mkfile failed.
21275         * sysdeps/mach/hurd/symlinkat.c: Likewise.
21276         Reported by Ludovic Courtès <ludo@gnu.org>.
21277
21278 2012-04-24  Andreas Jaeger  <aj@suse.de>
21279
21280         * Makerules (common-clean): Also remove gen-as-const-headers
21281         files.
21282
21283 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
21284
21285         * Makerules (native-compile): Do not change working directory for
21286         build.  Use $(OUTPUT_OPTION) in command.
21287         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
21288
21289 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21290
21291         [BZ #13886]
21292         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
21293         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
21294         * math/libm-test.inc (floor_test): Add more tests.
21295         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
21296
21297 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
21298
21299         * sysdeps/unix/getdents.c: Remove file.
21300         * sysdeps/unix/sysv/getdents.c: Likewise.
21301         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
21302
21303         * sysdeps/unix/syscalls.list (madvise): Add syscall from
21304         sysdeps/unix/mman/syscalls.list.
21305         (mmap): Likewise.
21306         (mprotect): Likewise.
21307         (msync): Likewise.
21308         (munmap): Likewise.
21309         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
21310         * sysdeps/unix/mman/syscalls.list: Remove.
21311         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
21312
21313         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
21314         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
21315         * configure: Regenerated.
21316         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
21317         $(libgcc_s_suffix).
21318         * config.make.in (libgcc_s_suffix): Remove variable.
21319
21320 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
21321
21322         * sysdeps/unix/sysv/gethostname.c: Move to ...
21323         * sysdeps/posix/gethostname.c: ... here.
21324
21325         * sysdeps/unix/execve.S: Remove file.
21326
21327         * sysdeps/unix/_exit.S: Remove file.
21328
21329 2012-04-23  Andreas Jaeger  <aj@suse.de>
21330
21331         [BZ #13739]
21332         * manual/Makefile: Remove make dist support, there's no
21333         need for a stand-alone documentation tar ball.
21334         (TEXI2DVI): Define always, it's not in Makeconfig.
21335         (dist): Removed.
21336         (tar-it): Removed.
21337         (edition): Removed.
21338         (glibc-doc-$(edition).tar): Removed
21339         (%.Z): Removed.
21340         (%.gz): Removed.
21341         (%.uu): Removed.
21342         (ETAGS): Remove, it's in Makeconfig.
21343         (move-if-change): Remove, it's in Makeconfig.
21344
21345 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
21346
21347         [BZ #13970]
21348         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
21349         (strtod, strtof, strtold, strtol, strtoul, strtoq)
21350         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
21351         (strtod_l, strtof_l, strtold_l): Remove __wur.
21352         It is not necessarily an error to ignore strtol's return value.
21353         One can reliably look at the stored endptr to decide whether
21354         the number had valid syntax.
21355
21356 2012-04-21  Andreas Jaeger  <aj@suse.de>
21357
21358         [BZ #13739]
21359         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
21360
21361 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
21362
21363         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
21364         * sysdeps/unix/sysv/Versions: Remove file.
21365
21366 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
21367
21368         [BZ #13927]
21369         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21370
21371 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
21372
21373         [BZ #7064]
21374         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
21375         version from __vm86.
21376
21377 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
21378
21379         * sysdeps/unix/common/lxstat.c: Remove file.
21380         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
21381
21382         * sysdeps/unix/sysv/Makefile: Remove file.
21383
21384         * sysdeps/unix/sysv/direct.h: Remove file.
21385
21386         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
21387         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
21388         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
21389         * sysdeps/unix/sysv/bits/signum.h: Likewise.
21390         * sysdeps/unix/sysv/bits/stat.h: Likewise.
21391         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
21392         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
21393
21394         * sysdeps/unix/sysv/setrlimit.c: Remove file.
21395
21396         * sysdeps/unix/xmknod.c: Remove file.
21397         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
21398
21399         * sysdeps/unix/sysv/settimeofday.c: Remove file.
21400
21401         * sysdeps/unix/sysv/i386/time.S: Remove file.
21402
21403         * sysdeps/unix/fxstat.c: Remove file.
21404         * sysdeps/unix/xstat.c: Likewise.
21405         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
21406
21407         * sysdeps/unix/sysv/sigaction.c: Remove file.
21408
21409         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
21410         (sysdep_headers): Remove variable.
21411         [termio.h not in sysdep_headers] (generated): Likewise.
21412         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
21413         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
21414         * sysdeps/unix/sysv/tcdrain.c: Likewise.
21415         * sysdeps/unix/sysv/tcflow.c: Likewise.
21416         * sysdeps/unix/sysv/tcflush.c: Likewise.
21417         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
21418         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
21419         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
21420         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
21421         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
21422
21423         * sysdeps/unix/siglist.c: Remove file.
21424
21425         * sysdeps/unix/getppid.S: Remove file.
21426
21427         * sysdeps/unix/mkdir.c: Remove file.
21428         * sysdeps/unix/rmdir.c: Likewise.
21429
21430 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
21431
21432         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
21433         ERR_MAX value.
21434         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
21435         errlist-compat value.
21436
21437 2012-04-18  David S. Miller  <davem@davemloft.net>
21438
21439         * sysdeps/generic/memcopy.h (reg_char): Delete.
21440         * debug/strcat_chk.c: Use char, not reg_char.
21441         * debug/strcpy_chk.c: Likewise.
21442         * debug/strncat_chk.c: Likewise.
21443         * debug/strncpy_chk.c: Likewise.
21444         * string/memchr.c: Likewise.
21445         * string/memrchr.c: Likewise.
21446         * string/rawmemchr.c: Likewise.
21447         * string/strcat.c: Likewise.
21448         * string/strchr.c: Likewise.
21449         * string/strchrnul.c: Likewise.
21450         * string/strcmp.c: Likewise.
21451         * string/strcpy.c: Likewise.
21452         * string/strncat.c: Likewise.
21453         * string/strncmp.c: Likewise.
21454         * string/strncpy.c: Likewise.
21455
21456 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
21457
21458         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
21459         __builtin_memcopy is called when src and dest ranges are known to not
21460         overlap.
21461
21462 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
21463
21464         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
21465         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
21466         fwd_align_merge macro call.
21467         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
21468         bwd_align_merge macro call.
21469         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
21470
21471 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
21472
21473         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
21474         bwd_align_merge macros.
21475         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
21476         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
21477         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
21478
21479 2012-04-18  David S. Miller  <davem@davemloft.net>
21480
21481         * sysdeps/sparc/sparc64/memcopy.h: Delete.
21482
21483 2012-04-18  Andreas Jaeger  <aj@suse.de>
21484
21485         [BZ# 6794]
21486         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
21487         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
21488         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
21489
21490         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
21491         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
21492         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
21493
21494         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
21495         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
21496         Adjust for changed ldbl-128 files.
21497
21498         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
21499         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
21500         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
21501
21502 2012-04-17  David S. Miller  <davem@davemloft.net>
21503
21504         * sysdeps/sparc/sparc32/memcopy.h: Delete.
21505
21506 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
21507
21508         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
21509         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
21510         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
21511         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
21512         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
21513         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
21514
21515 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21516
21517         [BZ #6794]
21518         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
21519         * math/libm-test.inc: Add ilogb errno and exception tests.
21520         * math/w_ilogb.c: New file: ilogb wrapper.
21521         * math/w_ilogbf.c: New file: ilogbf wrapper.
21522         * math/w_ilogbl.c: New file: ilogbl wrapper.
21523         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
21524         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
21525         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
21526         exception being thrown with 0.0 as argument.
21527         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
21528         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
21529         exception being thrown with 0.0 as argument.
21530         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
21531         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
21532         exception being thrown with 0.0 as argument.
21533         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
21534         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
21535         exception being thrown with 0.0 as argument.
21536         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
21537         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
21538         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
21539         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
21540         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
21541         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
21542         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
21543         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
21544         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
21545
21546 2012-04-17  Petr Baudis  <pasky@ucw.cz>
21547
21548         * include/sys/uio.h: Change __vector to __iovec to avoid clash
21549         with altivec.
21550
21551 2012-04-16  Marek Polacek  <polacek@redhat.com>
21552
21553         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
21554
21555 2012-04-16  Marek Polacek  <polacek@redhat.com>
21556
21557         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
21558         operands of fdivp instruction.
21559
21560 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
21561
21562         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
21563         * elf/tst-auditmod3b.c: Likewise.
21564         * elf/tst-auditmod4b.c: Likewise.
21565         * elf/tst-auditmod5b.c: Likewise.
21566         * elf/tst-auditmod6b.c: Likewise.
21567         * elf/tst-auditmod6c.c: Likewise.
21568         * elf/tst-auditmod7b.c: Likewise.
21569         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
21570         * sysdeps/x86_64/preconfigure.in: Likewise.
21571         * sysdeps/x86_64/preconfigure: Regenerated.
21572
21573 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
21574
21575         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
21576         __ILP32__.
21577
21578 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
21579
21580         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
21581         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
21582
21583 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
21584
21585         [BZ #13973]
21586         * locale/iso-639.def: Fix gl language name. Spotted by
21587         Yaron Shahrabani.
21588
21589 2012-04-12  Roland McGrath  <roland@hack.frob.com>
21590
21591         [BZ #2074]
21592         * libio/libio.h (__io_write_fn): Update comment.
21593
21594 2012-04-12  Petr Baudis  <pasky@ucw.cz>
21595
21596         [BZ #2074]
21597         * stdio.texi (Hook Functions): The user provided writer function
21598         is not allowed to return -1.
21599
21600 2012-04-11  David S. Miller  <davem@davemloft.net>
21601
21602         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21603
21604 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
21605
21606         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
21607         Add a leading slash to rtkaio.
21608
21609 2012-04-11  Jim Meyering  <meyering@redhat.com>
21610
21611         [BZ #11959]
21612         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
21613         It is not necessarily an error to ignore fwrite's return
21614         value.  One can reliably use ferror to test for errors after
21615         the fact.
21616
21617 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
21618
21619         * bits/types.h (__snseconds_t): New type.
21620         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
21621
21622         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
21623         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
21624         (__SNSECONDS_T_TYPE): Likewise.
21625         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
21626         (__SNSECONDS_T_TYPE): Likewise.
21627         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
21628         (__SNSECONDS_T_TYPE): Likewise.
21629
21630 2012-04-10  Andreas Jaeger  <aj@suse.de>
21631
21632         [BZ #2636]
21633         * manual/time.texi (Processor Time): Return type of times is
21634         elapsed real time since an arbitrary point in the past.
21635         (CPU Time): Move CLK_TCK from here...
21636         (Processor Time): ...to here.  Correct description.
21637         * manual/conf.texi (Constants for Sysconf): Correct description of
21638         _SC_CLK_TCK.
21639
21640 2012-04-10  David S. Miller  <davem@davemloft.net>
21641
21642         [BZ #13967]
21643         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
21644         where the is a gap between DT_REL(A) and DT_JMPREL.
21645
21646 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
21647
21648         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
21649         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
21650         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
21651
21652 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
21653
21654         * elf/dl-support.c (_dl_inhibit_cache): New variable.
21655         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
21656         (dl_main): Handle --inhibit-cache.
21657         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
21658         _dl_inhibit_cache.
21659         * elf/dl-load.c (_dl_map_object): Use it.
21660         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
21661
21662 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
21663
21664         [BZ #13872]
21665         * sysdeps/i386/fpu/e_powl.S (p78): New object.
21666         (__ieee754_powl): Saturate large exponents rather than testing for
21667         overflow of y*log2(x).
21668         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
21669         * math/libm-test.inc (pow_test): Do not permit spurious overflow
21670         exceptions.
21671
21672         [BZ #11521]
21673         * math/s_ctan.c: Include <float.h>.
21674         (__ctan): Avoid internal overflow or cancellation in calculating
21675         denominator.
21676         * math/s_ctanf.c: Likewise.
21677         * math/s_ctanl.c: Likewise.
21678         * math/s_ctanh.c: Likewise.
21679         * math/s_ctanhf.c: Likewise.
21680         * math/s_ctanhl.c: Likewise.
21681         * math/libm-test.inc (ctan_test): Add more tests.
21682         (ctanh_test): Likewise.
21683         * sysdeps/i386/fpu/libm-test-ulps: Update.
21684         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21685
21686 2012-04-09  Andreas Jaeger  <aj@suse.de>
21687
21688         [BZ #6894]
21689         * manual/filesys.texi (Directory Entries): Mention that d_namlen
21690         is an optional BSD extension.
21691
21692         [BZ #10254]
21693         * manual/stdio.texi (Opening Streams): Document additional fopen
21694         parameters.
21695
21696 2012-04-09  Roland McGrath  <roland@hack.frob.com>
21697
21698         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
21699         %eax without telling the compiler.
21700
21701 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
21702
21703         [BZ # 13963]
21704         * manual/install.texi: Use sourceware.org.
21705
21706 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
21707
21708         [BZ #13873]
21709         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
21710         (__ieee754_pow): Generate overflow and underflow using huge*huge
21711         and tiny*tiny rather than just returning constant infinity or zero
21712         for large exponents.
21713         * math/libm-test.inc (pow_test): Require overflow exceptions for
21714         applicable cases of large exponents.
21715
21716         [BZ #706]
21717         * sysdeps/i386/fpu/e_pow.S (p10): New object.
21718         (__ieee754_pow): Use iterative multiplication algorithm only for
21719         integer exponents with absolute value below 1024.  Check for odd
21720         integer exponents when using algorithm for real exponents.
21721         * math/libm-test.inc (pow_test): Add more tests.
21722         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
21723
21724 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
21725
21726         [BZ #13705]
21727         * math/libm-test.inc (exp_test): Do not allow overflow exception
21728         on underflow test.
21729
21730 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
21731
21732         [BZ #13705]
21733         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
21734         instead of __kernel_standard_f.
21735
21736 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
21737
21738         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
21739         * sysdeps/x86_64/memset_chk.S: Likewise.
21740
21741 2012-04-08  Andreas Jaeger  <aj@suse.de>
21742
21743         [BZ #10153]
21744         * manual/startup.texi (Environment Access): Describe return value
21745         for putenv and setenv.
21746
21747         [BZ #6895]
21748         * manual/filesys.texi (Directory Entries): Add description for
21749         DT_LNK.
21750
21751         [BZ #6890]
21752         * manual/filesys.texi (Directory Entries): Clarify that it's file
21753         system not operating system in the description of DT_UNKNOWN.
21754
21755         [BZ #6578]
21756         * manual/syslog.texi (closelog): Fix reference, it's openlog.
21757
21758 2012-04-08  Stephen Compall  <s11@member.fsf.org>
21759
21760         [BZ #6649]
21761         * manual/llio.texi (Opening and Closing Files): Add cross
21762         reference to explain mode argument.
21763
21764 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
21765
21766         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
21767         * sysdeps/x86_64/memset_chk.S: Likewise.
21768
21769 2012-04-07  David S. Miller  <davem@davemloft.net>
21770
21771         * elf/elf.h (R_SPARC_WDISP10): Define.
21772         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
21773         R_SPARC_SIZE32.
21774         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
21775         R_SPARC_SIZE64 and R_SPARC_H34.
21776
21777 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
21778
21779         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
21780         conditions and remove no longer applicable assertion.
21781
21782 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
21783
21784         * bits/byteswap.h: Include <features.h>.
21785         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
21786         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
21787
21788 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
21789
21790         * bits/byteswap.h (__bswap_16): Removed.
21791         Include <bits/byteswap-16.h> to get __bswap_16.
21792         * sysdeps/i386/bits/byteswap.h: Likewise.
21793         * sysdeps/s390/bits/byteswap.h: Likewise.
21794         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21795         * bits/byteswap-16.h: New file.
21796         * sysdeps/i386/bits/byteswap-16.h: Likewise.
21797         * sysdeps/s390/bits/byteswap-16.h: Likewise.
21798         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
21799         * string/Makefile (headers): Add bits/byteswap-16.h.
21800
21801 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
21802
21803         [BZ #13895]
21804         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
21805         extra indirection.
21806         * nss/Makefile (tests-static, tests): Add tst-nss-static.
21807         * nss/tst-nss-static.c: New.
21808
21809 2012-04-06  Robert Millan  <rmh@gnu.org>
21810
21811         [BZ #6486]
21812         * manual/llio.texi (File Position Primitive): lseek
21813         refers to WHENCE when it really means OFFSET.
21814
21815 2012-04-06  Andreas Jaeger  <aj@suse.de>
21816
21817         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
21818         strncmp declarations.
21819
21820         * abilist/libc.abilist: Add __poll and __ppoll.
21821
21822 2012-04-05  David S. Miller  <davem@davemloft.net>
21823
21824         * scripts/check-local-headers.sh: Accept a host triplet in the
21825         path matched by the exclude regexp.
21826
21827         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
21828         definition.
21829         * sysdeps/powerpc/powerpc32/dl-machine.h
21830         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
21831         * sysdeps/s390/s390-32/dl-machine.h
21832         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
21833         * sysdeps/sparc/sparc32/dl-machine.h
21834         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
21835         * sysdeps/sparc/sparc64/dl-machine.h
21836         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
21837
21838         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
21839         lazy binding.
21840         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
21841         undefined symbol errors.
21842
21843         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
21844         DT_NEEDED entries.
21845
21846 2012-04-05  Michael Matz  <matz@suse.de>
21847
21848         [BZ #13592]
21849         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
21850
21851 2012-04-05  Andreas Jaeger  <aj@suse.de>
21852
21853         [BZ #13908]
21854         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
21855         comment.
21856
21857 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21858
21859         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
21860         which ROUND is no valid rounding mode.
21861
21862 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21863
21864         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
21865         read again.
21866         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
21867
21868 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21869
21870         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
21871         an exception using FPU order intentionally.
21872
21873 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
21874
21875         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
21876         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
21877         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
21878         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
21879
21880 2012-04-05  Simon Josefsson  <simon@josefsson.org>
21881
21882         [BZ #12340]
21883         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
21884         EINVAL when BUFLEN is too smal.
21885
21886 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
21887
21888         [BZ #13553]
21889         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
21890         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
21891
21892 2012-04-03  Andreas Jaeger  <aj@suse.de>
21893
21894         [BZ #13938]
21895         * manual/setjmp.texi (System V contexts): Fix sentence.
21896
21897         [BZ #13926]
21898         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
21899         New macro for this case.
21900         [!__GNUC__] (__bswap_64): New inline function for this case.
21901         * sysdeps/x86_64/bits/byteswap.h: Likewise.
21902         * bits/byteswap.h: Likewise.
21903         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
21904         ull, guard with __GLIBC_HAVE_LONG_LONG.
21905
21906         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
21907         __GLIBC_HAVE_LONG_LONG.
21908
21909         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
21910         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
21911
21912 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
21913
21914         [BZ #13691]
21915         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
21916         inptr and inend, rather than using last_ch.
21917
21918 2012-04-02  David S. Miller  <davem@davemloft.net>
21919
21920         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
21921         * stdio-common/printf-parse.h (read_int): Change return type to
21922         'int', return -1 on INT_MAX overflow.
21923         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
21924         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
21925         overflows INT_MAX.  Check for overflow of in-format-string precision
21926         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
21927         SIZE_MAX not INT_MAX for integer overflow test.
21928         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
21929         skip the construct in the format string but do not record anything.
21930         * stdio-common/bug22.c: Adjust to test both width/prevision
21931         INT_MAX overflow as well as total length INT_MAX overflow.  Check
21932         explicitly for proper errno values.
21933
21934 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
21935
21936         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
21937         CHAR_MAX.
21938         * string/test-strcmp.c [! WIDE]: Likewise.
21939         * time/tst-mktime2.c: Likewise for INT_MAX.
21940         * string/test-string.h: #include <sys/param.h> for MIN.
21941
21942         * csu/init-first.c (__libc_init_first): Call __ctype_init.
21943         * sysdeps/i386/init-first.c (init): Likewise.
21944         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
21945         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
21946         * sysdeps/sh/init-first.c (init): Likewise.
21947
21948 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
21949
21950         * po/ru.po: Update from translation team.
21951         * po/vi.po: Likewise.
21952
21953 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
21954
21955         * resolv/nss_dns/dns-host.c: Merge copyright years.
21956
21957 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21958
21959         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
21960         Optimize memcpy with prefetch if
21961         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
21962         src, dst pointers have unequal 16 byte alignments.
21963
21964 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
21965
21966         [BZ #13928]
21967         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
21968         from a CNAME entry and return the minimum ttl for the query.
21969         (gaih_getanswer_slice): Likewise.
21970
21971 2012-03-30  Jeff Law  <law@redhat.com>
21972
21973         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
21974         due to long keys.
21975         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
21976         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
21977
21978         * resolv/nss_dns/dns-host.c: Update copyright year.
21979
21980 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
21981
21982         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
21983         requests to save a system call.  Fix check that all bytes are sent.
21984
21985         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
21986         comments for sendmmsg.
21987
21988 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21989
21990         [BZ #13691]
21991         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
21992         with only 1 character between 0x0041 and 0x01b0.
21993         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
21994         * wcsmbs/tst-mbsnrtowcs.c: New file.
21995
21996 2012-03-29  David S. Miller  <davem@davemloft.net>
21997
21998         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
21999         small copies by hand.
22000
22001 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
22002
22003         [BZ #13761]
22004         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
22005         _nss_compat_initgroups_dyn): Fall back to malloc/free
22006         for large group memberships.
22007
22008 2012-03-28  David S. Miller  <davem@davemloft.net>
22009
22010         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
22011         that branches into memcpy.
22012         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
22013         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
22014         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
22015         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
22016         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
22017         bits.
22018         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
22019         implementation too.
22020         * sysdeps/sparc/mempcpy.S: New file.
22021
22022         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
22023         the IFUNC routine in the libc case.
22024         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
22025
22026         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
22027         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
22028         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
22029         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
22030         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
22031         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
22032         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
22033         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
22034
22035         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
22036         loop to 256 bytes instead of 64 bytes and fix test signedness.
22037
22038         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
22039         * sysdeps/sparc/sparc32/Makefile: rather than here...
22040         * sysdeps/sparc/sparc64/Makefile: and here.
22041
22042 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
22043
22044         * malloc/mallocbug.c: Avoid warnings about unused variables.
22045
22046 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
22047
22048         [BZ #13760]
22049         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
22050         in the right place. Discard and retry query if response is
22051         larger than input buffer size.
22052
22053 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
22054
22055         [BZ #369]
22056         [BZ #2678]
22057         [BZ #3866]
22058         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
22059         x for large integer exponent.
22060         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
22061         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
22062         sign of result as needed afterwards.
22063         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
22064         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
22065         result for underflowing pow the same as for overflow.
22066         (__kernel_standard_l): Handle powl overflow and underflow here
22067         rather than calling __kernel_standard.
22068         * math/libm-test.inc (pow_test): Add more tests.
22069
22070         [BZ #3868]
22071         [BZ #13879]
22072         [BZ #13910]
22073         [BZ #13911]
22074         [BZ #13912]
22075         [BZ #13913]
22076         [BZ #13915]
22077         [BZ #13916]
22078         [BZ #13917]
22079         [BZ #13918]
22080         [BZ #13919]
22081         [BZ #13920]
22082         [BZ #13921]
22083         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
22084         * sysdeps/ieee754/k_standard.c: Include <float.h>.
22085         (__kernel_standard_l): New function.
22086         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
22087         __kernel_standard.
22088         * math/w_acosl.c (__acosl): Likewise.
22089         * math/w_asinl.c (__asinl): Likewise.
22090         * math/w_atan2l.c (__atan2l): Likewise.
22091         * math/w_atanhl.c (__atanhl): Likewise.
22092         * math/w_coshl.c (__coshl): Likewise.
22093         * math/w_exp10l.c (__exp10l): Likewise.
22094         * math/w_exp2l.c (__exp2l): Likewise.
22095         * math/w_fmodl.c (__fmodl): Likewise.
22096         * math/w_hypotl.c (__hypotl): Likewise.
22097         * math/w_j0l.c (__j0l, __y0l): Likewise.
22098         * math/w_j1l.c (__j1l, __y1l): Likewise.
22099         * math/w_jnl.c (__jnl, __ynl): Likewise.
22100         * math/w_lgammal.c (__lgammal): Likewise.
22101         * math/w_log10l.c (__log10l): Likewise.
22102         * math/w_log2l.c (__log2l): Likewise.
22103         * math/w_logl.c (__logl): Likewise.
22104         * math/w_powl.c (__powl): Likewise.
22105         * math/w_remainderl.c (__remainderl): Likewise.
22106         * math/w_scalbl.c (sysv_scalbl): Likewise.
22107         * math/w_sinhl.c (__sinhl): Likewise.
22108         * math/w_sqrtl.c (__sqrtl): Likewise.
22109         * math/w_tgammal.c (__tgammal): Likewise.
22110         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
22111         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
22112         * math/libm-test.inc (acos_test): Add more tests.
22113         (acosh_test): Likewise.
22114         (asin_test): Likewise.
22115         (atanh_test): Likewise.
22116         (exp_test): Likewise.
22117         (exp10_test): Likewise.
22118         (exp2_test): Likewise.
22119         (expm1_test): Likewise.
22120         (lgamma_test): Likewise.
22121         (log_test): Likewise.
22122         (log10_test): Likewise.
22123         (log1p_test): Likewise.
22124         (log2_test): Likewise.
22125         (pow_test): Do not allow some spurious overflow exceptions.
22126         (sqrt_test): Add more tests.
22127         (tgamma_test): Likewise.
22128         (y0_test): Likewise.
22129         (y1_test): Likewise.
22130         (yn_test): Likewise.
22131
22132 2012-03-27  Anton Blanchard  <anton@samba.org>
22133
22134         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
22135         MAP_HUGETLB.
22136         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
22137         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
22138         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
22139
22140 2012-03-27  David S. Miller  <davem@davemloft.net>
22141
22142         * conform/Makefile: Run run-conformtest.sh using $(BASH).
22143
22144         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
22145         have-as-vis3 check.
22146
22147 2012-03-27  Andreas Jaeger  <aj@suse.de>
22148
22149         * sysdeps/x86_64/elf/configure.in: Moved to ...
22150         * sysdeps/x86_64/configure.in: ... here.
22151         * sysdeps/x86_64/elf/start.S: Moved to ...
22152         * sysdeps/x86_64/start.S: ... here.
22153         * sysdeps/x86_64/elf/configure: Delete.
22154
22155         * sysdeps/x86_64/configure.in: Merge contents from
22156         sysdeps/i386/configure.in (without i686 check).
22157
22158         * sysdeps/i386/elf/Versions: Merge into ...
22159         * sysdeps/i386/Versions: ... this.
22160         * sysdeps/i386/elf/Versions: Delete file.
22161         * sysdeps/i386/elf/start.S: Moved to ...
22162         * sysdeps/i386/start.S: ...here.
22163         * sysdeps/i386/elf/configure.in: Merge into...
22164         * sysdeps/i386/configure.in: ...here.
22165         * sysdeps/i386/elf/configure.in: Delete file.
22166         * sysdeps/i386/elf/configure: Delete file.
22167
22168         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
22169         * debug/backtracesyms.c: ... here.
22170         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
22171         * debug/backtracesymsfd.c: ... here.
22172         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
22173         * sysdeps/generic/ifunc-sel.h: ... here.
22174
22175         * sysdeps/unix/i386/start.c: Delete file.
22176         * sysdeps/unix/sparc/start.c: Delete file.
22177         * sysdeps/unix/start.c: Delete file.
22178
22179         * sysdeps/sh/elf/configure.in: Moved to ...
22180         * sysdeps/sh/configure.in: ... here.
22181         * sysdeps/sh/elf/start.S: Moved to ...
22182         * sysdeps/sh/start.S: ... here.
22183         * sysdeps/sh/elf/configure: Delete file.
22184
22185         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
22186         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
22187         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
22188         * sysdeps/powerpc/powerpc64/entry.h: ... here.
22189         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
22190         * sysdeps/powerpc/powerpc64/start.S: here.
22191         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
22192         * sysdeps/powerpc/powerpc64/Makefile: ... this.
22193         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
22194         * sysdeps/powerpc/powerpc64/configure.in: ... this.
22195         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
22196
22197         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
22198         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
22199         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
22200         * sysdeps/powerpc/powerpc32/start.S: ... here.
22201         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
22202         * sysdeps/powerpc/powerpc32/configure.in: ... this.
22203         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
22204
22205         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
22206         * sysdeps/powerpc/ifunc-sel.h: ... here.
22207         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
22208         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
22209
22210         * sysdeps/sparc/elf/configure.in: Moved to ...
22211         * sysdeps/sparc/configure.in: ... here.
22212         * sysdeps/sparc/elf/configure: Delete file.
22213         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
22214         * sysdeps/sparc/sparc32/start.S: ... here.
22215         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
22216         * sysdeps/sparc/sparc64/start.S: ... here.
22217         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
22218         * sysdeps/sparc/sparc32/Makefile: ... this.
22219         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
22220         * sysdeps/sparc/sparc64/Makefile: ... this.
22221
22222         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
22223         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
22224         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
22225         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
22226         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
22227         * sysdeps/s390/s390-32/setjmp.S: ... here.
22228         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
22229         * sysdeps/s390/s390-32/configure.in: ... here.
22230         * sysdeps/s390/s390-32/elf/configure: Delete file.
22231         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
22232         * sysdeps/s390/s390-32/start.S: ... here.
22233
22234         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
22235         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
22236         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
22237         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
22238         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
22239         * sysdeps/s390/s390-64/setjmp.S: ... here.
22240         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
22241         * sysdeps/s390/s390-64/configure.in: ... here
22242         * sysdeps/s390/s390-64/elf/configure: Delete file.
22243         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
22244         * sysdeps/s390/s390-64/start.S: ... here.
22245         * sysdeps/s390/s390-64/elf/configure: Delete.
22246
22247         * configure.in: Remove support for elf directories in sysdeps.
22248
22249         * configure: Regenerated.
22250         * sysdeps/i386/configure: Regenerated.
22251         * sysdeps/powerpc/powerpc32/configure: Regenerated.
22252         * sysdeps/powerpc/powerpc64/configure: Regenerated.
22253         * sysdeps/s390/s390-32/configure: Regenerated.
22254         * sysdeps/s390/s390-64/configure: Regenerated.
22255         * sysdeps/sh/configure: Regenerated.
22256         * sysdeps/sparc/configure: Regenerated.
22257         * sysdeps/x86_64/configure: Regenerated.
22258
22259 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
22260
22261         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22262
22263         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
22264         denormal result into account.
22265
22266 2012-03-25  Roland McGrath  <roland@hack.frob.com>
22267
22268         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
22269         Reported by Allan McRae <allan@archlinux.org>.
22270
22271 2012-03-23  Jeff Law  <law@redhat.com>
22272
22273         * nss/getnssent.c (__nss_getent): Fix typo.
22274
22275 2012-03-23  David S. Miller  <davem@davemloft.net>
22276
22277         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22278
22279 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
22280
22281         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
22282         to pad to uint64_t for each field.
22283         (dl_tls_index): Replace unsigned long with uint64_t.
22284
22285 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
22286         Paul Pluzhnikov  <ppluzhnikov@google.com>
22287
22288         [BZ #6528]
22289         * grp/Makefile (otherlibs): Don't set it.
22290         * inet/Makefile (otherlibs): Likewise.
22291         * login/Makefile (otherlibs): Likewise.
22292         * nscd/Makefile (otherlibs): Likewise.
22293         * posix/Makefile (otherlibs): Likewise.
22294         * pwd/Makefile (otherlibs): Likewise.
22295         * rt/Makefile (otherlibs): Likewise.
22296         * sunrpc/Makefile (otherlibs): Likewise.
22297         * nss/Makefile (otherlibs): Likewise.
22298         Add libnss_files to routines and static-only-routines.
22299         ($(objpfx)getent): Remove rule.
22300         * resolv/Makefile: Add libnss_dns and libresolv to routines and
22301         static-only-routines.
22302
22303 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
22304
22305         [BZ #13892]
22306         * math/s_cexp.c: Include <float.h>.
22307         (__cexp): Handle exp result overflowing not necessarily
22308         overflowing both real and imaginary parts of result.
22309         * math/s_cexpf.c: Likewise.
22310         * math/s_cexpl.c: Likewise.
22311         * math/libm-test.inc (cexp_test): Add more tests.
22312         * sysdeps/i386/fpu/libm-test-ulps: Update.
22313         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22314
22315 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
22316
22317         * include/link.h (ELFW): New macro.
22318         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
22319         Replace ELF64_R_TYPE with ELFW(R_TYPE).
22320
22321 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
22322
22323         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
22324         with uint64_t.
22325
22326 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
22327
22328         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
22329         declaration.
22330         (struct La_x32_retval): Likewise.
22331
22332 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
22333
22334         * sysdeps/x86_64/preconfigure.in: New file.
22335         * sysdeps/x86_64/preconfigure: New generated file.
22336
22337 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
22338
22339         [BZ #13824]
22340         * math/e_exp2l.c: Include <float.h>.
22341         (__ieee754_exp2l): Handle overflow and underflow cases
22342         separately.  Only pass fractional part of argument to
22343         __ieee754_expl.
22344         * math/libm-test.inc (exp2_test): Add more tests.
22345
22346         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
22347         negating x to take absolute value.
22348         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
22349         Likewise.
22350         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
22351         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
22352         Likewise.
22353         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
22354         computing low part if x was negated.
22355         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
22356
22357 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
22358
22359         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
22360         la_x32_gnu_pltexit.
22361         (pltexit): Cast int_retval to ptrdiff_t.
22362         * elf/tst-auditmod3b.c: Likewise.
22363         * elf/tst-auditmod4b.c: Likewise.
22364         * elf/tst-auditmod5b.c: Likewise.
22365         * elf/tst-auditmod6b.c: Likewise.
22366         * elf/tst-auditmod6c.c: Likewise.
22367         * elf/tst-auditmod7b.c: Likewise.
22368
22369         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
22370         and x32_gnu_pltexit.
22371
22372         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
22373         __ELF_NATIVE_CLASS.
22374         (La_x32_regs): New macro.
22375         (La_x32_retval): Likewise.
22376         (la_x32_gnu_pltenter): New function prototype.
22377         (la_x32_gnu_pltexit): Likewise.
22378
22379 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
22380
22381         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
22382         exponent.
22383
22384         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22385
22386         * configure.in (libc_cv_cc_nofma): Check for option to disable
22387         generation of FMA instructions.
22388         * configure: Regenerate.
22389         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
22390         * sysdeps/ieee754/dbl-64/Makefile: New file.
22391         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
22392         Remove brandred-fma4.
22393         (CFLAGS-brandred-fma4.c): Remove.
22394         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
22395         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
22396         define.
22397         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
22398         define.
22399
22400 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
22401
22402         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
22403         LLONG_MAX != LONG_MAX.
22404         (_itoa_word): Use _ITOA_WORD_TYPE on value.
22405         (_fitoa_word): Likewise.
22406         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
22407         LLONG_MAX != LONG_MAX.
22408         * stdio-common/_itowa.h: Include <_itoa.h>.
22409         (_itowa_word): Use _ITOA_WORD_TYPE on value.
22410         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
22411         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
22412         only if not defined.
22413         (_ITOA_WORD_TYPE): Likewise.
22414         (_itoa_word): Use _ITOA_WORD_TYPE on value.
22415         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
22416
22417 2012-03-21  David S. Miller  <davem@davemloft.net>
22418
22419         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22420
22421 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
22422
22423         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
22424         of x86_64 when setting libc_cv_slibdir, libdir and
22425         libc_cv_localedir.
22426         * sysdeps/unix/sysv/linux/configure: Regenerated.
22427
22428 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
22429
22430         * manual/lang.texi (Old Varargs): Remove section.
22431         (How Variadic): Update menu.
22432         (va_start): Do not mention varargs.h.
22433
22434 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
22435             Joseph Myers  <joseph@codesourcery.com>
22436
22437         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
22438         link test.
22439         * configure: Regenerated.
22440
22441 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
22442
22443         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
22444         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
22445         conformtest.pl
22446
22447 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
22448
22449         * NOTES: Remove.
22450         * Makefile (files-for-dist): Remove NOTES.
22451         (NOTES): Remove rule.
22452         * README: Don't refer to NOTES.
22453         * manual/creature.texi: Don't include macros.texi.
22454         * manual/intro.texi (creature.texi): Remove comment referring to
22455         NOTES.
22456
22457         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
22458         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
22459         * configure: Regenerated.
22460         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
22461         LIBC_TRY_CC_OPTION.
22462         (libc_cv_as_i686): Likewise.
22463         (libc_cv_cc_avx): Likewise.
22464         (libc_cv_cc_sse2avx): Likewise.
22465         (libc_cv_cc_fma4): Likewise.
22466         (libc_cv_cc_novzeroupper): Likewise.
22467         * sysdeps/i386/configure: Regenerated.
22468
22469         [BZ #13883]
22470         * sysdeps/i386/fpu/s_cexp.S: Remove.
22471         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
22472         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
22473         * math/libm-test.inc (cexp_test): Add more tests.
22474         * sysdeps/i386/fpu/libm-test-ulps: Update.
22475         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22476
22477 2012-03-21  Allan McRae  <allan@archlinux.org>
22478
22479         * timezone/Makefile: Do not install iso3166.tab and zone.tab
22480
22481 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
22482
22483         [BZ #13871]
22484         * math/w_exp2.c: Do not include <float.h>.
22485         (o_threshold, u_threshold): Remove.
22486         (__exp2): Calculate result before checking finiteness and calling
22487         __kernel_standard.
22488         * math/w_exp2f.c: Likewise.
22489         * math/w_exp2l.c: Likewise.
22490         * math/libm-test.inc (exp2_test): Require overflow exception for
22491         1e6 input.
22492
22493         [BZ #3866]
22494         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
22495         range of signed 64-bit integers before using fistpll.  Remove
22496         checks for whether integers fit in mantissa bits.
22497         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
22498         the range of signed 32-bit integers before using fistpl.  Remove
22499         checks for whether integers fit in mantissa bits.
22500         * sysdeps/i386/fpu/e_powl.S (p64): New object.
22501         (__ieee754_powl): Test for y outside the range of signed 64-bit
22502         integers before using fistpll.  Reduce 64-bit values to 63-bit
22503         ones as needed.
22504         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
22505         divide-by-zero is raised for zero to large negative powers.
22506         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
22507         (__ieee754_powl): Test for y outside the range of signed 64-bit
22508         integers before using fistpll.  Reduce 64-bit values to 63-bit
22509         ones as needed.
22510         * math/libm-test.inc (pow_test): Add more tests.
22511
22512 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
22513
22514         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
22515         <stdio-common/_itoa.h>.
22516         * debug/segfault.c: Likewise.
22517         * elf/dl-cache.c: Likewise.
22518         * elf/dl-minimal.c: Likewise.
22519         * elf/dl-misc.c: Likewise.
22520         * elf/dl-sysdep.c: Likewise.
22521         * elf/dl-version.c: Likewise.
22522         * elf/rtld.c: Likewise.
22523         * hurd/hurdsock.c: Likewise.
22524         * hurd/lookup-retry.c: Likewise.
22525         * malloc/malloc.c: Likewise.
22526         * malloc/mtrace.c: Likewise.
22527         * nscd/nscd_getgr_r.c: Likewise.
22528         * nscd/nscd_getpw_r.c: Likewise.
22529         * nscd/nscd_getserv_r.c: Likewise.
22530         * posix/getopt_init.c: Likewise.
22531         * posix/wordexp.c: Likewise.
22532         * stdio-common/_itoa.c: Likewise.
22533         * stdio-common/printf_fphex.c: Likewise.
22534         * stdio-common/vfprintf.c: Likewise.
22535         * string/_strerror.c: Likewise.
22536         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
22537         * sysdeps/i386/i686/hp-timing.h: Likewise.
22538         * sysdeps/mach/_strerror.c: Likewise.
22539         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
22540         * sysdeps/mach/hurd/sethostid.c: Likewise.
22541         * sysdeps/mach/hurd/xmknodat.c: Likewise.
22542         * sysdeps/mach/xpg-strerror.c: Likewise.
22543         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
22544         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
22545         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
22546         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
22547         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
22548         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
22549         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
22550         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
22551         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
22552         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
22553         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
22554         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
22555         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
22556         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
22557         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
22558         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
22559         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
22560         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
22561         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
22562         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
22563         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
22564
22565         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
22566
22567         * stdio-common/_itoa.h: Moved to ...
22568         * sysdeps/generic/_itoa.h: Here.
22569
22570         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
22571
22572         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
22573         instead of "_itoa.h" and "_itowa.h".
22574         * stdio-common/vfprintf.: Likewise.
22575
22576 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
22577
22578         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
22579         <bits/wordsize.h>.
22580         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
22581         (__signbit): Likwise.
22582         (llrintf): Likwise.
22583         (llrint): Likwise.
22584
22585 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
22586
22587         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
22588         __WORDSIZE != 64.
22589
22590 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
22591
22592         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
22593         OVERFLOW_EXCEPTION_OK.
22594         * math/libm-test.inc ("Philosophy"): Update comment about
22595         exception testing.
22596         (OVERFLOW_EXCEPTION): Define.
22597         (OVERFLOW_EXCEPTION_OK): Likewise.
22598         (INVALID_EXCEPTION_OK): Renumber.
22599         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
22600         (IGNORE_ZERO_INF_SIGN): Likewise.
22601         (test_exceptions): Handle FE_OVERFLOW.
22602         (exp10_test): Expect overflow exceptions.
22603         (exp2_test): Likewise.
22604         (expm1_test): Likewise.
22605         (nextafter_test): Likewise.
22606         (pow_test): Likewise.
22607         (scalbn_test): Likewise.
22608         (scalbln_test): Likewise.
22609
22610 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
22611
22612         * sysdeps/x86_64/bits/atomic.h
22613         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
22614         64bit integer.
22615         (atomic_exchange_acq): Likewise.
22616         (__arch_exchange_and_add_body): Likewise.
22617         (__arch_add_body): Likewise.
22618         (atomic_add_negative): Likewise.
22619         (atomic_add_zero): Likewise.
22620
22621 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
22622
22623         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
22624         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
22625
22626 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
22627
22628         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
22629         Check __x86_64__ instead of __WORDSIZE.
22630
22631 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
22632
22633         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
22634
22635 2012-03-19  David S. Miller  <davem@davemloft.net>
22636
22637         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22638
22639         * sysdeps/sparc/fpu/fenv_private.h: New file.
22640         * sysdeps/sparc/fpu/math_private.h: Use it.
22641         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
22642         Remove.
22643         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
22644         (libc_feholdexcept_setroundl): Remove.
22645         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
22646         Remove.
22647         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
22648         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
22649
22650 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
22651
22652         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
22653         int64_t instead of long int.
22654         (INSERT_WORDS64): Likwise.
22655
22656 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
22657
22658         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
22659         _Unwind_GetCFA return to _Unwind_Ptr first.
22660
22661 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
22662
22663         [BZ #13629]
22664         * math/s_clog.c: Include <float.h>.
22665         (__clog): Scale large or subnormal inputs.
22666         * math/s_clogf.c: Likewise.
22667         * math/s_clogl.c: Likewise.
22668         * math/s_clog10.c: Include <float.h>.
22669         (M_LOG10_2): Define.
22670         (__clog10): Scale large or subnormal inputs.
22671         * math/s_clog10f.c: Likewise.
22672         * math/s_clog10l.c: Likewise.
22673         * math/libm-test.inc (clog_test): Add more tests.
22674         (clog10_test): Likewise.
22675         * sysdeps/i386/fpu/libm-test-ulps: Update.
22676         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22677
22678         [BZ #11451]
22679         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
22680         x and y.
22681         * math/libm-test.inc (atan2_test): Add another test.
22682
22683         * Makerules (common-objdir-compile): Remove.
22684         * sysdeps/unix/Makefile (config-generated): Do not add
22685         $(unix-generated) to variable.
22686         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
22687         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
22688         Remove rule.
22689         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
22690         Likewise.
22691         [generic bits/local_lim.h] (before-compile): Do not append to
22692         variable.
22693         [generic bits/local_lim.h] (common-generated): Likewise.
22694         [generic sys/param.h] (before-compile): Do not append to variable.
22695         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
22696         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
22697         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
22698         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
22699         include.
22700         [generic sys/param.h] (sys/param.h-includes): Remove variable.
22701         [generic sys/param.h] (sys/param.h-includes): Remove rule.
22702         [generic sys/param.h] ($(addprefix
22703         $(common-objpfx),$(sys/param.h-includes))): Likewise.
22704         [generic sys/param.h] (common-generated): Do not append to
22705         variable.
22706         [generic sys/param.h] (sysdep_headers): Likewise.
22707         [generic bits/errno.h] (before-compile): Do not append to
22708         variable.
22709         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
22710         rule.
22711         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
22712         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
22713         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
22714         [generic bits/errno.h] (common-generated): Do not append to
22715         variable.
22716         [generic bits/ioctls.h] (before-compile): Do not append to
22717         variable.
22718         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
22719         rule.
22720         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
22721         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
22722         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
22723         rule.
22724         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
22725         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
22726         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
22727         [generic bits/ioctls.h] (common-generated): Do not append to
22728         variable.
22729         [generic sys/syscall.h] (syscall.h): Remove variable.
22730         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
22731         rule.
22732         [generic sys/syscall.h] (before-compile): Do not append to
22733         variable.
22734         [generic sys/syscall.h] (common-generated): Likewise.
22735         * sysdeps/unix/errnos-tmpl.c: Remove file.
22736         * sysdeps/unix/errnos.awk: Likewise.
22737         * sysdeps/unix/ioctls-tmpl.c: Likewise.
22738         * sysdeps/unix/ioctls.awk: Likewise.
22739         * sysdeps/unix/mk-local_lim.c: Likewise.
22740         * sysdeps/unix/snarf-ioctls: Likewise.
22741
22742 2012-03-19  Richard Henderson  <rth@twiddle.net>
22743
22744         * sysdeps/i386/fpu/fenv_private.h: New file.
22745         * sysdeps/i386/fpu/math_private.h: Use it.
22746         (math_opt_barrier, math_force_eval): Remove.
22747         (libc_feholdexcept_setround_53bit): Remove.
22748         (libc_feupdateenv_53bit): Remove.
22749         * sysdeps/x86_64/fpu/math_private.h: Likewise.
22750         (math_opt_barrier, math_force_eval): Remove.
22751         (libc_feholdexcept): Remove.
22752         (libc_feholdexcept_setround): Remove.
22753         (libc_fetestexcept, libc_fesetenv): Remove.
22754         (libc_feupdateenv_test): Remove.
22755         (libc_feupdateenv, libc_feholdsetround): Remove.
22756         (libc_feresetround): Remove.
22757
22758         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
22759         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
22760
22761         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
22762         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
22763         (libc_feupdateenv_testl): New.
22764         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
22765         (libc_feupdateenv_testf): New.
22766         (libc_feupdateenv): Use libc_feupdateenv_test.
22767         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
22768         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
22769
22770         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
22771         (libc_feholdsetroundf, libc_feholdsetroundl): New.
22772         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
22773         (libc_feresetround_noex): New.
22774         (libc_feresetround_noexf): New.
22775         (libc_feresetround_noexl): New.
22776         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
22777         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
22778         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
22779         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
22780         SET_RESTORE_ROUND.
22781         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
22782         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
22783         (__cos): Likewise.
22784         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
22785         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
22786         SET_RESTORE_ROUND_NOEX.
22787         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
22788         SET_RESTORE_ROUND_NOEXF.
22789         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
22790         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
22791         (libc_feholdsetroundf): New.
22792         (libc_feresetround, libc_feresetroundf): New.
22793
22794         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
22795         (libc_feholdexcept_setround_53bit): Convert from macro to function.
22796         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
22797
22798         * sysdeps/generic/math_private.h: Include <fenv.h>.
22799         (default_libc_feholdexcept): New.
22800         (default_libc_feholdexcept_setround): New.
22801         (default_libc_fesetenv, default_libc_feupdateenv): New.
22802         (libc_feholdexcept): Only define if undefined.
22803         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
22804         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
22805         (libc_feholdexcept_setroundl): Likewise.
22806         (libc_feholdexcept_setround_53bit): Likewise.
22807         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
22808         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
22809         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
22810         (libc_feupdateenv_53bit): Likewise.
22811         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
22812         (libc_feholdexcept): Convert from macro to inline function.
22813         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
22814         (libc_fesetenv, libc_feupdateenv): Likewise.
22815
22816         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
22817         not previously defined.
22818         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
22819         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
22820         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
22821         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
22822         * sysdeps/ieee754/flt-32/math_private.h: New file.
22823         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
22824         math_private.h below SET_FLOAT_WORD.
22825         (__isnan, __isinf_ns, __finite): Remove.
22826         (__isnanf, __isinf_nsf, __finitef): Remove.
22827
22828 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
22829
22830         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22831
22832 2012-03-17  David S. Miller  <davem@davemloft.net>
22833
22834         [BZ #6471]
22835         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
22836         for 2.16.
22837
22838 2012-03-16  David S. Miller  <davem@davemloft.net>
22839
22840         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
22841         warnings.
22842
22843         [BZ #6471]
22844         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
22845         properly.
22846         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
22847         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
22848         sysdep_routines when subdir is sysvipc.
22849         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
22850         __getshmlba helper.
22851
22852         * sysdeps/sparc/fpu/libm-test/ulps: Update.
22853
22854 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22855
22856         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
22857         [__LP64__].
22858
22859 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22860
22861         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
22862         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
22863         (__lround): Renamed to ...
22864         (__llround): This.  Replace long int with long long int.
22865         Define lround functions as aliases of llround functions.
22866         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
22867
22868 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22869
22870         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
22871         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
22872         adresses to uintptr_t.  Replace "long int" and "unsigned long
22873         int" with "greg_t" on va_arg.
22874
22875 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22876
22877         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
22878         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
22879
22880         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
22881         Move e_machine check before EI_CLASS check.  Handle x32
22882         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
22883         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
22884         SKIP_EM_IA_64 and include
22885         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
22886
22887         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
22888         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
22889         (add_system_dir): New macro.
22890
22891         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
22892         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
22893
22894 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
22895
22896         [BZ #2551]
22897         [BZ #2552]
22898         [BZ #2553]
22899         [BZ #2554]
22900         [BZ #2562]
22901         [BZ #2563]
22902         [BZ #2565]
22903         [BZ #2566]
22904         [BZ #2576]
22905         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
22906         (y0): Likewise.
22907         * math/w_j0f.c (j0f): Likewise.
22908         (y0f): Likewise.
22909         * math/w_j0l.c (__j0l): Likewise.
22910         (__y0l): Likewise.
22911         * math/w_j1.c (j1): Likewise.
22912         (y1): Likewise.
22913         * math/w_j1f.c (j1f): Likewise.
22914         (y1f): Likewise.
22915         * math/w_j1l.c (__j1l): Likewise.
22916         (__y1l): Likewise.
22917         * math/w_jn.c (jn): Likewise.
22918         (yn): Likewise.
22919         * math/w_jnf.c (jnf): Likewise.
22920         (ynf): Likewise.
22921         * math/w_jnl.c (__jnl): Likewise.
22922         (__ynl): Likewise.
22923         * math/libm-test.inc (j0_test): Add more tests.
22924         (j1_test): Likewise.
22925         (jn_test): Likewise.  Add trailing semicolon to existing test.
22926         (y0_test): Likewise.
22927         (y1_test): Likewise.
22928         * sysdeps/i386/fpu/libm-test-ulps: Update.
22929         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22930
22931         [BZ #13851]
22932         [BZ #13854]
22933         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
22934         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
22935         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
22936         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
22937         (__tanl): Set errno for infinite argument.
22938         * sysdeps/i386/fpu/mptan.c: Remove.
22939         * sysdeps/i386/fpu/s_tan.S: Likewise.
22940         * sysdeps/i386/fpu/s_tanl.S: Likewise.
22941         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
22942         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
22943         * math/libm-test.inc (tan_test): Add more tests and enable more
22944         tests for double and long double.
22945         * sysdeps/i386/fpu/libm-test-ulps: Update.
22946         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22947
22948 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
22949
22950         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
22951         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
22952
22953 2012-03-16  Roland McGrath  <roland@hack.frob.com>
22954
22955         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
22956         * configure.in: Use it for both main tree and add-ons.
22957         * configure: Regenerated.
22958
22959 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22960
22961         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
22962
22963 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
22964
22965         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
22966         in comment.
22967
22968         [BZ #13851]
22969         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
22970         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
22971         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
22972         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
22973         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
22974         infinite argument.
22975         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
22976         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
22977         != 0 for prec == 2.
22978         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
22979         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
22980         * sysdeps/i386/fpu/s_cosl.S: Likewise.
22981         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
22982         * sysdeps/i386/fpu/s_sinl.S: Likewise.
22983         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
22984         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
22985         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
22986         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
22987         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
22988         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
22989         * math/libm-test.inc (cos_test): Add more tests and enable more
22990         tests for long double.
22991         (sin_test): Likewise.
22992         (sincos_test): Likewise.
22993         * sysdeps/i386/fpu/libm-test-ulps: Update.
22994         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22995
22996 2012-03-16  David S. Miller  <davem@davemloft.net>
22997
22998         * sysdeps/sparc/fpu/math_private.h: New file.
22999
23000 2012-03-15  David S. Miller  <davem@davemloft.net>
23001
23002         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
23003         file.
23004         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
23005         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
23006         file.
23007         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
23008         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
23009         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
23010         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
23011         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
23012         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
23013         sysdep routines.
23014         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
23015
23016         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
23017         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
23018
23019         * sysdeps/sparc/sparc-ifunc.h: New file.
23020         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
23021         sparc-ifunc.h
23022         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
23023         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
23024         Likewise.
23025         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
23026         Likewise.
23027         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
23028         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
23029         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
23030         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
23031         Likewise.
23032         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
23033         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
23034         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
23035         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
23036         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
23037         Likewise.
23038         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
23039         Likewise.
23040         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
23041         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
23042         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
23043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
23044         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
23045         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
23046         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
23047         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
23048         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
23049         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
23050         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
23051         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
23052         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
23053         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
23054         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
23055         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
23056         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
23057         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
23058         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
23059         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
23060         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
23061         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
23062         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
23063         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
23064
23065 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
23066
23067         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
23068         scaling.
23069         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23070
23071 2012-03-15  Andreas Jaeger  <aj@suse.de>
23072
23073         [BZ #13852]
23074         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
23075         ieee754/flt-32 implementation for sin, cos and sincos.
23076         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
23077         * sysdeps/i386/fpu/s_cosf.S: Likewise.
23078         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
23079         * sysdeps/i386/fpu/s_sinf.S: Likewise.
23080         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
23081         ieee754/flt-32 implementation for tan.
23082
23083         * math/libm-test.inc (cos_test): Enable some large input tests for
23084         float as well
23085         (sin_test): Likewise.
23086         (sincos_test): Likewise.
23087         (tan_test): Add tests for large input.
23088
23089         * sysdeps/i386/fpu/libm-test-ulps: Update.
23090
23091 2012-03-15  Andreas Jaeger  <aj@suse.de>
23092
23093         [BZ #13658]
23094         * math/libm-test.inc (cos_test): Add more test cases.
23095         (sin_test): Likewise.
23096         (sincos_test): Likewise.
23097
23098 2012-03-15  Andreas Jaeger  <aj@suse.de>
23099
23100         [BZ #13837]
23101         * math/libm-test.inc (cos_test): Add a test case for large input
23102         value.
23103         (sin_test): Likewise.
23104         (sincos_test): Likewise.
23105
23106 2012-03-15  Andreas Jaeger  <aj@suse.de>,
23107         Joseph Myers  <joseph@codesourcery.com>
23108
23109         [BZ #13658]
23110         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
23111         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
23112         * sysdeps/i386/fpu/branred.c: Likewise.
23113         * sysdeps/i386/fpu/dosincos.c: Likewise.
23114         * sysdeps/i386/fpu/mpa.c: Likewise.
23115         * sysdeps/i386/fpu/s_cos.S: Likewise.
23116         * sysdeps/i386/fpu/s_sin.S: Likewise.
23117         * sysdeps/i386/fpu/s_sincos.S: Likewise.
23118         * sysdeps/i386/fpu/sincos32.c: Likewise.
23119
23120         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
23121         Define.
23122         (libc_feupdateenv_53bit): Define.
23123         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
23124         Define.
23125         (libc_feupdateenv_53bit): Define.
23126
23127         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
23128         53 bit (without extend i386 double precision).
23129
23130         * math/libm-test.inc (sincos_test): Add tests for large input.
23131         (sin): Likewise.
23132         (cos): Likewise.
23133
23134         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
23135
23136 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
23137
23138         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23139
23140 2012-03-15  David S. Miller  <davem@davemloft.net>
23141
23142         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
23143         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
23144         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
23145         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
23146         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
23147         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
23148         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
23149         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
23150         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
23151         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
23152         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
23153         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
23154         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
23155         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
23156         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
23157         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
23158         file.
23159         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
23160         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
23161         file.
23162         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
23163         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
23164         file.
23165         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
23166         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
23167         file.
23168         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
23169         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
23170         fmin/fmax sysdep routines.
23171         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
23172
23173 2012-03-14  David S. Miller  <davem@davemloft.net>
23174
23175         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
23176         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
23177         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
23178         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
23179         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
23180         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
23181         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
23182         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
23183         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
23184         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
23185         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
23186         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
23187         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
23188         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
23189         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
23190         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
23191         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
23192         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
23193         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
23194         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
23195         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
23196         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
23197         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
23198         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
23199         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
23200         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
23201         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
23202         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
23203         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
23204         routines.
23205         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
23206         file.
23207         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
23208         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
23209         file.
23210         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
23211         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
23212         file.
23213         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
23214         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
23215         file.
23216         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
23217         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
23218         file.
23219         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
23220         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
23221         file.
23222         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
23223         file.
23224         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
23225         file.
23226         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
23227         file.
23228         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
23229         New file.
23230         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
23231         file.
23232         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
23233         file.
23234         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
23235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
23236         file.
23237         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
23238         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
23239         file.
23240         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
23241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
23242         file.
23243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
23244         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
23245         VIS3 routines.
23246
23247         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
23248         New file.
23249
23250         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23251
23252         * sysdeps/sparc/configure.in: New file.
23253         * sysdeps/sparc/configure: Generate.
23254         * configure.in (libc_cv_sparc_as_vis3): Substitute.
23255         * configure: Regenerate.
23256         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
23257         * config.make.in (have-as-vis3): New.
23258         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
23259         available use -Av9d instead of -Av9a.
23260         * sysdeps/sparc/sparc64/Makefile: Likewise.
23261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
23262         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
23263         New file.
23264         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
23265         file.
23266         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
23267         New file.
23268         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
23269         file.
23270         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
23271         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
23272         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
23273         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
23274         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
23275
23276         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
23277         fzeros/fnegs to load 0x80000000 into a float register instead of
23278         using the stack.
23279         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
23280
23281 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
23282
23283         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23284         bits/syscall.h.
23285         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
23286         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
23287         ($(inst_includedir)/bits/syscall.h): Remove rule.
23288         ($(objpfx)bits/syscall.d): Include instead of
23289         $(objpfx)syscall-list.d.
23290         (generated): Change syscall-list.h and syscall-list.d to
23291         bits/syscall.h and bits/syscall.d.
23292
23293 2012-03-14  Roland McGrath  <roland@hack.frob.com>
23294
23295         [BZ #13846]
23296         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
23297
23298 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
23299
23300         [BZ #13841]
23301         * math/s_csqrt.c: Include <float.h>.
23302         (__csqrt): Scale large or subnormal inputs.
23303         * math/s_csqrtf.c: Likewise.
23304         * math/s_csqrtl.c: Likewise.
23305         * math/libm-test.inc (csqrt_test): Add more tests.
23306         * sysdeps/i386/fpu/libm-test-ulps: Update.
23307         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23308
23309         [BZ #13840]
23310         * math/libm-test.inc (hypot_test): Add more tests.
23311
23312 2012-03-13  David S. Miller  <davem@davemloft.net>
23313
23314         [BZ #13840]
23315         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
23316         double-precision for the calculation instead of scaling.
23317
23318 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
23319
23320         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
23321         manipulate bits before adding and subtracting TWO52[sx].
23322         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
23323         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
23324         Likewise.
23325         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
23326
23327 2012-03-13  David S. Miller  <davem@davemloft.net>
23328
23329         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
23330         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
23331         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
23332         rtld-global-offsets.h
23333         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23334
23335         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
23336         large parameters.
23337
23338         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
23339
23340         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
23341         'err' in the ifdef scope in which it is actually used.
23342
23343         * nss/nss_db/db-init.c: Include string.h
23344
23345 2012-03-12  David S. Miller  <davem@davemloft.net>
23346
23347         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
23348         masking out of the most significant byte of random value used.
23349         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
23350         Fix coding style in previous change.
23351
23352         * sysdeps/unix/sysv/linux/kernel-features.h
23353         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
23354         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
23355         expression.
23356         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
23357         later.
23358
23359 2012-03-11  David S. Miller  <davem@davemloft.net>
23360
23361         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
23362         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
23363         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
23364         for 'resultvar' otherwise things get truncated on 64-bit.
23365
23366         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
23367         Fix masking out of the most significant byte of random value used.
23368
23369         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23370
23371 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
23372
23373         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23374
23375 2012-03-09  David S. Miller  <davem@davemloft.net>
23376
23377         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
23378         variables with appropriate CPP guards.
23379         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
23380         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
23381         on resulting framesize and the management of the outregs buffer for pltexit.
23382         Preserve floating point return values across _dl_call_pltexit call.
23383         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
23384         framesize and the management of the outregs buffer for pltexit.
23385         Preserve floating point return values across _dl_call_pltexit
23386         call.
23387         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
23388         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
23389         (print_exit): Fix format string for return register value.
23390
23391 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
23392
23393         * sunrpc/Makefile (others): Add rpcgen.
23394         ($(objpfx)rpcgen): Remove special build rule and dependency on
23395         libc.
23396         * sunrpc/rpcgen.c: New file.
23397
23398 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
23399
23400         [BZ #13673]
23401         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
23402         * stdio-common/bug-vfprintf-nargs.c: Likewise.
23403         * sysdeps/i386/crti.S: Likewise.
23404         * sysdeps/i386/crtn.S: Likewise.
23405         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
23406         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
23407         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
23408         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
23409         * sysdeps/sh/crti.S: Likewise.
23410         * sysdeps/sh/crtn.S: Likewise.
23411         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
23412
23413         [BZ #13673]
23414         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
23415         with URL.
23416         * locale/programs/locfile-kw.gperf: Likewise.
23417         * locale/programs/charmap-kw.h: Regenerated.
23418         * locale/programs/locfile-kw.h: Likewise.
23419
23420         [BZ #13673]
23421         * intl/plural.y: Replace FSF snail mail address with URL.
23422         * intl/plural.c: Regenerated.
23423
23424 2012-03-09  Richard Henderson  <rth@twiddle.net>
23425
23426         * include/math_private.h: Remove file.
23427         * math/math_private.h: Move file ...
23428         * sysdeps/generic/math_private.h: ... here.
23429
23430         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
23431         * sysdeps/powerpc/fpu/math_private.h: Likewise.
23432         * sysdeps/x86_64/fpu/math_private.h: Likewise.
23433
23434         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
23435         and <math_private.h>.
23436         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
23437         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
23438         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
23439         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
23440         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
23441         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
23442         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
23443         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
23444         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
23445         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
23446         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
23447         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
23448         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
23449         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
23450         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
23451         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
23452         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
23453         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
23454         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
23455         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
23456         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
23457         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
23458         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
23459         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
23460         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
23461         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
23462         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
23463         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
23464         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
23465         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
23466         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
23467         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
23468         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
23469         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
23470         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
23471         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
23472         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
23473         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
23474         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
23475         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
23476         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
23477         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
23478         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
23479         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
23480         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
23481         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
23482         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
23483         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
23484         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
23485         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
23486         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
23487         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
23488         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
23489         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
23490         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
23491         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
23492         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
23493         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
23494         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
23495         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
23496         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
23497         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
23498         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
23499         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
23500         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
23501         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
23502         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
23503         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
23504         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
23505         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
23506         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
23507         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
23508         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
23509         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
23510         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
23511         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
23512         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
23513         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
23514         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
23515         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
23516         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
23517         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
23518         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
23519         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
23520         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
23521         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
23522         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
23523         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
23524         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
23525         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
23526         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
23527         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
23528         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
23529         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
23530         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
23531         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
23532         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
23533         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
23534         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
23535         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
23536         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
23537         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
23538         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
23539         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
23540         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
23541         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
23542         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
23543         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
23544         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
23545         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
23546         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
23547         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
23548         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
23549         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
23550         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
23551         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
23552         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
23553         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
23554         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
23555         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
23556         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
23557         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
23558         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
23559         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
23560         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
23561         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
23562         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
23563         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
23564         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
23565         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
23566         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
23567         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
23568         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
23569         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
23570         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
23571         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
23572         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
23573         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
23574         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
23575         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
23576         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
23577         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
23578         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
23579         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
23580         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
23581         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
23582         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
23583         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
23584         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
23585         * sysdeps/ieee754/k_standard.c: Likewise.
23586         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
23587         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
23588         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
23589         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
23590         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
23591         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
23592         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
23593         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
23594         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
23595         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
23596         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
23597         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
23598         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
23599         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
23600         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
23601         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
23602         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
23603         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
23604         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
23605         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
23606         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
23607         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
23608         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
23609         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
23610         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
23611         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
23612         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
23613         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
23614         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
23615         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
23616         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
23617         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
23618         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
23619         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
23620         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
23621         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
23622         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
23623         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
23624         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
23625         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
23626         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
23627         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
23628         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
23629         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
23630         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
23631         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
23632         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
23633         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
23634         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
23635         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
23636         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
23637         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
23638         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
23639         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
23640         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
23641         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
23642         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
23643         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
23644         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
23645         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
23646         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
23647         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
23648         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
23649         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
23650         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
23651         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
23652         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
23653         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
23654         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
23655         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
23656         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
23657         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
23658         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
23659         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
23660         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
23661         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
23662         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
23663         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
23664         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
23665         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
23666         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
23667         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
23668         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
23669         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
23670         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
23671         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
23672         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
23673         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
23674         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
23675         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
23676         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
23677         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
23678         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
23679         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
23680         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
23681         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
23682         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
23683         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
23684         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
23685         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
23686         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
23687         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
23688         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
23689         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
23690         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
23691         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
23692         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
23693         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
23694         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
23695         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
23696         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
23697         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
23698         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
23699         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
23700         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
23701         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
23702         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
23703         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
23704         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
23705         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
23706         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
23707         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
23708         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
23709         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
23710         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
23711         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
23712         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
23713         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
23714         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
23715         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
23716         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
23717         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
23718         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
23719         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
23720         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
23721         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
23722         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
23723         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
23724         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
23725         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
23726         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
23727         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
23728         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
23729         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
23730         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
23731         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
23732         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
23733         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
23734         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
23735         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
23736         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
23737         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
23738         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
23739         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
23740         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
23741         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
23742         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
23743         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
23744         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
23745         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
23746         * sysdeps/ieee754/s_lib_version.c: Likewise.
23747         * sysdeps/ieee754/s_matherr.c: Likewise.
23748         * sysdeps/ieee754/s_signgam.c: Likewise.
23749         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
23750         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
23751         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
23752         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
23753         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
23754         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
23755         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
23756         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
23757         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
23758         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
23759         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
23760         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
23761         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
23762         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
23763         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
23764         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
23765         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
23766         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
23767         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
23768         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
23769         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
23770
23771 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
23772
23773         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
23774         * sunrpc/rpc_main.c: Likewise.
23775         * sunrpc/rpc_svcout.c: Likewise.
23776
23777 2012-03-09  David S. Miller  <davem@davemloft.net>
23778
23779         * include/math_private.h: New file.
23780
23781 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
23782
23783         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
23784         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
23785         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
23786         from <bits/socket_type.h>.
23787         (enum __socket_type): Don't define here.
23788         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
23789         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23790         bits/socket_type.h.
23791
23792         [BZ #13566]
23793         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
23794         checking __USE_GNU.
23795
23796         * Makerules ($(inst_includedir)/%.h): New rule.
23797         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
23798         (install-others): Remove variable setting.
23799         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
23800
23801 2012-03-08  Richard Henderson  <rth@twiddle.net>
23802
23803         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
23804         from macro to inline function; merge with the
23805         !__LIBC_INTERNAL_MATH_INLINES version.
23806         (__ieee754_sqrtf): Likewise.
23807
23808         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
23809         to inline function.
23810         (__rintf, __floor, __floorf): Likewise.
23811
23812         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
23813         macro to inline function.
23814         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
23815
23816         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
23817         not <math/math_private.h>.
23818
23819 2012-03-08  David S. Miller  <davem@davemloft.net>
23820
23821         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
23822         copyright year.
23823         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
23824
23825 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
23826
23827         * resolv/gai_misc.c (handle_requests): Fix struct timespec
23828         normalization.
23829         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
23830         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
23831
23832 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
23833
23834         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
23835         be defined individually, they must be defined as a block.  Define
23836         S for printing a string instead of hidint the different by using a
23837         macro for adding the 'l'.
23838         * stdio-common/tst-fphex-wide.c: Adjust.
23839
23840 2012-03-07  Marek Polacek  <polacek@redhat.com>
23841
23842         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
23843
23844 2012-03-08  Marek Polacek  <polacek@redhat.com>
23845
23846         [BZ #13806]
23847         * stdio-common/Makefile (tests): Add tst-fphex-wide.
23848         * stdio-common/tst-fphex.c: Define a few macros to make the
23849         test reusable.  Use them.
23850         * stdio-common/tst-fphex-wide.c: New file.
23851
23852 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
23853
23854         [BZ #6911]
23855         * manual/macros.texi (gnusystems): New macro.
23856         (nongnusystems): Likewise.
23857         (gnulinuxhurdsystems): Likewise.
23858         (gnuhurdsystems): Likewise..
23859         (gnulinuxsystems): Likewise.
23860         * manual/charset.texi: Use new macros or @theglibc{} to refer to
23861         variants of the GNU system, not "GNU system".
23862         * manual/conf.texi: Likewise.
23863         * manual/errno.texi: Likewise.  Update example of errno macro
23864         expansion.
23865         * manual/filesys.texi: Likewise.
23866         (getumask): Document as specific to GNU/Hurd.
23867         * manual/install.texi: Likewise.  Reword some references to
23868         GNU/Linux.
23869         * manual/intro.texi: Likewise.
23870         * manual/io.texi: Likewise.
23871         (File Name Portability): Detail which constraints are inapplicable
23872         to all GNU systems and which are only inapplicable to GNU/Hurd.
23873         * manual/job.texi: Likewise.
23874         * manual/llio.texi: Likewise.
23875         (O_NOCTTY): Document as present on GNU/Linux.
23876         * manual/maint.texi: Likewise.
23877         * manual/memory.texi: Likewise.
23878         * manual/pattern.texi: Likewise.
23879         * manual/pipe.texi: Likewise.
23880         * manual/process.texi: Likewise.
23881         * manual/resource.texi: Likewise.
23882         (RUSAGE_CHILDREN): Remove statement about specifying a particular
23883         child on GNU/Hurd.
23884         * manual/setjmp.texi: Likewise.
23885         * manual/signal.texi: Likewise.
23886         * manual/startup.texi: Likewise.
23887         * manual/stdio.texi: Likewise.
23888         * manual/terminal.texi: Likewise.
23889         (ONLCR): Document as POSIX.
23890         (OXTABS): Document availability on GNU/Linux as XTABS.
23891         (ONOEOT): Document availability separately from other bits.
23892         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
23893         * manual/time.texi: Likewise.
23894         * manual/users.texi: Likewise.
23895         * INSTALL: Regenerated.
23896         * sysdeps/gnu/errlist.c: Regenerated.
23897
23898         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
23899         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
23900         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
23901         puts.
23902         * configure: Regenerated.
23903
23904 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
23905
23906         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
23907         default includes instead of AC_HEADER_CHECK.
23908         * sysdeps/i386/configure: Regenerated.
23909
23910         [BZ #10716]
23911         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
23912         * math/s_cacoshf.c (__cacoshf): Likewise.
23913         * math/s_cacoshl.c (__cacoshl): Likewise.
23914         * math/s_casinh.c (__casinh): Set signs of result from argument.
23915         * math/s_casinhf.c (__casinhf): Likewise.
23916         * math/s_casinhl.c (__casinhl): Likewise.
23917         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
23918         (casinh_test): Add more tests.
23919         * sysdeps/i386/fpu/libm-test-ulps: Update.
23920         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23921
23922 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
23923
23924         * po/zh_TW.po: Update from translation team.
23925
23926         * login/Makefile (distribute): Remove variable.
23927         * catgets/Makefile: Likewise.
23928         * mach/Makefile: Likewise.
23929         * malloc/Makefile: Likewise.
23930         * misc/Makefile: Likewise.
23931         * iconv/Makefile: Likewise.
23932         * nscd/Makefile: Likewise.
23933         * hurd/Makefile: Likewise.
23934         * manual/Makefile: Likewise.
23935         * locale/Makefile: Likewise.
23936         * intl/Makefile: Likewise.
23937         * conform/Makefile: Likewise.
23938         * nss/Makefile: Likewise.
23939         * time/Makefile: Likewise.
23940         * soft-fp/Makefile: Likewise.
23941         * dirent/Makefile: Likewise.
23942         * gmon/Makefile: Likewise.
23943         * po/Makefile: Likewise.
23944         * rt/Makefile: Likewise.
23945         * socket/Makefile: Likewise.
23946         * math/Makefile: Likewise.
23947         * signal/Makefile: Likewise.
23948         * debug/Makefile: Likewise.
23949         * elf/Makefile: Likewise.
23950         * timezone/Makefile: Likewise.
23951         * stdlib/Makefile: Likewise.
23952         * iconvdata/Makefile: Likewise.
23953         * sunrpc/Makefile: Likewise.
23954         * io/Makefile: Likewise.
23955         * argp/Makefile: Likewise.
23956         * inet/Makefile: Likewise.
23957         * hesiod/Makefile: Likewise.
23958         * grp/Makefile: Likewise.
23959         * csu/Makefile: Likewise.
23960         * wctype/Makefile: Likewise.
23961         * crypt/Makefile: Likewise.
23962         * libio/Makefile: Likewise.
23963         * string/Makefile: Likewise.
23964         * nis/Makefile: Likewise.
23965         * resolv/Makefile: Likewise.
23966         * stdio-common/Makefile: Likewise.
23967         * wcsmbs/Makefile: Likewise.
23968         * dlfcn/Makefile: Likewise.
23969         * posix/Makefile: Likewise.
23970
23971         [BZ #6959]
23972         * timezone/Makefile: Don't install timezone files, just the programs
23973         and scripts.
23974
23975 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
23976
23977         * nss/databases.def: Add missing gshadow entry.
23978
23979         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
23980
23981 2012-03-06  Marek Polacek  <polacek@redhat.com>
23982
23983         [BZ #13726]
23984         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
23985         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
23986         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
23987         * stdio-common/tst-long-dbl-fphex.c: New file.
23988
23989 2012-03-06  David S. Miller  <davem@davemloft.net>
23990
23991         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
23992         (set_obp_int): New function.
23993         (get_obp_int): New function.
23994         (__get_clockfreq_via_dev_openprom): Likewise.
23995         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
23996         Avoid unused variable warnings on 'val' and use builtin_expect.
23997         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
23998         __builtin_expect.
23999         (INLINE_CLONE_SYSCALL): Likewise.
24000
24001 2012-03-05  David S. Miller  <davem@davemloft.net>
24002
24003         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24004
24005 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
24006
24007         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24008
24009         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
24010         only for |x| >= 40.
24011         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
24012
24013 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
24014
24015         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
24016         Replace gettimeofday with __vdso_gettimeofday.
24017
24018         * sysdeps/unix/sysv/linux/x86_64/init-first.c
24019         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
24020         __vdso_clock_gettime and __vdso_getcpu.
24021
24022         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
24023         time with __vdso_time.
24024
24025 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
24026
24027         * manual/lang.texi (size_t): Note types to which size_t may be
24028         equivalent with the GNU C Library, but do not describe when
24029         differences between them are significant.
24030
24031 2012-03-05  Andreas Jaeger  <aj@suse.de>
24032
24033         * sysdeps/i386/fpu/libm-test-ulps: Update.
24034
24035 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
24036
24037         [BZ #3976]
24038         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
24039         (__ieee754_pow): Save and restore rounding mode and use
24040         round-to-nearest for main computations.
24041         * math/libm-test.inc (pow_test_tonearest): New function.
24042         (pow_test_towardzero): Likewise.
24043         (pow_test_downward): Likewise.
24044         (pow_test_upward): Likewise.
24045         (main): Call the new functions.
24046         * sysdeps/i386/fpu/libm-test-ulps: Update.
24047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24048
24049         [BZ #3976]
24050         * math/libm-test.inc (cosh_test_tonearest): New function.
24051         (cosh_test_towardzero): Likewise.
24052         (cosh_test_downward): Likewise.
24053         (cosh_test_upward): Likewise.
24054         (sinh_test_tonearest): Likewise.
24055         (sinh_test_towardzero): Likewise.
24056         (sinh_test_downward): Likewise.
24057         (sinh_test_upward): Likewise.
24058         (main): Call the new functions.
24059         * sysdeps/i386/fpu/libm-test-ulps: Update.
24060         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24061
24062 2012-03-05  Tom de Vries  <tom@codesourcery.com>
24063
24064         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
24065         default stack guard is set in last bytes.
24066         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
24067
24068 2012-03-05  Kees Cook  <keescook@chromium.org>
24069
24070         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
24071
24072         [BZ #13656]
24073         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
24074         possibly allocate from heap instead of stack.
24075         * stdio-common/bug-vfprintf-nargs.c: New file.
24076         * stdio-common/Makefile (tests): Add nargs overflow test.
24077
24078 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
24079
24080         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24081
24082 2012-03-03  Marek Polacek  <polacek@redhat.com>
24083
24084         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
24085         * math/math_private.h: Likewise.
24086         * stdlib/tst-strtod.c: Likewise.
24087         * sysdeps/i386/i486/bits/atomic.h: Likewise.
24088         * sysdeps/x86_64/bits/atomic.h: Likewise.
24089
24090 2012-03-02  David S. Miller  <davem@davemloft.net>
24091
24092         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
24093         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
24094         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
24095         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
24096         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
24097         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
24098         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
24099         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
24100
24101 2012-03-02  Roland McGrath  <roland@hack.frob.com>
24102
24103         [BZ #13792]
24104         * manual/examples/README: New file, says the example source files
24105         can be used under GPL>=2.
24106         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
24107         line containing just "*/".
24108         * manual/examples/add.c: Add copyright header (GPL>=2).
24109         * manual/examples/argp-ex1.c: Likewise.
24110         * manual/examples/argp-ex2.c: Likewise.
24111         * manual/examples/argp-ex3.c: Likewise.
24112         * manual/examples/argp-ex4.c: Likewise.
24113         * manual/examples/atexit.c: Likewise.
24114         * manual/examples/db.c: Likewise.
24115         * manual/examples/dir.c: Likewise.
24116         * manual/examples/dir2.c: Likewise.
24117         * manual/examples/execinfo.c: Likewise.
24118         * manual/examples/filecli.c: Likewise.
24119         * manual/examples/filesrv.c: Likewise.
24120         * manual/examples/fmtmsgexpl.c: Likewise.
24121         * manual/examples/genpass.c: Likewise.
24122         * manual/examples/inetcli.c: Likewise.
24123         * manual/examples/inetsrv.c: Likewise.
24124         * manual/examples/isockad.c: Likewise.
24125         * manual/examples/longopt.c: Likewise.
24126         * manual/examples/memopen.c: Likewise.
24127         * manual/examples/memstrm.c: Likewise.
24128         * manual/examples/mkfsock.c: Likewise.
24129         * manual/examples/mkisock.c: Likewise.
24130         * manual/examples/mygetpass.c: Likewise.
24131         * manual/examples/pipe.c: Likewise.
24132         * manual/examples/popen.c: Likewise.
24133         * manual/examples/rprintf.c: Likewise.
24134         * manual/examples/search.c: Likewise.
24135         * manual/examples/select.c: Likewise.
24136         * manual/examples/setjmp.c: Likewise.
24137         * manual/examples/sigh1.c: Likewise.
24138         * manual/examples/sigusr.c: Likewise.
24139         * manual/examples/stpcpy.c: Likewise.
24140         * manual/examples/strdupa.c: Likewise.
24141         * manual/examples/strftim.c: Likewise.
24142         * manual/examples/strncat.c: Likewise.
24143         * manual/examples/subopt.c: Likewise.
24144         * manual/examples/swapcontext.c: Likewise.
24145         * manual/examples/termios.c: Likewise.
24146         * manual/examples/testopt.c: Likewise.
24147         * manual/examples/testpass.c: Likewise.
24148         * manual/examples/timeval_subtract.c: Likewise.
24149
24150         [BZ #13792]
24151         * manual/time.texi (Elapsed Time): Move timeval_subtract example
24152         function to ...
24153         * manual/timeval_subtract.c.texi: ... here, new file.
24154
24155 2012-03-02  David S. Miller  <davem@davemloft.net>
24156
24157         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
24158
24159 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
24160
24161         [BZ #3976]
24162         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
24163         (__sin): Save and restore rounding mode and use round-to-nearest
24164         for all computations.
24165         (__cos): Save and restore rounding mode and use round-to-nearest
24166         for all computations.
24167         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
24168         <fenv.h>.
24169         (tan): Save and restore rounding mode and use round-to-nearest for
24170         all computations.
24171         * math/libm-test.inc (cos_test_tonearest): New function.
24172         (cos_test_towardzero): Likewise.
24173         (cos_test_downward): Likewise.
24174         (cos_test_upward): Likewise.
24175         (sin_test_tonearest): Likewise.
24176         (sin_test_towardzero): Likewise.
24177         (sin_test_downward): Likewise.
24178         (sin_test_upward): Likewise.
24179         (tan_test_tonearest): Likewise.
24180         (tan_test_towardzero): Likewise.
24181         (tan_test_downward): Likewise.
24182         (tan_test_upward): Likewise.
24183         (main): Call the new functions.
24184         * sysdeps/i386/fpu/libm-test-ulps: Update.
24185         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24186
24187         [BZ #10135]
24188         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
24189         small n, then large n, before computing and testing k+n.
24190         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
24191         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
24192         Likewise.
24193         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
24194         Likewise.
24195         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
24196         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
24197         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
24198         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
24199         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
24200         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
24201         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
24202         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
24203         * math/libm-test.inc (scalbn_test): Add more tests.
24204         (scalbln_test): Likewise.
24205
24206         * manual/filesys.texi (mode_t): Describe constraints on size and
24207         signedness, not exact equivalence to a particular type.
24208         (ino_t): Likewise.
24209         (ino64_t): Likewise.
24210         (dev_t): Likewise.
24211         (nlink_t): Likewise.
24212         (blkcnt_t): Likewise.
24213         (blkcnt64_t): Likewise.
24214         * manual/llio.texi (off_t): Likewise.
24215
24216         [BZ #3976]
24217         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
24218         (__ieee754_exp): Save and restore rounding mode and use
24219         round-to-nearest for all computations.
24220         * math/libm-test.inc (exp_test_tonearest): New function.
24221         (exp_test_towardzero): Likewise.
24222         (exp_test_downward): Likewise.
24223         (exp_test_upward): Likewise.
24224         (main): Call the new functions.
24225         * sysdeps/i386/fpu/libm-test-ulps: Update.
24226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24227
24228 2012-03-01  Chris Demetriou  <cgd@google.com>
24229
24230         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
24231         have predictable order.
24232
24233 2012-03-01  David S. Miller  <davem@davemloft.net>
24234
24235         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
24236
24237         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
24238         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
24239         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
24240         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
24241
24242         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
24243         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
24244         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
24245         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
24246         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
24247         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
24248         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
24249         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
24250         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
24251
24252         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24253
24254         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
24255         * sysdeps/sparc/fpu/libm-test-ulps: to here.
24256         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
24257
24258         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
24259         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
24260         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
24261         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
24262         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
24263         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
24264         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
24265         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
24266         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
24267         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
24268         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
24269         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
24270         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
24271         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
24272         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24273         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24274         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
24275         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
24276         * sysdeps/sparc/elf/configure: Regenerated.
24277
24278 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
24279
24280         * configure.in (AS, LD): Require binutils 2.20 or later.
24281         * configure: Regenerated.
24282         * manual/install.texi (Tools for Compilation): Give binutils 2.20
24283         as required minimum version.
24284         * INSTALL: Regenerated.
24285
24286         [BZ #2541]
24287         [BZ #4108]
24288         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
24289         before squaring exponent.
24290         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
24291         bottom long double and 27 bits of top long double before squaring
24292         exponent.
24293         * math/libm-test.inc (erfc_test): Add more tests.
24294         * sysdeps/i386/fpu/libm-test-ulps: Update.
24295         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
24296         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24297
24298 2012-03-01  Kai Tietz  <ktietz@redhat.com>
24299
24300         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
24301         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
24302         containing bit-fields.
24303         * soft-fp/extended.h (_FP_UNION_E): Likewise.
24304         * soft-fp/single.h (_FP_UNION_S): Likewise.
24305         * soft-fp/double.h (_FP_UNION_D): Likewise.
24306
24307 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
24308
24309         [BZ #13786]
24310         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
24311         not include ../strcmp.S.
24312         [USE_AS_STRNCASECMP_L]: Likewise.
24313         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
24314         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
24315         * sysdeps/i386/i686/multiarch/strncase_l-c.c
24316         (__strncasecmp_l_ia32): Define as alias to
24317         __strncasecmp_l_nonascii.
24318
24319         [BZ #5794]
24320         * math/libm-test.inc (expm1_test): Add test for bug 5794.
24321         * sysdeps/i386/fpu/libm-test-ulps: Update.
24322         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24323
24324         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
24325         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24326
24327 2012-02-29  Jeff Law  <law@redhat.com>
24328
24329         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
24330         out of bounds read.
24331
24332 2012-02-29  Marek Polacek  <polacek@redhat.com>
24333
24334         [BZ #13706]
24335         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
24336         * elf/Makefile: Add rules to run tst-unused-dep.out.
24337
24338 2012-02-28  David S. Miller  <davem@davemloft.net>
24339
24340         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
24341         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
24342         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
24343         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
24344         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
24345         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
24346
24347 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
24348
24349         * math/libm-test.inc (llround_test): Move one test from
24350         lround_test.  Use TEST_f_L in moved test.
24351         (lround_test): Move misplaced test to llround_test.  Add testcase
24352         from bug 2561.
24353
24354 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
24355
24356         * sysdeps/x86_64/fpu/e_expf.S: New file.
24357         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
24358
24359 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
24360
24361         [BZ #13637]
24362         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
24363         of remain_len that may cause incomplete multi-byte character and
24364         false match.
24365         * posix/bug-regex33.c: New file.
24366         * posix/Makefile (tests): Add bug-regex33.
24367
24368 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
24369
24370         * manual/macros.texi: New file.
24371         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
24372         * manual/libc.texinfo: Include macros.texi.
24373         * manual/creatute.texi: Likewise.
24374         * manual/install.texi: Likewise.
24375         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
24376         @glibcadj{} in references to the GNU C Library.
24377         * manual/charset.texi: Likewise.
24378         * manual/conf.texi: Likewise.
24379         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
24380         when not using those macros.
24381         * manual/creature.texi: Likewise.
24382         * manual/crypt.texi: Likewise.
24383         * manual/errno.texi: Likewise.
24384         * manual/filesys.texi: Likewise.
24385         * manual/header.texi: Likewise.
24386         * manual/install.texi: Likewise.
24387         * manual/intro.texi: Likewise.
24388         * manual/io.texi: Likewise.
24389         * manual/job.texi: Likewise.
24390         * manual/lang.texi: Likewise.
24391         * manual/libc.texiinfo: Likewise.
24392         * manual/llio.texi: Likewise.
24393         * manual/locale.texi: Likewise.
24394         * manual/maint.texi: Likewise.
24395         * manual/math.texi: Likewise.
24396         * manual/memory.texi: Likewise.
24397         * manual/message.texi: Likewise.
24398         * manual/nss.texi: Likewise.
24399         * manual/pattern.texi: Likewise.
24400         * manual/process.texi: Likewise.
24401         * manual/resource.texi: Likewise.
24402         * manual/search.texi: Likewise.
24403         * manual/setjmp.texi: Likewise.
24404         * manual/signal.texi: Likewise.
24405         * manual/socket.texi: Likewise.
24406         * manual/startup.texi: Likewise.
24407         * manual/stdio.texi: Likewise.
24408         * manual/string.texi: Likewise.
24409         * manual/sysinfo.texi: Likewise.
24410         * manual/syslog.texi: Likewise.
24411         * manual/terminal.texi: Likewise.
24412         * manual/time.texi: Likewise.
24413         * manual/users.texi: Likewise.
24414         * INSTALL: Regenerated.
24415         * NOTES: Regenerated.
24416         * sysdeps/gnu/errlist.c: Regenerated.
24417
24418 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
24419
24420         * include/dirent.h: Include <dirstream.h> before
24421         <dirent/dirent.h>.
24422
24423 2012-02-28  David S. Miller  <davem@davemloft.net>
24424
24425         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
24426         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
24427         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
24428         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
24429
24430 2012-02-27  David S. Miller  <davem@davemloft.net>
24431
24432         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
24433         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
24434         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
24435         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
24436
24437         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
24438         frame pointer instead of stack pointer relative arg slot.
24439         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
24440         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
24441         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
24442
24443 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
24444
24445         [BZ #3992]
24446         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
24447
24448 2012-02-27  David S. Miller  <davem@davemloft.net>
24449
24450         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
24451         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
24452         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
24453         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
24454         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
24455         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
24456         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
24457         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
24458
24459 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
24460
24461         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
24462         later.  Allow versions 5-9.
24463         * configure: Regenerated.
24464         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
24465         required minimum version and 4.6 as recommended version.  Do not
24466         mention bugs in GCC 2.7 and 2.8.
24467         * INSTALL: Regenerated.
24468
24469 2012-02-27  David S. Miller  <davem@davemloft.net>
24470
24471         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
24472         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
24473         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
24474         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
24475         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
24476         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
24477         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
24478         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
24479
24480         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
24481         manipulate bits before adding and subtracting TWO112[sx].
24482         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
24483
24484 2012-02-27  Roland McGrath  <roland@hack.frob.com>
24485
24486         [BZ #13775]
24487         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
24488         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
24489         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
24490         being in POSIX, because they are in 1003.1-2008.
24491
24492         * rt/tst-aio.c: Include <fcntl.h>.
24493         * rt/tst-aio7.c: Likewise.
24494         * rt/tst-aio64.c: Likewise.
24495
24496         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
24497
24498 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
24499
24500         * manual/install.texi (--with-headers): Describe headers as
24501         interface headers, not private headers.
24502         (Specific advice for GNU/Linux systems): Describe use of headers
24503         from "make headers_install", not private headers from older
24504         kernels.
24505         * INSTALL: Regenerated.
24506         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
24507         Change to 2.6.19.
24508         * sysdeps/unix/sysv/linux/configure: Regenerated.
24509
24510         * manual/llio.texi (fclean): Remove documentation.
24511
24512         * manual/Makefile (libc-texi-generated): New variable.  Include
24513         version.texi.
24514         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
24515         $(libc-texi-generated), not duplicated list of files.
24516         (version.texi, stamp-version): New rules.
24517         (realclean): Remove $(libc-texi-generated), not individual files
24518         from that list.  Do not remove dir-add.texinfo.
24519         * manual/libc.texinfo: Comment out uses of edition numbers and
24520         references to printed manual.  Remove last-updated dates.
24521         (EDITION): Comment out.
24522         (ISBN): Likewise.
24523         (VERSION, UPDATED): Remove.
24524         (version.texi): Include.
24525
24526 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
24527
24528         * sysdeps/posix/spawni.c: Include <signal.h>.
24529         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
24530         * sysdeps/pthread/aio_fsync.c: Likewise.
24531
24532 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
24533
24534         * conform/Makefile (tests): Run only when not cross-compiling and
24535         when fast-check is not defined.
24536
24537         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
24538         * conform/data/limits.h-data: Fixes for POSIX2008.
24539         * conform/run-conformtest.sh: Run all tests.
24540         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
24541         headers.
24542         * include/bits/dlfcn.h: Likewise.
24543         * include/langinfo.h: Likewise.
24544         * include/monetary.h: Likewise.
24545         * include/sys/poll.h: Likewise.
24546
24547         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
24548         for __USE_GNU.
24549         * posix/spawn.h: Define __need_sigset_t.
24550         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
24551         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
24552         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
24553         to get sigevent_t only.
24554         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
24555         only for __USE_GNU.
24556         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
24557         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
24558         process_vm_writev only for __USE_GNU.
24559         * termios/termios.h: Declare tcgetsid also for POSIX2008.
24560
24561         * conform/Makefile: For now ignore errors from run-conformtest.
24562         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
24563         POSIX to avoid namespace pollution.  Don't prepend headers.
24564         * conform/data/aio.h-data: Fixes for POSIX testing.
24565         * conform/data/fcntl.h-data: Likewise.
24566         * conform/data/glob.h-data: Likewise.
24567         * conform/data/grp.h-data: Likewise.
24568         * conform/data/pthread.h-data: Likewise.
24569         * conform/data/pwd.h-data: Likewise.
24570         * conform/data/signal.h-data: Likewise.
24571         * conform/data/spawn.h-data: Likewise.
24572         * conform/data/stdio.h-data: Likewise.
24573         * conform/data/stdlib.h-data: Likewise.
24574         * conform/data/stropts.h-data: Likewise.
24575         * conform/data/sys/mman.h-data: Likewise.
24576         * conform/data/sys/stat.h-data: Likewise.
24577         * conform/data/sys/types.h-data: Likewise.
24578         * conform/data/sys/wait.h-data: Likewise.
24579         * conform/data/time.h-data: Likewise.
24580         * conform/data/unistd.h-data: Likewise.
24581         * conform/data/utime.h-data: Likewise.
24582
24583         * io/sys/stat.h: fchmod was always in POSIX.
24584         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
24585         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
24586         * rt/aio.h: Define __need_timespec before including <time.h>.
24587         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
24588         struct.  Add forward declaration of pthread_attr_t and use it in
24589         sigevent.
24590         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
24591         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
24592         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
24593         always remove CLK_TCK definition.
24594
24595 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
24596
24597         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
24598
24599 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
24600
24601         * conform/run-conformtest.sh: New file.
24602         * conform/Makefile: Run run-conformtest for tests.
24603         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
24604         support.
24605
24606         * conform/data/uchar.h-data: New file.
24607         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
24608         * conform/data/arpa/inet.h-data: Likewise.
24609         * conform/data/assert.h-data: Likewise.
24610         * conform/data/complex.h-data: Likewise.
24611         * conform/data/cpio.h-data: Likewise.
24612         * conform/data/ctype.h-data: Likewise.
24613         * conform/data/dirent.h-data: Likewise.
24614         * conform/data/dlfcn.h-data: Likewise.
24615         * conform/data/errno.h-data: Likewise.
24616         * conform/data/fcntl.h-data: Likewise.
24617         * conform/data/float.h-data: Likewise.
24618         * conform/data/fmtmsg.h-data: Likewise.
24619         * conform/data/fnmatch.h-data: Likewise.
24620         * conform/data/ftw.h-data: Likewise.
24621         * conform/data/glob.h-data: Likewise.
24622         * conform/data/grp.h-data: Likewise.
24623         * conform/data/iconv.h-data: Likewise.
24624         * conform/data/inttypes.h-data: Likewise.
24625         * conform/data/langinfo.h-data: Likewise.
24626         * conform/data/libgen.h-data: Likewise.
24627         * conform/data/limits.h-data: Likewise.
24628         * conform/data/locale.h-data: Likewise.
24629         * conform/data/math.h-data: Likewise.
24630         * conform/data/monetary.h-data: Likewise.
24631         * conform/data/mqueue.h-data: Likewise.
24632         * conform/data/ndbm.h-data: Likewise.
24633         * conform/data/net/if.h-data: Likewise.
24634         * conform/data/netdb.h-data: Likewise.
24635         * conform/data/netinet/in.h-data: Likewise.
24636         * conform/data/nl_types.h-data: Likewise.
24637         * conform/data/poll.h-data: Likewise.
24638         * conform/data/pthread.h-data: Likewise.
24639         * conform/data/pwd.h-data: Likewise.
24640         * conform/data/regex.h-data: Likewise.
24641         * conform/data/sched.h-data: Likewise.
24642         * conform/data/search.h-data: Likewise.
24643         * conform/data/semaphore.h-data: Likewise.
24644         * conform/data/setjmp.h-data: Likewise.
24645         * conform/data/signal.h-data: Likewise.
24646         * conform/data/spawn.h-data: Likewise.
24647         * conform/data/stdarg.h-data: Likewise.
24648         * conform/data/stdio.h-data: Likewise.
24649         * conform/data/stdlib.h-data: Likewise.
24650         * conform/data/string.h-data: Likewise.
24651         * conform/data/strings.h-data: Likewise.
24652         * conform/data/stropts.h-data: Likewise.
24653         * conform/data/sys/ipc.h-data: Likewise.
24654         * conform/data/sys/mman.h-data: Likewise.
24655         * conform/data/sys/msg.h-data: Likewise.
24656         * conform/data/sys/resource.h-data: Likewise.
24657         * conform/data/sys/select.h-data: Likewise.
24658         * conform/data/sys/sem.h-data: Likewise.
24659         * conform/data/sys/shm.h-data: Likewise.
24660         * conform/data/sys/socket.h-data: Likewise.
24661         * conform/data/sys/stat.h-data: Likewise.
24662         * conform/data/sys/statvfs.h-data: Likewise.
24663         * conform/data/sys/time.h-data: Likewise.
24664         * conform/data/sys/timeb.h-data: Likewise.
24665         * conform/data/sys/times.h-data: Likewise.
24666         * conform/data/sys/types.h-data: Likewise.
24667         * conform/data/sys/uio.h-data: Likewise.
24668         * conform/data/sys/un.h-data: Likewise.
24669         * conform/data/sys/utsname.h-data: Likewise.
24670         * conform/data/sys/wait.h-data: Likewise.
24671         * conform/data/syslog.h-data: Likewise.
24672         * conform/data/tar.h-data: Likewise.
24673         * conform/data/termios.h-data: Likewise.
24674         * conform/data/utime.h-data: Likewise.
24675         * conform/data/utmpx.h-data: Likewise.
24676         * conform/data/varargs.h-data: Likewise.
24677         * conform/data/wchar.h-data: Likewise.
24678         * conform/data/wctype.h-data: Likewise.
24679         * conform/data/wordexp.h-data: Likewise.
24680
24681         * include/stropts.h: New file.
24682         * include/uchar.h: New file.
24683         * include/aio.h: Changes to allow conformtest.pl to use the headers.
24684         * include/assert.h: Likewise.
24685         * include/ctype.h: Likewise.
24686         * include/dirent.h: Likewise.
24687         * include/dlfcn.h: Likewise.
24688         * include/fcntl.h: Likewise.
24689         * include/fnmatch.h: Likewise.
24690         * include/glob.h: Likewise.
24691         * include/grp.h: Likewise.
24692         * include/libio.h: Likewise.
24693         * include/locale.h: Likewise.
24694         * include/math.h: Likewise.
24695         * include/net/if.h: Likewise.
24696         * include/netdb.h: Likewise.
24697         * include/netinet/in.h: Likewise.
24698         * include/pthread.h: Likewise.
24699         * include/pwd.h: Likewise.
24700         * include/regex.h: Likewise.
24701         * include/sched.h: Likewise.
24702         * include/search.h: Likewise.
24703         * include/setjmp.h: Likewise.
24704         * include/signal.h: Likewise.
24705         * include/stdio.h: Likewise.
24706         * include/stdlib.h: Likewise.
24707         * include/string.h: Likewise.
24708         * include/sys/cdefs.h: Likewise.
24709         * include/sys/mman.h: Likewise.
24710         * include/sys/msg.h: Likewise.
24711         * include/sys/resource.h: Likewise.
24712         * include/sys/select.h: Likewise.
24713         * include/sys/socket.h: Likewise.
24714         * include/sys/stat.h: Likewise.
24715         * include/sys/statvfs.h: Likewise.
24716         * include/sys/time.h: Likewise.
24717         * include/sys/times.h: Likewise.
24718         * include/sys/uio.h: Likewise.
24719         * include/sys/utsname.h: Likewise.
24720         * include/sys/wait.h: Likewise.
24721         * include/termios.h: Likewise.
24722         * include/time.h: Likewise.
24723         * include/ulimit.h: Likewise.
24724         * include/unistd.h: Likewise.
24725         * include/utime.h: Likewise.
24726         * include/wchar.h: Likewise.
24727         * include/wctype.h: Likewise.
24728         * include/wordexp.h: Likewise.
24729
24730         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
24731
24732         * time/time.h: TIME_UTC must be a macro.
24733         Make timespec_get available for ISO C11 only as well.
24734
24735 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
24736
24737         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
24738         Reported by Peng Haitao <penght@cn.fujitsu.com>.
24739
24740 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
24741
24742         * configure.in: Use -o not -a in test for unsupported multi-arch.
24743
24744 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
24745
24746         * manual/texinfo.tex: Update to version 2012-01-19.16.
24747
24748 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
24749
24750         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
24751
24752 2012-02-24  Roland McGrath  <roland@hack.frob.com>
24753
24754         [BZ #13738]
24755         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
24756         * manual/fdl-1.3.texi: New file.
24757         * manual/fdl-1.1.texi: File removed.
24758
24759         [BZ #13738]
24760         * manual/libc.texinfo (FDL_VERSION): New @set.
24761         Use it for mention of FDL in cover text.
24762         (Documentation License): Use it in @include file name.
24763
24764 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
24765             Roland McGrath  <roland@hack.frob.com>
24766
24767         [BZ #5461]
24768         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
24769         not LONG_LONG_MAX and LONG_LONG_MIN.
24770         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
24771         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
24772         name.
24773         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
24774
24775 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
24776
24777         [BZ #2547]
24778         [BZ #11365]
24779         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
24780         manipulate bits before adding and subtracting TWO23[sx].
24781         * math/libm-test.inc (nearbyint_test): Add more tests.
24782
24783 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
24784
24785         [BZ #2548]
24786         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
24787         bits before adding and subtracting TWO23[sx].
24788         * math/libm-test.inc (rint_test): Add more tests.
24789         (rint_test_tonearest): Likewise.
24790         (rint_test_towardzero): Likewise.
24791         (rint_test_downward): Likewise.
24792         (rint_test_upward: Likewise.
24793
24794 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
24795
24796         [BZ #10110]
24797         * include/stdc-predef.h: New file.  Extracted from features.h.
24798         * include/features.h: Include stdc-predef.h.
24799         * Makefile (headers): Add stdc-predef.h.
24800         * CONFORMANCE (Compiler limitations): Update.
24801
24802 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
24803
24804         * manual/libc.texinfo (VERSION, UPDATED): Revert.
24805
24806 2012-02-21  David S. Miller  <davem@davemloft.net>
24807
24808         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
24809         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
24810
24811 2012-02-20  David S. Miller  <davem@davemloft.net>
24812
24813         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
24814         using a normal save/restore sequence, rather than allocating a
24815         dummy stack frame just to store a frame pointer and restore.
24816         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
24817
24818 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
24819
24820         * manual/install.texi: Fix stray word in line-wrapped comment.
24821
24822 2012-02-20  David S. Miller  <davem@davemloft.net>
24823
24824         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
24825         both binutils and gcc support GOTDATA.
24826
24827         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
24828         "rd %pc" in the PIC register setup sequences.
24829
24830         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
24831         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
24832         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
24833         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
24834         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
24835         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
24836         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
24837         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
24838         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
24839         (SYSCALL_ERROR_HANDLER): Likewise.
24840         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
24841         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
24842         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
24843         (SYSCALL_ERROR_HANDLER): Likewise.
24844
24845         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
24846         (HAVE_GCC_GOTDATA): New.
24847         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
24848         relocation support in both binutils and gcc.
24849         * sysdeps/sparc/elf/configure: Regenerate.
24850
24851         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
24852         * sysdeps/sparc/sparc32/elf/configure: Delete.
24853         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
24854         * sysdeps/sparc/sparc64/elf/configure: Delete.
24855         * sysdeps/sparc/elf/configure.in: New file.
24856         * sysdeps/sparc/elf/configure: Generate.
24857
24858         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
24859         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
24860         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
24861         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
24862         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
24863
24864 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
24865
24866         * manual/install.texi: Do not mention specific glibc version
24867         numbers.
24868         * manual/libc.texinfo (VERSION, UPDATED): Update.
24869         (@copying): Use @copyright{} and range of years.
24870
24871 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
24872
24873         [BZ #13695]
24874         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
24875         [crti.S not in sysdirs] (generated): Do not append.
24876         [crti.S not in sysdirs] (omit-deps): Likewise.
24877         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
24878         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
24879         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
24880         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
24881         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
24882         Likewise.
24883         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
24884         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
24885         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
24886         * csu/defs.awk: Remove file.
24887         * sysdeps/generic/initfini.c: Likewise.
24888         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
24889         variable.
24890         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
24891         Likewise.
24892
24893 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
24894
24895         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
24896         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
24897         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
24898         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
24899         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
24900         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
24901         <bits/epoll.h>.
24902         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
24903         (__EPOLL_PACKED): Define to empty if not defined by
24904         <bits/epoll.h>.
24905         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
24906         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24907         bits/epoll.h.
24908
24909 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
24910
24911         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
24912         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
24913         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
24914         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
24915         <bits/timerfd.h>.
24916         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
24917         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24918         bits/timerfd.h.
24919
24920 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
24921
24922         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
24923         in C locale.
24924         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
24925         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
24926         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
24927         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24928
24929 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
24930
24931         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24932         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
24933
24934 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
24935
24936         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
24937         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
24938         defined.
24939         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
24940         Likewise.
24941         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
24942         entry for 2.16.
24943
24944 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
24945
24946         * math/w_acos.c: Use non-signaling floating-point comparisons.
24947         * math/w_acosf.c: Likewise.
24948         * math/w_acosh.c: Likewise.
24949         * math/w_acoshf.c: Likewise.
24950         * math/w_acoshl.c: Likewise.
24951         * math/w_acosl.c: Likewise.
24952         * math/w_asin.c: Likewise.
24953         * math/w_asinf.c: Likewise.
24954         * math/w_asinl.c: Likewise.
24955         * math/w_atanh.c: Likewise.
24956         * math/w_atanhf.c: Likewise.
24957         * math/w_atanhl.c: Likewise.
24958         * math/w_exp2.c: Likewise.
24959         * math/w_exp2f.c: Likewise.
24960         * math/w_exp2l.c: Likewise.
24961         * math/w_j0.c: Likewise.
24962         * math/w_j0f.c: Likewise.
24963         * math/w_j0l.c: Likewise.
24964         * math/w_j1.c: Likewise.
24965         * math/w_j1f.c: Likewise.
24966         * math/w_j1l.c: Likewise.
24967         * math/w_jn.c: Likewise.
24968         * math/w_jnf.c: Likewise.
24969         * math/w_log.c: Likewise.
24970         * math/w_log10.c: Likewise.
24971         * math/w_log10f.c: Likewise.
24972         * math/w_log10l.c: Likewise.
24973         * math/w_log2.c: Likewise.
24974         * math/w_log2f.c: Likewise.
24975         * math/w_log2l.c: Likewise.
24976         * math/w_logf.c: Likewise.
24977         * math/w_logl.c: Likewise.
24978         * math/w_sqrt.c: Likewise.
24979         * math/w_sqrtf.c: Likewise.
24980         * math/w_sqrtl.c: Likewise.
24981         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
24982         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
24983         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
24984         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
24985         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
24986
24987 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
24988
24989         [BZ #9739]
24990         * manual/string.texi (strnlen): Use correct parameter name in
24991         equivalent expression.
24992
24993 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
24994
24995         [BZ #11174]
24996         * manual/users.texi (seteuid): Consistently use neweuid for
24997         argument name.
24998
24999 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
25000
25001         [BZ #13704]
25002         * manual/nss.texi (Services in the NSS configuration): Correct
25003         list of services in example configuration file.
25004
25005 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
25006
25007         [BZ #11322]
25008         * manual/arith.texi: Remove statements about negative zero
25009         behaving identically to zero.
25010
25011 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
25012
25013         [BZ #5993]
25014         * manual/install.texi: Do not document upgrading from libc5.
25015
25016 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
25017
25018         [BZ #4596]
25019         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
25020
25021 2012-02-18  David S. Miller  <davem@davemloft.net>
25022
25023         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
25024         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
25025         %o7 across the call.
25026         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
25027         instead.
25028         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
25029         SETUP_PIC_REG_LEAF.
25030         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
25031         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
25032         * sysdeps/sparc/crtn.S: Likewise.
25033
25034 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
25035
25036         * aout/Makefile: Remove.
25037
25038 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
25039
25040         [BZ #13058]
25041         * manual/examples/argp-ex1.c (main): Format definition in GNU
25042         style.
25043         * manual/examples/argp-ex2.c (main): Likewise.
25044         * manual/examples/argp-ex3.c (main): Likewise.
25045         * manual/examples/argp-ex4.c (main): Likewise.
25046         * manual/examples/longopt.c (main): Use new-style prototype
25047         definition.
25048         * manual/examples/strncat.c (main): Specify return type and use
25049         (void) for arguments.
25050         * manual/examples/subopt.c (main): Use char **argv argument.
25051
25052 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
25053
25054         [BZ #5077]
25055         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
25056         rounding modes.
25057
25058 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
25059
25060         [BZ #6907]
25061         * manual/string.texi (strchr): Change when strchrnul is
25062         recommended.
25063
25064 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
25065
25066         [BZ #174]
25067         * manual/locale.texi (setlocale): Document LOCPATH.
25068
25069 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
25070
25071         [BZ #10210]
25072         * manual/process.texi (execle): Move @dots{} before last argument.
25073
25074 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
25075
25076         [BZ #12047]
25077         * manual/charset.texi (Generic Charset Conversion): Fix typo
25078         (LC_TYPE -> LC_CTYPE).
25079
25080 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
25081
25082         [BZ #5805]
25083         * manual/arith.texi (scalbn): Use @var{} on parameter names.
25084         (scalbnf): Likewise.
25085         (scalbnl): Likewise.
25086         (scalbln): Likewise.
25087         (scalblnf): Likewise.
25088         (scalblnl): Likewise.
25089         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
25090         (vwarnx): Likewise.
25091         (verr): Likewise.
25092         (verrx): Likewise.
25093         * manual/filesys.texi (telldir): Use braces around return type.
25094         * manual/llio.texi (mmap): Add space after comma.
25095         (mmap64): Likewise.
25096         * manual/math.texi (jn): Use @var{} on parameter names.
25097         (jnf): Likewise.
25098         (jnl): Likewise.
25099         (yn): Likewise.
25100         (ynf): Likewise.
25101         (ynl): Likewise.
25102         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
25103         line.
25104         * manual/resource.texi (ulimit): Use @dots{} instead of literal
25105         "...".
25106         (sched_get_priority_min): Remove semicolon on @deftypefun line.
25107         (sched_get_priority_max): Likewise.
25108         * manual/signal.texi (sigvec): Add space after comma.
25109         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
25110         names.
25111         (if_indextoname): Likewise.
25112         (if_freenameindex): Likewise.
25113         (sendto): Use ',' instead of '.' in prototype.
25114         * manual/startup.texi (syscall): Use @dots{} instead of literal
25115         "...".
25116         * manual/stdio.texi (__fpending): Separate initial words of
25117         paragraph from @deftypefun line.
25118         * manual/syslog.texi (syslog): Use @dots{} instead of literal
25119         "...".
25120         (vsyslog): Use @var{} on parameter names.
25121         * manual/terminal.texi (stty): Use @var{} on parameter names.
25122         * manual/users.texi (getutmp): Use @var{} on parameter names.
25123         (getutmpx): Likewise.
25124
25125 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
25126
25127         [BZ #6884]
25128         * manual/stdio.texi (fopen): Fix typos in description of
25129         ",ccs=STRING".
25130
25131 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
25132
25133         [BZ #4026]
25134         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
25135         get clock_id definition.
25136
25137 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
25138
25139         [BZ #4822]
25140         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
25141         (madvise): Cast every argument to void on its own.
25142
25143 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
25144
25145         [BZ #9902]
25146         * manual/startup.texi (Exit Status): Fix typo.
25147
25148 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
25149
25150         [BZ #10140]
25151         * manual/examples/argp-ex1.c: Include <stdlib.h>.
25152         * manual/examples/argp-ex2.c: Likewise.
25153         * manual/examples/argp-ex3.c: Likewise.
25154
25155 2012-02-16  Richard Henderson  <rth@redhat.com>
25156
25157         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
25158         * sysdeps/s390/s390-32/initfini.c: Remove.
25159         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
25160         * sysdeps/s390/s390-64/initfini.c: Remove.
25161
25162 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
25163
25164         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
25165         compiler output for sysdeps/generic/initfini.c.
25166         * sysdeps/sh/elf/initfini.c: Remove file.
25167
25168 2012-02-16  David S. Miller  <davem@davemloft.net>
25169
25170         [BZ #11494]
25171         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
25172
25173         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
25174         * sysdeps/sparc/crti.S: New file.
25175         * sysdeps/sparc/crtn.S: New file.
25176         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
25177         * sysdeps/sparc/sparc64/Makefile: Likewise.
25178
25179 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
25180
25181         [BZ #3335]
25182         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
25183
25184 2012-02-15  Roland McGrath  <roland@hack.frob.com>
25185
25186         [BZ #4822]
25187         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
25188
25189         * mach/devstream.c (cookie_io_functions_t): Macro removed.
25190         (write, read, close): Likewise.
25191         Patch by Aurelien Jarno <aurelien@aurel32.net>.
25192
25193 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
25194
25195         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
25196         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
25197         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
25198         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
25199         <bits/signalfd.h>.
25200         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
25201         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25202         bits/signalfd.h.
25203
25204 2012-02-14  Marek Polacek  <polacek@redhat.com>
25205
25206         * sysdeps/x86_64/crti.S: New file.
25207         * sysdeps/x86_64/crtn.S: New file.
25208         * sysdeps/x86_64/elf/initfini.c: Remove file.
25209
25210 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
25211
25212         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
25213         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
25214         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
25215         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
25216         <bits/inotify.h>.
25217         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
25218         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25219         bits/inotify.h.
25220
25221 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
25222
25223         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
25224         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
25225         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
25226         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
25227         <bits/eventfd.h>.
25228         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
25229         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25230         bits/eventfd.h.
25231
25232 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
25233
25234         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
25235         __feraiseexcept instead of feraiseexcept.
25236
25237         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
25238         nanosleep invocations.
25239         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
25240         strings, and add error checking for a nanosleep invocations.
25241
25242 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
25243
25244         Replace FSF snail mail address with URLs, as per GNU coding standards.
25245         Most of the snail mail addresses were wrong anyway, and omitting
25246         them makes the source code easier to maintain.  Almost all of the
25247         changes are to license notices and to locale LC_IDENTIFICATION
25248         addresses, except for this one:
25249         * manual/libc.texinfo: In "Published by", give the FSF's URL,
25250         not its snail mail address.
25251
25252 2012-02-09  Richard Henderson  <rth@twiddle.net>
25253
25254         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
25255         of kernel-features.h.
25256
25257         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
25258
25259 2012-02-08  Marek Polacek  <polacek@redhat.com>
25260
25261         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
25262         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
25263         * sysdeps/gnu/_G_config.h: Likewise.
25264         * sysdeps/generic/_G_config.h: Likewise.
25265
25266 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
25267
25268         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
25269         tests.
25270         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25271
25272         * sysdeps/powerpc/powerpc32/crti.S: New file.
25273         * sysdeps/powerpc/powerpc32/crtn.S: New file.
25274         * sysdeps/powerpc/powerpc64/crti.S: New file.
25275         * sysdeps/powerpc/powerpc64/crtn.S: New file.
25276
25277         * Makeconfig (have-initfini): Don't set.
25278         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
25279         * configure.in (nopic_initfini): Don't substitute.
25280         * config.h.in (HAVE_INITFINI): Don't #undef.
25281         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
25282         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
25283
25284 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
25285
25286         Support crti.S and crtn.S provided directly by architectures.
25287         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
25288         [crti.S in sysdirs] (omit-deps): Likewise.
25289         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
25290         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
25291         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
25292         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
25293         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
25294         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
25295         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
25296         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
25297         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
25298         compiler output for sysdeps/generic/initfini.c.
25299         * sysdeps/i386/elf/Makefile: Remove file.
25300         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
25301
25302 2012-02-07  Marek Polacek  <polacek@redhat.com>
25303
25304         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
25305         * sysdeps/gnu/_G_config.h: Likewise.
25306         * sysdeps/mach/hurd/_G_config.h: Likewise.
25307
25308 2012-02-07  Marek Polacek  <polacek@redhat.com>
25309
25310         * math/Makefile (tests): Add tst-CMPLX2.
25311         * math/tst-CMPLX2.c: New file.
25312
25313 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
25314
25315         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
25316
25317         * math/libm-test.inc (jn_test): Add missing L suffix.
25318
25319 2012-02-06  Marek Polacek  <polacek@redhat.com>
25320
25321         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
25322         * sysdeps/i386/fpu/e_powf.S: Likewise.
25323         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
25324         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
25325         * sysdeps/i386/fpu/e_acosh.S: Likewise.
25326         * sysdeps/i386/fpu/e_pow.S: Likewise.
25327         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
25328         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
25329         * sysdeps/i386/fpu/s_expm1.S: Likewise.
25330         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
25331         * sysdeps/i386/fpu/e_log2.S: Likewise.
25332         * sysdeps/i386/fpu/e_log2l.S: Likewise.
25333         * sysdeps/i386/fpu/e_scalb.S: Likewise.
25334         * sysdeps/i386/fpu/e_powl.S: Likewise.
25335         * sysdeps/i386/fpu/s_log1p.S: Likewise.
25336         * sysdeps/i386/fpu/e_log10f.S: Likewise.
25337         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
25338         * sysdeps/i386/fpu/e_logl.S: Likewise.
25339         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
25340         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
25341         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
25342         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
25343         * sysdeps/i386/fpu/e_log2f.S: Likewise.
25344         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
25345         * sysdeps/i386/fpu/e_log.S: Likewise.
25346         * sysdeps/i386/fpu/s_cexp.S: Likewise.
25347         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
25348         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
25349         * sysdeps/i386/fpu/e_logf.S: Likewise.
25350         * sysdeps/i386/fpu/e_log10l.S: Likewise.
25351         * sysdeps/i386/fpu/e_atanh.S: Likewise.
25352         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
25353         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
25354         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
25355         * sysdeps/i386/fpu/e_log10.S: Likewise.
25356         * sysdeps/i386/fpu/s_frexp.S: Likewise.
25357         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
25358         * sysdeps/i386/fpu/s_asinh.S: Likewise.
25359         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
25360         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
25361         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
25362         * sysdeps/i386/asm-syntax.h: Likewise.
25363         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
25364         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
25365         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
25366         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
25367         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
25368         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
25369         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
25370         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
25371         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
25372         * sysdeps/powerpc/sysdep.h: Likewise.
25373         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
25374         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
25375
25376 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
25377
25378         [BZ #411]
25379         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
25380
25381 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
25382
25383         * sysdeps/i386/sysdep.h: Include <features.h>.
25384         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
25385         version.
25386
25387 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
25388
25389         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
25390         Define.
25391         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
25392         LOAD_PIC_REG_STR.
25393
25394 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
25395
25396         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
25397         (SETUP_PIC_REG): Use GET_PC_THUNK.
25398         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
25399         macro.
25400
25401 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
25402
25403         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
25404         for non-PIC compilation.
25405         (SETUP_PIC_REG): Add .p2align directive.
25406         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
25407         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
25408         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
25409         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
25410         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
25411         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
25412         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
25413         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
25414         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
25415         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
25416         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
25417         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
25418         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
25419         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
25420         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
25421         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
25422         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
25423         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
25424         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
25425         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
25426         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
25427         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
25428         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
25429         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
25430         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
25431         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
25432         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
25433         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
25434         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
25435         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
25436         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
25437         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
25438         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
25439         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
25440         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
25441         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
25442         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
25443         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
25444         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
25445         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
25446         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
25447
25448 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
25449
25450         * math/tst-CMPLX.c: Include <stdio.h>.
25451
25452 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
25453
25454         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
25455         float.
25456         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
25457         * sysdeps/sparc/bits/mathdef.h: Likewise.
25458
25459 2012-01-31  Marek Polacek  <polacek@redhat.com>
25460
25461         * libio/libio.h: Don't define _PARAMS.
25462         * locale/programs/config.h: Don't define PARAMS.
25463         * stdlib/strtol_l.c: Likewise.
25464         (__strtol_l): Remove PARAMS from the prototype.
25465
25466 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
25467
25468         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
25469         names.  Just use the correct names.  Remove unnecessary wrapper
25470         functions.
25471         * malloc/arena.c: Likewise.
25472         * malloc/hooks.c: Likewise.
25473
25474         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
25475         ARENA_TEST says not to.  Simplify test for creation of a new arena.
25476         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
25477
25478 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
25479
25480         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
25481         into tail calls.
25482         (update_get_addr): New function.
25483         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
25484         GET_ADDR_MODULE parameter.
25485
25486 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
25487
25488         * crypt/cert.c: Remove __STDC__ conditionals.
25489         * crypt/crypt-entry.c: Likewise.
25490         * crypt/crypt_util.c: Likewise.
25491         * libio/filedoalloc.c: Likewise.
25492         * libio/fileops.c: Likewise.
25493         * libio/genops.c: Likewise.
25494         * libio/iofclose.c: Likewise.
25495         * libio/iofdopen.c: Likewise.
25496         * libio/iofopen.c: Likewise.
25497         * libio/iofopen64.c: Likewise.
25498         * libio/iogetdelim.c: Likewise.
25499         * libio/iopopen.c: Likewise.
25500         * libio/obprintf.c: Likewise.
25501         * libio/oldfileops.c: Likewise.
25502         * libio/oldiofclose.c: Likewise.
25503         * libio/oldiofdopen.c: Likewise.
25504         * libio/oldiofopen.c: Likewise.
25505         * libio/oldiopopen.c: Likewise.
25506         * libio/wfiledoalloc.c: Likewise.
25507         * libio/wgenops.c: Likewise.
25508         * locale/programs/xmalloc.c: Likewise.
25509         * misc/syslog.c: Likewise.
25510         * stdio-common/xbug.c: Likewise.
25511         * string/memchr.c: Likewise.
25512         * string/memcmp.c: Likewise.
25513         * string/memrchr.c: Likewise.
25514         * string/rawmemchr.c: Likewise.
25515         * sysdeps/posix/getcwd.c: Likewise.
25516         * time/strftime_l.c: Likewise.
25517
25518 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
25519
25520         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
25521         * config.make.in (config-cflags-sse2avx): Define.
25522         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
25523         Fix typo.
25524
25525 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
25526
25527         * scripts/config.guess: Update from upstream config git repository.
25528         * scripts/config.sub: Likewise.
25529
25530 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
25531
25532         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
25533         (EM_NUM): Update.
25534         (R_TILEPRO_*, R_TILEGX_*): New macros.
25535
25536         * scripts/firstversions.awk: Fix bug in version range handling.
25537
25538         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
25539
25540         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
25541
25542         * include/sys/epoll.h: New file.
25543         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
25544         libc_hidden_def.
25545
25546 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
25547
25548         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
25549         Avoid unnecessary __WORDSIZE == 64 test.
25550         (fmaxf): Use VEX format if possible.
25551         (fmax): Likewise.
25552         (fminf): Likewise.
25553         (fmin): Likewise.
25554
25555         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
25556         * math/math_private.h: Remove libc_fegetround* and
25557         libc_fesetround*.
25558         * sysdeps/i386/configure.in: Check for -msse2avx.
25559         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
25560         also if SSE2AVX is defined.
25561         Remove libc_fegetround* and libc_fesetround*.
25562         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
25563         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
25564         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
25565         of HAS_YMM_USABLE.
25566         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
25567         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
25568         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
25569         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
25570         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
25571
25572         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
25573
25574 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25575
25576         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
25577         size is not set.
25578         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
25579
25580 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
25581
25582         [BZ #13618]
25583         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
25584         relocation.
25585         * Makeconfig (libm): Define.
25586         * elf/Makefile: Add rules to build and run tst-relsort1.
25587         * elf/tst-relsort1.c: New file.
25588         * elf/tst-relsort1mod1.c: New file.
25589         * elf/tst-relsort1mod2.c: New file.
25590
25591 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
25592
25593         * math/s_ldexp.c: Remove __STDC__ conditionals.
25594         * math/s_ldexpf.c: Likewise.
25595         * math/s_ldexpl.c: Likewise.
25596         * math/s_nextafter.c: Likewise.
25597         * math/s_nexttowardf.c: Likewise.
25598         * math/s_significand.c: Likewise.
25599         * math/s_significandf.c: Likewise.
25600         * math/s_significandl.c: Likewise.
25601         * math/w_jnl.c: Likewise.
25602         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
25603         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
25604         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
25605         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
25606         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
25607         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
25608         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
25609         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
25610         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
25611         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
25612         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
25613         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
25614         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
25615         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
25616         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
25617         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
25618         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
25619         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
25620         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
25621         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
25622         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
25623         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
25624         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
25625         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
25626         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
25627         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
25628         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
25629         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
25630         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
25631         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
25632         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
25633         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
25634         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
25635         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
25636         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
25637         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
25638         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
25639         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
25640         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
25641         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
25642         * sysdeps/ieee754/k_standard.c: Likewise.
25643         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
25644         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
25645         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
25646         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
25647         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
25648         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
25649         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
25650         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
25651         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
25652         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
25653         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
25654         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
25655         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
25656         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
25657         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
25658         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
25659         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
25660         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
25661         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
25662         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
25663         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
25664         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
25665         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
25666         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
25667         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
25668         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
25669         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
25670         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
25671         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
25672         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
25673         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
25674         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
25675         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
25676         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
25677         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
25678         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
25679         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
25680         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
25681         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
25682         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
25683         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
25684         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
25685         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
25686         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
25687         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
25688         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
25689         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
25690         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
25691         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
25692         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
25693         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
25694         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
25695         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
25696         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
25697         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
25698         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
25699         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
25700         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
25701         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
25702         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
25703         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
25704         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
25705         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
25706         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
25707         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
25708         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
25709         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
25710         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
25711         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
25712         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
25713         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
25714         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
25715         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
25716         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
25717         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
25718         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
25719         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
25720         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
25721         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
25722         * sysdeps/ieee754/s_matherr.c: Likewise.
25723         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
25724         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
25725         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
25726         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
25727
25728 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
25729
25730         * crypt/md5.h: Remove __STDC__ conditionals.
25731         * libio/libioP.h: Likewise.
25732         * locale/programs/config.h: Likewise.
25733         * sysdeps/generic/sysdep.h: Likewise.
25734         * sysdeps/i386/asm-syntax.h: Likewise.
25735         * sysdeps/s390/asm-syntax.h: Likewise.
25736         * sysdeps/unix/sysdep.h: Likewise.
25737         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
25738         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
25739
25740 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
25741
25742         * libio/libio.h: Remove __STDC__ conditionals.
25743         * malloc/obstack.h: Likewise.
25744         * math/complex.h: Likewise.
25745         * math/math.h: Likewise.
25746         * sysdeps/generic/_G_config.h: Likewise.
25747         * sysdeps/gnu/_G_config.h: Likewise.
25748         * sysdeps/mach/hurd/_G_config.h: Likewise.
25749         * sysdeps/powerpc/bits/mathdef.h: Likewise.
25750         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
25751         * sysdeps/sparc/bits/mathdef.h: Likewise.
25752
25753 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
25754
25755         [BZ #13583]
25756         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
25757         Clean up HAS_* macros.
25758         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
25759         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
25760         possible.
25761         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
25762         HAS_AVX.
25763         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
25764         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
25765         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
25766         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
25767         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
25768
25769 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
25770
25771         * elf/tst-unique3.cc (gets): Remove declaration.
25772         * elf/tst-unique3lib.cc (gets): Likewise.
25773         * elf/tst-unique3lib2.cc (gets): Likewise.
25774         * elf/tst-unique4.cc (gets): Likewise.
25775
25776 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
25777
25778         * include/stdio.h: Add C++ protection.  Add gets declarations and
25779         definitions.
25780         * debug/tst-chk1.c: Don't declare gets here.
25781         * stdio-common/tst-gets.c: Likewise.
25782
25783 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
25784
25785         * posix/glob: Remove directory.
25786
25787 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
25788
25789         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
25790
25791 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
25792
25793         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
25794         of the non-standard EPFNOSUPPORT.
25795
25796 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
25797
25798         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
25799         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
25800         ANYWHERE set to 1 only on KERN_NO_SPACE error.
25801
25802 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
25803
25804         * wcsmbs/uchar.h: Test __STDC_VERSION__.
25805
25806 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
25807
25808         * nscd/aicache.c (addhstaiX): Do not cache negative results of
25809         transient errors.
25810         * nscd/grpcache.c (cache_addgr): Likewise.
25811         * nscd/hstcache.c (cache_addhst): Likewise.
25812         * nscd/initgrcache.c (addinitgroupsX): Likewise.
25813         * nscd/pwdcache.c (cache_addpw): Likewise.
25814         * nscd/servicescache.c (cache_addserv): Likewise.
25815
25816 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
25817
25818         * malloc/malloc.c: Various cleanups.
25819         * malloc/hooks.c: Likewise.
25820
25821         * stdlib/Makefile (tests): Add bug-fmtmsg1.
25822         * stdlib/bug-fmtmsg1.c: New file.
25823
25824         * stdlib/fmtmsg.c (init): Add missing unlock.
25825         Patch by Peng Haitao <penght@cn.fujitsu.com>.
25826
25827 2012-01-12  Marek Polacek  <polacek@redhat.com>
25828
25829         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
25830         and _GNU_SOURCE.
25831
25832 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
25833
25834         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
25835         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
25836         macro to ensure uniqueness of label name.
25837         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
25838         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
25839
25840 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
25841
25842         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
25843
25844         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
25845         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
25846         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
25847         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
25848
25849 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
25850
25851         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
25852
25853         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
25854         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
25855         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
25856
25857         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
25858
25859         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
25860         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
25861         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
25862         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
25863
25864         * math/bits/math-finite.h: Add ldexp support.
25865
25866 2012-01-10  Marek Polacek  <polacek@redhat.com>
25867
25868         * locale/programs/localedef.h (show_archive_content): Add noreturn
25869         attribute.
25870
25871 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
25872
25873         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
25874
25875 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
25876
25877         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
25878
25879         * io/Makefile (headers): Add bits/poll2.h.
25880
25881 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
25882
25883         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
25884         typo #include statement.
25885
25886 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
25887
25888         * include/sys/cdefs.h: Define __attribute_alloc_size.
25889         * catgets/gencat.c: Add alloc_size attribute and apply consistently
25890         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
25891         * elf/pldd.c: Likewise.
25892         * iconv/iconv_charmap.c: Likewise.
25893         * iconv/iconvconfig.c: Likewise.
25894         * iconv/strtab.c: Likewise.
25895         * locale/programs/locale.c: Likewise.
25896         * locale/programs/localedef.h: Likewise.
25897         * locale/programs/simple-hash.c: Likewise.
25898         * nscd/nscd.h: Likewise.
25899         * nss/makedb.c: Likewise.
25900         * sysdeps/generic/ldconfig.h: Likewise.
25901         * locale/programs/localedef.c: Remove xmalloc prototype.
25902         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
25903
25904 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
25905
25906         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
25907         appropriate.
25908
25909 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
25910
25911         * math/Makefile (tests): Add tst-CMPLX.
25912         * math/tst-CMPLX.c: New file.
25913
25914         * math/complex.h (CMPLXL): Fix typo.
25915
25916         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
25917         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
25918         GLIBC_2.16.
25919         * debug/tst-chk1.c: Add poll and ppoll tests.
25920         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
25921         * include/sys/poll.h: Add hidden proto for ppoll.
25922         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
25923         * sysdeps/mach/hurd/ppoll.c: Likewise.
25924         * io/ppoll.c: Likewise.
25925         * debug/poll_chk.c: New file.
25926         * debug/ppoll_chk.c: New file.
25927         * include/bits/poll2.h: New file.
25928         * io/bits/poll2.h: New file.
25929
25930         [BZ #1350]
25931         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
25932
25933         * configure.in: static is always set to yes.  Remove.
25934         * config.make.in: Don't set build-static.
25935         * Makeconfig: Remove use of build-static.
25936         * dlfcn/Makefile: Likewise.
25937         * elf/Makefile: Likewise.
25938         * math/Makefile: Likewise.
25939         * misc/Makefile: Likewise.
25940         * nptl/Makefile: Likewise.
25941         * sysdeps/mach/hurd/Makefile: Likewise.
25942
25943         * configure.in: PWD_P is not used anymore.
25944         * config.make.in: Remove PWD_P entry.
25945
25946         * configure.in: Remove last remnants of RANLIB.
25947         No need to check for signed size_t anymore.
25948         Don't set libc_commonpagesize and libc_relro_required here for Alpha
25949         and IA-64.
25950         Remove __builtin_expect test because we require at least gcc 3.4.
25951         * aclocal.m4: Likewise.
25952
25953         * wcsmbs/mbrtoc16.c: Implement using towc function.
25954         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
25955         * wcsmbs/wcsmbsload.c: Likewise.
25956         * iconv/gconv_simple.c: Likewise.
25957         * iconv/gconv_int.h: Likewise.
25958         * iconv/gconv_builtin.h: Likewise.
25959         * iconv/iconv_prog.c: Remove CHAR16 handling.
25960
25961         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
25962
25963         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
25964
25965         * configure.in: Remove --with-elf and --enable-bounded options.
25966         Dont set base_machine for ia64.  More non-ELF conditions removed.
25967         Remove testing and setting of leading underscore information.
25968         * config.make.in (build-bounded): Set to no.
25969         * config.h.in: Remove NO_UNDERSCORES entry.
25970         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
25971         them.
25972         * csu/start.c: Remove !NO_UNDERSCORE code.
25973         * locale/localeinfo.h: Likewise.
25974         * sysdeps/generic/machine-gmon.h: Likewise.
25975         * sysdeps/generic/sysdep.h: Likewise.
25976         * sysdeps/i386/sysdep.h: Likewise.
25977         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
25978         * sysdeps/mach/sysdep.h: Likewise.
25979         * sysdeps/s390/s390-32/sysdep.h: Likewise.
25980         * sysdeps/s390/s390-64/sysdep.h: Likewise.
25981         * sysdeps/sh/sysdep.h: Likewise.
25982         * sysdeps/sparc/sparc32/alloca.S: Likewise.
25983         * sysdeps/unix/i386/sysdep.S: Likewise.
25984         * sysdeps/unix/sparc/start.c: Likewise.
25985         * sysdeps/unix/sparc/sysdep.S: Likewise.
25986         * sysdeps/unix/sparc/sysdep.h: Likewise.
25987         * sysdeps/unix/start.c: Likewise.
25988         * sysdeps/unix/x86_64/sysdep.S: Likewise.
25989         * sysdeps/x86_64/sysdep.h: Likewise.
25990
25991 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
25992
25993         [BZ #13553]
25994         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
25995         for non-gcc.
25996         * argp/argp-fmtstream.h: Use const instead __const.
25997         * argp/argp.h: Likewise.
25998         * assert/assert.h: Likewise.
25999         * bits/fenv.h: Likewise.
26000         * bits/sched.h: Likewise.
26001         * bits/sigset.h: Likewise.
26002         * bits/sigthread.h: Likewise.
26003         * catgets/nl_types.h: Likewise.
26004         * conform/data/pthread.h-data: Likewise.
26005         * crypt/crypt-private.h: Likewise.
26006         * crypt/crypt.h: Likewise.
26007         * crypt/crypt_util.c: Likewise.
26008         * ctype/ctype.h: Likewise.
26009         * debug/execinfo.h: Likewise.
26010         * debug/mbsnrtowcs_chk.c: Likewise.
26011         * debug/mbsrtowcs_chk.c: Likewise.
26012         * debug/wcsnrtombs_chk.c: Likewise.
26013         * debug/wcsrtombs_chk.c: Likewise.
26014         * debug/wcstombs_chk.c: Likewise.
26015         * dirent/dirent.h: Likewise.
26016         * dlfcn/dlfcn.h: Likewise.
26017         * elf/neededtest4.c: Likewise.
26018         * grp/grp.h: Likewise.
26019         * gshadow/gshadow.h: Likewise.
26020         * iconv/gconv.h: Likewise.
26021         * iconv/gconv_int.h: Likewise.
26022         * iconv/gconv_simple.c: Likewise.
26023         * iconv/iconv.h: Likewise.
26024         * iconv/loop.c: Likewise.
26025         * iconv/skeleton.c: Likewise.
26026         * include/aio.h: Likewise.
26027         * include/aliases.h: Likewise.
26028         * include/argz.h: Likewise.
26029         * include/arpa/inet.h: Likewise.
26030         * include/assert.h: Likewise.
26031         * include/dirent.h: Likewise.
26032         * include/dlfcn.h: Likewise.
26033         * include/execinfo.h: Likewise.
26034         * include/fcntl.h: Likewise.
26035         * include/fenv.h: Likewise.
26036         * include/glob.h: Likewise.
26037         * include/grp.h: Likewise.
26038         * include/libintl.h: Likewise.
26039         * include/mntent.h: Likewise.
26040         * include/netdb.h: Likewise.
26041         * include/pwd.h: Likewise.
26042         * include/rpc/netdb.h: Likewise.
26043         * include/sched.h: Likewise.
26044         * include/search.h: Likewise.
26045         * include/shadow.h: Likewise.
26046         * include/signal.h: Likewise.
26047         * include/stdio.h: Likewise.
26048         * include/stdlib.h: Likewise.
26049         * include/string.h: Likewise.
26050         * include/sys/socket.h: Likewise.
26051         * include/sys/stat.h: Likewise.
26052         * include/sys/statfs.h: Likewise.
26053         * include/sys/statvfs.h: Likewise.
26054         * include/sys/syslog.h: Likewise.
26055         * include/sys/time.h: Likewise.
26056         * include/sys/uio.h: Likewise.
26057         * include/time.h: Likewise.
26058         * include/unistd.h: Likewise.
26059         * include/utmp.h: Likewise.
26060         * include/wchar.h: Likewise.
26061         * include/wctype.h: Likewise.
26062         * inet/aliases.h: Likewise.
26063         * inet/arpa/inet.h: Likewise.
26064         * inet/netinet/ether.h: Likewise.
26065         * inet/netinet/in.h: Likewise.
26066         * intl/libintl.h: Likewise.
26067         * io/bits/fcntl2.h: Likewise.
26068         * io/fcntl.h: Likewise.
26069         * io/ftw.h: Likewise.
26070         * io/sys/poll.h: Likewise.
26071         * io/sys/stat.h: Likewise.
26072         * io/sys/statfs.h: Likewise.
26073         * io/sys/statvfs.h: Likewise.
26074         * io/utime.h: Likewise.
26075         * libio/bits/stdio.h: Likewise.
26076         * libio/bits/stdio2.h: Likewise.
26077         * libio/libio.h: Likewise.
26078         * libio/libioP.h: Likewise.
26079         * libio/stdio.h: Likewise.
26080         * locale/lc-ctype.c: Likewise.
26081         * locale/locale.h: Likewise.
26082         * login/utmp.h: Likewise.
26083         * malloc/arena.c: Likewise.
26084         * malloc/malloc.c: Likewise.
26085         * malloc/malloc.h: Likewise.
26086         * malloc/mcheck.c: Likewise.
26087         * malloc/mtrace.c: Likewise.
26088         * math/bits/mathcalls.h: Likewise.
26089         * math/fenv.h: Likewise.
26090         * math/math_private.h: Likewise.
26091         * misc/bits/error.h: Likewise.
26092         * misc/bits/syslog.h: Likewise.
26093         * misc/err.h: Likewise.
26094         * misc/error.h: Likewise.
26095         * misc/fstab.h: Likewise.
26096         * misc/mntent.h: Likewise.
26097         * misc/regexp.h: Likewise.
26098         * misc/search.h: Likewise.
26099         * misc/sgtty.h: Likewise.
26100         * misc/sys/mman.h: Likewise.
26101         * misc/sys/syslog.h: Likewise.
26102         * misc/sys/uio.h: Likewise.
26103         * misc/sys/xattr.h: Likewise.
26104         * misc/ttyent.h: Likewise.
26105         * nis/rpcsvc/ypclnt.h: Likewise.
26106         * nss/nss.h: Likewise.
26107         * posix/bits/unistd.h: Likewise.
26108         * posix/fnmatch.h: Likewise.
26109         * posix/glob.h: Likewise.
26110         * posix/sched.h: Likewise.
26111         * posix/spawn.h: Likewise.
26112         * posix/sys/wait.h: Likewise.
26113         * posix/unistd.h: Likewise.
26114         * posix/wordexp.h: Likewise.
26115         * pwd/pwd.h: Likewise.
26116         * resolv/netdb.h: Likewise.
26117         * resource/sys/resource.h: Likewise.
26118         * rt/aio.h: Likewise.
26119         * rt/bits/mqueue2.h: Likewise.
26120         * rt/mqueue.h: Likewise.
26121         * shadow/shadow.h: Likewise.
26122         * signal/signal.h: Likewise.
26123         * socket/send.c: Likewise.
26124         * socket/sendto.c: Likewise.
26125         * socket/sys/socket.h: Likewise.
26126         * stdio-common/printf.h: Likewise.
26127         * stdlib/bits/stdlib.h: Likewise.
26128         * stdlib/fmtmsg.h: Likewise.
26129         * stdlib/monetary.h: Likewise.
26130         * stdlib/stdlib.h: Likewise.
26131         * stdlib/ucontext.h: Likewise.
26132         * streams/stropts.h: Likewise.
26133         * string/argz.h: Likewise.
26134         * string/bits/string2.h: Likewise.
26135         * string/string.h: Likewise.
26136         * string/strings.h: Likewise.
26137         * sunrpc/rpc/auth.h: Likewise.
26138         * sunrpc/rpc/auth_des.h: Likewise.
26139         * sunrpc/rpc/clnt.h: Likewise.
26140         * sunrpc/rpc/netdb.h: Likewise.
26141         * sunrpc/rpc/pmap_clnt.h: Likewise.
26142         * sunrpc/rpc/xdr.h: Likewise.
26143         * sysdeps/generic/inttypes.h: Likewise.
26144         * sysdeps/generic/net/if.h: Likewise.
26145         * sysdeps/generic/sys/swap.h: Likewise.
26146         * sysdeps/gnu/net/if.h: Likewise.
26147         * sysdeps/gnu/utmpx.h: Likewise.
26148         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
26149         * sysdeps/i386/i486/bits/string.h: Likewise.
26150         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
26151         * sysdeps/s390/bits/string.h: Likewise.
26152         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
26153         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
26154         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
26155         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
26156         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
26157         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
26158         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
26159         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
26160         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
26161         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
26162         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
26163         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
26164         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
26165         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
26166         * sysdeps/unix/sysv/linux/readv.c: Likewise.
26167         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
26168         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
26169         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
26170         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
26171         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
26172         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
26173         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
26174         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
26175         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
26176         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
26177         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
26178         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
26179         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
26180         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
26181         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
26182         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
26183         * sysvipc/sys/ipc.h: Likewise.
26184         * sysvipc/sys/msg.h: Likewise.
26185         * sysvipc/sys/sem.h: Likewise.
26186         * sysvipc/sys/shm.h: Likewise.
26187         * termios/termios.h: Likewise.
26188         * time/sys/time.h: Likewise.
26189         * time/time.h: Likewise.
26190         * wcsmbs/bits/wchar2.h: Likewise.
26191         * wcsmbs/uchar.h: Likewise.
26192         * wcsmbs/wchar.h: Likewise.
26193         * wctype/wctype.h: Likewise.
26194
26195         [BZ #13551]
26196         * Makeconfig: Remove all but ELF support including AIX support.
26197         * Makerules: Likewise.
26198         * config.h.in: Likewise.
26199         * config.make.in: Likewise.
26200         * configure: Likewise.
26201         * configure.in: Likewise.
26202         * csu/Makefile: Likewise.
26203         * csu/version.c: Likewise.
26204         * debug/Makefile: Likewise.
26205         * dlfcn/Makefile: Likewise.
26206         * elf/Makefile: Likewise.
26207         * extra-lib.mk: Likewise.
26208         * iconv/Makefile: Likewise.
26209         * include/libc-symbols.h: Likewise.
26210         * include/shlib-compat.h: Likewise.
26211         * resolv/Makefile: Likewise.
26212         * resolv/res_libc.c: Likewise.
26213         * rt/Makefile: Likewise.
26214         * sysdeps/i386/asm-syntax.h: Likewise.
26215         * sysdeps/i386/sysdep.h: Likewise.
26216         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
26217         * sysdeps/mach/sysdep.h: Likewise.
26218         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
26219         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
26220         * sysdeps/s390/asm-syntax.h: Likewise.
26221         * sysdeps/s390/s390-32/sysdep.h: Likewise.
26222         * sysdeps/s390/s390-64/sysdep.h: Likewise.
26223         * sysdeps/sh/sysdep.h: Likewise.
26224         * sysdeps/unix/sparc/sysdep.h: Likewise.
26225         * sysdeps/wordsize-32/divdi3.c: Likewise.
26226         * sysdeps/x86_64/sysdep.h: Likewise.
26227
26228         * argp/Versions: Remove _argp_unlock_xxx.
26229
26230         [BZ #13559]
26231         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
26232         * abilist/libBrokenLocale.abilist: Likewise.
26233         * abilist/libanl.abilist: Likewise.
26234         * abilist/libc.abilist: Likewise.
26235         * abilist/libcrypt.abilist: Likewise.
26236         * abilist/libdl.abilist: Likewise.
26237         * abilist/libm.abilist: Likewise.
26238         * abilist/libnsl.abilist: Likewise.
26239         * abilist/libpthread.abilist: Likewise.
26240         * abilist/libresolv.abilist: Likewise.
26241         * abilist/librt.abilist: Likewise.
26242         * abilist/libthread_db.abilist: Likewise.
26243         * abilist/libutil.abilist: Likewise.
26244         * abilist/libnss_db.abilist: New file.
26245
26246         * scripts/abilist.awk: Add support for indirect functions.
26247
26248         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
26249
26250         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
26251
26252         * shlib-versions: Remove entries for ports architectures.
26253
26254         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
26255         files in ports.
26256         * elf/stackguard-macros.h: Remove support for IA-64.
26257         * elf/tst-auditmod1.c: Likewise.
26258         * sysdeps/generic/ldsodefs.h: Likewise.
26259
26260         * sysdeps/unix/sysv/linux/configure.in: Ports should define
26261         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
26262         configure files.
26263
26264         [BZ #13552]
26265         * configure.in: Remove --enable-omitfp support.
26266         * FAQ.in: Adjust.
26267         * config.make.in: Likewise.
26268         * Makeconfig: Likewise.
26269         * manual/install.texi: Likewise.
26270
26271         In case anyone cares, the IA-64 architecture could move to ports.
26272         * sysdeps/ia64/*: Removed.
26273         * sysdeps/unix/sysv/linux/ia64/*: Removed.
26274         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
26275
26276         [BZ #13555]
26277         * configure.in: Remove entries for unsupported architectures.
26278
26279         [BZ #13533]
26280         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
26281         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
26282         routines.
26283         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
26284         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
26285         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
26286         fall back to using wcrtomb.
26287         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
26288         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
26289         renaming.
26290         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
26291         * wcsmbs/tst-c16c32-1.c: New file.
26292
26293         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
26294         local variable.
26295
26296         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
26297
26298         * elf/tst-unique3.cc: Add explicit declaration of gets.
26299         * elf/tst-unique3lib.cc: Likewise.
26300         * elf/tst-unique3lib2.cc: Likewise.
26301         * elf/tst-unique4.cc: Likewise.
26302
26303         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
26304
26305 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
26306
26307         [BZ #13566]
26308         * assert/assert.h (static_assert): Don't define for C++.
26309         * libio/stdio.h (gets): Do declare for C++ <= C++11.
26310         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
26311
26312 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
26313
26314         * iconv/loop.c (single loop): Fix assertion in storing of
26315         remaining bytes.
26316
26317         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
26318
26319 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
26320
26321         * posix/getconf.c: Update copyright year.
26322         * nss/getent.c: Likewise.
26323         * nss/makedb.c: Likewise.
26324         * iconv/iconvconfig.c: Likewise.
26325         * iconv/iconv_prog.c: Likewise.
26326         * elf/ldconfig.c: Likewise.
26327         * elf/pldd.c: Likewise.
26328         * elf/sotruss.ksh: Likewise.
26329         * catgets/gencat.c: Likewise.
26330         * csu/version.c: Likewise.
26331         * elf/ldd.bash.in: Likewise.
26332         * elf/sprof.c (print_version): Likewise.
26333         * locale/programs/locale.c: Likewise.
26334         * locale/programs/localedef.c: Likewise.
26335         * login/programs/pt_chown.c: Likewise.
26336         * nscd/nscd.c (print_version): Likewise.
26337         * debug/xtrace.sh: Likewise.
26338         * malloc/memusage.sh: Likewise.
26339         * malloc/mtrace.pl: Likewise.
26340         * debug/catchsegv.sh: Likewise.
26341
26342 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
26343
26344         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
26345         pure attribute.
26346
26347 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
26348
26349         [BZ #13533]
26350         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
26351         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
26352         transformations.
26353         * iconv/gconv_int.h: Likewise.
26354         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
26355         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
26356         from libc for GLIBC_2.16.
26357         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
26358         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
26359         * wcsmbs/uchar.h: Really define mbstate_t.
26360         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
26361         * wcsmbs/c16rtomb.c: New file.
26362         * wcsmbs/mbrtoc16.c: New file.
26363         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
26364         for C/POSIX locale.
26365         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
26366         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
26367
26368         * wcsmbs/wchar.h: Add missing __restrict.
26369
26370 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
26371
26372         [BZ #13532]
26373         * time/Makefile (routines): Add timespec_get.
26374         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
26375         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
26376         timespec for ISO C11.
26377         * time/timespec_get.c: New file.
26378         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
26379         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
26380
26381         [BZ #13531]
26382         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
26383         * stdlib/stdlib.h: Declare aligned_alloc.
26384         * Versions.def: Add GLIBC_2.16 for libc.
26385         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
26386
26387         [BZ 13527]
26388         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
26389         ISO C11.
26390
26391         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
26392         code.
26393
26394         [BZ #13528]
26395         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
26396
26397         [BZ #13529]
26398         * assert/assert.h (static_assert): Define.
26399
26400         * version.h: Update for 2.16 development version.
26401
26402         [BZ #13526]
26403         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
26404         _ISOC11_SOURCE.
26405
26406         * version.h (RELEASE): Bump for 2.15 release.
26407         * include/features.h (__GLIBC_MINOR__): Bump to 15.
26408
26409         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
26410         Patch by Marek Polacek <mpolacek@redhat.com>.
26411
26412         * bits/byteswap.h: Protect long long constants with __extension__.
26413         * sysdeps/i386/bits/byteswap.h: Likewise.
26414         * sysdeps/ia64/bits/byteswap.h: Likewise.
26415         * sysdeps/s390/bits/byteswap.h: Likewise.
26416         * sysdeps/x86_64/bits/byteswap.h: Likewise.
26417
26418 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26419
26420         [BZ #13540]
26421         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
26422         destination buffer.
26423         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
26424
26425 2011-12-23  Marek Polacek  <polacek@redhat.com>
26426
26427         * elf/dl-addr.c (determine_info): Add inline keyword.
26428         * elf/tst-auditmod4b.c (check_avx): Likewise.
26429         * elf/tst-auditmod6b.c (check_avx): Likewise.
26430         * elf/tst-auditmod6c.c (check_avx): Likewise.
26431         * elf/tst-auditmod7b.c (check_avx): Likewise.
26432
26433 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
26434
26435         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
26436         !__SSE_MATH__.
26437
26438 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26439
26440         [BZ #13540]
26441         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
26442         processing for last bytes.
26443
26444 2011-08-06  Bruno Haible  <bruno@clisp.org>
26445
26446         [BZ #13061]
26447         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
26448         U+0385, not to U+1FEE.
26449
26450         [BZ #13062]
26451         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
26452         entry for U+00A5 U+0301.
26453
26454 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
26455
26456         [BZ #13166]
26457         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
26458         buffer for the output is too small.
26459
26460         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
26461         optimization.
26462
26463         [BZ #13185]
26464         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
26465         SSE flags if possible.
26466
26467 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26468
26469         [BZ #13540]
26470         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
26471         processing for last bytes.
26472
26473 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
26474
26475         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
26476         (syscall-list-default-options, syscall-list-default-condition)
26477         (syscall-list-includes): Define.
26478         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
26479         list of ABIs and options and #if conditions for each ABI.  Do not
26480         handle common syscalls between ABIs specially.
26481         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
26482         Remove.
26483         (syscall-list-variants, syscall-list-32bit-options)
26484         (syscall-list-32bit-condition, syscall-list-64bit-options)
26485         (syscall-list-64bit-condition): Define.
26486         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
26487         (syscall-list-variants, syscall-list-32bit-options)
26488         (syscall-list-32bit-condition, syscall-list-64bit-options)
26489         (syscall-list-64bit-condition): Define.
26490         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
26491         Remove.
26492         (syscall-list-variants, syscall-list-32bit-options)
26493         (syscall-list-32bit-condition, syscall-list-64bit-options)
26494         (syscall-list-64bit-condition): Define.
26495         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
26496         Remove.
26497         (syscall-list-variants, syscall-list-32bit-options)
26498         (syscall-list-32bit-condition, syscall-list-64bit-options)
26499         (syscall-list-64bit-condition): Define.
26500
26501 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
26502
26503         * locale/iso-639.def: Add brx entry.
26504
26505         [BZ #13328]
26506         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
26507         Proposed by Mariusz_Cukr <marcukr@op.pl>.
26508
26509         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
26510         __feraiseexcept_renamed.
26511
26512 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
26513
26514         [BZ #13538]
26515         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
26516         EPOLLET with unsigned values.
26517         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
26518         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
26519
26520         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
26521         to large cancellation.
26522         * math/s_cacoshf.c: Likewise.
26523         * math/s_cacoshl.c: Likewise.
26524
26525 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
26526
26527         [BZ #13305]
26528         [BZ #12786]
26529         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
26530         * math/s_cacoshf.c: Likewise.
26531         * math/s_cacoshl.c: Likewise.
26532
26533 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
26534
26535         [BZ #13439]
26536         * iconv/gconv.h: Define __GCONV_SWAP.
26537         * iconvdata/unicode.c: The swap bit must be stored in __flags.
26538         * iconvdata/utf-16.c: Likewise.
26539         * iconvdata/utf-32.c: Likewise.
26540
26541 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
26542
26543         [BZ #13524]
26544         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
26545         numerator after shifting it by one limb.
26546
26547 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
26548
26549         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
26550         under [__USE_EXTERN_INLINES].
26551
26552 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
26553
26554         [BZ #13446]
26555         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
26556
26557 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26558
26559         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
26560         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
26561         optimized code.
26562         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
26563         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
26564         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
26565         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
26566         for strncasecmp/strncasecmp_l compilation.
26567         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
26568         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
26569
26570 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
26571
26572         [BZ #13484]
26573         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
26574         of __asm__.
26575
26576 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
26577
26578         [BZ #13506]
26579         * time/tzfile.c (__tzfile_read): Check values from file header.
26580
26581 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
26582
26583         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
26584         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
26585         * powerpc/powerpc32/dl-start.S: Likewise.
26586         * powerpc/powerpc32/elf/start.S: Likewise.
26587         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
26588         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
26589         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
26590         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
26591         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
26592         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
26593         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
26594         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
26595         * powerpc/powerpc32/fpu/s_round.S: Likewise.
26596         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
26597         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
26598         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
26599         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
26600         * powerpc/powerpc32/memset.S: Likewise.
26601         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
26602         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
26603         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
26604         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
26605         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
26606         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
26607         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
26608         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
26609         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
26610         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
26611         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
26612         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
26613         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
26614
26615 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26616
26617         * math/libm-test.inc: Added more nearbyint tests.
26618         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
26619         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
26620         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
26621         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
26622
26623 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
26624
26625         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
26626         FD_CLOEXEC.
26627
26628 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26629
26630         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
26631         Add wcscpy-ssse3 wcscpy-c.
26632         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
26633         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
26634         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
26635         * sysdeps/x86_64/wcschr.S: New file.
26636         * sysdeps/x86_64/wcsrchr.S: New file.
26637         * string/test-strcmp.c: Remove checking of wcscmp function for
26638         wrong alignments.
26639         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
26640         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
26641         wcsrchr-sse2 wcsrchr-c.
26642         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
26643         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
26644         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
26645         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
26646         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
26647         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
26648         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
26649         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
26650         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
26651         * wcsmbc/wcschr.c (WCSCHR): New macro.
26652
26653 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26654
26655         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
26656         * wcsmbs/test-wcsrchr.c: New file.
26657         * string/test-strrchr.c: Add wcsrchr support.
26658         (WIDE): New macro.
26659         * wcsmbs/test-wcscpy.c: New file.
26660         * string/test-strcpy.c: Add wcscpy support.
26661         (WIDE): New macro.
26662
26663 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
26664
26665         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
26666         the inner loop.
26667
26668 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
26669
26670         [BZ #13472]
26671         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
26672
26673 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
26674
26675         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
26676         Minor optimizations.
26677
26678         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
26679         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
26680         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
26681
26682 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
26683
26684         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
26685         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
26686         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
26687         for gcc to avoid warnings.
26688         * inet/Makefile (tests): Add tst-checks.
26689         * inet/tst-checks.c: New file.
26690
26691         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
26692         warning.
26693
26694         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
26695         __wmemcmp_sse2.
26696
26697         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
26698         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
26699
26700         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
26701
26702 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
26703
26704         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
26705         problem.
26706
26707         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
26708
26709 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
26710
26711         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
26712         conditional on GCC version.
26713         (__arch_compare_and_exchange_val_8_acq)
26714         (__arch_compare_and_exchange_val_16_acq)
26715         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
26716         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
26717         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
26718
26719 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
26720
26721         * sysdeps/sh/backtrace.c: New file.
26722
26723 2011-12-02  Andreas Schwab  <schwab@redhat.com>
26724
26725         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
26726         parenthesis.
26727
26728 2011-12-01  Andreas Schwab  <schwab@redhat.com>
26729
26730         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
26731         falling back to utime.
26732
26733 2011-11-30  Andreas Schwab  <schwab@redhat.com>
26734
26735         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
26736         expectations for float.
26737
26738 2011-11-29  Andreas Schwab  <schwab@redhat.com>
26739
26740         * locale/weight.h (findidx): Add parameter len.
26741         * locale/weightwc.h (findidx): Likewise.
26742         * posix/fnmatch_loop.c (FCT): Adjust caller.
26743         * posix/regcomp.c (build_equiv_class): Likewise.
26744         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
26745         * posix/regexec.c (check_node_accept_bytes): Likewise.
26746         * string/strcoll_l.c (STRCOLL): Likewise.
26747         * string/strxfrm_l.c (STRXFRM): Likewise.
26748
26749 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
26750
26751         * Makefile.in: Remove CVSOPT handling.
26752         * configure.in: Remove use of AC_REVISION.
26753         * iconvdata/Makefile (distribute): No need to filter out CVS.
26754         * scripts/list-sources.sh: Remove CVS, subversion and monotone
26755         handling.
26756
26757 2011-11-16  Andreas Schwab  <schwab@redhat.com>
26758
26759         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
26760         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
26761         [USE_AS_STRNCASECMP_L]: Likewise.
26762         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
26763         NO_TLS_DIRECT_SEG_REFS.
26764         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
26765         Fix argument offsets for non-PIC.
26766         [USE_AS_STRNCASECMP_L]: Likewise.
26767         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
26768         NO_TLS_DIRECT_SEG_REFS.
26769
26770 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
26771
26772         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
26773         O_CLOEXEC.
26774         * locale/loadlocale.c (_nl_load_locale): Likewise.
26775
26776 2011-11-15  Andreas Schwab  <schwab@redhat.com>
26777
26778         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
26779         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
26780         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
26781         (SYSCALL_GETTIME): Set errno on error.
26782
26783         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
26784         count references to noai6ai_cached.
26785
26786 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
26787
26788         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
26789
26790         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
26791         FD_CLOEXEC for /proc/self/maps.
26792
26793         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
26794         FD_CLOEXEC for /proc/meminfo.
26795
26796         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
26797         gai.conf.
26798
26799         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
26800         FD_CLOEXEC for given file.
26801
26802         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
26803
26804         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
26805         FD_CLOEXEC for /etc/hosts.
26806         (_gethtent): Likewise.
26807
26808         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
26809
26810         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
26811         cancellation and set FD_CLOEXEC for /etc/netgroup.
26812
26813         * nss/nss_files/files-key.c (search): Don't allow cancellation when
26814         reading /etc/publickey.
26815
26816         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
26817         allow cancellation when reading /etc/group.
26818
26819         * nss/nss_files/files-alias.c (internal_setent): Don't allow
26820         cancellation.
26821         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
26822
26823         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
26824         when using data file.
26825
26826         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
26827
26828         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
26829         (write_nis_obj): Use "c" and "e" in fopen.
26830
26831         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
26832
26833         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
26834
26835         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
26836
26837         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
26838
26839         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
26840         locale.alias.
26841
26842         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
26843
26844         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
26845
26846         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
26847
26848         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
26849         file parsing and set FD_CLOEXEC.
26850
26851 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
26852
26853         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
26854
26855 2011-11-14  Andreas Schwab  <schwab@redhat.com>
26856
26857         * malloc/arena.c (arena_get2): Don't call reused_arena when
26858         _int_new_arena failed.
26859
26860 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
26861
26862         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
26863         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
26864         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
26865         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
26866         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
26867         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
26868         to compile strcasecmp and strncasecmp.
26869         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
26870         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
26871
26872         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
26873
26874 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
26875
26876         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
26877         locale-defines.sym to gen-as-const-headers.
26878         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
26879         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
26880         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
26881         to compile strcasecmp and strncasecmp.
26882         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
26883         strcasecmp_l and strncasecmp_l.
26884         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
26885         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
26886         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
26887         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
26888         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
26889         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
26890         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
26891         * sysdeps/i386/i686/multiarch/strncase.S: New file.
26892         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
26893         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
26894         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
26895
26896 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
26897
26898         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
26899         result of SYSDEP_GETTIME_CPU to retval.
26900         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
26901         parameter list to macro.  Remove trailing semicolon.  Adjust users.
26902
26903         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
26904         variable.
26905
26906         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
26907         mantissa words.
26908         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
26909
26910         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
26911         from unused variable.
26912
26913         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
26914         DWARF definitions.
26915         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
26916         for assembling.
26917
26918         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
26919         over namespaces.
26920
26921         * sunrpc/rpc_prot.c (rejected): Fix case value.
26922
26923         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
26924         unsigned long long int to avoid warnings in shift.
26925
26926         * posix/regex_internal.c (re_string_reconstruct): Actually use result
26927         of use of trans.
26928         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
26929         variable tmp.
26930
26931         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
26932         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
26933         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
26934
26935         * nis/nis_table.c (nis_list): Use variable of correct type for
26936         result of __follow_path call.
26937
26938 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
26939
26940         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
26941         of math functions ceil, trunc, floor, round, and sqrt, when
26942         avaliable on the platform.
26943         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
26944         name clash.
26945         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
26946         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
26947         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
26948
26949 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
26950
26951         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
26952         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
26953
26954 2011-11-11  Roland McGrath  <roland@hack.frob.com>
26955
26956         * include/unistd.h: Fix __readlink return type.
26957         Reported by Chris Metcalf <cmetcalf@tilera.com>.
26958
26959 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
26960
26961         * stdlib/ucontext.h: Undo last change for makecontext.
26962
26963 2011-11-11  Andreas Schwab  <schwab@redhat.com>
26964
26965         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
26966
26967         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
26968         * setjmp/setjmp.h: Mark functions as non-leaf.
26969         * setjmp/bits/setjmp2.h: Likewise.
26970         * stdlib/ucontext.h: Likewise.
26971
26972 2011-11-10  Andreas Schwab  <schwab@redhat.com>
26973
26974         * malloc/arena.c (_int_new_arena): Don't increment narenas.
26975         (reused_arena): Don't check arena limit.
26976         (arena_get2): Atomically check arena limit.
26977
26978 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
26979
26980         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
26981         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
26982
26983         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
26984         instructions.
26985
26986 2011-11-07  Andreas Schwab  <schwab@redhat.com>
26987
26988         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
26989         handler when locking.
26990
26991         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
26992         Fix size of allocated buffer.
26993
26994 2011-11-04  Andreas Schwab  <schwab@redhat.com>
26995
26996         [BZ #10103]
26997         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
26998         declarations for long double functions.
26999         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
27000
27001         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
27002
27003 2011-11-03  Andreas Schwab  <schwab@redhat.com>
27004
27005         * nscd/nscd.c (main): Don't start AVC thread until credentials are
27006         installed.
27007
27008         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
27009         is disabled.
27010
27011 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27012
27013         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
27014
27015 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
27016
27017         * include/alloca.h (stackinfo_alloca_round): Define.
27018         (extend_alloca): Use it.
27019         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
27020         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
27021         here.
27022
27023         * scripts/check-local-headers.sh: Ignore libaudit.h.
27024
27025         * nscd/Makefile (extra-objs): Make recursively expanded.
27026
27027 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
27028
27029         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
27030         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
27031
27032         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
27033         * posix/tst-rfc3484-2.c: Likewise.
27034         * posix/tst-rfc3484-3.c: Likewise.
27035
27036         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
27037         process_vm_writev.
27038         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
27039         process_vm_writev.
27040         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
27041         process_vm_writev from libc using GLIBC_2.15 version.
27042
27043         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
27044
27045 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
27046
27047         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
27048         stack usage.
27049
27050 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
27051
27052         [BZ #13367]
27053         * nss/getent.c (initgroups_keys): Show error message in case no group
27054         names are given.
27055
27056         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
27057         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
27058         __bump_nl_timestamp.
27059         * nscd/connections (nscd_init): When host database is served open
27060         netlink socket and request notification about configuration changes.
27061         (main_loop_poll): Track netlink file descriptor and bump timestamp
27062         in case data becomes available.
27063         (main_loop_epoll): Likewise.
27064         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
27065         (database_pers_head): Add extra_data fileds.
27066         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
27067         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
27068         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
27069         Adjust caller.
27070         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
27071         in6ai data, call __free_in6ai.
27072         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
27073         Add -DHAVE_NETLINK.
27074         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
27075         interface information.  Reuse previous data if netlink timestamp
27076         is not changed.
27077         (__bump_nl_timestamp): New function.
27078         (__free_in6ai): New function.
27079
27080 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
27081
27082         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
27083         close_not_cancel_no_status here.
27084         (__check_pf): Reorganize code a bit to not call close twice if OOM.
27085
27086 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
27087
27088         [BZ #13276]
27089         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
27090         return value.
27091
27092         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
27093         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
27094         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
27095
27096 2011-07-03  Andreas Jaeger  <aj@suse.de>
27097
27098         [BZ #10709]
27099         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
27100         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
27101         * math/libm-test.inc (sin_test): Add test case.
27102
27103 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
27104
27105         [BZ #13337]
27106         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
27107         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
27108
27109         * elf/chroot_canon.c (chroot_canon): Cleanups.
27110
27111         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
27112
27113         [BZ #13335]
27114         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
27115         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
27116
27117         * string/test-strchr.c: Make usable for strchrnul testing.
27118         * string/test-strchrnul.c: New file.
27119         * string/Makefile (strop-tests): Add strchrnul.
27120
27121         * po/it.po: Update from translation team.
27122         * po/es.po: Likewise.
27123
27124 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
27125
27126         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
27127         the three constants needed as parameters.  Drop the others.
27128         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
27129         __m128i_strloadu_tolower.
27130         Create and initialize variable zero and use it in all the places
27131         where _mm_setzero_si128 was used.
27132
27133         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
27134         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
27135         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
27136         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
27137         anymore.
27138         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
27139         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
27140         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
27141         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
27142         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
27143         __mpranred, __mptan.
27144         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
27145         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
27146         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
27147         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
27148         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
27149         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
27150         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
27151         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
27152         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
27153
27154 2011-10-28  Andreas Schwab  <schwab@redhat.com>
27155
27156         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
27157         redefine if SHARED.
27158         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
27159
27160         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
27161         wide char related routines to wcsmbs subdir.
27162
27163 2011-10-27  Andreas Schwab  <schwab@redhat.com>
27164
27165         [BZ #13344]
27166         * misc/sys/cdefs.h (__THROWNL): Define.
27167         * posix/unistd.h: Use __THREADNL instead of __THREAD
27168         for memory synchronization functions.
27169
27170 2011-10-26  Roland McGrath  <roland@hack.frob.com>
27171
27172         [BZ #13349]
27173         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
27174         doesn't exist.
27175         * manual/stdio.texi (Obstack Streams): Node removed.
27176
27177 2011-10-26  Andreas Schwab  <schwab@redhat.com>
27178
27179         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
27180         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
27181         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
27182
27183         * math/math_private.h (math_force_eval): Allow non-addressable
27184         arguments.
27185         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
27186
27187 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
27188
27189         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
27190         file is not needed.
27191
27192         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
27193         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
27194         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27195         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27196         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27197         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27198         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27199         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
27200         Add AVX variants.
27201         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
27202         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
27203         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
27204         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
27205         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
27206         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
27207         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
27208         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
27209         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
27210         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
27211         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
27212         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
27213         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
27214         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
27215         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
27216         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
27217         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
27218         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
27219         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
27220
27221         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
27222         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
27223
27224         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
27225         place.  Use VEX encoding when compiling for AVX.
27226
27227 2011-10-25  Andreas Schwab  <schwab@redhat.com>
27228
27229         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
27230         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
27231
27232         * string/test-strchr.c (do_test): Don't generate NUL bytes.
27233
27234 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
27235
27236         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
27237         useless if() expression.
27238         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
27239         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
27240         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
27241         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
27242         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
27243         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
27244         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
27245         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
27246         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
27247         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
27248         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
27249         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
27250         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
27251         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
27252         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
27253         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
27254         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
27255         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
27256         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
27257
27258         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
27259
27260 2011-10-25  Andreas Schwab  <schwab@redhat.com>
27261
27262         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
27263         condition.
27264         * elf/dl-fini.c (_dl_sort_fini): Likewise.
27265
27266 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
27267
27268         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
27269         .text section.  Avoid duplicate constants.
27270         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
27271         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
27272         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
27273         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
27274         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
27275         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
27276         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
27277         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
27278         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
27279         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
27280         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
27281         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
27282         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
27283         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
27284         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
27285         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
27286         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
27287         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
27288         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
27289         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
27290         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
27291         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
27292         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
27293         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
27294         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
27295         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
27296         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
27297         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
27298         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
27299         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
27300         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
27301         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
27302         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
27303         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
27304         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
27305         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
27306         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
27307         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
27308         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
27309         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
27310         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
27311         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
27312         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
27313         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
27314         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
27315
27316 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
27317
27318         * sysdeps/x86_64/dla.h: Move to ...
27319         * sysdeps/x86_64/fpu/dla.h: ...here.
27320         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
27321         situations.  Use __builtin_fma only for gcc 4.6 and up.
27322
27323         * config.make.in: Add have-mfma4 entry.
27324         * configure.in: Substitute libc_cv_cc_fma4.
27325         * math/Makefile (dbl-only-routines): Add sincostab.
27326         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
27327         Use __sincostab not sincos.
27328         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
27329         name is a macro.
27330         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
27331         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
27332         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
27333         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
27334         using __copysign.
27335         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
27336         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
27337         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
27338         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
27339         and __inv.
27340         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
27341         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
27342         __copysign.
27343         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
27344         define aliases when function name is a macro.
27345         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
27346         sysdeps/ieee754/dbl-64/sincos.tbl.
27347         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
27348         fma4-enabled routines.
27349         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
27350         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
27351         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
27352         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
27353         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
27354         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
27355         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
27356         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
27357         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
27358         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
27359         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
27360         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
27361         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
27362         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
27363         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
27364         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
27365         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
27366         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
27367         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
27368         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
27369         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
27370         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
27371         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
27372         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
27373         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
27374         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
27375         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
27376         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
27377         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
27378         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
27379
27380         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
27381         rename.
27382         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
27383         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
27384         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
27385         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
27386         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
27387         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
27388         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
27389         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
27390
27391 2011-10-24  Andreas Schwab  <schwab@redhat.com>
27392
27393         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
27394
27395 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
27396
27397         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
27398
27399         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
27400         prediction.
27401         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
27402
27403         * string/strnlen.c: Don't define STRNLEN, reverse logic.
27404         Remove unused variable magic_bits.
27405         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
27406
27407         * string/strnlen.c: Define and use STRNLEN macro.
27408         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
27409         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
27410         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
27411         * wcsmbs/wcslen.c: Define and use WCSLEN.
27412         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
27413         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
27414         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
27415         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
27416         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
27417         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
27418         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
27419
27420 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27421
27422         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
27423         strnlen-sse2-no-bsf.
27424         Rename strlen-no-bsf to strlen-sse2-no-bsf.
27425         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
27426         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
27427         Add strnlen support.
27428         (USE_AS_STRNLEN): New macro.
27429         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
27430         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
27431         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
27432         * sysdeps/x86_64/wcslen.S: New file.
27433
27434 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
27435
27436         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
27437         XMM-moves are used for copying on small sizes.
27438
27439 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27440
27441         * wcsmbs/Makefile (strop-tests): Add wcschr.
27442         * wcsmbs/test-wcschr.c: New file.
27443         * string/test-strchr.c: Update.
27444         Add wcschr support.
27445         (WIDE): New macro.
27446
27447 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27448
27449         * wcsmbs/Makefile (strop-tests): Add wcslen.
27450         * wcsmbs/test-wcslen.c: New file.
27451         * string/test-strlen.c: Update.
27452         Add wcslen support.
27453         (WIDE): New macro.
27454
27455 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
27456
27457         * po/it.po: Update from translation team.
27458
27459 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27460
27461         * sysdeps/x86_64/wcscmp.S: Update.
27462         Fix wrong comparison semantics.
27463         wcscmp shall use signed comparison not unsigned.
27464         Don't use substraction to avoid overflow bug.
27465         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
27466         * wcsmbc/wcscmp.c: Likewise.
27467         * string/test-strcmp.c: Likewise.
27468         Add new tests to check cases with negative values.
27469
27470 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
27471
27472         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
27473         * sysdeps/x86_64/dla.h: ...here.  New file.
27474         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
27475         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
27476         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
27477         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
27478         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
27479         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
27480         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
27481         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
27482         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
27483
27484 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
27485
27486         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
27487         __ynl_finite aliases.
27488
27489 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
27490
27491         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
27492
27493         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
27494         define DLA_FMA.
27495         [DLA_FMA] (EMULV): Use DLA_FMA.
27496         [DLA_FMA] (MUL12): Use EMULV.
27497         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
27498         that are not needed.
27499         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
27500         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
27501         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
27502         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
27503         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
27504         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
27505         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
27506
27507 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
27508
27509         * math/s_nan.c: Undef __nan.
27510         * math/s_nanf.c: Undef __nanf.
27511         * math/s_nanl.c: Undef __nanl.
27512         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
27513         "math_private.h".
27514
27515 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
27516
27517         * math/s_catan.c: Add branch predictions.
27518         * math/s_catanf.c: Likewise.
27519         * math/s_catanh.c: Likewise.
27520         * math/s_catanhf.c: Likewise.
27521         * math/s_catanhl.c: Likewise.
27522         * math/s_catanl.c: Likewise.
27523         * math/s_cexp.c: Likewise.
27524         * math/s_cexpf.c: Likewise.
27525         * math/s_cexpl.c: Likewise.
27526         * math/s_clog.c: Likewise.
27527         * math/s_clog10.c: Likewise.
27528         * math/s_clog10f.c: Likewise.
27529         * math/s_clog10l.c: Likewise.
27530         * math/s_clogf.c: Likewise.
27531         * math/s_clogl.c: Likewise.
27532         * math/s_csqrt.c: Likewise.
27533         * math/s_csqrtf.c: Likewise.
27534         * math/s_csqrtl.c: Likewise.
27535         * math/s_ctanf.c: Likewise.
27536         * math/s_ctanh.c: Likewise.
27537         * math/s_ctanhf.c: Likewise.
27538         * math/s_ctanhl.c: Likewise.
27539         * math/s_ctanl.c: Likewise.
27540
27541         * math/math_private.h: Define __nan, __nanf, __nanl.
27542         * math/s_cacosh.c: Include <math_private.h>.
27543         * math/s_cacoshl.c: Likewise.
27544         * math/s_casinh.c: Likewise.
27545         * math/s_casinhf.c: Likewise.
27546         * math/s_casinhl.c: Likewise.
27547         * math/s_ccos.c: Rely entire on ccosh.
27548         * math/s_ccosf.c: Rely entire on ccoshf.
27549         * math/s_ccosl.c: Rely entirely on ccoshl.
27550         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
27551         Remove tests for FE_INVALID.
27552         * math/s_ccoshf.c: Likewise.
27553         * math/s_ccoshl.c: Likewise.
27554         * math/s_csin.c: Likewise.
27555         * math/s_csinf.c: Likewise.
27556         * math/s_csinh.c Likewise.
27557         * math/s_csinhf.c: Likewise.
27558         * math/s_csinhl.c: Likewise.
27559         * math/s_csinl.c: Likewise.
27560         * math/s_ctan.c: Likewise.
27561         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
27562         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
27563         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
27564
27565 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
27566
27567         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
27568         compilation problems.
27569
27570         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
27571         __builtin_expect.
27572
27573 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
27574
27575         * sysdeps/i386/configure.in: Test for -mfma4 option.
27576         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
27577         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
27578         COMMON_CPUID_INDEX_80000001.
27579         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
27580         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
27581         use it if FMA3 is not supported.
27582         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
27583
27584         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
27585         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
27586
27587 2011-10-20  Andreas Schwab  <schwab@redhat.com>
27588
27589         [BZ #12892]
27590         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
27591         it would create a cycle with a link time dependency.
27592
27593 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
27594
27595         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
27596         instruction.
27597         * string/Makefile (strop-tests): Add rawmemchr.
27598         * string/test-rawmemchr.c: New file.
27599
27600         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
27601         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
27602         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
27603         when compiling str{,n}casecmp and when AVX is available.  Hook up
27604         new optimized code in initializers.
27605
27606 2011-10-19  Andreas Schwab  <schwab@redhat.com>
27607
27608         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
27609         __feraiseexcept instead of feraiseexcept.
27610
27611 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
27612
27613         * math/math_private.h: Define defaults for libc_fetestexcept and
27614         libc_feupdateenv.
27615         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
27616         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
27617         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
27618         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
27619         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
27620         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
27621         libc_fetestexcept and libc_feupdateenv.
27622
27623         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
27624         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
27625         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
27626         * sysdeps/x86_64/fpu/math_private.h: Define special version of
27627         libc_feholdexcept_setround.
27628
27629         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
27630         Add s_nearbyint-c and s_nearbyintf-c.
27631         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
27632         nearbyintf inlines.
27633         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
27634         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
27635         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
27636         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
27637
27638         * math/math_private.h: Define defaults for libc_fegetround,
27639         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
27640         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
27641         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
27642         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
27643         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
27644         standard functions.
27645         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
27646         Remove comments and hacks for old compiler versions.
27647         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
27648         libc_fegetround, libc_fesetround, libc_feholdexcept, and
27649         libc_feholdexceptl.
27650
27651 2011-10-18  Andreas Schwab  <schwab@redhat.com>
27652
27653         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
27654         (__feraiseexcept_renamed): Add __NTH.
27655         (feraiseexcept): Add __NTH.  Rename local variables to fix
27656         namespace violations.
27657
27658 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
27659
27660         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
27661
27662         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
27663
27664         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
27665         recently added interfaces.
27666         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
27667
27668         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
27669         about macro parameter expansion.
27670
27671         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
27672         __NO_MATH_INLINES is defined.  Cleanups.
27673
27674         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
27675         and __floorf is target has SSE4.1.
27676         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
27677         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
27678         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
27679         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
27680
27681         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
27682         name.
27683         (floorf): Likewise.
27684
27685         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
27686
27687 2011-10-17  Andreas Schwab  <schwab@redhat.com>
27688
27689         * misc/sys/cdefs.h: Fix last change.
27690
27691         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
27692         database lookup.
27693
27694 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
27695
27696         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
27697
27698         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
27699         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
27700         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
27701         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
27702         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
27703         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
27704         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
27705         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
27706         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
27707         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
27708         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
27709         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
27710         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
27711         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
27712         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
27713         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
27714         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
27715         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
27716         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
27717         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
27718         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
27719         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
27720
27721         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
27722         ceil, ceilf, floor, floorf.
27723
27724         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
27725         Perform IRELATIVE relocations last.
27726
27727         * elf/do-rel.h: Add another parameter nrelative, replacing the
27728         local variable with the same name.  Change name of the function
27729         to end in Rel or Rela (uppercase).
27730         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
27731         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
27732         elf_dynamic_do_##reloc function.
27733
27734 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
27735
27736         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
27737         is sufficient, at least on modern CPUs.
27738
27739         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
27740
27741         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
27742         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
27743
27744         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
27745         __expl_finite.
27746         * math/bits/math-finite.h: Add entries for exp.
27747         * math/e_expl.c: Add __*_finite alias.
27748         * sysdeps/i386/fpu/e_exp.S: Likewise.
27749         * sysdeps/i386/fpu/e_expf.S: Likewise.
27750         * sysdeps/i386/fpu/e_expl.c: Likewise.
27751         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
27752         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
27753         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
27754         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
27755         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
27756         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
27757         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
27758
27759         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
27760         is sufficient, at least on modern CPUs.
27761
27762         * ctype/ctype-info.c (__ctype_init): Define.
27763         * include/ctype.h (__ctype_init): Declare.
27764         (__ctype_b_loc): The variable is always initialized.
27765         (__ctype_toupper_loc): Likewise.
27766         (__ctype_tolower_loc): Likewise.
27767         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
27768         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
27769
27770 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
27771
27772         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
27773
27774         * configure.in: Also look in $cxxmachine/include for C++ system
27775         headers.
27776
27777 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27778
27779         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
27780         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
27781         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
27782         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
27783         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
27784         (USE_AS_WMEMCMP): New macro.
27785         Fixing indents.
27786         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
27787         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
27788         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
27789         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
27790         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
27791         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
27792         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
27793         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
27794         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
27795         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
27796         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
27797         (USE_AS_WMEMCMP): New macro.
27798         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
27799         * sysdeps/string/test-memcmp.c: Update.
27800         Fix simple_wmemcmp.
27801         Add new tests.
27802         * wcsmbs/wmemcmp.c: Update.
27803         (WMEMCMP): New macro.
27804         Fix overflow bug.
27805
27806 2011-10-12  Andreas Jaeger  <aj@suse.de>
27807
27808         [BZ #13268]
27809         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
27810
27811 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
27812
27813         * libio/iofwide.c (do_length): Avoid warning.
27814
27815         * ctype/ctype.h (__isctype_f): Add missing __THROW.
27816
27817 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
27818
27819         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
27820
27821         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
27822         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
27823         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
27824         * sysdeps/i386/i686/fpu/e_log.S: New file.
27825         * sysdeps/i386/i686/fpu/e_logf.S: New file.
27826         * sysdeps/i386/i686/fpu/e_logl.S: New file.
27827
27828         * ctype/ctype.h: Add support for inlined isXXX functions when
27829         compiling C++ code.
27830
27831 2011-10-14  Andreas Schwab  <schwab@redhat.com>
27832
27833         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
27834
27835         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
27836
27837 2011-10-13  Roland McGrath  <roland@hack.frob.com>
27838
27839         [BZ #13291]
27840         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
27841
27842 2011-10-13  Andreas Schwab  <schwab@redhat.com>
27843
27844         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
27845         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
27846         feraiseexcept.
27847
27848         * sysdeps/x86_64/memrchr.S: Check for zero size.
27849
27850         * string/stratcliff.c: Add memrchr tests.
27851
27852 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27853
27854         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
27855         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
27856         rawmemchr-sse2 rawmemchr-sse2-bsf.
27857         * sysdeps/i386/i686/multiarch/memchr.S: New file.
27858         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
27859         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
27860         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
27861         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
27862         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
27863         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
27864         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
27865         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
27866         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
27867         * string/memrchr.c (MEMRCHR): New macro.
27868
27869 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
27870
27871         Add integration with gcc's -ffinite-math-only and optimize wrapper
27872         functions in libm.
27873         * Versions.def: Define GLIBC_2.15 version for libm.
27874         * math/Makefile (headers): Add bits/math-finite.h.
27875         * math/bits/math-finite.h: New file.
27876         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
27877         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
27878         * math/e_acoshl.c: Add __*_finite alias.
27879         * math/e_acosl.c: Likewise.
27880         * math/e_asinl.c: Likewise.
27881         * math/e_atan2l.c: Likewise.
27882         * math/e_atanhl.c: Likewise.
27883         * math/e_coshl.c: Likewise.
27884         * math/e_exp10.c: Likewise.
27885         * math/e_exp10f.c: Likewise.
27886         * math/e_exp10l.c: Likewise.
27887         * math/e_exp2l.c: Likewise.
27888         * math/e_fmodl.c: Likewise.
27889         * math/e_gammal_r.c: Likewise.
27890         * math/e_hypotl.c: Likewise.
27891         * math/e_j0l.c: Likewise.
27892         * math/e_j1l.c: Likewise.
27893         * math/e_jnl.c: Likewise.
27894         * math/e_lgammal_r.c: Likewise.
27895         * math/e_log10l.c: Likewise.
27896         * math/e_log2l.c: Likewise.
27897         * math/e_logl.c: Likewise.
27898         * math/e_powl.c: Likewise.
27899         * math/e_sinhl.c: Likewise.
27900         * math/e_sqrtl.c: Likewise.
27901         * math/e_scalb.c: Completely rewritten and optimized.
27902         * math/e_scalbf.c: Likewise.
27903         * math/e_scalbl.c: Likewise.
27904         * math/w_acos.c: Likewise.
27905         * math/w_acosf.c: Likewise.
27906         * math/w_acosl.c: Likewise.
27907         * math/w_acosh.c: Likewise.
27908         * math/w_acoshf.c: Likewise.
27909         * math/w_acoshl.c: Likewise.
27910         * math/w_asin.c: Likewise.
27911         * math/w_asinf.c: Likewise.
27912         * math/w_asinl.c: Likewise.
27913         * math/w_atan2.c: Likewise.
27914         * math/w_atan2f.c: Likewise.
27915         * math/w_atan2l.c: Likewise.
27916         * math/w_atanh.c: Likewise.
27917         * math/w_atanhf.c: Likewise.
27918         * math/w_atanhl.c: Likewise.
27919         * math/w_exp10.c: Likewise.
27920         * math/w_exp10f.c: Likewise.
27921         * math/w_exp10l.c: Likewise.
27922         * math/w_fmod.c: Likewise.
27923         * math/w_fmodf.c: Likewise.
27924         * math/w_fmodl.c: Likewise.
27925         * math/w_j0.c: Likewise.
27926         * math/w_j0f.c: Likewise.
27927         * math/w_j0l.c: Likewise.
27928         * math/w_j1.c: Likewise.
27929         * math/w_j1f.c: Likewise.
27930         * math/w_j1l.c: Likewise.
27931         * math/w_jn.c: Likewise.
27932         * math/w_jnf.c: Likewise.
27933         * math/w_log.c: Likewise.
27934         * math/w_logf.c: Likewise.
27935         * math/w_logl.c: Likewise.
27936         * math/w_log10.c: Likewise.
27937         * math/w_log10f.c: Likewise.
27938         * math/w_log10l.c: Likewise.
27939         * math/w_log2.c: Likewise.
27940         * math/w_log2f.c: Likewise.
27941         * math/w_log2l.c: Likewise.
27942         * math/w_pow.c: Likewise.
27943         * math/w_powf.c: Likewise.
27944         * math/w_powl.c: Likewise.
27945         * math/w_remainder.c: Likewise.
27946         * math/w_remainderf.c: Likewise.
27947         * math/w_remainderl.c: Likewise.
27948         * math/w_scalb.c: Likewise.
27949         * math/w_scalbf.c: Likewise.
27950         * math/w_scalbl.c: Likewise.
27951         * math/w_sqrt.c: Likewise.
27952         * math/w_sqrtf.c: Likewise.
27953         * math/w_sqrtl.c: Likewise.
27954         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
27955         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
27956         used.
27957         * math/math_private.h: Declare __kernel_standard_f.
27958         * math/w_cosh.c: Remove cruft and optimize a bit.
27959         * math/w_coshf.c: Likewise.
27960         * math/w_coshl.c: Likewise.
27961         * math/w_exp2.c: Likewise.
27962         * math/w_exp2f.c: Likewise.
27963         * math/w_exp2l.c: Likewise.
27964         * math/w_hypot.c: Likewise.
27965         * math/w_hypotf.c: Likewise.
27966         * math/w_hypotl.c: Likewise.
27967         * math/w_lgamma.c: Likewise.
27968         * math/w_lgamma_r.c: Likewise.
27969         * math/w_lgammaf.c: Likewise.
27970         * math/w_lgammaf_r.c: Likewise.
27971         * math/w_lgammal.c: Likewise.
27972         * math/w_lgammal_r.c: Likewise.
27973         * math/w_sinh.c: Likewise.
27974         * math/w_sinhf.c: Likewise.
27975         * math/w_sinhl.c: Likewise.
27976         * math/w_tgamma.c: Likewise.
27977         * math/w_tgammaf.c: Likewise.
27978         * math/w_tgammal.c: Likewise.
27979         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
27980         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
27981         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
27982         Minor optimizations.  Pretty printing.  Remove cruft.
27983         * sysdeps/i386/fpu/e_acosf.S: Likewise.
27984         * sysdeps/i386/fpu/e_acosh.S: Likewise.
27985         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
27986         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
27987         * sysdeps/i386/fpu/e_acosl.c: Likewise.
27988         * sysdeps/i386/fpu/e_asin.S: Likewise.
27989         * sysdeps/i386/fpu/e_asinf.S: Likewise.
27990         * sysdeps/i386/fpu/e_atan2.S: Likewise.
27991         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
27992         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
27993         * sysdeps/i386/fpu/e_atanh.S: Likewise.
27994         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
27995         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
27996         * sysdeps/i386/fpu/e_exp10.S: Likewise.
27997         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
27998         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
27999         * sysdeps/i386/fpu/e_exp2.S: Likewise.
28000         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
28001         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
28002         * sysdeps/i386/fpu/e_fmod.S: Likewise.
28003         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
28004         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
28005         * sysdeps/i386/fpu/e_hypot.S: Likewise.
28006         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
28007         * sysdeps/i386/fpu/e_log.S: Likewise.
28008         * sysdeps/i386/fpu/e_log10.S: Likewise.
28009         * sysdeps/i386/fpu/e_log10f.S: Likewise.
28010         * sysdeps/i386/fpu/e_log10l.S: Likewise.
28011         * sysdeps/i386/fpu/e_log2.S: Likewise.
28012         * sysdeps/i386/fpu/e_log2f.S: Likewise.
28013         * sysdeps/i386/fpu/e_log2l.S: Likewise.
28014         * sysdeps/i386/fpu/e_logf.S: Likewise.
28015         * sysdeps/i386/fpu/e_logl.S: Likewise.
28016         * sysdeps/i386/fpu/e_pow.S: Likewise.
28017         * sysdeps/i386/fpu/e_powf.S: Likewise.
28018         * sysdeps/i386/fpu/e_powl.S: Likewise.
28019         * sysdeps/i386/fpu/e_remainder.S: Likewise.
28020         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
28021         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
28022         * sysdeps/i386/fpu/e_scalb.S: Likewise.
28023         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
28024         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
28025         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
28026         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
28027         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
28028         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
28029         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
28030         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
28031         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
28032         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
28033         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
28034         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
28035         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
28036         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
28037         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
28038         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
28039         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
28040         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
28041         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
28042         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
28043         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
28044         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
28045         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
28046         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
28047         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
28048         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
28049         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
28050         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
28051         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
28052         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
28053         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
28054         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
28055         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
28056         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
28057         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
28058         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
28059         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
28060         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
28061         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
28062         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
28063         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
28064         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
28065         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
28066         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
28067         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
28068         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
28069         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
28070         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
28071         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
28072         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
28073         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
28074         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
28075         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
28076         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
28077         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
28078         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
28079         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
28080         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
28081         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
28082         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
28083         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
28084         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
28085         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
28086         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
28087         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
28088         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
28089         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
28090         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
28091         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
28092         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
28093         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
28094         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
28095         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
28096         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
28097         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
28098         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
28099         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
28100         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
28101         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
28102         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
28103         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
28104         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
28105         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
28106         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
28107         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
28108         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
28109         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
28110         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
28111         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
28112         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
28113         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
28114         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
28115         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
28116         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
28117         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
28118         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
28119         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
28120         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
28121         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
28122         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
28123         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
28124         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
28125         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
28126         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
28127         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
28128         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
28129         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
28130         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
28131         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
28132         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
28133         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
28134         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
28135         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
28136         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
28137         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
28138         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
28139         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
28140         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
28141         (__isnanf): Likewise.
28142         (__isinf_ns): Likewise.
28143         (__isinf_nsf): Likewise.
28144         (__finite): Likewise.
28145         (__finitef): Likewise.
28146         (__ieee754_sqrt): Define as macro.
28147         (__ieee754_sqrtf): Define as macro.
28148         (__ieee754_sqrtl): Define as macro.
28149         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
28150         inlined copy.
28151         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
28152         __FINITE_MATH_ONLY__ consistent.
28153         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
28154
28155 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
28156
28157         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
28158         of rawmemchr.
28159
28160         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
28161
28162 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
28163
28164         * po/ja.po: Update from translation team.
28165
28166 2011-10-08  Roland McGrath  <roland@hack.frob.com>
28167
28168         * locale/programs/locarchive.c (prepare_address_space): New function.
28169         (create_archive, enlarge_archive, open_archive): Use it.
28170
28171         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
28172         inside [SHARED], where it is used.
28173
28174         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
28175
28176         * nss/getent.c (netgroup_keys): Remove unused variable.
28177         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
28178
28179 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
28180
28181         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
28182         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
28183         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
28184         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
28185         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
28186         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
28187         * math/Makefile (libm-calls): Add s_isinf_ns.
28188         * math/divtc3.c: Use __isinf_nsl instead of isinf.
28189         * math/multc3.c: Likewise.
28190         * math/s_casin.c: Likewise.
28191         * math/s_casinf.c: Likewise.
28192         * math/s_casinl.c: Likewise.
28193         * math/s_ccos.c: Likewise.
28194         * math/s_ccosf.c: Likewise.
28195         * math/s_ccosl.c: Likewise.
28196         * math/s_ctan.c: Likewise.
28197         * math/s_ctanf.c: Likewise.
28198         * math/s_ctanh.c: Likewise.
28199         * math/s_ctanhf.c: Likewise.
28200         * math/s_ctanhl.c: Likewise.
28201         * math/s_ctanl.c: Likewise.
28202         * math/w_fmod.c: Likewise.
28203         * math/w_fmodf.c: Likewise.
28204         * math/w_fmodl.c: Likewise.
28205         * math/w_remainder.c: Likewise.
28206         * math/w_remainderf.c: Likewise.
28207         * math/w_remainderl.c: Likewise.
28208         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
28209         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
28210         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
28211         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
28212         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
28213         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
28214         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
28215         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
28216
28217         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
28218         of the number.
28219         * stdio-common/printf_fphex.c: Likewise.
28220         * stdio-common/printf_size.c: Likewise.
28221
28222         * math/e_exp10.c: Include math_private.h using <...> not "...".
28223         * math/e_exp10f.c: Likewise.
28224         * math/e_exp10l.c: Likewise.
28225         * math/e_exp2l.c: Likewise.
28226         * math/e_j0l.c: Likewise.
28227         * math/e_j1l.c: Likewise.
28228         * math/e_jnl.c: Likewise.
28229         * math/e_lgammal_r.c: Likewise.
28230         * math/e_rem_pio2l.c: Likewise.
28231         * math/e_scalb.c: Likewise.
28232         * math/e_scalbf.c: Likewise.
28233         * math/e_scalbl.c: Likewise.
28234         * math/k_cosl.c: Likewise.
28235         * math/k_sinl.c: Likewise.
28236         * math/k_tanl.c: Likewise.
28237         * math/s_cacoshf.c: Likewise.
28238         * math/s_catan.c: Likewise.
28239         * math/s_catanf.c: Likewise.
28240         * math/s_catanh.c: Likewise.
28241         * math/s_catanhf.c: Likewise.
28242         * math/s_catanhl.c: Likewise.
28243         * math/s_catanl.c: Likewise.
28244         * math/s_ccosh.c: Likewise.
28245         * math/s_ccoshf.c: Likewise.
28246         * math/s_ccoshl.c: Likewise.
28247         * math/s_cexp.c: Likewise.
28248         * math/s_cexpf.c: Likewise.
28249         * math/s_cexpl.c: Likewise.
28250         * math/s_clog.c: Likewise.
28251         * math/s_clog10.c: Likewise.
28252         * math/s_clog10f.c: Likewise.
28253         * math/s_clog10l.c: Likewise.
28254         * math/s_clogf.c: Likewise.
28255         * math/s_clogl.c: Likewise.
28256         * math/s_csin.c: Likewise.
28257         * math/s_csinf.c: Likewise.
28258         * math/s_csinh.c: Likewise.
28259         * math/s_csinhf.c: Likewise.
28260         * math/s_csinhl.c: Likewise.
28261         * math/s_csinl.c: Likewise.
28262         * math/s_csqrt.c: Likewise.
28263         * math/s_csqrtf.c: Likewise.
28264         * math/s_csqrtl.c: Likewise.
28265         * math/s_ctan.c: Likewise.
28266         * math/s_ctanf.c: Likewise.
28267         * math/s_ctanh.c: Likewise.
28268         * math/s_ctanhf.c: Likewise.
28269         * math/s_ctanhl.c: Likewise.
28270         * math/s_ctanl.c: Likewise.
28271         * math/s_ldexp.c: Likewise.
28272         * math/s_ldexpf.c: Likewise.
28273         * math/s_ldexpl.c: Likewise.
28274         * math/s_significand.c: Likewise.
28275         * math/s_significandf.c: Likewise.
28276         * math/s_significandl.c: Likewise.
28277         * math/w_acos.c: Likewise.
28278         * math/w_acosf.c: Likewise.
28279         * math/w_acosh.c: Likewise.
28280         * math/w_acoshf.c: Likewise.
28281         * math/w_acoshl.c: Likewise.
28282         * math/w_acosl.c: Likewise.
28283         * math/w_asin.c: Likewise.
28284         * math/w_asinf.c: Likewise.
28285         * math/w_asinl.c: Likewise.
28286         * math/w_atan2.c: Likewise.
28287         * math/w_atan2f.c: Likewise.
28288         * math/w_atan2l.c: Likewise.
28289         * math/w_atanh.c: Likewise.
28290         * math/w_atanhf.c: Likewise.
28291         * math/w_atanhl.c: Likewise.
28292         * math/w_cosh.c: Likewise.
28293         * math/w_coshf.c: Likewise.
28294         * math/w_coshl.c: Likewise.
28295         * math/w_dremf.c: Likewise.
28296         * math/w_exp10.c: Likewise.
28297         * math/w_exp10f.c: Likewise.
28298         * math/w_exp10l.c: Likewise.
28299         * math/w_exp2.c: Likewise.
28300         * math/w_exp2f.c: Likewise.
28301         * math/w_fmod.c: Likewise.
28302         * math/w_fmodf.c: Likewise.
28303         * math/w_fmodl.c: Likewise.
28304         * math/w_hypot.c: Likewise.
28305         * math/w_hypotf.c: Likewise.
28306         * math/w_hypotl.c: Likewise.
28307         * math/w_j0.c: Likewise.
28308         * math/w_j0f.c: Likewise.
28309         * math/w_j0l.c: Likewise.
28310         * math/w_j1.c: Likewise.
28311         * math/w_j1f.c: Likewise.
28312         * math/w_j1l.c: Likewise.
28313         * math/w_jn.c: Likewise.
28314         * math/w_jnf.c: Likewise.
28315         * math/w_jnl.c: Likewise.
28316         * math/w_lgamma.c: Likewise.
28317         * math/w_lgamma_r.c: Likewise.
28318         * math/w_lgammaf.c: Likewise.
28319         * math/w_lgammaf_r.c: Likewise.
28320         * math/w_lgammal.c: Likewise.
28321         * math/w_lgammal_r.c: Likewise.
28322         * math/w_log.c: Likewise.
28323         * math/w_log10.c: Likewise.
28324         * math/w_log10f.c: Likewise.
28325         * math/w_log10l.c: Likewise.
28326         * math/w_log2.c: Likewise.
28327         * math/w_log2f.c: Likewise.
28328         * math/w_log2l.c: Likewise.
28329         * math/w_logf.c: Likewise.
28330         * math/w_logl.c: Likewise.
28331         * math/w_pow.c: Likewise.
28332         * math/w_powf.c: Likewise.
28333         * math/w_powl.c: Likewise.
28334         * math/w_remainder.c: Likewise.
28335         * math/w_remainderf.c: Likewise.
28336         * math/w_remainderl.c: Likewise.
28337         * math/w_scalb.c: Likewise.
28338         * math/w_scalbf.c: Likewise.
28339         * math/w_scalbl.c: Likewise.
28340         * math/w_sinh.c: Likewise.
28341         * math/w_sinhf.c: Likewise.
28342         * math/w_sinhl.c: Likewise.
28343         * math/w_sqrt.c: Likewise.
28344         * math/w_sqrtf.c: Likewise.
28345         * math/w_sqrtl.c: Likewise.
28346         * math/w_tgamma.c: Likewise.
28347         * math/w_tgammaf.c: Likewise.
28348         * math/w_tgammal.c: Likewise.
28349
28350         * po/ja.po: Update from translation team.
28351
28352 2011-09-29  Andreas Jaeger  <aj@suse.de>
28353
28354         [BZ #13179]
28355         * sunrpc/netname.c (netname2host): Fix logic.
28356
28357         [BZ #6779]
28358         [BZ #6783]
28359         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
28360         correctly.
28361         * math/w_remainder.c (__remainder): Likewise.
28362         * math/w_remainderf.c (__remainderf): Likewise.
28363         * math/libm-test.inc (remainder_test): Add test cases.
28364
28365 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28366
28367         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
28368         sdiv_qrnnd.
28369
28370 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
28371
28372         * string/test-memcmp.c: Avoid unncessary #defines.
28373         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
28374
28375 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28376
28377         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
28378         Use new sse2 version for core i3 - i7 as it's faster
28379         than sse42 version.
28380         (bit_Prefer_PMINUB_for_stringop): New.
28381         * sysdeps/x86_64/rawmemchr.S: Update.
28382         Replace with faster SSE2 version.
28383         * sysdeps/x86_64/memrchr.S: New file.
28384         * sysdeps/x86_64/memchr.S: Update.
28385         Replace with faster SSE2 version.
28386
28387 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
28388
28389         * elf/dl-load.c (lose): Add cast to avoid warning.
28390
28391 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
28392
28393         * po/ca.po: Update from translation team.
28394
28395         * inet/getnetgrent_r.c: Hook up nscd.
28396         * nscd/Makefile (routines): Add nscd_netgroup.
28397         (nscd-modules): Add netgroupcache.
28398         (CFLAGS-netgroupcache.c): Define.
28399         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
28400         (cache_search): Add const to second parameter.
28401         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
28402         INNETGR.
28403         (dbs): Add netgrdb entry.
28404         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
28405         (verify_persistent_db): Handle netgrdb.
28406         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
28407         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
28408         GETFDNETGR.
28409         (netgroup_response_header): Define.
28410         (innetgroup_response_header): Define.
28411         (datahead): Add netgroup_response_header and innetgroup_response_header
28412         elements.
28413         * nscd/nscd.conf: Add entries for netgroup cache.
28414         * nscd/nscd.h (dbtype): Add netgrdb.
28415         (_PATH_NSCD_NETGROUP_DB): Define.
28416         (netgroup_iov_disabled): Declare.
28417         (xmalloc, xcalloc, xrealloc): Move declarations here.
28418         (cache_search): Adjust prototype.
28419         Add netgroup-related prototypes.
28420         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
28421         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
28422         (__nscd_innetgr): Declare.
28423         * nscd/selinux.c (perms): Use access_vector_t as element type and
28424         add netgroup-related initializers.
28425         * nscd/netgroupcache.c: New file.
28426         * nscd/nscd_netgroup.c: New file.
28427         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
28428         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
28429         For four parameters use innetgr.
28430         * nss/nss_files/files-init.c: Add definition and callback for netgr.
28431         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
28432         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
28433         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
28434
28435         * nscd/connections.c (register_traced_file): Don't register file
28436         for disabled databases.
28437
28438 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
28439
28440         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
28441
28442         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
28443         from tree and freeing node.
28444
28445 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
28446
28447         * nss/nsswitch.c (__nss_database_lookup): Handle
28448         nss_parse_service_list out of memory case.
28449
28450 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
28451
28452         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
28453         out of memory case.
28454
28455 2011-10-04  Andreas Schwab  <schwab@redhat.com>
28456
28457         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
28458         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
28459         pass it down.
28460         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
28461         elf_machine_rela, elf_machine_lazy_rel.
28462         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
28463         (ELF_DYNAMIC_DO_REL): Likewise.
28464         (ELF_DYNAMIC_DO_RELA): Likewise.
28465         (ELF_DYNAMIC_RELOCATE): Likewise.
28466         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
28467         to ELF_DYNAMIC_DO_REL.
28468         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
28469         (dl_main): In trace mode always set __RTLD_NOIFUNC.
28470         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
28471         elf_machine_rela.
28472         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
28473         skip_ifunc, don't call ifunc function if non-zero.
28474         (elf_machine_rela): Likewise.
28475         (elf_machine_lazy_rel): Likewise.
28476         (elf_machine_lazy_rela): Likewise.
28477         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
28478         (elf_machine_lazy_rel): Likewise.
28479         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
28480         Likewise.
28481         (elf_machine_lazy_rel): Likewise.
28482         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
28483         Likewise.
28484         (elf_machine_lazy_rel): Likewise.
28485         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
28486         (elf_machine_lazy_rel): Likewise.
28487         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
28488         (elf_machine_lazy_rel): Likewise.
28489         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
28490         (elf_machine_lazy_rel): Likewise.
28491         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
28492         (elf_machine_lazy_rel): Likewise.
28493         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
28494         (elf_machine_lazy_rel): Likewise.
28495         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
28496         (elf_machine_lazy_rel): Likewise.
28497
28498 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
28499
28500         * nss/nss_files/files-init.c (_nss_files_init): Use static
28501         initialization for all the *_traced_file variables.
28502
28503 2011-09-28  Andreas Schwab  <schwab@redhat.com>
28504
28505         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
28506
28507 2011-09-27  Roland McGrath  <roland@hack.frob.com>
28508
28509         [BZ #13226]
28510         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
28511
28512 2011-09-27  Andreas Schwab  <schwab@redhat.com>
28513
28514         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
28515         Reread the line before reparsing it.
28516
28517 2011-09-26  Andreas Schwab  <schwab@redhat.com>
28518
28519         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
28520
28521 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
28522             Maxim Kuvyrkov  <maxim@codesourcery.com>
28523             Joseph Myers  <joseph@codesourcery.com>
28524
28525         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
28526         if needed for __stack_chk_guard.
28527
28528 2011-09-19  Roland McGrath  <roland@hack.frob.com>
28529
28530         * sysdeps/posix/spawni.c (script_execute): Always define it.
28531         It will be optimized away if unused.
28532         (maybe_script_execute): New function.
28533         (__spawni): Call it.
28534
28535         * Makerules: Don't include tls.make.
28536         (config-tls): Always set to thread.
28537         * tls.make.c: File removed.
28538
28539 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
28540
28541         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
28542         * config.make.in (CPPFLAGS-config): New substituted variable.
28543
28544 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
28545
28546         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
28547
28548         [BZ #13192]
28549         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
28550         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
28551
28552 2011-09-15  Roland McGrath  <roland@hack.frob.com>
28553
28554         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
28555         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
28556         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
28557         (CALL_FAIL): Likewise.
28558         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
28559         (CALL_FAIL): Macro removed.
28560         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
28561
28562 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
28563
28564         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
28565         for __FINITE_MATH_ONLY__ == 1.
28566
28567 2011-09-15  Andreas Schwab  <schwab@redhat.com>
28568
28569         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
28570         __ieee754_sqrt instead of sqrt.
28571         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
28572         __ieee754_sqrtf instead of sqrtf.
28573         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
28574         __floorf instead of floorf.
28575         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
28576         __floorf, __truncf instead of floorf, truncf.
28577
28578 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
28579
28580         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
28581
28582         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
28583         __extern_always_inline.
28584         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
28585         32-bit.
28586
28587 2011-09-14  Andreas Schwab  <schwab@redhat.com>
28588
28589         * elf/rtld.c (dl_main): Also relocate in dependency order when
28590         doing symbol dependency testing.
28591
28592 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
28593
28594         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
28595         Always define `refsym'.
28596
28597 2011-09-13  Andreas Schwab  <schwab@redhat.com>
28598
28599         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
28600         (__FD_ELT): Renamed from __FDELT.
28601         * misc/bits/select2.h (__FD_ELT): Likewise.
28602         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
28603         __FD_MASK instead of __FDELT, __FDMASK.
28604         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
28605         Likewise.
28606         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
28607         Likewise.
28608
28609         * elf/Makefile (gen-ldd): Fix pattern.
28610
28611         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
28612         (init_tls): Likewise.
28613
28614 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
28615
28616         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
28617
28618 2011-09-12  Andreas Schwab  <schwab@redhat.com>
28619
28620         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
28621         `struct cmsghdr *' instead of `void *'.
28622         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
28623         Likewise.
28624
28625 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
28626
28627         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
28628         if non-absolute.
28629         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
28630         ldd_rewrite_script.
28631
28632 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
28633
28634         * configure.in: Remove --with-tls option.
28635         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
28636         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
28637         out in case it is missing.
28638         * sysdeps/ia64/elf/configure.in: Likewise.
28639         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
28640         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
28641         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
28642         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
28643         * sysdeps/sh/elf/configure.in: Likewise.
28644         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
28645         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
28646         * sysdeps/x86_64/elf/configure.in: Likewise.
28647         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
28648         * sysdeps/mach/hurd/tls.h: Likewise.
28649
28650         [BZ #13067]
28651         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
28652
28653         [BZ #13090]
28654         * configure.in: Fix use of AC_INIT.
28655
28656         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
28657
28658 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
28659
28660         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
28661         __set_errno.
28662         * malloc/hooks.c: Likewise.
28663
28664         [BZ #11929]
28665         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
28666         variables statically.
28667         (narenas): Initialize.
28668         (list_lock): Initialize.
28669         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
28670         initializtion of main_arena and list_lock.  Small cleanups.
28671         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
28672         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
28673         Add initializers to main_arena and mp_.
28674         (malloc_state): Remove pagesize member.  Change all users to use
28675         GLRO(dl_pagesize).
28676
28677         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
28678         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
28679         is always initialized.
28680
28681         * malloc/malloc.c: Removed unused configurations and dead code.
28682         * malloc/arena.c: Likewise.
28683         * malloc/hooks.c: Likewise.
28684         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
28685
28686         * include/tls.h: Removed.  USE___THREAD must always be defined.
28687         * bits/libc-tsd.h: Don't handle !USE___THREAD.
28688         * elf/dl-libc.c: Likewise.
28689         * elf/dl-tsd.c: Likewise.
28690         * include/errno.h: Likewise.
28691         * include/netdb.h: Likewise.
28692         * include/resolv.h: Likewise.
28693         * inet/herrno-loc.c: Likewise.
28694         * inet/herrno.c: Likewise.
28695         * malloc/arena.c: Likewise.
28696         * malloc/hooks.c: Likewise.
28697         * malloc/malloc.c: Likewise.
28698         * resolv/res-state.c: Likewise.
28699         * resolv/res_libc.c: Likewise.
28700         * sysdeps/i386/dl-machine.h: Likewise.
28701         * sysdeps/ia64/dl-machine.h: Likewise.
28702         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
28703         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
28704         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
28705         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
28706         * sysdeps/sh/dl-machine.h: Likewise.
28707         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
28708         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
28709         * sysdeps/unix/i386/sysdep.S: Likewise.
28710         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
28711         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
28712         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
28713         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
28714         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
28715         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
28716         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
28717         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
28718         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
28719         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
28720         * sysdeps/unix/x86_64/sysdep.S: Likewise.
28721         * sysdeps/x86_64/dl-machine.h: Likewise.
28722         * tls.make.c: Likewise.
28723
28724         * configure.in: Remove --with-__thread option.  Make tests for
28725         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
28726         tls_model attribute fail if no support is available.  Remove
28727         USE_IN_LIBIO.
28728         * Makeconfig: Adjust for dropped configure option.  All features are
28729         now mandatory.
28730         * Makerules: Likewise.
28731         * Versions.def: Likewise.
28732         * argp/argp-fmtstream.c: Likewise.
28733         * argp/argp-fmtstream.h: Likewise.
28734         * argp/argp-help.c: Likewise.
28735         * assert/assert.c: Likewise.
28736         * config.h.in: Likewise.
28737         * config.make.in: Likewise.
28738         * configure: Likewise.
28739         * configure.in: Likewise.
28740         * csu/Versions: Likewise.
28741         * csu/init.c: Likewise.
28742         * elf/tst-audit2.c: Likewise.
28743         * elf/tst-tls10.c: Likewise.
28744         * elf/tst-tls10.h: Likewise.
28745         * elf/tst-tls11.c: Likewise.
28746         * elf/tst-tls12.c: Likewise.
28747         * elf/tst-tls14.c: Likewise.
28748         * elf/tst-tlsmod11.c: Likewise.
28749         * elf/tst-tlsmod12.c: Likewise.
28750         * elf/tst-tlsmod13.c: Likewise.
28751         * elf/tst-tlsmod13a.c: Likewise.
28752         * elf/tst-tlsmod14a.c: Likewise.
28753         * elf/tst-tlsmod15b.c: Likewise.
28754         * elf/tst-tlsmod16a.c: Likewise.
28755         * elf/tst-tlsmod16b.c: Likewise.
28756         * elf/tst-tlsmod7.c: Likewise.
28757         * elf/tst-tlsmod8.c: Likewise.
28758         * elf/tst-tlsmod9.c: Likewise.
28759         * gmon/gmon.c: Likewise.
28760         * grp/fgetgrent_r.c: Likewise.
28761         * grp/putgrent.c: Likewise.
28762         * hurd/fopenport.c: Likewise.
28763         * include/libc-symbols.h: Likewise.
28764         * include/tls.h: Likewise.
28765         * intl/gettextP.h: Likewise.
28766         * intl/loadinfo.h: Likewise.
28767         * locale/global-locale.c: Likewise.
28768         * locale/localeinfo.h: Likewise.
28769         * mach/devstream.c: Likewise.
28770         * malloc/arena.c: Likewise.
28771         * malloc/set-freeres.c: Likewise.
28772         * misc/err.c: Likewise.
28773         * misc/getttyent.c: Likewise.
28774         * misc/mntent_r.c: Likewise.
28775         * posix/getopt.c: Likewise.
28776         * posix/wordexp.c: Likewise.
28777         * pwd/fgetpwent_r.c: Likewise.
28778         * resolv/Versions: Likewise.
28779         * resolv/res_hconf.c: Likewise.
28780         * shadow/fgetspent_r.c: Likewise.
28781         * shadow/putspent.c: Likewise.
28782         * stdio-common/printf_fphex.c: Likewise.
28783         * stdio-common/tmpfile.c: Likewise.
28784         * stdlib/abort.c: Likewise.
28785         * stdlib/fmtmsg.c: Likewise.
28786         * sunrpc/auth_unix.c: Likewise.
28787         * sunrpc/clnt_perr.c: Likewise.
28788         * sunrpc/clnt_tcp.c: Likewise.
28789         * sunrpc/clnt_udp.c: Likewise.
28790         * sunrpc/clnt_unix.c: Likewise.
28791         * sunrpc/openchild.c: Likewise.
28792         * sunrpc/svc_simple.c: Likewise.
28793         * sunrpc/svc_tcp.c: Likewise.
28794         * sunrpc/svc_udp.c: Likewise.
28795         * sunrpc/svc_unix.c: Likewise.
28796         * sunrpc/xdr.c: Likewise.
28797         * sunrpc/xdr_array.c: Likewise.
28798         * sunrpc/xdr_rec.c: Likewise.
28799         * sunrpc/xdr_ref.c: Likewise.
28800         * sunrpc/xdr_stdio.c: Likewise.
28801
28802 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
28803
28804         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
28805
28806 2011-07-03  Andreas Jaeger  <aj@suse.de>
28807
28808         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
28809         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
28810         regenerate with gen-libm-tests.pl.
28811
28812 2010-05-12  Petr Baudis  <pasky@suse.cz>
28813
28814         [BZ #11589]
28815         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
28816         around j0() zero points by switching to j1().
28817         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
28818         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
28819         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
28820         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
28821
28822 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
28823
28824         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
28825         instead of 0.
28826         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
28827         instead of 0.
28828         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
28829         Patch in part by Pavel Roskin <proski@gnu.org>.
28830
28831         [BZ #13138]
28832         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
28833         realloc.
28834         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
28835         Free memory block if necessary.
28836
28837         [BZ #12847]
28838         * libio/genops.c (INTDEF): For string streams the _lock pointer can
28839         be NULL.  Don't lock in this case.
28840
28841 2011-09-09  Roland McGrath  <roland@hack.frob.com>
28842
28843         * elf/elf.h (ELFOSABI_GNU): New macro.
28844         (ELFOSABI_LINUX): Define to that.
28845
28846 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
28847
28848         * string/strncat.c (strncat): Undef the symbol in case it has been
28849         defined in bits/string.h.
28850
28851 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
28852
28853         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
28854
28855         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
28856         link map.
28857
28858 2011-08-17  Andreas Jaeger  <aj@suse.de>
28859
28860         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
28861
28862 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
28863             Ian Lance Taylor  <iant@google.com>
28864
28865         * math/libm-test.inc (lround_test): New testcase.
28866         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
28867
28868 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
28869
28870         * Makefile: Remove support for automatic cvs check-ins.
28871         * Makerules: Likewise.
28872         * config.make.in: Likewise.
28873         * configure.in: Likewise.
28874         * intl/Makefile: Likewise.
28875         * locale/Makefile: Likewise.
28876         * po/Makefile: Likewise.
28877         * posix/Makefile: Likewise.
28878         * sysdeps/gnu/Makefile: Likewise.
28879         * sysdeps/mach/hurd/Makefile: Likewise.
28880         * sysdeps/sparc/sparc32/Makefile: Likewise.
28881
28882         [BZ #13118]
28883         * posix/Makefile (bug-regex32-ENV): Define.
28884         Patch by John Stanley <jpsinthemix@verizon.net>.
28885
28886         * misc/Makefile (headers): Add bits/select2.h.
28887         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
28888         * misc/bits/select2.h: New file.
28889         * include/bits/select2.h: New file.
28890         * debug/Makefile (routines): Add fdelt_chk.
28891         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
28892         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
28893         FD_ISSET.
28894         * debug/fdelt_chk.c: New file.
28895
28896         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
28897         * wcsmbs/test-wmemcmp.c: Likewise.
28898         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
28899         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
28900
28901 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28902
28903         * string/Makefile (strop-tests): Add memcmp.
28904         * string/test-wmemcmp.c: New file.
28905         * string/test-memcmp.c: Add wmemcmp support.
28906
28907 2011-09-08  Roland McGrath  <roland@hack.frob.com>
28908
28909         [BZ #13153]
28910         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
28911         2011-07-19 change.
28912
28913         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
28914         garbage value in a __mach_port_mod_refs call in the cases of the
28915         task-self and thread-self ports.
28916
28917 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28918
28919         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
28920
28921 2011-09-08  Andreas Schwab  <schwab@redhat.com>
28922
28923         * elf/dl-load.c (lose): Check for non-null L.
28924
28925 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
28926
28927         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
28928
28929         * elf/dl-libc.c (dlerror_run): Pass back error code from
28930         dl_catch_error.
28931
28932         [BZ #13123]
28933         * elf/dl-load.c (lose): Free l_origin if it is valid.
28934
28935         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
28936         names.
28937         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
28938         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
28939         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
28940         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
28941         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
28942         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
28943
28944 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28945
28946         * sysdeps/powerpc/fpu/e_hypot.c: New file.
28947         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
28948         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
28949         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
28950         * sysdeps/powerpc/fpu/k_cosf.c: New file.
28951         * sysdeps/powerpc/fpu/k_sinf.c: New file.
28952         * sysdeps/powerpc/fpu/s_cosf.c: New file.
28953         * sysdeps/powerpc/fpu/s_sinf.c: New file.
28954         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
28955         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
28956
28957 2011-08-15  Alan Modra  <amodra@gmail.com>
28958
28959         [BZ #13092]
28960         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
28961         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
28962         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
28963         ppc_mcount to static-only-routines.
28964         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
28965         __mcount_internal.
28966         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
28967         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
28968
28969 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
28970
28971         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
28972         for finite and infinity parameters.
28973
28974 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
28975
28976         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
28977         and add nop instructions for throughput optimization.
28978         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
28979
28980 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
28981
28982         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
28983         aligned copy for power7 with vector-scalar instructions.
28984         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
28985
28986 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
28987
28988         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
28989         AVX check.
28990
28991 2011-09-07  Andreas Schwab  <schwab@redhat.com>
28992
28993         [BZ #13144]
28994         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
28995         last change.
28996
28997 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
28998
28999         * sysdeps/unix/sysv/linux/x86_64/init-first.c
29000         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
29001         syscall wrapper around clock_gettime in __vdso_clock_gettime.
29002         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
29003         clock_gettime.
29004
29005 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
29006
29007         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
29008         Forgot to demangle the pointer.
29009
29010         * sysdeps/i386/sysdep.h: Define atom_text_section.
29011         * sysdeps/x86_64/sysdep.h: Likewise.
29012         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
29013         section with atom_text_section.
29014         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
29015         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
29016         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
29017         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
29018         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
29019
29020         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
29021         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
29022         already be defined.  Change to take two parameters and don't assign
29023         result to variable.  Adjust all users.
29024         Define INTERNAL_GETTIME if not already defined.
29025         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
29026         call.
29027         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
29028         HAVE_CLOCK_GETTIME_VSYSCALL.
29029         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
29030
29031         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
29032         gettimeofday vsyscall, just use time.
29033
29034 2011-09-06  Andreas Schwab  <schwab@redhat.com>
29035
29036         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
29037         <errno.h>.
29038
29039 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
29040
29041         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
29042         syscall on x86-64.
29043         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
29044         syscall.
29045         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
29046         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
29047         syscall if possible.
29048
29049 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
29050
29051         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
29052         e_ident.  Don't pass to find_mapsXX.
29053         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
29054
29055 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
29056
29057         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29058         strchr-sse2-no-bsf strrchr-sse2-no-bsf
29059         * sysdeps/x86_64/multiarch/strchr.S: Update.
29060         Check bit_slow_BSF bit.
29061         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
29062         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
29063         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
29064
29065 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
29066
29067         [BZ #13134]
29068         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
29069         before glibc 2.15.
29070         (tryshell): Define.
29071         (__spawni): Change last parameter to be flag.  Test
29072         SPAWN_XFLAGS_USE_PATH flag to use path or not.
29073         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
29074         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
29075         * posix/spawni.c: Likewise.
29076         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
29077         * posix/spawnp.c: Likewise.  Change normal version to use
29078         SPAWN_XFLAGS_USE_PATH.
29079         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
29080         SPAWN_XFLAGS_TRY_SHELL.
29081
29082         [BZ #13150]
29083         * posix/glob.h: Remove gcc 1.x support.
29084
29085         [BZ #13068]
29086         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
29087
29088 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
29089
29090         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29091         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
29092         strrchr-sse2-bsf
29093         * sysdeps/i386/i686/multiarch/strchr.S: New file.
29094         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
29095         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
29096         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
29097         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
29098         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
29099
29100 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29101
29102         * sysdeps/x86_64/wcscmp.S: New file.
29103
29104         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
29105         wcscmp-c wcscmp-sse2
29106         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
29107         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
29108         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
29109         * wcsmbs/wcscmp.c: Allow renaming.
29110
29111 2011-09-05  David S. Miller  <davem@davemloft.net>
29112
29113         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
29114         stack slot, rather than the struct return pointer slot.
29115         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
29116         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
29117         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
29118         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
29119
29120 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
29121
29122         * po/ja.po: Update from translation team.
29123
29124         [BZ #13144]
29125         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
29126         kernel in 64-bit binaries.
29127
29128 2011-09-01  David S. Miller  <davem@davemloft.net>
29129
29130         * elf/elf.h (HWCAP_SPARC_*): Move to..
29131         * sysdeps/sparc/sysdep.h: this new file and add new values.
29132         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
29133         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
29134         _DL_HWCAP_COUNT to 24.
29135         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
29136         entries.
29137         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
29138         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
29139         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
29140         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
29141         instead of magic constants.
29142         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
29143
29144 2011-08-31  David S. Miller  <davem@davemloft.net>
29145
29146         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
29147         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
29148         Reimplement to do errno handling inline.
29149         (SYSCALL_ERROR_HANDLER): New macro.
29150         (__SYSCALL_STRING): Do not do errno handling in asm.
29151         (__CLONE_SYSCALL_STRING): Delete.
29152         (__INTERNAL_SYSCALL_STRING): Delete.
29153         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
29154         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
29155         (PSEUDO): Reimplement to do errno handling inline.
29156         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
29157         (SYSCALL_ERROR_HANDLER): New macro.
29158         (__SYSCALL_STRING): Do not do errno handling in asm.
29159         (__CLONE_SYSCALL_STRING): Delete.
29160         (__INTERNAL_SYSCALL_STRING): Delete.
29161         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
29162         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
29163         i386.
29164         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
29165         (inline_syscall*): Add 'err' argument.
29166         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
29167         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
29168         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
29169         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
29170
29171         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
29172         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
29173
29174 2011-08-30  Andreas Schwab  <schwab@redhat.com>
29175
29176         * elf/rtld.c (dl_main): Relocate objects in dependency order.
29177
29178 2011-08-29  Jiri Olsa <jolsa@redhat.com>
29179
29180         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
29181         directive.
29182
29183 2011-08-24  David S. Miller  <davem@davemloft.net>
29184
29185         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
29186
29187 2011-08-24  Andreas Schwab  <schwab@redhat.com>
29188
29189         * elf/Makefile: Add rules to build and run unload8 test.
29190         * elf/unload8.c: New file.
29191         * elf/unload8mod1.c: New file.
29192         * elf/unload8mod1x.c: New file.
29193         * elf/unload8mod2.c: New file.
29194         * elf/unload8mod3.c: New file.
29195
29196         * elf/dl-close.c (_dl_close_worker): Reset private search list if
29197         it wasn't used.
29198
29199 2011-08-23  David S. Miller  <davem@davemloft.net>
29200
29201         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
29202         subtract stack bias.
29203         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
29204         %sp not %fp in calculations.
29205         (_JMPBUF_UNWINDS_ADJ): Likewise.
29206
29207         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
29208         (aio_suspend): Call it to force an exception region around the
29209         AIO_MISC_WAIT() invocation.
29210
29211 2011-08-23  Andreas Schwab  <schwab@redhat.com>
29212
29213         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
29214         backslash.
29215
29216 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
29217
29218         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
29219         protection macro.
29220         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
29221         and <dl-machine.h>.
29222         (Elf64_FuncDesc): Remove.
29223
29224 2011-08-22  David S. Miller  <davem@davemloft.net>
29225
29226         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
29227         sigaltstack check, add missing cfi directives.
29228         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
29229         missing cfi directives, and sigaltstack handling.
29230
29231 2011-08-16  Andreas Schwab  <schwab@redhat.com>
29232
29233         [BZ #11724]
29234         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
29235         object is seen twice.
29236         * elf/dl-fini.c (_dl_sort_fini): Likewise.
29237
29238         * elf/Makefile (distribute): Add tst-initorder2.c.
29239         (tests): Add tst-initorder2.
29240         (modules-names): Add tst-initorder2a tst-initorder2b
29241         tst-initorder2c tst-initorder2d.  Add rules to build them.
29242         ($(objpfx)tst-initorder2.out): New rule.
29243         * elf/tst-initorder2.c: New file.
29244         * elf/tst-initorder2.exp: New file.
29245
29246 2011-08-22  Andreas Schwab  <schwab@redhat.com>
29247
29248         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
29249
29250         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
29251         dependencies back to end of function.
29252
29253         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
29254         $(elfobjdir)/ld.so.
29255
29256 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
29257
29258         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
29259         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
29260         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
29261         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
29262         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
29263         of __vdso_gettimeofday.
29264         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
29265         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
29266         attribute_hidden.
29267         (_libc_vdso_platform_setup): Remove initialization of
29268         __vdso_gettimeofday and __vdso_time.
29269
29270 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
29271
29272         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
29273         and fgetc_unlocked.
29274         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
29275         getc_unlocked.
29276
29277         * elf/dl-open.c (add_to_global): Report additions to the global scope
29278         for LD_DEBUG=scopes.
29279         (dl_open_worker): Also print scope of newly loaded dependencies.
29280         (_dl_show_scope): Indicate if there is no scope.
29281
29282         [BZ #13114]
29283         * stdio-common/Makefile (tests): Add bug24.
29284         * stdio-common/bug24.c: New file.
29285
29286 2011-08-19  Andreas Jaeger  <aj@suse.de>
29287
29288         [BZ #13114]
29289         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
29290         non-existant file when using close-on-exec mode.
29291
29292 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
29293
29294         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
29295         the very first instruction.
29296
29297         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
29298         the CFI state in the end.
29299         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
29300         inclusion of dl-trampoline.h.
29301         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
29302
29303 2011-08-19  Andreas Schwab  <schwab@redhat.com>
29304
29305         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
29306         expectations for long double.
29307
29308         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
29309         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
29310
29311 2011-08-14  David S. Miller  <davem@davemloft.net>
29312
29313         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
29314         artificual limit depends upon the system page size.
29315
29316 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
29317
29318         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
29319         * resolv/Makefile: Define CFLAGS-libresolv.
29320
29321 2011-08-17  Andreas Schwab  <schwab@redhat.com>
29322
29323         * nss/makedb.c (compute_tables): Make variables used in nested
29324         function static.
29325
29326 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
29327
29328         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
29329         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
29330         if buffer was too small.
29331
29332         * elf/pldd.c (main): Attach to all threads in the process.
29333         Rewrite /proc handling to use *at functions.
29334
29335 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
29336
29337         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
29338         specifies first scope to show.
29339         (dl_open_worker): Update callers.  Move printing scope of new
29340         object to before the relocation.
29341         * elf/rtld.c (dl_main): Update _dl_show_scope call.
29342         * sysdeps/generic/ldsodefs.h: Update declaration.
29343
29344         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
29345         string for the scope number.
29346
29347 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
29348
29349         * nscd/servicescache.c (cache_addserv): Make sure written is always
29350         initialized.
29351
29352 2011-08-14  Roland McGrath  <roland@hack.frob.com>
29353
29354         * sysdeps/i386/i486/bits/atomic.h
29355         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
29356         statement expression, so as to suppress "set but not used" warning.
29357         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
29358
29359         * string/strncat.c (STRNCAT): Use prototype definition.
29360
29361         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
29362         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
29363         -Iprograms here.
29364         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
29365         (localedef-modules): Add localedef.
29366         (locale-modules): Add locale.
29367
29368         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
29369         * elf/rtld.c (dl_main): Invert order of assignment in last change,
29370         to avoid a warning.
29371
29372 2011-08-14  David S. Miller  <davem@davemloft.net>
29373
29374         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
29375         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
29376
29377 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
29378
29379         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
29380         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
29381         * elf/rtld.c (dl_main): Set l_name of vDSO.
29382         Call _dl_show_scope when DL_DEBUG_SCOPES.
29383         (process_dl_debug): Recognize scopes flag and also set it for all.
29384         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
29385         Declare _dl_show_scope.
29386
29387         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
29388         (do_dlopen): Pass caller_dlopen to dl_open.
29389         (__libc_dlopen_mode): Initialize caller_dlopen.
29390
29391         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
29392         of libc.  Make tolower call locale-independent.  Optimize a bit by
29393         using isdigit instead of isalnum.
29394         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
29395
29396 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
29397
29398         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
29399         was a dependency or dynamically loaded.
29400
29401 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
29402
29403         * intl/l10nflist.c: Allow architecture-specific pop function.
29404         * sysdeps/x86_64/l10nflist.c: New file.
29405
29406         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
29407         classification.
29408
29409 2011-08-10  Andreas Schwab  <schwab@redhat.com>
29410
29411         * include/dirent.h: Add libc_hidden_proto for scandirat and
29412         scandirat64.  Don't declare __scandirat64.
29413         * dirent/scandirat.c: Add libc_hidden_def.
29414         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
29415         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
29416
29417 2011-08-10  David S. Miller  <davem@davemloft.net>
29418
29419         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
29420         enum.
29421         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
29422         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
29423         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
29424
29425 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
29426
29427         * Versions.def [libc]: Add GLIBC_2.15.
29428         * dirent/Makefile (routines): Add scandirat and scandirat64.
29429         * dirent/Versions [libc]: Export scandirat and scandirat64 for
29430         GLIBC_2.15.
29431         * dirent/dirent.h: Declare scandirat and scandirat64.
29432         * dirent/scandirat.c: New file.
29433         * dirent/scandirat64.c: New file.
29434         * sysdeps/wordsize-64/scandirat.c: New file.
29435         * sysdeps/wordsize-64/scandirat64.c: New file.
29436         * dirent/opendir.c: Define opendirat.
29437         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
29438         using scandirat.
29439         * dirent/scandir64.c: Adjust for scandir.c change.
29440         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
29441         __scandirat64, and __scandir_cancel_handler.
29442         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
29443         additional parameter and use openat instead of open (outside of ld.so).
29444         Add new __opendir as wrapper around __opendirat.
29445         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
29446         here without requiring old scandirat implementation.
29447
29448 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
29449
29450         * dirent/scandir.c (cancel_handler): Renamed to
29451         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
29452         defined.  Adjust users.
29453         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
29454         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
29455
29456 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
29457
29458         * string/test-string.h (IMPL): Use __STRING to expand name and then
29459         stringify it.
29460
29461         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
29462         of cleanups.
29463
29464 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29465
29466         * string/Makefile: Update.
29467         (strop-tests): Append strncat.
29468         * string/test-wcscmp.c: New file.
29469         New comprehensive test for wcscmp.
29470         * string/test-strcmp.c: Update.
29471         (WIDE): New define.
29472
29473 2011-07-22  Andreas Schwab  <schwab@redhat.com>
29474
29475         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
29476         line.
29477
29478 2011-07-26  Andreas Schwab  <schwab@redhat.com>
29479
29480         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
29481         encoding to ACE if AI_IDN.
29482
29483 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
29484
29485         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
29486         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
29487
29488 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
29489
29490         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
29491         Fix overflow bug in strncat.
29492         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
29493
29494         * string/test-strncat.c: Update.
29495         Add new tests for checking overflow bugs.
29496
29497 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
29498
29499         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29500         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
29501         * sysdeps/i386/i686/multiarch/strcat.S: New file.
29502         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
29503         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
29504         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
29505         * sysdeps/i386/i686/multiarch/strncat.S: New file.
29506         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
29507         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
29508
29509         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
29510         (USE_AS_STRCAT): Define.
29511         Add strcat and strncat support.
29512         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
29513
29514 2011-07-25  Andreas Schwab  <schwab@redhat.com>
29515
29516         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
29517         __n bigger than INT_MAX+1.
29518         (__strncmp_g): Likewise.
29519
29520 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
29521
29522         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
29523         * libio/stido.h: Likewise.
29524
29525         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
29526         (AF_NFC): Define.
29527         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
29528         (AF_NFC): Define.
29529
29530         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
29531         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
29532         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
29533         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
29534         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
29535
29536         [BZ #13021]
29537         * scripts/test-installation.pl: Don't expect libnss_test1 to be
29538         installed.
29539
29540         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
29541         typo.
29542         (_dl_x86_64_save_sse): Likewise.
29543
29544 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
29545
29546         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
29547         OSXSAVE.
29548         (_dl_x86_64_save_sse): Likewise.
29549
29550         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
29551
29552         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
29553
29554 2011-07-21  Andreas Schwab  <schwab@redhat.com>
29555
29556         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
29557         change.
29558         (_dl_x86_64_save_sse): Use correct AVX check.
29559
29560 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29561
29562         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
29563         bug in strncpy/strncat.
29564         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
29565
29566 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
29567
29568         * string/tester.c (test_strcat): Add tests for different alignments
29569         of source and destination.
29570         (test_strncat): Likewise.
29571
29572 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
29573
29574         [BZ #12852]
29575         * posix/glob.c (glob): Check passed in values before using them in
29576         expressions to avoid some overflows.
29577         (glob_in_dir): Likewise.
29578
29579         [BZ #13007]
29580         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
29581         check for AVX enablement so that we don't crash with old kernels and
29582         new hardware.
29583         * elf/tst-audit4.c: Add same checks here.
29584         * elf/tst-audit6.c: Likewise.
29585
29586         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
29587
29588 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
29589
29590         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
29591
29592 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
29593
29594         * po/cs.po: Update from translation team.
29595         * po/bg.po: Likewise.
29596
29597 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
29598
29599         * misc/sys/cdefs.h: Add support for const attribute.
29600         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
29601         to gnu_dev_{major,minor,makedev} functions.
29602
29603 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
29604
29605         * intl/dcigettext.c (get_output_charset): Add missing bracket.
29606
29607 2011-07-20  Andreas Schwab  <schwab@redhat.com>
29608
29609         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
29610         strlen results.
29611
29612 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29613
29614         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
29615         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
29616         register in order to avoid conflicts with the soft frame pointer
29617         being held in r11 when necessary.
29618         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
29619         (INTERNAL_VSYSCALL_NCS): Likewise.
29620
29621 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
29622
29623         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
29624         * elf/dl-fini.c (_dl_fini): Adjust caller.
29625         * elf/dl-close.c (_dl_close_worker): Likewise.
29626         * sysdeps/generic/ldsodefs.h: Adjust declaration.
29627
29628 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
29629
29630         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
29631         "aux_cache->nlibs < 0".
29632
29633         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
29634         in the reload-count case.
29635
29636 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
29637
29638         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29639         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
29640         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
29641         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
29642         * sysdeps/x86_64/multiarch/strcat.S: New file.
29643         * sysdeps/x86_64/multiarch/strncat.S: New file.
29644         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
29645         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
29646         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
29647         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
29648         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
29649         (USE_AS_STRCAT): Define.
29650         Add strcat and strncat support.
29651         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
29652         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
29653         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
29654         * string/strncat.c: Update.
29655         (USE_AS_STRNCAT): Define.
29656         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29657         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
29658         and i7.
29659         * sysdeps/x86_64/multiarch/init-arch.h
29660         (bit_Prefer_PMINUB_for_stringop): New.
29661         (index_Prefer_PMINUB_for_stringop): Likewise.
29662         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
29663         bit_Prefer_PMINUB_for_stringop.
29664
29665 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
29666
29667         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
29668         buffer64.
29669         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
29670         of casting of buffer.
29671         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
29672         buffer32 and buffer64.
29673         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
29674         writes instead of casting of buffer.
29675         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
29676         buffer32.
29677         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
29678         casting of buffer.
29679
29680 2011-07-19  Andreas Schwab  <schwab@redhat.com>
29681
29682         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
29683
29684 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
29685
29686         * nscd/nscd.c (termination_handler): Don't do anything for a database
29687         if it has not yet been initialized.
29688
29689 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
29690
29691         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
29692
29693 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
29694
29695         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
29696
29697 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
29698
29699         * po/nl.po: Update from translation team.
29700         * po/sv.po: Likewise.
29701
29702 2011-07-16  Roland McGrath  <roland@hack.frob.com>
29703
29704         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
29705         now disallowed by GCC.
29706
29707         * configure.in (use-default-link): Default to yes if a test -shared
29708         link meets our qualifications.
29709         * configure: Regenerated.
29710
29711         * config.make.in (output-format): New variable.
29712         * configure.in: Check for ld --print-output-format support.
29713         * configure: Regenerated.
29714         * Makerules ($(common-objpfx)format.lds)
29715         [$(output-format) != unknown]: Just use $(output-format),
29716         instead of the linker-script munging.
29717
29718 2011-07-14  Roland McGrath  <roland@hack.frob.com>
29719
29720         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
29721         of $(common-objpfx)shlib.lds.
29722         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
29723
29724         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
29725         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
29726
29727         * configure.in (-z relro check): Adjust test code to add a large
29728         writable data section after it.
29729         * configure: Regenerated.
29730
29731 2011-07-11  Roland McGrath  <roland@hack.frob.com>
29732
29733         * configure.in (-z relro check): Fix test code to make the variable
29734         truly const.
29735         * configure: Regenerated.
29736
29737 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
29738
29739         * nscd/nscd.h (struct traced_file): Define.
29740         (struct database_dyn): Remove inotify_descr, reset_res, and filename
29741         elements.  Add traced_files.
29742         (inotify_fd): Declare.
29743         (register_traced_file): Declare.
29744         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
29745         (inotify_fd): Export.
29746         (resolv_conf_descr): Remove.
29747         (nscd_init): Move inotify descriptor creation to main.
29748         Don't register files for notification here.
29749         (register_traced_file): New function.
29750         (invalidate_cache): Don't use reset_res to determine whether to call
29751         res_init, go through the list of registered files.
29752         (main_loop_poll): The inotify descriptors are now stored in the
29753         structures for the traced files.
29754         (main_loop_epoll): Likewise
29755         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
29756         to __nss_disable_nscd.
29757         * nscd/cache.c (prune_cache): There is no single inotify descriptor
29758         for a database anymore.  Check the records for all the registered
29759         files instead.
29760         * nss/Makefile (libnss_files-routines): Add files-init.
29761         (libnss_db-routines): Add db-init.
29762         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
29763         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
29764         * nss/nss_db/db-init.c: New file.
29765         * nss/nss_files/files-init.c: New file.
29766         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
29767         __nss_lookup_function.
29768         (__nss_lookup_function): Call nss_load_library.
29769         (nss_load_all_libraries): New function.
29770         (__nss_disable_nscd): Take parameter with callback function for files
29771         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
29772         used for the cached services.
29773         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
29774         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
29775         options for features to all the files in nscd.
29776
29777         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
29778
29779 2011-07-10  Roland McGrath  <roland@hack.frob.com>
29780
29781         * csu/elf-init.c (__libc_csu_init): Comment typo.
29782
29783 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
29784
29785         * po/pl.po: Update from translation team.
29786         * po/ja.po: Likewise.
29787         * po/ru.po: Likewise.
29788         * po/ko.po: Likewise.
29789         * po/fr.po: Likewise.
29790
29791 2011-07-09  Roland McGrath  <roland@hack.frob.com>
29792
29793         * configure.in (.ctors/.dtors header and trailer check):
29794         Use an empirical test on a built program.
29795         * configure: Regenerated.
29796
29797         * configure.in (-z relro check): Use an empirical test on a built DSO.
29798         Detect, but do not require, on ia64.
29799         * configure: Regenerated.
29800
29801         * configure.in (READELF): Find it with AC_CHECK_TOOL.
29802         Update tests that use readelf to use $READELF instead.
29803         * configure: Regenerated.
29804
29805 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
29806
29807         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
29808         if the result is not used.
29809
29810 2011-07-05  Andreas Jaeger  <aj@suse.de>
29811
29812         [BZ#9696]
29813         * stdlib/tst-strtod.c: Add testcase.
29814
29815 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
29816
29817         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
29818         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
29819         The latter has a higher limit.  Take additional parameter to pass to
29820         the new function.
29821         (__pathconf): Pass file to __statfs_link_max.
29822         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
29823         __statfs_link_max.
29824         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
29825         __statfs_link_max.
29826
29827         [BZ #12868]
29828         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
29829         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
29830         Handle Lustre.
29831         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
29832         (__statfs_filesize_max): Likewise.
29833         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
29834
29835 2011-07-05  Andreas Jaeger  <aj@suse.de>
29836
29837         * resolv/res_comp.c (dn_skipname): Remove unused variable.
29838
29839 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
29840
29841         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
29842         `status' variable.
29843         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
29844         Likewise.
29845
29846 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
29847
29848         * Makefile (strop-tests): Add strncat.
29849         * string/test-strncat.c: New file.
29850
29851 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
29852
29853         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
29854
29855 2011-06-21  Andreas Jaeger  <aj@suse.de>
29856
29857         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
29858         Copy rule from iconvdata/Makefile.
29859
29860 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
29861
29862         [BZ #12922]
29863         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
29864         but no long options are defined, just return 'W'.
29865
29866 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
29867
29868         [BZ #9696]
29869         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
29870
29871 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
29872
29873         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
29874         netgroups to read.
29875         (innetgr): Likewise.
29876
29877 2011-07-05  Roland McGrath  <roland@hack.frob.com>
29878
29879         * config.make.in (install_root): Default to $(DESTDIR).
29880
29881 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
29882
29883         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
29884
29885 2011-07-02  Roland McGrath  <roland@hack.frob.com>
29886
29887         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
29888
29889         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
29890         containing directory rather than embedding absolute directory names.
29891
29892         * scripts/check-local-headers.sh: Rewritten using awk.
29893         Match by word, not by line.  Print error messages for matches.
29894         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
29895
29896         * Makerules [shlib-lds-flags empty]:
29897         ($(common-objpfx)libc_pic.opts): New target.
29898         ($(common-objpfx)libc_pic.os.clean): New target.
29899         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
29900
29901         * config.make.in (OBJCOPY): New variable.
29902         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
29903         * configure: Regenerated.
29904
29905         * config.make.in (use-default-link): New variable.
29906         * configure.in (use_default_link): Grok --with-default-link to set it.
29907         * configure: Regenerated.
29908         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
29909         (shlib-lds, shlib-lds-flags): Define to empty.
29910
29911         * Makerules (shlib-lds): New variable.
29912         (shlib-lds-flags): New variable.
29913         (build-shlib, build-moduile, build-module-asneeded): Use it.
29914         ($(common-objpfx)libc.so): Use $(shlib-lds).
29915         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
29916         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
29917
29918         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
29919         DT_FLAGS/DT_FLAGS_1 with zero flags.
29920
29921         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
29922         linker script munging.
29923
29924 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
29925
29926         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
29927         as 128-bit value.
29928         * crypt/sha512.c (sha512_process_block): Perform total addition using
29929         128-bit if possible.
29930         (__sha512_finish_ctx): Likewise.
29931         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
29932         as 64-bit value.
29933         * crypt/sha256.c (SWAP64): Define.
29934         (sha256_process_block): Perform total addition using 64-bit if
29935         possible.
29936         (__sha256_finish_ctx): Likewise.
29937
29938 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
29939
29940         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
29941         * nscd/initgrcache.c (addinitgroupsX): Likewise.
29942         * nscd/hstcache.c (cache_addhst): Likewise.
29943         * nscd/grpcache.c (cache_addgr): Likewise.
29944         * nscd/aicache.c (addhstaiX): Likewise
29945         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
29946
29947 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
29948
29949         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
29950         * nscd/initgrcache.c (addinitgroupsX): Likewise.
29951         * nscd/hstcache.c (cache_addhst): Likewise.
29952         * nscd/grpcache.c (cache_addgr): Likewise.
29953         * nscd/aicache.c (addhstaiX): Likewise
29954
29955 2011-07-01  Andreas Schwab  <schwab@redhat.com>
29956
29957         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
29958         domain only when needed.
29959
29960 2011-06-30  Andreas Schwab  <schwab@redhat.com>
29961
29962         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
29963         is always restored.
29964
29965 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
29966
29967         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
29968         are re-adding the entry.
29969         * nscd/servicescache.c (cache_addserv): Likewise.
29970
29971 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
29972
29973         * sysdeps/generic/dl-irel.h: fix protection against multiple
29974         inclusions.
29975         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
29976
29977 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
29978
29979         [BZ #12935]
29980         * malloc/memusage.sh: Fix quoting in message.
29981         * debug/xtrace.sh: Likewise.
29982
29983         * configure.in: Remove support for --experimental-malloc option, make
29984         it the default.
29985         * config.make.in: Likewise.
29986         * malloc/Makefile: Likewise.
29987
29988 2011-06-27  Andreas Schwab  <schwab@redhat.com>
29989
29990         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
29991         two-byte characters.
29992
29993 2011-06-27  Roland McGrath  <roland@hack.frob.com>
29994
29995         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
29996         AC_CACHE_CHECK invocation.
29997         * configure: Regenerated.
29998
29999         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
30000
30001 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
30002
30003         [BZ #12350]
30004         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
30005         bit from old_res_options.
30006
30007         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
30008
30009         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
30010         value type for setfct.
30011
30012 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
30013
30014         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
30015         __gettimeofday instead of gettimeofday.
30016
30017 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
30018
30019         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
30020
30021 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
30022
30023         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
30024
30025         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
30026         info.
30027
30028 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
30029
30030         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30031         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
30032         strcpy-sse2-unaligned strncpy-sse2-unaligned
30033         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
30034         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
30035         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
30036         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
30037         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
30038         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
30039         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
30040         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
30041         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
30042         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
30043         (STRCPY): Support SSE2 and SSSE3 versions.
30044
30045 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
30046
30047         [BZ #12874]
30048         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
30049         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
30050         kernels which artificially limit size of requests.
30051
30052 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
30053
30054         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30055         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
30056         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
30057         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
30058         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
30059         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
30060         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
30061         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
30062         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
30063         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
30064         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
30065         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
30066         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
30067         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
30068         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
30069         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30070         Enable unaligned load optimization for Intel Core i3, i5 and i7
30071         processors.
30072         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
30073         Define.
30074         (index_Fast_Unaligned_Load): Define.
30075         (HAS_FAST_UNALIGNED_LOAD): Define.
30076
30077 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
30078
30079         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
30080
30081 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
30082
30083         [BZ #12907]
30084         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
30085         until it is clear that the information is realy needed.
30086         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
30087
30088 2011-06-22  Andreas Schwab  <schwab@redhat.com>
30089
30090         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
30091
30092 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
30093
30094         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
30095         /sys/devices/system/cpu/online if it is usable.
30096
30097         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
30098         reading the information from the /proc filesystem to once a second.
30099
30100 2011-06-21  Andreas Jaeger  <aj@suse.de>
30101
30102         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
30103         NULL after inclusion of kernel headers.
30104
30105 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
30106
30107         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
30108         calls to internal_setent.
30109
30110         [BZ #12885]
30111         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
30112         addresses using gethostbyname4_r ignore IPv4 addresses.
30113
30114         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
30115         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
30116
30117         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
30118
30119 2011-06-20  David S. Miller  <davem@davemloft.net>
30120
30121         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
30122         inclusions.
30123         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
30124
30125         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
30126         (elf_irel): Use it.
30127         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
30128         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
30129         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
30130         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
30131         * sysdeps/x86_64/dl-irel.h: Likewise.
30132
30133         * elf/dl-runtime.c: Use elf_ifunc_invoke.
30134         * elf/dl-sym.c: Likewise.
30135
30136 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
30137
30138         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
30139         need to dereference resplen2.
30140
30141 2011-06-14  Andreas Schwab  <schwab@redhat.com>
30142
30143         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
30144
30145 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
30146
30147         * Makeconfig: Define vardbdir and inst_vardbdir.
30148         * nss/Makefile: Add rules to install db-Makefile.
30149
30150         * nss/nss_db/db-XXX.c: Cleanup.
30151
30152         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
30153         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
30154         GLIBC_PRIVATE.
30155         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
30156         * nss/makedb.c: Implement -g option to specify that value strings
30157         are generated and should not be added to table iterated over for
30158         get*ent calls.
30159         * nss/nss_db/db-initgroups.c: New file.
30160
30161         * nss/getent.c: Add support for initgroups lookups through getgrouplist
30162         interface.
30163
30164         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
30165         (internal_getgrouplist): Adjust to name change.
30166         Update use_initgroups_entry if this is not the first call.
30167         * nss/databases.def: Add initgroups entry.
30168
30169         * nss/makedb.c (compute_tables): Check result of multiple hash table
30170         sizes to minimize maximum chain length.
30171
30172 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
30173
30174         * Versions.def: Add entry for libnss_db.
30175         * shlib-versions: Likewise.
30176         * nss/Makefile: Add rules to build libnss_db.
30177         * nss/Versions: Add libnss_db information.  Organize libnss_files
30178         entries better.
30179         * nss/db-Makefile: Add gshadow support.  Change rules for the new
30180         makedb progra.  Some minor improvements to generate smaller files.
30181         * nss/nss_db/nss_db.h: Move NSS database header data structures to
30182         here from...
30183         * nss/makedb.c: ...here.
30184         Improve database format to be smaller and require less memory at
30185         runtime.
30186         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
30187         db anymore.
30188         * nss/nss_db/db-netgrp.c: Likewise.
30189         * nss/nss_db/db-open.c: Likewise.
30190         * nss/nss_files/flies-XXX.x: Adjust comments.
30191         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
30192         * nss/nss_files/files-grp.c: Likewise.
30193         * nss/nss_files/files-hosts.c: Likewise.
30194         * nss/nss_files/files-network.c: Likewise.
30195         * nss/nss_files/files-proto.c: Likewise.
30196         * nss/nss_files/files-pwd.c: Likewise.
30197         * nss/nss_files/files-rpc.c: Likewise.
30198         * nss/nss_files/files-service.c: Likewise.
30199         * nss/nss_files/files-sgrp.c: Likewise.
30200         * nss/nss_files/files-spwd.c: Likewise.
30201         * nss/nss_db/db-alias.c: Removed.
30202         * nss/nss_db/dummy-db.h: Removed.
30203
30204 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
30205
30206         * nss/makedb.c: Rewritten to not use database library.
30207         * nss/Makefile: Update to build new makedb program.
30208
30209 2011-06-14  Andreas Jaeger  <aj@suse.de>
30210
30211         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
30212         memset declaration.
30213
30214 2011-06-10  Andreas Schwab  <schwab@redhat.com>
30215
30216         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
30217         tmpbuf.
30218
30219 2011-06-10  Roland McGrath  <roland@hack.frob.com>
30220
30221         * Makerules (shlib.lds): Fail if the linker script comes out empty.
30222         * elf/Makefile ($(objpfx)ld.so): Likewise.
30223
30224         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
30225         Don't list ld.so twice in dependencies.
30226
30227         * posix/bug-regex31.c: Include <stdlib.h>.
30228
30229         * nscd/hstcache.c (cache_addhst): Remove unused variable.
30230
30231         * nis/nss_compat/compat-spwd.c
30232         (getspent_next_nss_netgr): Remove unused variable.
30233         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
30234
30235         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
30236         nonmembers" output to use the right array.
30237
30238         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
30239
30240         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
30241
30242         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
30243         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
30244         * catgets/gencat.c (read_input_file): Likewise.
30245         * locale/programs/locarchive.c (enlarge_archive): Likewise.
30246
30247         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
30248         variable definition inside #if's controlling its use.
30249
30250         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
30251
30252         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
30253
30254         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
30255
30256         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
30257         unreachable code.
30258
30259         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
30260
30261         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
30262         * configure: Regenerated.
30263
30264         * Makerules: Revert last change.
30265         * elf/Makefile: Likewise.
30266
30267 2011-06-09  Roland McGrath  <roland@hack.frob.com>
30268
30269         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
30270         * elf/Makefile ($(objpfx)librtld.os): Likewise.
30271         (reloc-link): Likewise.
30272
30273 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
30274
30275         * elf/Makefile: Add rules to build pldd.
30276         * elf/pldd.c: New file.
30277         * elf/pldd-xx.c: New file.
30278
30279 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
30280
30281         * version.h: Update for 2.15 development version.
30282
30283 2011-06-07  David S. Miller  <davem@davemloft.net>
30284
30285         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
30286         ifuncs.
30287         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
30288         elf_machine_lazy_rel): Likewise.
30289         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
30290         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
30291         elf_machine_lazy_rel): Likewise.
30292         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
30293         dl_hwcap via passed in argument.
30294         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
30295         Likewise.
30296
30297 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30298
30299         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
30300
30301 2011-06-06  Roland McGrath  <roland@hack.frob.com>
30302
30303         [BZ #12849]
30304         * manual/fdl-1.1.texi: New file, verbatim from:
30305         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
30306         * manual/lgpl-2.1.texi: New file, verbatim from:
30307         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
30308         * manual/Makefile (licenses): New variable, list those new file names.
30309         (texis): Use it.
30310         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
30311
30312         * manual/fdl.texi: File removed.
30313         * manual/lesser.texi: File removed.
30314         * manual/libc.texinfo (Copying, Documentation License):
30315         Use new @include file names, put @appendix directive before @include.
30316
30317 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
30318
30319         [BZ #12841]
30320         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
30321         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
30322         (mq_open): Add __NTH.
30323
30324 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
30325
30326         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30327         Assume Intel Core i3/i5/i7 processor if AVX is available.
30328
30329 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
30330
30331         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
30332         typo.
30333
30334 2011-05-31  Andreas Schwab  <schwab@redhat.com>
30335
30336         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
30337         memory.  Use alloca_account.  Fix memory leak when retrying.
30338
30339 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
30340
30341         * version.h (RELEASE): Bump for 2.14 release.
30342         * include/features.h (__GLIBC_MINOR__): Bump to 14.
30343
30344         * config.make.in (RANLIB): Remove entry.
30345
30346 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
30347
30348         * po/Makefile (po-sed-cmd): Add ksh to extensions.
30349         (libc.pot): Work around missing support for .ksh extension in xgettext.
30350
30351         [BZ #12684]
30352         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
30353         if both request failed.
30354         (send_dg): In case of server errors clear resplen or *resplen2.
30355
30356         [BZ #12454]
30357         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
30358         when there are multiple maps.
30359         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
30360         (_dl_fini): Remove test here.
30361
30362         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
30363
30364 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
30365
30366         [BZ #12350]
30367         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
30368         bit from old_res_options.
30369         (gaih_inet): Likewise.
30370
30371         [BZ #11099]
30372         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
30373         as signed.
30374
30375         * resolv/res_init.c (res_setoptions): Make the code more compact.
30376
30377         [BZ #11558]
30378         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
30379         set RES_USEVC.
30380
30381         [BZ #11634]
30382         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
30383
30384         * malloc/malloc.h: Mark malloc hook variables as deprecated.
30385
30386         [BZ #11781]
30387         * malloc/malloc.h: Declare malloc hook variables as volatile.
30388
30389         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
30390         in last patch.
30391
30392         [BZ #11799]
30393         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
30394         raise in the comment.
30395         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
30396         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
30397         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
30398
30399 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
30400
30401         [BZ #12811]
30402         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
30403         grow the buffers more if it already has to be sufficient.
30404         (build_wcs_upper_buffer): Likewise.
30405         * posix/regexec.c (check_matching): Likewise.
30406         (clean_state_log_if_needed): Likewise.
30407         (extend_buffers): Don't enlarge buffers beyond size of the input
30408         buffer.
30409         Patches mostly by Emil Wojak <emil@wojak.eu>.
30410         * posix/bug-regex32.c: New file.
30411         * posix/Makefile (tests): Add bug-regex32.
30412
30413         * locale/findlocale.c (_nl_find_locale): Return right away if
30414         _nl_explode_name failed.
30415         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
30416
30417         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
30418
30419         * debug/xtrace.sh: Unify messages.
30420         * malloc/memusage.sh: Likewise.
30421
30422         [BZ #12813]
30423         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
30424         time symbol from vDSO.  Substitute with vsyscall if not available.
30425         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
30426         __vdso_time.
30427
30428         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
30429         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
30430         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
30431         Add sendmmsg and internal_sendmmsg.
30432         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
30433         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
30434         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
30435
30436         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
30437         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
30438         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
30439
30440 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
30441
30442         [BZ #12813]
30443         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
30444         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
30445         available.
30446         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
30447         __vdso_getcpu.
30448
30449         [BZ #12814]
30450         * iconvdata/Makefile (tests): Add bug-iconv9.
30451         * iconvdata/bug-iconv9.c: New file.
30452
30453 2011-05-27  Andreas Schwab  <schwab@redhat.com>
30454
30455         [BZ #12814]
30456         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
30457
30458 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
30459
30460         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
30461         (struct user_regs_struct): Change intcs field back to cs.
30462
30463 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
30464
30465         * po/ja.po: Update from translation team.
30466
30467 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
30468
30469         [BZ #12795]
30470         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
30471         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
30472
30473 2011-05-20  Andreas Schwab  <schwab@redhat.com>
30474
30475         * stdlib/longlong.h: Update from GCC.
30476
30477 2011-05-23  Andreas Schwab  <schwab@redhat.com>
30478
30479         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
30480         parameter name.
30481         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
30482         Add parameter name.
30483         (__sysconf): Pass it down.
30484
30485 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
30486
30487         [BZ #12671]
30488         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
30489         some situations.
30490         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
30491         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
30492         add in in __libc_use_alloca calls.  Adjust callers.
30493         (glob): Use malloc in some situations.
30494
30495         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
30496         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
30497         pltexit.
30498
30499 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
30500
30501         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
30502         and CLOCK_BOOTTIME_ALARM.
30503
30504         [BZ #12782]
30505         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
30506         is returned.
30507
30508         * string/_strerror.c (__strerror_r): Print negative errors as signed
30509         numbers.
30510
30511         [BZ #12777]
30512         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
30513         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
30514         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
30515
30516         * configure.in: Fix typo in redirection and correct removal of test
30517         files in two cases.
30518
30519         [BZ #12788]
30520         * locale/setlocale.c (new_composite_name): Fix test to check for
30521         identical name of all categories.
30522
30523         [BZ #12792]
30524         * libio/filedoalloc.c (local_isatty): New function.
30525         (_IO_file_doallocate): Use local_isatty.
30526         * stdio-common/perror.c (perror): In case a new stream is used
30527         forward the stream error.
30528         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
30529         error flag.
30530
30531 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
30532
30533         [BZ #11869]
30534         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
30535         alloca.
30536         * include/alloca.h (extend_alloca_account): Define.
30537
30538         [BZ #11857]
30539         * posix/regex.h: Fix comments with documentation of user-accessible
30540         fields after compilation and describe correct free'ing of pattern
30541         after re_compile_pattern.
30542         Patch by Reuben Thomas <rrt@sc3d.org>.
30543
30544 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
30545
30546         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
30547         and -mno-altivec to prevent the compiler from using Altivec and/or
30548         VSX instructions when the corresponding registers are not available.
30549
30550 2011-05-19  Andreas Schwab  <schwab@redhat.com>
30551
30552         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
30553
30554 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
30555
30556         * libio/freopen.c (freopen): Use __dup2, not dup2.
30557         * libio/freopen64.c (freopen64): Likewise.
30558
30559 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
30560
30561         [BZ #12775]
30562         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
30563         * math/Makefile (tests): Add test-powl.
30564         (CFLAGS-test-powl.c): Define.
30565         * math/test-powl.c: New file.
30566
30567 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
30568
30569         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
30570
30571 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
30572
30573         [BZ #11837]
30574         * iconvdata/gb18030.c: Update to GB18020-2005.
30575
30576 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
30577
30578         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
30579         RE_SYNTAX_POSIX_AWK): Update to match recent development.
30580         Patch by Aharon Robbins <arnold@skeeve.com>.
30581
30582         [BZ #11892]
30583         * stdlib/putenv.c (putenv): Don't always create copy of the variable
30584         on the stack.
30585
30586         [BZ #11895]
30587         * misc/pselect.c (__pselect): Handle timeout value errors hidden
30588         through underflows.
30589
30590         [BZ #12766]
30591         * misc/error.c (error_at_line): Ensure file_name and old_file_name
30592         point to strings before performing equality test for error_one_per_line
30593         mode.
30594
30595         [BZ #11697]
30596         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
30597
30598         [BZ #11820]
30599         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
30600         (struct user_fpregs_struct): Avoid __uint*_t types.
30601
30602         [BZ #6420]
30603         * malloc/mtrace.c (tr_where): Add additional parameter to point to
30604         symbol info.  Use it instead of calling _dl_addr locally.
30605         (lock_and_info): New function.
30606         (tr_freehook): Call lock_and_info and pass symbol info as additional
30607         parameter to tr_where.
30608         (tr_mallochook): Likewise.
30609         (tr_reallochook): Likewise.
30610         (tr_memalignhook): Likewise.
30611
30612         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
30613         used and couldn't be at all thread-safe.
30614
30615 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
30616
30617         * libio/freopen.c (freopen): Don't close old file descriptor
30618         before the new one is opened.  Instead dup the new file descriptor
30619         to the old one after the new stream is created.
30620         * libio/freopen64.c (freopen64): Likewise.
30621         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
30622         * libio/fileops.c (_IO_new_file_close_it): Handle new
30623         _IO_FLAGS2_NOCLOSE flag.
30624         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
30625         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
30626         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
30627         _IO_FLAGS2_NOCLOSE flag.
30628         * include/unistd.h: Add hidden_proto for dup3.
30629         Define __have_dup3.
30630         * io/dup3.c: Define hidden symbol.
30631         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
30632
30633         [BZ #7101]
30634         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
30635         when an incomplete long option is used.
30636         * posix/tst-getopt_long1.c: New file.
30637         * posix/Makefile (tests): Add tst-getopt_long1.
30638
30639         [BZ #10138]
30640         * scripts/config.guess: Update from autoconf-2.68.
30641         * scripts/config.sub: Likewise.
30642
30643         [BZ #10157]
30644         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
30645         tests into ...
30646         (has_cpuclock): ...this.  New function.
30647         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
30648         macro here based on has_cpuclock code.
30649
30650         [BZ #10149]
30651         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
30652         First byte (not low byte) is now always NUL.
30653         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
30654
30655         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
30656         Use non-cancelable interfaces.
30657
30658         [BZ #9809]
30659         * locale/iso-639.def: Add entry for Sorani.
30660
30661         [BZ #11901]
30662         * include/stdlib.h: Move include protection to the right place.
30663         Define abort_msg_s.  Declare __abort_msg with it.
30664         * stdlib/abort.c (__abort_msg): Adjust type.
30665         * assert/assert.c (__assert_fail_base): New function.  Majority
30666         of code from __assert_fail.  Allocate memory for __abort_msg with
30667         mmap.
30668         (__assert_fail): Now call __assert_fail_base.
30669         * assert/assert-perr.c: Remove bulk of implementation.  Use
30670         __assert_fail_base.
30671         * include/assert.hL Declare __assert_fail_base.
30672         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
30673         mmap.
30674         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
30675
30676 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
30677
30678         [BZ #11952]
30679         [BZ #12453]
30680         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
30681         until all modules are registered in the DTV.
30682         * elf/Makefile: Add rules to build and run tst-tls19.
30683         * elf/tst-tls19.c: New file.
30684         * elf/tst-tls19mod1.c: New file.
30685         * elf/tst-tls19mod2.c: New file.
30686         * elf/tst-tls19mod3.c: New file.
30687         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
30688
30689         [BZ #12083]
30690         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
30691         correctly.
30692
30693         [BZ #12601]
30694         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
30695         two-byte sequence errors.
30696         * iconvdata/Makefile (tests): Add bug-iconv8.
30697         * iconvdata/bug-iconv8.c: New file.
30698
30699         [BZ #12626]
30700         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
30701         buf2 definition.
30702
30703         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
30704
30705         [BZ #12432]
30706         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
30707         (dummy_getcfa): New function.
30708         (init): Get _Unwind_GetCFA address, use dummy if not found.
30709         (backtrace_helper): In recursion check, also check whether CFA changes.
30710         (__backtrace): Completely initialize arg.
30711
30712         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
30713         storing incomplete byte sequence in state object.  Avoid testing for
30714         guaranteed too small input if we know there is enough data available.
30715
30716 2011-05-11  Andreas Schwab  <schwab@redhat.com>
30717
30718         * Makeconfig (+link-pie): Indent.
30719         * Rules (binaries-pie): Define if $(have-fpie) and
30720         $(build-shared).
30721         (binaries-shared): Also filter out $(binaries-pie).
30722         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
30723         * nscd/Makefile (others-pie): Add nscd.
30724         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
30725         ($(objpfx)nscd): Remove command override.
30726         * login/Makefile (others-pie): Add pt_chown.
30727         ($(objpfx)pt_chown): Remove command override.
30728         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
30729         remove command overrides.
30730
30731 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
30732
30733         * libio/tst_putwc.c: Fix error messages.
30734
30735         [BZ #12724]
30736         * libio/fileops.c (_IO_new_file_close_it): Always flush when
30737         currently writing and seek to current position when not.
30738         * libio/Makefile (tests): Add bug-fclose1.
30739         * libio/bug-fclose1.c: New file.
30740
30741 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
30742
30743         [BZ #12511]
30744         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
30745         don't set DF_1_NODELETE here.
30746         (do_lookup_x): When entering new entry test for copy relocation
30747         and if necessary set DF_1_NODELETE flag.
30748         * elf/tst-unique4.cc: New file.
30749         * elf/tst-unique4.h: New file.
30750         * elf/tst-unique4lib.cc: New file.
30751         * elf/Makefile: Add rules to build and run tst-unique4.
30752         Patch by Piotr Bury <pbury@goahead.com>.
30753
30754 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
30755
30756         [BZ #12052]
30757         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
30758
30759         [BZ #12625]
30760         * misc/mntent_r.c (addmntent): Flush the stream after the output
30761
30762         [BZ #12393]
30763         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
30764         (is_trusted_path_normalize): Skip initial colon.  Append slash
30765         to empty buffer.  Duplicate is_trusted_path code but allow
30766         constructed patch to be prefix.
30767         (is_dst): Allow $ORIGIN followed by /.
30768         (_dl_dst_substitute): Correct clearing of check_for_trusted.
30769         Correct testing of result of is_trusted_path_normalize
30770         (decompose_rpath): Fix warning.
30771
30772 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
30773
30774         [BZ #11257]
30775         * grp/initgroups.c (internal_getgrouplist): When we found the service
30776         list through the initgroups entry in nsswitch.conf do not always
30777         continue on a successful lookup.  Don't always use the
30778         __nss_group_database value if it is set.
30779         * nss/nsswitch.conf (initgroups): Change action for successful db
30780         lookup to continue for compatibility.
30781
30782 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
30783
30784         [BZ #11532]
30785         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
30786         and CP774 modules.
30787         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
30788         and CP774 modules.
30789         * iconvdata/tst-tables.sh: Likewise.
30790         * iconvdata/cp770.c: New file.
30791         * iconvdata/cp771.c: New file.
30792         * iconvdata/cp772.c: New file.
30793         * iconvdata/cp773.c: New file.
30794         * iconvdata/cp774.c: New file.
30795         * iconvdata/testdata/CP770: New file.
30796         * iconvdata/testdata/CP770..UTF8: New file.
30797         * iconvdata/testdata/CP771: New file.
30798         * iconvdata/testdata/CP771..UTF8: New file.
30799         * iconvdata/testdata/CP772: New file.
30800         * iconvdata/testdata/CP772..UTF8: New file.
30801         * iconvdata/testdata/CP773: New file.
30802         * iconvdata/testdata/CP773..UTF8: New file.
30803         * iconvdata/testdata/CP774: New file.
30804         * iconvdata/testdata/CP774..UTF8: New file.
30805
30806         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
30807         END CHARMAP line.
30808         * iconvdata/gen-8bit-gap.sh: Likewise.
30809         * iconvdata/gen-8bit.sh: Likewise.
30810
30811         * locale/iso-639.def: Add ary entry.
30812
30813         [BZ #11258]
30814         * locale/C-translit.h.in: Add U20A1 transliteration.
30815
30816         [BZ #12178]
30817         * locale/iso-639.def: Add wae entry.
30818         Patch by Kevin Bortis <bortis@translate-wae.ch>.
30819
30820         [BZ #12545]
30821         * locale/programs/localedef.c (construct_output_path): Use ssize_t
30822         for n.
30823
30824         [BZ #12711]
30825         * locale/C-translit.h.in: Add entry for U20B9.
30826         Patch by pravin.d.s@gmail.com.
30827
30828 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
30829
30830         [BZ #12713]
30831         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
30832         ENAMETOOLONG use generic getcwd.
30833         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
30834         in rtld.  Use *stat64.
30835         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
30836         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
30837         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
30838         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
30839         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
30840         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
30841         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
30842         __fstatat64 macros.
30843         * include/dirent.h: Add libc_hidden_proto for rewinddir.
30844         * dirent/rewinddir.c: Add libc_hidden_def.
30845         * sysdeps/mach/hurd/rewinddir.c: Likewise.
30846         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
30847
30848         * include/dirent.h (__alloc_dir): Add flags parameter.
30849         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
30850         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
30851         __alloc_dir.
30852         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
30853         from fdopendir if O_CLOEXEC is already set.
30854
30855 2011-03-15  Alan Modra  <amodra@gmail.com>
30856
30857         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
30858         l_tls_firstbyte_offset non-zero.  Save padding offset in
30859         l_tls_firstbyte_offset for later use.
30860         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
30861         freeing static tls block.
30862
30863 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
30864
30865         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
30866         where #ifdef was intended.  The intent is to prevent ARG_MAX from
30867         being defined by the kernel headers.
30868
30869 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
30870
30871         [BZ #12734]
30872         * resolv/resolv.h: Define RES_NOTLDQUERY.
30873         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
30874         no-tld-query and set RES_NOTLDQUERY.
30875         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
30876         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
30877         modern BIND to search name as TLD unless forbidden.
30878
30879 2011-05-07  Petr Baudis  <pasky@suse.cz>
30880             Ulrich Drepper  <drepper@gmail.com>
30881
30882         [BZ #12393]
30883         * elf/dl-load.c (fillin_rpath): Move trusted path check...
30884         (is_trusted_path): ...to here.
30885         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
30886         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
30887         using is_trusted_path_normalize() in setuid scripts.
30888
30889 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
30890
30891         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
30892         __BEGIN/__END_DECLS.
30893
30894 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
30895
30896         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
30897         NSS_STATUS_NOTFOUND if no record was found.
30898
30899 2011-05-05  Andreas Schwab  <schwab@redhat.com>
30900
30901         * sunrpc/Makefile (headers): Add rpc/netdb.h.
30902         (headers-not-in-tirpc): Remove rpc/netdb.h
30903         * resolv/netdb.h: Revert last change.
30904
30905 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
30906
30907         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
30908         circular dependency between libgcc.a and libc.a.
30909
30910 2011-05-05  Andreas Schwab  <schwab@redhat.com>
30911
30912         * resolv/netdb.h: Don't include <rpc/netdb.h>.
30913         * nis/Makefile: Don't install rpcsvc/*.
30914         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
30915         instead of <rpc/types.h>.
30916         (MAXHOSTNAMELEN): Define.
30917
30918 2011-05-03  Andreas Schwab  <schwab@redhat.com>
30919
30920         * elf/ldconfig.c (add_dir): Don't crash on empty path.
30921
30922 2011-04-28  Maciej Babinski  <mbabinski@google.com>
30923
30924         [BZ #12714]
30925         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
30926         gethostbyname4_r when IPv6 results are possible.
30927
30928 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
30929
30930         [BZ #12723]
30931         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
30932         _PC_PIPE_BUF handling.
30933
30934 2011-04-30  Bruno Haible  <bruno@clisp.org>
30935
30936         [BZ #12717]
30937         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
30938         * resolv/netdb.h (getnameinfo): Change type of flags parameter
30939         to 'int'.
30940         * inet/getnameinfo.c (getnameinfo): Likewise.
30941
30942 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
30943
30944         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
30945         to groups setting in database lookup.
30946         * nss/nsswitch.conf: Add initgroups entry.
30947
30948 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
30949
30950         [BZ #12685]
30951         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
30952         mode string.
30953         Patch by Eric Blake <eblake@redhat.com>.
30954
30955 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
30956
30957         * sunrpc/Makefile (need-export-routines): Add svc_run.
30958         (routines): Remove svc_run.
30959         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
30960         * sunrpc/clnt_perr.c (clnt_perrno): Export.
30961         * sunrpc/svc_run.c (svc_run): Likewise.
30962         * sunrpc/svc_udp.c (svcudp_create): Likewise.
30963
30964 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
30965
30966         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
30967         problem in reallocation in last patch.
30968
30969 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
30970
30971         * sunrpc/Makefile: Move inclusion of Rules.
30972
30973 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
30974
30975         * nss/nss_files/files-initgroups.c: New file.
30976         * nss/Makefile (libnss_files-routines): Add files-initgroups.
30977         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
30978         _nss_files_initgroups_dyn.
30979
30980 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
30981
30982         * elf/elf.h (R_ARM_IRELATIVE): Define.
30983
30984 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
30985
30986         * po/ru.po: Update from translation team.
30987
30988 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
30989
30990         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
30991         dependencies.
30992
30993 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
30994
30995         [BZ #12653]
30996         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
30997         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
30998         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
30999         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
31000         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
31001
31002 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
31003
31004         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
31005         differing bytes.
31006         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
31007         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
31008         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
31009
31010 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
31011
31012         [BZ #12420]
31013         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
31014         storing it.
31015         * stdlib/bug-getcontext.c: New file.
31016         * stdlib/Makefile: Add rules to build and run bug-getcontext.
31017
31018 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31019
31020         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
31021         instructions into .machine "z9-109".
31022         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
31023         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
31024
31025 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31026
31027         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
31028         between environment variables and auxiliary vector.
31029
31030 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
31031
31032         * Makefile: Add rules to build linkobj/libc.so.
31033         * include/libc-symbols.h: Define libc_hidden_nolink.
31034         * include/rpc/auth.h: Mark functions which are to be hidden.
31035         * include/rpc/auth_des.h: Likewise.
31036         * include/rpc/auth_unix.h: Likewise.
31037         * include/rpc/clnt.h: Likewise.
31038         * include/rpc/des_crypt.h: Likewise.
31039         * include/rpc/key_prot.h: Likewise.
31040         * include/rpc/pmap_clnt.h: Likewise.
31041         * include/rpc/pmap_prot.h: Likewise.
31042         * include/rpc/pmap_rmt.h: Likewise.
31043         * include/rpc/rpc_msg.h: Likewise.
31044         * include/rpc/svc.h: Likewise.
31045         * include/rpc/svc_auth.h: Likewise.
31046         * include/rpc/xdr.h: Likewise.
31047         * nis/Makefile: Link all DSOs against linkobj/libc.so.
31048         * nss/Makefile: Likewise.
31049         * sunrpc/Makefile: Don't install headers.  Build library with normal
31050         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
31051         * sunrpc/auth_des.c: Hide exported symbols by default, export some
31052         for the compat linking library.  Remove use of INTDEF/INTUSE.
31053         * sunrpc/auth_none.c: Likewise.
31054         * sunrpc/auth_unix.c: Likewise.
31055         * sunrpc/authdes_prot.c: Likewise.
31056         * sunrpc/authuxprot.c: Likewise.
31057         * sunrpc/clnt_gen.c: Likewise.
31058         * sunrpc/clnt_perr.c: Likewise.
31059         * sunrpc/clnt_raw.c: Likewise.
31060         * sunrpc/clnt_simp.c: Likewise.
31061         * sunrpc/clnt_tcp.c: Likewise.
31062         * sunrpc/clnt_udp.c: Likewise.
31063         * sunrpc/clnt_unix.c: Likewise.
31064         * sunrpc/des_crypt.c: Likewise.
31065         * sunrpc/des_soft.c: Likewise.
31066         * sunrpc/get_myaddr.c: Likewise.
31067         * sunrpc/key_call.c: Likewise.
31068         * sunrpc/key_prot.c: Likewise.
31069         * sunrpc/netname.c: Likewise.
31070         * sunrpc/pm_getmaps.c: Likewise.
31071         * sunrpc/pm_getport.c: Likewise.
31072         * sunrpc/pmap_clnt.c: Likewise.
31073         * sunrpc/pmap_prot.c: Likewise.
31074         * sunrpc/pmap_prot2.c: Likewise.
31075         * sunrpc/pmap_rmt.c: Likewise.
31076         * sunrpc/publickey.c: Likewise.
31077         * sunrpc/rpc_cmsg.c: Likewise.
31078         * sunrpc/rpc_common.c: Likewise.
31079         * sunrpc/rpc_dtable.c: Likewise.
31080         * sunrpc/rpc_prot.c: Likewise.
31081         * sunrpc/rpc_thread.c: Likewise.
31082         * sunrpc/rtime.c: Likewise.
31083         * sunrpc/svc.c: Likewise.
31084         * sunrpc/svc_auth.c: Likewise.
31085         * sunrpc/svc_authux.c: Likewise.
31086         * sunrpc/svc_raw.c: Likewise.
31087         * sunrpc/svc_run.c: Likewise.
31088         * sunrpc/svc_simple.c: Likewise.
31089         * sunrpc/svc_tcp.c: Likewise.
31090         * sunrpc/svc_udp.c: Likewise.
31091         * sunrpc/svc_unix.c: Likewise.
31092         * sunrpc/svcauth_des.c: Likewise.
31093         * sunrpc/xcrypt.c: Likewise.
31094         * sunrpc/xdr.c: Likewise.
31095         * sunrpc/xdr_array.c: Likewise.
31096         * sunrpc/xdr_float.c: Likewise.
31097         * sunrpc/xdr_intXX_t.c: Likewise.
31098         * sunrpc/xdr_mem.c: Likewise.
31099         * sunrpc/xdr_rec.c: Likewise.
31100         * sunrpc/xdr_ref.c: Likewise.
31101         * sunrpc/xdr_sizeof.c: Likewise.
31102         * sunrpc/xdr_stdio.c: Likewise.
31103
31104 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
31105
31106         [BZ #12650]
31107         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
31108         * sysdeps/ia64/dl-tls.h: Likewise.
31109         * sysdeps/powerpc/dl-tls.h: Likewise.
31110         * sysdeps/s390/dl-tls.h: Likewise.
31111         * sysdeps/sh/dl-tls.h: Likewise.
31112         * sysdeps/sparc/dl-tls.h: Likewise.
31113         * sysdeps/x86_64/dl-tls.h: Likewise.
31114         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
31115
31116 2011-03-14  Andreas Schwab  <schwab@redhat.com>
31117
31118         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
31119         rpath element also skip the following colon.
31120         (expand_dynamic_string_token): Add is_path parameter and pass
31121         down to DL_DST_REQUIRED and _dl_dst_substitute.
31122         (decompose_rpath): Call expand_dynamic_string_token with
31123         non-zero is_path.  Ignore empty rpaths.
31124         (_dl_map_object_from_fd): Call expand_dynamic_string_token
31125         with zero is_path.
31126
31127 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
31128
31129         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
31130         Make cancelable.
31131
31132 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
31133
31134         [BZ #12655]
31135         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
31136         Patch by Filipe David Manana <fdmanana@apache.org>.
31137
31138 2011-04-07  Andreas Schwab  <schwab@redhat.com>
31139
31140         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
31141         Maintain aligned stack.
31142         (CHECK_RSP): Remove unused macro.
31143
31144 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
31145
31146         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
31147         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
31148
31149 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
31150
31151         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
31152
31153         * include/features.h: Mention __USE_XOPEN2K8 in comment.
31154
31155 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
31156
31157         [BZ #12518]
31158         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
31159         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
31160         * sysdeps/x86_64/memmove.c: New file.
31161         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
31162         (memcpy): Renamed to ...
31163         (__new_memcpy): This.
31164         (memcpy): Provide GLIBC_2_14 memcpy.
31165         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
31166         (memcpy): Provide GLIBC_2_2_5 memcpy.
31167
31168 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
31169
31170         [BZ #12631]
31171         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
31172
31173 2011-03-30  Andreas Schwab  <schwab@redhat.com>
31174
31175         * misc/syncfs.c: New file.
31176         * misc/Makefile (routines): Add syncfs.
31177         * posix/unistd.h: Declare syncfs.
31178         * sysdeps/unix/syscalls.list: Add syncfs.
31179
31180 2011-04-01  Andreas Schwab  <schwab@redhat.com>
31181
31182         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
31183         open_by_handle_at.
31184         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
31185         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
31186         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
31187         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
31188         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
31189         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
31190         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
31191
31192 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
31193
31194         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
31195         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
31196         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
31197         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
31198         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
31199         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
31200         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
31201
31202         * io/Makefile: Compile fallocate.c, fallocate64.c, and
31203         sync_file_range.c with -fexceptions.
31204         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
31205         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
31206         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
31207         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
31208         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
31209         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
31210         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
31211         sync_file_range as cancellation point
31212         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
31213         now a wrapper around __call_sync_file_range with cancellation handling.
31214         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
31215         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
31216         function name to __call_sync_file_range.
31217         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
31218         Add call_sync_file_range.
31219
31220 2011-04-01  Andreas Schwab  <schwab@redhat.com>
31221
31222         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
31223         bits/timex.h.
31224
31225 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
31226
31227         * iconv/iconv.h: Fix typo in comment.
31228         * io/fcntl.h: Likewise.
31229         * libio/stdio.h: Likewise.
31230         * posix/spawn.h: Likewise.
31231         * posix/unistd.h: Likewise.
31232         * stdlib/stdlib.h: Likewise.
31233         * time/time.h: Likewise.
31234         * wcsmbs/wchar.h: Likewise.
31235
31236         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
31237         open_by_handle): Add.
31238         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
31239         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
31240         Augment a few comments.
31241         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
31242         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
31243         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
31244         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
31245         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
31246         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
31247         open_by_handle.
31248
31249         * io/fcntl.h (AT_EMPTY_PATH): Define.
31250
31251 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
31252
31253         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
31254         * sysdeps/unix/sysv/linux/bits/time.h: New file.
31255         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
31256         to...
31257         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
31258         * Versions.def: Add GLIBC_2.14.
31259         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
31260         Export.
31261
31262 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
31263
31264         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
31265         round counter.
31266         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
31267
31268 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
31269
31270         [BZ #12597]
31271         * string/test-strncmp.c (do_page_test): New function.
31272         (check2): Likewise.
31273         (test_main): Call check2.
31274         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
31275
31276 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
31277
31278         [BZ #12587]
31279         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
31280         Handle cache information in CPU leaf 4.
31281         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
31282
31283 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
31284
31285         [BZ #12583]
31286         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
31287         character representation.
31288         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
31289
31290 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
31291
31292         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
31293         END(__isnan) to END(__isnanf) to match function entry point/label
31294         EALIGN(__isnanf,...).
31295
31296 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
31297
31298         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
31299
31300 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
31301
31302         [BZ #12510]
31303         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
31304         copy from the symbol referenced in the relocation to initialize the
31305         used variable.
31306         Patch by Piotr Bury <pbury@goahead.com>.
31307         * elf/Makefile: Add rules to build and tst-unique3.
31308         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
31309         * elf/tst-unique3.cc: New file.
31310         * elf/tst-unique3.h: New file.
31311         * elf/tst-unique3lib.cc: New file.
31312         * elf/tst-unique3lib2.cc: New file.
31313
31314         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
31315
31316 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
31317
31318         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
31319         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
31320         to _start.
31321
31322 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
31323
31324         * elf/dl-load.c (_dl_map_object): If we are looking for the first
31325         to-be-loaded object along a path to loader is ld.so.
31326
31327 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
31328             Ulrich Drepper  <drepper@gmail.com>
31329
31330         * sysdeps/x86_64/memset.S: After aligning destination, code
31331         branches to different locations depending on the value of
31332         misalignment, when multiarch is enabled. Fix this.
31333
31334 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
31335
31336         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
31337         Set _x86_64_preferred_memory_instruction for AMD processsors.
31338         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31339         Set bit_Prefer_SSE_for_memop for AMD processors.
31340
31341 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
31342
31343         * libio/fmemopen.c (fmemopen): Optimize a bit.
31344
31345 2011-03-03  Andreas Schwab  <schwab@redhat.com>
31346
31347         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
31348
31349 2011-03-03  Roland McGrath  <roland@redhat.com>
31350
31351         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
31352
31353 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
31354
31355         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
31356         __bzero_ultra1 instead of __memset_ultra1.
31357
31358 2011-02-23  Andreas Schwab  <schwab@redhat.com>
31359             Ulrich Drepper  <drepper@gmail.com>
31360
31361         [BZ #12509]
31362         * include/link.h (struct link_map): Add l_orig_initfini.
31363         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
31364         returning unsuccessfully.
31365         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
31366         close of a file loaded at startup, restore the original l_initfini
31367         list.
31368         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
31369         list, store the pointer.
31370         * elf/Makefile ($(objpfx)noload-mem): New rule.
31371         (noload-ENV): Define.
31372         (tests): Add $(objpfx)noload-mem.
31373         * elf/noload.c: Include <memcheck.h>.
31374         (main): Call mtrace.  Close all opened handles.
31375
31376 2011-02-17  Andreas Schwab  <schwab@redhat.com>
31377
31378         [BZ #12454]
31379         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
31380         dependencies are missing.
31381
31382 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31383
31384         Fix __if_freereq crash: Unlike the generic version which uses free,
31385         Hurd needs munmap.
31386         * sysdeps/mach/hurd/ifreq.h: New file.
31387
31388 2011-01-27  Petr Baudis  <pasky@suse.cz>
31389             Ulrich Drepper  <drepper@gmail.com>
31390
31391         [BZ 12445]#
31392         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
31393         to extend_alloca().
31394         * stdio-common/bug23.c: New file.
31395         * stdio-common/Makefile (tests): Add bug23.
31396
31397 2010-09-28  Andreas Schwab  <schwab@redhat.com>
31398             Ulrich Drepper  <drepper@gmail.com>
31399
31400         [BZ #12489]
31401         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
31402         before performing relro protection.  At old place add assertion
31403         to make sure nothing changed.
31404
31405 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
31406             Glauber de Oliveira Costa  <glommer@gmail.com>
31407
31408         * elf/elf.h: Add new ARM TLS relocs.
31409
31410 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
31411
31412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
31413         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
31414         cast from r3.
31415         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
31416         'tests' variable.
31417         * sysdeps/wordsize-64/tst-writev.c: New file.
31418
31419 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
31420
31421         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
31422         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
31423         insns in _dl_start to prevent a TOC reference before relocs are
31424         resolved.
31425
31426 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
31427
31428         [BZ #12469]
31429         * Makeconfig: Remove RANLIB definition.
31430         * Makerules: Don't use RANLIB.
31431         * aclocal.m4: Remove ranlib test.
31432         * configure.in: No need to check for ranlib.
31433         * elf/rtld-Rules: Don't use RANLIB.
31434
31435 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31436
31437         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
31438         protection macro.
31439         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
31440         inclusion protection macro.
31441
31442         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
31443         SIGRTMIN and SIGRTMAX and print information in that case only when
31444         SIGRTMIN is defined.
31445
31446 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
31447
31448         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
31449         arginfo fn returning -1.
31450
31451         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
31452         and thousands string is zero terminated.
31453
31454 2011-02-03  Andreas Schwab  <schwab@redhat.com>
31455
31456         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
31457         sysdeps/unix/sysv/linux/bits/socket.h.
31458
31459 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31460
31461         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
31462         (__CPU_COUNT): Remove old macros.
31463         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
31464         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
31465         (__CPU_ALLOC, __CPU_FREE): Add macros.
31466         (__sched_cpualloc, __sched_cpufree): Add declarations.
31467
31468 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
31469
31470         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
31471         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
31472         * nscd/aicache.c (addhstaiX): Return timeout of added value.
31473         (readdhstai): Return value of addhstaiX call.
31474         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
31475         (addgrbyX): Return value returned by cache_addgr.
31476         (readdgrbyname): Return value returned by addgrbyX.
31477         (readdgrbygid): Likewise.
31478         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
31479         (addpwbyX): Return value returned by cache_addpw.
31480         (readdpwbyname): Return value returned by addhstbyX.
31481         (readdpwbyuid): Likewise.
31482         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
31483         (addservbyX): Return value returned by cache_addserv.
31484         (readdservbyname): Return value returned by addservbyX:
31485         (readdservbyport): Likewise.
31486         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
31487         (addhstbyX): Return value returned by cache_addhst.
31488         (readdhstbyname): Return value returned by addhstbyX.
31489         (readdhstbyaddr): Likewise.
31490         (readdhstbynamev6): Likewise.
31491         (readdhstbyaddrv6): Likewise.
31492         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
31493         (readdinitgroups): Return value returned by addinitgroupsX.
31494         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
31495         (prune_cache): Keep track of timeout value of re-added entries.
31496         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
31497         * nscd/nscd.h: Adjust prototypes of readd* functions.
31498
31499 2011-02-04  Roland McGrath  <roland@redhat.com>
31500
31501         * nis/nis_server.c (nis_servstate): Use the right name for 0.
31502         (nis_stats): Likewise.
31503         * nis/nis_modify.c (nis_modify): Likewise.
31504         * nis/nis_remove.c (nis_remove): Likewise.
31505         * nis/nis_add.c (nis_add): Likewise.
31506
31507         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
31508
31509         * posix/fnmatch_loop.c: Add some consts.
31510
31511         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
31512
31513 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
31514
31515         [BZ #12460]
31516         * config.make.in (config-cflags-novzeroupper): Define.
31517         * configure.in: Substitute libc_cv_cc_novzeroupper.
31518         * elf/Makefile (AVX-CFLAGS): Define.
31519         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
31520         (CFLAGS-tst-auditmod4a.c): Likewise.
31521         (CFLAGS-tst-auditmod4b.c): Likewise.
31522         (CFLAGS-tst-auditmod6b.c): Likewise.
31523         (CFLAGS-tst-auditmod6c.c): Likewise.
31524         (CFLAGS-tst-auditmod7b.c): Likewise.
31525         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
31526
31527 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
31528
31529         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
31530         function to the callback.
31531         Patch partly by Jiri Olsa <jolsa@redhat.com>.
31532
31533 2011-02-02  Andreas Schwab  <schwab@redhat.com>
31534
31535         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
31536         of errno.
31537
31538 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
31539
31540         [BZ #11724]
31541         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
31542         of constructors.
31543         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
31544         of destructors.
31545         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
31546
31547         [BZ #11724]
31548         * elf/Makefile: Add rules to build and run new test.
31549         * elf/tst-initorder.c: New file.
31550         * elf/tst-initorder.exp: New file.
31551         * elf/tst-initordera1.c: New file.
31552         * elf/tst-initordera2.c: New file.
31553         * elf/tst-initordera3.c: New file.
31554         * elf/tst-initordera4.c: New file.
31555         * elf/tst-initorderb1.c: New file.
31556         * elf/tst-initorderb2.c: New file.
31557         * elf/tst-order-a1.c: New file.
31558         * elf/tst-order-a2.c: New file.
31559         * elf/tst-order-a3.c: New file.
31560         * elf/tst-order-a4.c: New file.
31561         * elf/tst-order-b1.c: New file.
31562         * elf/tst-order-b2.c: New file.
31563         * elf/tst-order-main.c: New file.
31564         New test case by George Gensure <werkt0@gmail.com>.
31565
31566 2010-10-01  Andreas Schwab  <schwab@redhat.com>
31567
31568         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
31569         decoding ACE if AI_CANONIDN.
31570
31571 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
31572
31573         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
31574
31575 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
31576
31577         * version.h (RELEASE): Bump for 2.13 release.
31578         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
31579
31580         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
31581
31582         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
31583         MADV_NOHUGEPAGE.
31584         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
31585         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
31586         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
31587         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
31588         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
31589         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
31590
31591         * posix/getconf.c: Update copyright year.
31592         * catgets/gencat.c: Likewise.
31593         * csu/version.c: Likewise.
31594         * debug/catchsegv.sh: Likewise.
31595         * debug/xtrace.sh: Likewise.
31596         * elf/ldconfig.c: Likewise.
31597         * elf/ldd.bash.in: Likewise.
31598         * elf/sprof.c (print_version): Likewise.
31599         * iconv/iconv_prog.c: Likewise.
31600         * iconv/iconvconfig.c: Likewise.
31601         * locale/programs/locale.c: Likewise.
31602         * locale/programs/localedef.c: Likewise.
31603         * malloc/memusage.sh: Likewise.
31604         * malloc/mtrace.pl: Likewise.
31605         * nscd/nscd.c (print_version): Likewise.
31606         * nss/getent.c: Likewise.
31607
31608         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
31609         PF_CAIF, and PF_ALG.
31610         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
31611
31612 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
31613
31614         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
31615         (modules-names): Use them.
31616         (ifunc-test-modules, ifunc-pie-tests): Define.
31617         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
31618         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
31619         (test-extras): Likewise.
31620         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
31621         $(compile-command.c).
31622         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
31623         (all-built-dso): Define.
31624         (check-textrel.out, check-execstack.out): Depend on it.
31625
31626         * configure.in: Don't override --enable-multi-arch.
31627
31628 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
31629
31630         [BZ #6812]
31631         * nscd/hstcache.c (tryagain): Define.
31632         (cache_addhst): Return tryagain not notfound for temporary errors.
31633         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
31634         failed.
31635
31636 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
31637
31638         [BZ #10563]
31639         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
31640         to make the syscall.
31641         * sysdeps/unix/sysv/linux/setgroups.c: New file.
31642
31643         [BZ #12378]
31644         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
31645         and fall back to matching as normal character if the string ends before
31646         the matching ']' is found.  This is what POSIX requires.
31647         * posix/testfnm.c: Adjust test result.
31648         * posix/globtest.sh: Adjust test result.  Add new test.
31649         * posix/tst-fnmatch.input: Likewise.
31650         * posix/tst-fnmatch2.c: Add new test.
31651
31652 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
31653
31654         * elf/Makefile (check-execstack): Revert last change.  Depend on
31655         check-execstack.h.
31656         (check-execstack.h): New target.
31657         (generated): Add check-execstack.h.
31658         * elf/check-execstack.c: Include "check-execstack.h".
31659         (main): Revert last change.
31660         (handle_file): Return zero if GNU_STACK is absent and
31661         DEFAULT_STACK_PERMS doesn't include PF_X.
31662
31663 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
31664
31665         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
31666         in child fails because the descriptor is already closed.
31667         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
31668         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
31669         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
31670
31671         [BZ #12397]
31672         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
31673         syscall.
31674
31675         [BZ #10484]
31676         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
31677         temporary buffer used to handle multi lookups locally.
31678         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
31679
31680 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
31681
31682         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
31683         loader is ld.so.
31684
31685 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
31686
31687         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
31688         alignment for SSE2.
31689
31690 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
31691
31692         [BZ #12394]
31693         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
31694         characters.  When rounding increased number of integer digits recompute
31695         number of groups.
31696         * stdio-common/tst-grouping.c: New file.
31697         * stdio-common/Makefile: Add rules to build and run tst-grouping.
31698
31699 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
31700
31701         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
31702         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
31703
31704         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
31705         void.
31706         * bits/select.h: Likewise.
31707
31708 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
31709
31710         * po/ja.po: Update from translation team.
31711
31712 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
31713
31714         [BZ #11155]
31715         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
31716         implementation just like for lxstat, fxstatat, et al.
31717
31718 2010-12-27  Jim Meyering  <meyering@redhat.com>
31719
31720         [BZ #12348]
31721         * posix/regexec.c (build_trtable): Return failure indication upon
31722         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
31723
31724 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
31725
31726         [BZ #12201]
31727         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
31728         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
31729         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
31730         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
31731
31732         [BZ #12207]
31733         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
31734
31735         [BZ #12204]
31736         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
31737         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
31738
31739 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
31740
31741         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
31742         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
31743         script has SORT_BY_INIT_PRIORITY.
31744         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
31745         NO_CTORS_DTORS_SECTIONS is defined.
31746         * elf/soinit.c: Likewise.
31747         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
31748         NO_CTORS_DTORS_SECTIONS is defined.
31749         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
31750         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
31751         * sysdeps/sh/init-first.c: Likewise.
31752         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
31753
31754 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
31755
31756         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
31757         always use the slow path.
31758
31759 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
31760
31761         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
31762         similar rule which adds the sysdep directories to the header search in
31763         order to pick up the correct platform stackinfo.h.
31764         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
31765         perform test if it is, otherwise return successfully without testing.
31766         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
31767         DEFAULT_STACK_PERMS define in stackinfo.h.
31768         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
31769         defined in stackinfo.h.
31770         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
31771         DEFAULT_STACK_PERMS defined in stackinfo.h.
31772         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
31773         * sysdeps/ia64/stackinfo.h: Likewise.
31774         * sysdeps/s390/stackinfo.h: Likewise.
31775         * sysdeps/sh/stackinfo.h: Likewise.
31776         * sysdeps/sparc/stackinfo.h: Likewise.
31777         * sysdeps/x86_64/stackinfo.h: Likewise.
31778         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
31779         PF_X for powerpc64.  Retain PF_X for powerpc32.
31780
31781 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
31782
31783         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
31784         accurately.
31785         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
31786         GETDENTS_64BIT_ALIGNED.
31787
31788 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
31789
31790         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
31791
31792 2010-12-10  Andreas Schwab  <schwab@redhat.com>
31793
31794         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
31795         _GNU_SOURCE.
31796
31797         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
31798         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
31799         Remove __restrict.
31800         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
31801         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
31802
31803 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
31804
31805         [BZ #11655]
31806         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
31807         are initialized.
31808
31809 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
31810
31811         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
31812
31813 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
31814
31815         * po/it.po: Update from translation team.
31816
31817 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
31818
31819         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
31820         unused codes.
31821
31822 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
31823
31824         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
31825
31826 2010-11-24  Andreas Schwab  <schwab@redhat.com>
31827
31828         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
31829         specially.
31830         (gaih_getanswer_slice): Likewise.
31831
31832 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
31833
31834         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
31835
31836 2010-05-31  Petr Baudis  <pasky@suse.cz>
31837
31838         [BZ #11149]
31839         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
31840         silently even in the chroot mode.
31841
31842 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
31843
31844         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
31845         last patch a bit.  Pretty printing
31846
31847 2010-05-31  Petr Baudis <pasky@suse.cz>
31848
31849         [BZ #10085]
31850         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
31851         initialization of skip_initgroups_dyn.
31852
31853 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
31854
31855         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
31856         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
31857
31858 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
31859
31860         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
31861
31862 2010-11-11  Andreas Schwab  <schwab@redhat.com>
31863
31864         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
31865         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
31866         (tst-fnmatch-ENV): Set MALLOC_TRACE.
31867         ($(objpfx)tst-fnmatch-mem): New rule.
31868         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
31869         * posix/tst-fnmatch.c (main): Call mtrace.
31870
31871 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
31872
31873         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31874         Support Intel processor model 6 and model 0x2c.
31875
31876 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
31877
31878         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
31879           signed comparison.
31880
31881 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
31882
31883         [BZ #12205]
31884         * string/test-strncasecmp.c (check_result): New function.
31885         (do_one_test): Use it.
31886         (check1): New function.
31887         (test_main): Use it.
31888         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
31889         Support strcasecmp and strncasecmp.
31890
31891 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
31892
31893         [BZ #12194]
31894         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
31895         * sysdeps/x86_64/bits/byteswap.h: Likewise.
31896
31897 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
31898
31899         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
31900         IFUNC support.
31901         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31902         memset-x86-64.
31903         * sysdeps/x86_64/multiarch/bzero.S: New file.
31904         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
31905         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
31906         * sysdeps/x86_64/multiarch/memset.S: New file.
31907         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
31908         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
31909         Set bit_Prefer_SSE_for_memop for Intel processors.
31910         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
31911         Define.
31912         (index_Prefer_SSE_for_memop): Define.
31913         (HAS_PREFER_SSE_FOR_MEMOP): Define.
31914
31915 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
31916
31917         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
31918         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
31919
31920 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
31921
31922         [BZ #12191]
31923         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
31924         (__x86_64_raw_data_cache_size_half): Likewise.
31925         (__x86_64_raw_shared_cache_size): Likewise.
31926         (__x86_64_raw_shared_cache_size_half): Likewise.
31927
31928         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
31929         (__x86_64_raw_data_cache_size_half): Likewise.
31930         (__x86_64_raw_shared_cache_size): Likewise.
31931         (__x86_64_raw_shared_cache_size_half): Likewise.
31932         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
31933         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
31934         and __x86_64_raw_shared_cache_size_half.  Round
31935         __x86_64_data_cache_size_half, __x86_64_data_cache_size
31936         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
31937         to multiple of 256 bytes.
31938
31939 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
31940
31941         [BZ #12167]
31942         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
31943         of inacessible symlinks.  Verify result of symlink before returning it.
31944         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
31945         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
31946
31947 2010-10-28  Erich Ritz  <erichritz@gmail.com>
31948
31949         * math/math.h (isinf): Fix typo in comment.
31950
31951 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
31952
31953         * po/da.po: Update from translation team.
31954
31955 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
31956
31957         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
31958         is added to the list.
31959
31960 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31961             Ulrich Drepper  <drepper@gmail.com>
31962
31963         * elf/dl-object.c (_dl_new_object): Don't append the new object to
31964         the global list here.  Move code to...
31965         (_dl_add_to_namespace_list): ...here.  New function.
31966         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
31967         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
31968         * elf/dl-load.c (lose): Don't remove the element from the list.
31969         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
31970         (_dl_map_object): Likewise.
31971
31972 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
31973
31974         [BZ #12159]
31975         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
31976         into all bytes of SSE register.
31977         Patch by Richard Li <richardpku@gmail.com>.
31978
31979 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
31980
31981         [BZ #12140]
31982         * malloc/malloc.c (_int_free): Fill correct number of bytes when
31983         perturbing.
31984
31985 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
31986
31987         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
31988         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
31989         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
31990         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
31991         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
31992         submachine.
31993         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
31994
31995 2010-10-22  Andreas Schwab  <schwab@redhat.com>
31996
31997         * include/dlfcn.h (__RTLD_SECURE): Define.
31998         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
31999         mode & __RTLD_SECURE instead.
32000         (open_path): Rename preloaded parameter to secure.
32001         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
32002         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
32003         * elf/dl-deps.c (openaux): Likewise.
32004         * elf/rtld.c (struct map_args): Remove is_preloaded.
32005         (map_doit): Don't use it.
32006         (dl_main): Likewise.
32007         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
32008         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
32009
32010 2010-09-09  Andreas Schwab  <schwab@redhat.com>
32011
32012         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
32013         (sysd-rules-targets): Remove duplicates.
32014         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
32015         rtld-%.$o dependency.
32016
32017 2010-10-18  Andreas Schwab  <schwab@redhat.com>
32018
32019         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
32020         _dl_map_object do it.
32021
32022 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
32023
32024         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
32025         fast fma builtins, define the macros in the C99 standard.
32026         (FP_FAST_FMAF): Likewise.
32027         (FP_FAST_FMAL): Likewise.
32028         * sysdeps/x86_64/bits/mathdef.h: Likewise.
32029
32030         * bits/mathdef.h: Update copyright year.
32031         * sysdeps/powerpc/bits/mathdef.h: Likewise.
32032
32033 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
32034
32035         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
32036         builtins, define the macros in the C99 standard.
32037         (FP_FAST_FMAF): Likewise.
32038         (FP_FAST_FMAL): Likewise.
32039         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
32040         multiply/add.
32041         (FP_FAST_FMAF): Likewise.
32042
32043 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
32044
32045         [BZ #3268]
32046         * math/libm-test.inc (fma_test): Some new testcases.
32047         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
32048         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
32049         y and infinite z.  Do multiplication by C already in long double.
32050         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
32051         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
32052         y and infinite z.  Do bitwise or of inexact bit into u.d.
32053         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
32054         * sysdeps/i386/fpu/s_fmaf.S: Removed.
32055         * sysdeps/i386/fpu/s_fma.S: Removed.
32056         * sysdeps/i386/fpu/s_fmal.S: Removed.
32057
32058 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
32059
32060         [BZ #3268]
32061         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
32062         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
32063         computation is not scheduled after fetestexcept.  Fix value
32064         of minimum denormal long double.
32065
32066 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
32067
32068         [BZ #3268]
32069         * math/libm-test.inc (fma_test): Add some more tests.
32070         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
32071         correctly.
32072
32073 2010-10-15  Andreas Schwab  <schwab@redhat.com>
32074
32075         * scripts/data/localplt-s390-linux-gnu.data: New file.
32076         * scripts/data/localplt-s390x-linux-gnu.data: New file.
32077
32078 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
32079
32080         [BZ #3268]
32081         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
32082         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
32083         instead of dbl-64.
32084         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
32085         inlines.
32086         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
32087         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
32088         if one of x and y is very large and the other is subnormal.
32089         * sysdeps/s390/fpu/s_fmaf.c: New file.
32090         * sysdeps/s390/fpu/s_fma.c: New file.
32091         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
32092         * sysdeps/powerpc/fpu/s_fma.S: New file.
32093         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
32094         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
32095         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
32096
32097 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
32098
32099         [BZ #3268]
32100         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
32101         fma tests.
32102         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
32103         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
32104         * sysdeps/i386/i686/multiarch/s_fma.c: Include
32105         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
32106         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
32107         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
32108         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
32109
32110 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
32111
32112         [BZ #12078]
32113         * posix/regcomp.c (parse_branch): One more memory leak plugged.
32114         * posix/bug-regex31.input: Add test case.
32115
32116 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
32117
32118         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
32119         * posix/bug-regex31.input: New file.
32120
32121         [BZ #12078]
32122         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
32123         (parse_sub_exp): Fix last change, use postorder.
32124
32125         * posix/bug-regex31.c: New file.
32126         * posix/Makefile: Add rules to build and run bug-regex31.
32127
32128         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
32129
32130         [BZ #12078]
32131         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
32132
32133         [BZ #12108]
32134         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
32135         to have entries in sys_siglist.
32136
32137         [BZ #12093]
32138         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
32139         be NULL.
32140
32141 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
32142
32143         [BZ #3268]
32144         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
32145         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
32146         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
32147         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
32148         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
32149         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
32150         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
32151         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
32152         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
32153         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
32154         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
32155         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
32156         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
32157         * math/ftestexcept.c (fetestexcept): Likewise.
32158         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
32159         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
32160         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
32161         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
32162         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
32163         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
32164         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
32165
32166 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
32167
32168         [BZ #12107]
32169         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
32170         newline.
32171
32172 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
32173
32174         * string/bug-strstr1.c: New file.
32175         * string/Makefile: Add rules to build and run bug-strstr1.
32176
32177 2010-10-05  Eric Blake  <eblake@redhat.com>
32178
32179         [BZ #12092]
32180         * string/str-two-way.h (two_way_long_needle): Always clear memory
32181         when skipping input due to the shift table.
32182
32183 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
32184
32185         [BZ #12005]
32186         * malloc/mcheck.c: Handle large requests.
32187
32188         [BZ #12077]
32189         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
32190         for strncmp and strncasecmp.
32191         * string/stratcliff.c: Add tests for strcmp and strncmp.
32192         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
32193
32194 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
32195
32196         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
32197         __set_fpscr.
32198
32199 2010-09-30  Andreas Jaeger  <aj@suse.de>
32200
32201         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
32202         (CGROUP_SUPER_MAGIC): Define.
32203         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
32204         Handle btrfs and cgroup file systems.
32205         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
32206         Likewise.
32207
32208 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
32209
32210         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
32211         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
32212
32213 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32214
32215         [BZ #12067]
32216         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
32217         trying to locate the ELF header.
32218
32219 2010-09-27  Andreas Schwab  <schwab@redhat.com>
32220
32221         [BZ #11611]
32222         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
32223         Mask out sign-bit copies when constructing f_fsid.
32224
32225 2010-09-24  Petr Baudis <pasky@suse.cz>
32226
32227         * debug/stack_chk_fail_local.c: Add missing licence exception.
32228         * debug/warning-nop.c: Likewise.
32229
32230 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
32231
32232         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
32233         implementing getdents64 using getdents syscall, set d_type if
32234         __ASSUME_GETDENTS32_D_TYPE.
32235
32236 2010-09-16  Andreas Schwab  <schwab@redhat.com>
32237
32238         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
32239         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
32240
32241 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
32242
32243         [BZ #12037]
32244         * posix/unistd.h: Undo change of feature selection for ftruncate from
32245         2010-01-11.
32246
32247 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
32248
32249         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
32250         detection.
32251
32252 2010-09-20  Andreas Schwab  <schwab@redhat.com>
32253
32254         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
32255         fanotify_mark.
32256         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
32257
32258 2010-09-14  Andreas Schwab  <schwab@redhat.com>
32259
32260         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
32261         variables after CHECK_SP call.
32262         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
32263
32264 2010-09-13  Andreas Schwab  <schwab@redhat.com>
32265             Ulrich Drepper  <drepper@redhat.com>
32266
32267         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
32268         re-relocationg ld.so.
32269         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
32270         _dl_init_paths call.
32271         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
32272         here anymore.
32273
32274 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
32275
32276         * resolv/res_init.c (__res_vinit): Count the default server we added.
32277
32278 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
32279             Ulrich Drepper  <drepper@redhat.com>
32280
32281         [BZ #11968]
32282         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
32283         (____longjmp_chk): Use %ebx for saving value across system call.
32284         Add unwind info.
32285
32286 2010-09-06  Andreas Schwab  <schwab@redhat.com>
32287
32288         * manual/Makefile: Don't mix pattern rules with normal rules.
32289
32290 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
32291
32292         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
32293         operation.
32294         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
32295         * libio/iofopncook.c (_IO_cookie_init): Likewise.
32296         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
32297         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
32298         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
32299         Likewise.
32300
32301 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
32302
32303         [BZ #11979]
32304         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
32305         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
32306
32307 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
32308
32309         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
32310         * sysdeps/x86_64/addmul_1.S: Likewise.
32311         * sysdeps/x86_64/lshift.S: Likewise.
32312         * sysdeps/x86_64/mul_1.S: Likewise.
32313         * sysdeps/x86_64/rshift.S: Likewise.
32314         * sysdeps/x86_64/sub_n.S: Likewise.
32315         * sysdeps/x86_64/submul_1.S: Likewise.
32316
32317 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32318
32319         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
32320         Define __sched_param instead of SCHED_* and sched_param when
32321         <bits/sched.h> is included with __need_schedparam defined.
32322         * bits/sched.h [__need_schedparam]
32323         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
32324         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
32325         (__defined_schedparam): Define to 1.
32326         (__sched_param): New structure, identical to sched_param.
32327         (__need_schedparam): Undefine.
32328
32329 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
32330
32331         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
32332         (epoll_create1): Declare.
32333
32334         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
32335
32336 2010-08-31  Andreas Schwab  <schwab@redhat.com>
32337
32338         [BZ #7066]
32339         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
32340         shifting retval into place.
32341
32342 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
32343
32344         * nis/rpcsvc/nis.h: Update copyright notice.
32345         * nis/rpcsvc/nis.x: Likewise.
32346         * nis/rpcsvc/nis_callback.h: Likewise.
32347         * nis/rpcsvc/nis_callback.x: Likewise.
32348         * nis/rpcsvc/nis_object.x: Likewise.
32349         * nis/rpcsvc/nis_tags.h: Likewise.
32350         * nis/rpcsvc/yp.h: Likewise.
32351         * nis/rpcsvc/yp.x: Likewise.
32352         * nis/rpcsvc/ypupd.h: Likewise.
32353         * nis/yp_xdr.c: Likewise.
32354         * nis/ypupdate_xdr.c: Likewise.
32355
32356         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
32357         mainly the body of pmap_getport.  Add parameters to specify timeouts.
32358         (pmap_getport): Use __libc_rpc_getport.
32359         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
32360         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
32361         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
32362
32363 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
32364
32365         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
32366         fanotify_mark.
32367
32368 2010-08-27  Roland McGrath  <roland@redhat.com>
32369
32370         * sysdeps/i386/i686/multiarch/Makefile
32371         (CFLAGS-varshift.c): New variable.
32372
32373 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
32374
32375         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
32376         * sysdeps/i386/i686/multiarch/varshift.c: New file.
32377
32378         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
32379
32380         * sysdeps/x86_64/strlen.S: Minimal code improvement.
32381
32382 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
32383
32384         * sysdeps/x86_64/strlen.S: Unroll the loop.
32385         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32386         strlen-sse2 strlen-sse2-bsf.
32387         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
32388         __strlen_no_bsf if bit_Slow_BSF is set.
32389         (__strlen_sse42): Removed.
32390         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
32391         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
32392
32393 2010-08-25  Roland McGrath  <roland@redhat.com>
32394
32395         * sysdeps/x86_64/multiarch/varshift.S: File removed.
32396         * sysdeps/x86_64/multiarch/varshift.c: New file.
32397         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
32398         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
32399         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
32400         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
32401
32402 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
32403
32404         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32405         strlen-sse2 strlen-sse2-bsf.
32406         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
32407         __strlen_sse2_bsf if bit_Slow_BSF is unset.
32408         (__strlen_sse2): Removed.
32409         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
32410         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
32411         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
32412         bit_Slow_BSF for Atom.
32413         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
32414         (index_Slow_BSF): Define.
32415         (HAS_SLOW_BSF): Define.
32416
32417 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
32418
32419         [BZ #10851]
32420         * resolv/res_init.c (__res_vinit): When no server address at all
32421         is given default to loopback.
32422
32423 2010-08-24  Roland McGrath  <roland@redhat.com>
32424
32425         * configure.in: Remove config-name.h generation.
32426         * configure: Regenerated.
32427         * config-name.in: File removed.
32428         * scripts/config-uname.sh: New file.
32429         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
32430         ($(objdir)config-name.h): New target.
32431
32432         * sunrpc/rpc_parse.h: Avoid nested comment.
32433
32434 2010-08-24  Richard Henderson  <rth@redhat.com>
32435             Ulrich Drepper  <drepper@redhat.com>
32436             H.J. Lu  <hongjiu.lu@intel.com>
32437
32438         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
32439         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
32440         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
32441         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
32442         _mm_alignr_epi8 with _mm_loadu_si128.
32443         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
32444         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
32445         (__m128i_shift_right): Removed.
32446         * sysdeps/i386/i686/multiarch/varshift.h: New file.
32447         * sysdeps/i386/i686/multiarch/varshift.S: New file.
32448         * sysdeps/x86_64/multiarch/varshift.h: New file.
32449         * sysdeps/x86_64/multiarch/varshift.S: New file.
32450
32451 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
32452
32453         * configure.in: Move assembler checks to before sysdep dir checking.
32454
32455 2010-08-20  Petr Baudis  <pasky@suse.cz>
32456
32457         * LICENSES: Sync the sunrpc license.
32458
32459 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
32460
32461         * sunrpc/auth_des.c: Update copyright notice once again.
32462         * sunrpc/auth_none.c: Likewise.
32463         * sunrpc/auth_unix.c: Likewise.
32464         * sunrpc/authdes_prot.c: Likewise.
32465         * sunrpc/authuxprot.c: Likewise.
32466         * sunrpc/bindrsvprt.c: Likewise.
32467         * sunrpc/clnt_gen.c: Likewise.
32468         * sunrpc/clnt_perr.c: Likewise.
32469         * sunrpc/clnt_raw.c: Likewise.
32470         * sunrpc/clnt_simp.c: Likewise.
32471         * sunrpc/clnt_tcp.c: Likewise.
32472         * sunrpc/clnt_udp.c: Likewise.
32473         * sunrpc/clnt_unix.c: Likewise.
32474         * sunrpc/des_crypt.c: Likewise.
32475         * sunrpc/des_soft.c: Likewise.
32476         * sunrpc/get_myaddr.c: Likewise.
32477         * sunrpc/getrpcport.c: Likewise.
32478         * sunrpc/key_call.c: Likewise.
32479         * sunrpc/key_prot.c: Likewise.
32480         * sunrpc/openchild.c: Likewise.
32481         * sunrpc/pm_getmaps.c: Likewise.
32482         * sunrpc/pm_getport.c: Likewise.
32483         * sunrpc/pmap_clnt.c: Likewise.
32484         * sunrpc/pmap_prot.c: Likewise.
32485         * sunrpc/pmap_prot2.c: Likewise.
32486         * sunrpc/pmap_rmt.c: Likewise.
32487         * sunrpc/rpc/auth.h: Likewise.
32488         * sunrpc/rpc/auth_unix.h: Likewise.
32489         * sunrpc/rpc/clnt.h: Likewise.
32490         * sunrpc/rpc/des_crypt.h: Likewise.
32491         * sunrpc/rpc/key_prot.h: Likewise.
32492         * sunrpc/rpc/netdb.h: Likewise.
32493         * sunrpc/rpc/pmap_clnt.h: Likewise.
32494         * sunrpc/rpc/pmap_prot.h: Likewise.
32495         * sunrpc/rpc/pmap_rmt.h: Likewise.
32496         * sunrpc/rpc/rpc.h: Likewise.
32497         * sunrpc/rpc/rpc_des.h: Likewise.
32498         * sunrpc/rpc/rpc_msg.h: Likewise.
32499         * sunrpc/rpc/svc.h: Likewise.
32500         * sunrpc/rpc/svc_auth.h: Likewise.
32501         * sunrpc/rpc/types.h: Likewise.
32502         * sunrpc/rpc/xdr.h: Likewise.
32503         * sunrpc/rpc_clntout.c: Likewise.
32504         * sunrpc/rpc_cmsg.c: Likewise.
32505         * sunrpc/rpc_common.c: Likewise.
32506         * sunrpc/rpc_cout.c: Likewise.
32507         * sunrpc/rpc_dtable.c: Likewise.
32508         * sunrpc/rpc_hout.c: Likewise.
32509         * sunrpc/rpc_main.c: Likewise.
32510         * sunrpc/rpc_parse.c: Likewise.
32511         * sunrpc/rpc_parse.h: Likewise.
32512         * sunrpc/rpc_prot.c: Likewise.
32513         * sunrpc/rpc_sample.c: Likewise.
32514         * sunrpc/rpc_scan.c: Likewise.
32515         * sunrpc/rpc_scan.h: Likewise.
32516         * sunrpc/rpc_svcout.c: Likewise.
32517         * sunrpc/rpc_tblout.c: Likewise.
32518         * sunrpc/rpc_util.c: Likewise.
32519         * sunrpc/rpc_util.h: Likewise.
32520         * sunrpc/rpcinfo.c: Likewise.
32521         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
32522         * sunrpc/rpcsvc/key_prot.x: Likewise.
32523         * sunrpc/rpcsvc/klm_prot.x: Likewise.
32524         * sunrpc/rpcsvc/mount.x: Likewise.
32525         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
32526         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
32527         * sunrpc/rpcsvc/rex.x: Likewise.
32528         * sunrpc/rpcsvc/rstat.x: Likewise.
32529         * sunrpc/rpcsvc/rusers.x: Likewise.
32530         * sunrpc/rpcsvc/sm_inter.x: Likewise.
32531         * sunrpc/rpcsvc/spray.x: Likewise.
32532         * sunrpc/rpcsvc/yppasswd.x: Likewise.
32533         * sunrpc/rtime.c: Likewise.
32534         * sunrpc/svc.c: Likewise.
32535         * sunrpc/svc_auth.c: Likewise.
32536         * sunrpc/svc_authux.c: Likewise.
32537         * sunrpc/svc_raw.c: Likewise.
32538         * sunrpc/svc_run.c: Likewise.
32539         * sunrpc/svc_simple.c: Likewise.
32540         * sunrpc/svc_tcp.c: Likewise.
32541         * sunrpc/svc_udp.c: Likewise.
32542         * sunrpc/svc_unix.c: Likewise.
32543         * sunrpc/svcauth_des.c: Likewise.
32544         * sunrpc/xcrypt.c: Likewise.
32545         * sunrpc/xdr.c: Likewise.
32546         * sunrpc/xdr_array.c: Likewise.
32547         * sunrpc/xdr_float.c: Likewise.
32548         * sunrpc/xdr_mem.c: Likewise.
32549         * sunrpc/xdr_rec.c: Likewise.
32550         * sunrpc/xdr_ref.c: Likewise.
32551         * sunrpc/xdr_sizeof.c: Likewise.
32552         * sunrpc/xdr_stdio.c: Likewise.
32553
32554         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
32555         handling.
32556
32557 2010-08-19  Andreas Schwab  <schwab@redhat.com>
32558
32559         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
32560
32561 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
32562
32563         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
32564         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
32565         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
32566         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
32567         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
32568         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
32569         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
32570         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
32571         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
32572         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
32573         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
32574         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
32575         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
32576         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
32577
32578 2010-07-26  Anton Blanchard  <anton@samba.org>
32579
32580         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
32581         * malloc/arena.c (heap_trim): Likewise.
32582
32583 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
32584
32585         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
32586         here.  Not...
32587         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
32588         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
32589
32590 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
32591
32592         * sysdeps/i386/elf/Makefile: New file.
32593
32594 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
32595
32596         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
32597         from fanotify_init.
32598         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
32599         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
32600
32601 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
32602
32603         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
32604         of strncasecmp_l.
32605         * sysdeps/multiarch/strcmp.S: Likewise.
32606
32607 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
32608
32609         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
32610         strncase_l-nonascii.
32611         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
32612         Add strncase_l-ssse3.
32613         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
32614         * sysdeps/x86_64/strcmp.S: Likewise.
32615         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
32616         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
32617         * sysdeps/x86_64/strncase.S: New file.
32618         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
32619         * sysdeps/x86_64/strncase_l.S: New file.
32620         * string/Makefile (strop-tests): Add strncasecmp.
32621         * string/test-strncasecmp.c: New file.
32622
32623         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
32624         warning.
32625
32626         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
32627         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
32628
32629 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
32630
32631         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
32632
32633 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
32634
32635         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
32636         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
32637         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
32638
32639 2010-05-01  Alan Modra  <amodra@gmail.com>
32640
32641         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
32642         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
32643         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
32644         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
32645         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
32646         tidying.  Don't tail-call __sigjmp_save for static lib.
32647         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
32648         save location.
32649         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
32650         (CALL_MCOUNT): Add eh info, and nop after bl.
32651         (TAIL_CALL_SYSCALL_ERROR): New macro.
32652         (PSEUDO_RET): Use it.
32653         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
32654         Correct save location of integer regs and cr.
32655         (_dl_profile_resolve): Correct cr save location.  Delete nops
32656         after bl when SHARED.  Reduce cfi size a little by better
32657         placement of cfi directives.
32658         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
32659         make a stack frame.  Instead use parm save area as a temp.
32660         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
32661         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
32662         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
32663         Don't make a stack frame for parent, use parm save area.
32664         Increase child stack frame to 112 bytes.  Don't save unused reg,
32665         and adjust reg usage.  Set up cfi on error recovery and
32666         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
32667         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
32668         (__makecontext): Add dummy nop after jump to exit.
32669         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
32670         Use correct parm save area and cr save, reduce stack frame.
32671         Correct cfi for possible PSEUDO_RET frame setup.
32672         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
32673         Branch to local label emitted by PSEUDO_RET rather than
32674         __syscall_error.
32675
32676 2010-08-12  Andreas Schwab  <schwab@redhat.com>
32677
32678         [BZ #11904]
32679         * locale/programs/locale.c (print_assignment): New function.
32680         (show_locale_vars): Use it.
32681
32682 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
32683
32684         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
32685         field.
32686         (struct statfs64): Likewise.
32687         (_STATFS_F_FLAGS): Define.
32688         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
32689         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
32690         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
32691         (ST_VALID): Define locally.
32692         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
32693         __statvfs_getflags, use the provided value.
32694         * sysdeps/unix/sysv/linux/kernel-features.h: Define
32695         __ASSUME_STATFS_F_FLAGS.
32696
32697         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
32698
32699         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
32700         Add sys/fanotify.h.
32701         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
32702         fanotify_mask for GLIBC_2.13.
32703         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
32704         fanotify_init and fanotify_mark.
32705         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
32706         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
32707
32708         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
32709         Add prlimit.
32710         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
32711         prlimit64 for GLIBC_2.13.
32712         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
32713         prlimit64.
32714         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
32715         syscall.
32716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
32717         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
32718         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
32719         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
32720         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
32721         add prlimit alias.
32722         * sysdeps/unix/sysv/linux/prlimit.c: New file.
32723
32724         [BZ #11903]
32725         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
32726         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
32727
32728         * nss/Makefile: Add rules to build and run tst-nss-test1.
32729         * shlib-versions: Add entry for libnss_test1.
32730         * nss/nss_test1.c: New file.
32731         * nss/tst-nss-test1.c: New file.
32732
32733         * nss/nsswitch.c (__nss_database_custom): Define new variable.
32734         (__nss_configure_lookup): Set appropriate entry in
32735         __nss_configure_lookup to true.
32736         * nss/nsswitch.h: Define enum with indeces of databases in
32737         databases and __nss_database_custom arrays.  Declare
32738         __nss_database_custom.
32739         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
32740         to avoid using nscd when custom rules are installed.
32741         * nss/getXXbyYY_r.c: Likewise.
32742         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
32743
32744         * nss/nss_files/files-parse.c: Whitespace fixes.
32745
32746 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
32747
32748         [BZ #11883]
32749         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
32750         * posix/fnmatch_loop.c: Likewise.
32751
32752 2010-07-17  Andi Kleen  <ak@linux.intel.com>
32753
32754         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
32755         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
32756         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
32757         * Versions.def [GLIBC_2.13]: Add.
32758
32759 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
32760
32761         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32762         Also fail if tpwd after pwuid call is NULL.
32763
32764 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32765
32766         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
32767         when converting to ms.
32768
32769 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
32770
32771         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
32772         EOPNOTSUPP errors with ENOTTY.
32773         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
32774         EOPNOTSUPP errors with ENOTTY.
32775
32776 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
32777
32778         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
32779         Add strcasecmp_l-ssse3.
32780         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
32781         strcasecmp.
32782         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
32783         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
32784         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
32785
32786 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
32787
32788         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
32789
32790         * string/Makefile (strop-tests): Add strcasecmp.
32791         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
32792         strcasecmp_l-nonascii.
32793         (gen-as-const-headers): Add locale-defines.sym.
32794         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
32795         * sysdeps/x86_64/strcasecmp.S: New file.
32796         * sysdeps/x86_64/strcasecmp_l.S: New file.
32797         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
32798         * sysdeps/x86_64/locale-defines.sym: New file.
32799         * string/test-strcasecmp.c: New file.
32800
32801         * string/test-strcasestr.c: Test both ends of the range of characters.
32802         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
32803
32804 2010-07-29  Roland McGrath  <roland@redhat.com>
32805
32806         [BZ #11856]
32807         * manual/locale.texi (Yes-or-No Questions): Fix example code.
32808
32809 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
32810
32811         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
32812         for ld.so.
32813
32814 2010-07-27  Andreas Schwab  <schwab@redhat.com>
32815
32816         * manual/memory.texi (Malloc Tunable Parameters): Document
32817         M_PERTURB.
32818
32819 2010-07-26  Roland McGrath  <roland@redhat.com>
32820
32821         [BZ #11840]
32822         * configure.in (-fgnu89-inline check): Set and substitute
32823         gnu89_inline, not libc_cv_gnu89_inline.
32824         * configure: Regenerated.
32825         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
32826
32827 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
32828
32829         * string/test-strnlen.c: New file.
32830         * string/Makefile (strop-tests): Add strnlen.
32831         * string/tester.c (test_strnlen): Add a few more test cases.
32832         * string/tst-strlen.c: Better error reporting.
32833
32834         * sysdeps/x86_64/strnlen.S: New file.
32835
32836 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
32837
32838         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
32839         lower-latency instructions.
32840
32841 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
32842
32843         * string/test-strcasestr.c: New file.
32844         * string/test-strstr.c: New file.
32845         * string/Makefile (strop-tests): Add strstr and strcasestr.
32846         * string/str-two-way.h: Don't undefine MAX.
32847         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
32848
32849 2010-07-21  Andreas Schwab  <schwab@redhat.com>
32850
32851         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32852         strcasestr-nonascii.
32853         (CFLAGS-strcasestr-nonascii.c): Define.
32854         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
32855         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
32856         Remove unused attribute.
32857
32858 2010-07-20  Roland McGrath  <roland@redhat.com>
32859
32860         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
32861         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
32862         ld.so.cache was broken.  With it, there is no way to disable dsocaps
32863         like LD_HWCAP_MASK can disable hwcaps.
32864
32865 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
32866
32867         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
32868
32869 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
32870
32871         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
32872         call in strcasestr.
32873         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
32874         __strcasestr_sse42_nonascii.
32875         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
32876         strcasestr-nonascii.c.
32877         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
32878
32879 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
32880
32881         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
32882         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
32883         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
32884         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
32885
32886 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
32887
32888         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
32889         fcntl.
32890
32891 2010-07-06  Andreas Schwab  <schwab@redhat.com>
32892
32893         [BZ #11577]
32894         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
32895         dl_signal_cerror.
32896
32897 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
32898
32899         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
32900         _PC_PIPE_BUF using F_GETPIPE_SZ.
32901
32902 2010-07-05  Roland McGrath  <roland@redhat.com>
32903
32904         * manual/arith.texi (Rounding Functions): Fix rint description
32905         implicit in round description.
32906
32907 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
32908
32909         * elf/Makefile: Fix linking for a few tests to make recent linker
32910         happy.
32911
32912 2010-06-30  Andreas Schwab  <schwab@redhat.com>
32913
32914         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
32915         $(common-objpfx)libc_nonshared.a.
32916
32917 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
32918
32919         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
32920         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
32921         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
32922         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
32923         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
32924         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
32925         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
32926         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
32927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
32928         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
32929         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
32930         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
32931         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
32932         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
32933         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
32934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
32935         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
32936         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
32937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
32938         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
32939         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
32940         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
32941         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
32942         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
32943         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
32944         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
32945         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
32946         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
32947         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
32948         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
32949         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
32950         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
32951         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
32952         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
32953         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
32954         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
32955         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
32956         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
32957         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
32958         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
32959         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
32960         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
32961         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
32962         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
32963         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
32964         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
32965         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
32966         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
32967
32968 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
32969
32970         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
32971         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
32972         * string/memmove.c (memmove): Renamed to ...
32973         (MEMMOVE): ...this.  Default to memmove.
32974         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
32975         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
32976         (END_CHK): Define.
32977         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32978         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
32979         mempcpy-ssse3-back memmove-ssse3-back.
32980         * sysdeps/x86_64/multiarch/bcopy.S: New file .
32981         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
32982         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
32983         * sysdeps/x86_64/multiarch/memcpy.S: New file.
32984         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
32985         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
32986         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
32987         * sysdeps/x86_64/multiarch/memmove.c: New file.
32988         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
32989         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
32990         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
32991         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
32992         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
32993         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
32994         Define.
32995         (index_Fast_Copy_Backward): Define.
32996         (HAS_ARCH_FEATURE): Define.
32997         (HAS_FAST_REP_STRING): Define.
32998         (HAS_FAST_COPY_BACKWARD): Define.
32999
33000 2010-06-21  Andreas Schwab  <schwab@redhat.com>
33001
33002         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
33003         Restore proper fallback handling.
33004
33005 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
33006
33007         [BZ #11701]
33008         * posix/group_member.c (__group_member): Correct checking loop.
33009
33010         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
33011         OOM in getpwuid_r correctly.  Return error number when the caller
33012         should return, otherwise -1.
33013         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
33014         call returning > 0 value.
33015         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
33016
33017 2010-06-07  Andreas Schwab  <schwab@redhat.com>
33018
33019         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
33020         libc_nonshared.a from targets in modules-names.
33021
33022 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
33023
33024         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
33025         requires it.
33026
33027 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
33028
33029         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
33030         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
33031         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
33032         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
33033
33034 2010-06-02  Andreas Schwab  <schwab@redhat.com>
33035
33036         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
33037
33038 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
33039
33040         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
33041         and F_GETPIPE_SZ.
33042         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
33043         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
33044         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
33045         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
33046         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
33047         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
33048
33049 2010-06-14  Roland McGrath  <roland@redhat.com>
33050
33051         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
33052
33053 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
33054
33055         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
33056         __REDIRECT followed by __THROW.
33057         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
33058         * posix/getopt.h (getopt): Likewise.
33059
33060 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
33061
33062         * hurd/lookup-at.c (__file_name_lookup_at): Accept
33063         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
33064         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
33065         in AT_FLAGS.
33066         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
33067         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
33068
33069 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
33070
33071         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
33072
33073 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
33074
33075         [BZ #11640]
33076         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33077         Properly check family and model.
33078
33079 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
33080
33081         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
33082
33083 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
33084
33085         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
33086
33087 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
33088
33089         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
33090         symbol reference.
33091
33092 2010-05-19  Andreas Schwab  <schwab@redhat.com>
33093
33094         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
33095         symbol reference.
33096
33097 2010-05-21  Andreas Schwab  <schwab@redhat.com>
33098
33099         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
33100         and internal_recvmmsg.
33101         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
33102         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
33103         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
33104         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
33105
33106         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
33107         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
33108         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
33109
33110 2010-05-20  Andreas Schwab  <schwab@redhat.com>
33111
33112         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
33113
33114 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
33115
33116         POWER7 optimizations.
33117         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
33118         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
33119
33120 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
33121
33122         * version.h: Update for 2.13 development version.
33123
33124 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
33125
33126         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
33127         exceptions.  Return 0.
33128
33129 2010-05-07  Roland McGrath  <roland@redhat.com>
33130
33131         * elf/ldconfig.c (main): Add a const.
33132
33133 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
33134
33135         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
33136         (args_options): Add no-idn option.
33137         (ahosts_keys_int): Add idn_flags to ai_flags.
33138         (parse_option): Handle 'i' option to clear idn_flags.
33139
33140         * malloc/malloc.c (_int_free): Possible race in the most recently
33141         added check.  Only act on the data if no current modification
33142         happened.
33143
33144 See ChangeLog.17 for earlier changes.