Fix cproj handling of (finite, NaN) arguments (bug 15531).
[jlayton/glibc.git] / ChangeLog
1 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #15531]
4         * math/s_cproj.c (__cproj): Only return an infinity if one part of
5         argument is infinite.
6         * math/s_cprojf.c (__cprojf): Likewise.
7         * math/s_cprojl.c (__cprojl): Likewise.
8         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
9         * math/libm-test.inc (cproj_test_data): Add more tests.
10
11         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
12
13         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
14         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
15         size.  Use __ffs to determine corresponding shift.
16
17 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
18             Roland McGrath  <roland@hack.frob.com>
19
20         * Makefile (INSTALL): Remove trailing blank lines from output of
21         makeinfo.
22
23 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
24
25         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
26         Align 32 bit compat elf_greg to 8 bytes.
27
28 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
29
30         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
31
32 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
33
34         * string/strcoll_l.c (coll_seq): New structure.
35         (get_next_seq_cached): New function.
36         (get_next_seq): New function.
37         (do_compare): New function.
38         (STRCOLL): Use GNU style definition.  Simplify implementation
39         by using get_next_seq, get_next_seq_cached and do_compare.
40
41 2013-08-16  Florian Weimer  <fweimer@redhat.com>
42
43         [BZ #14699]
44         CVE-2013-4237
45         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
46         member.
47         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
48         member.
49         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
50         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
51         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
52         conditional.
53         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
54         GETDENTS_64BIT_ALIGNED.
55         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
56         * manual/filesys.texi (Reading/Closing Directory): Document
57         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
58         strongly.
59         * manual/conf.texi (Limits for Files): Add portability note to
60         NAME_MAX, PATH_MAX.
61         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
62
63 2013-08-13  Andreas Schwab  <schwab@suse.de>
64
65         [BZ #15749]
66         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
67         of fabs.
68         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
69         LDBL_MAX_EXP >= 16384]: Add tests for it.
70
71 2013-08-12  David S. Miller  <davem@davemloft.net>
72
73         * version.h (RELEASE): Set to "development".
74         (VERSION): Set to "2.18.90".
75         * NEWS: Add 2.19 section.
76
77 2013-08-03  David S. Miller  <davem@davemloft.net>
78
79         * po/ko.po: Update Korean translation from translation project.
80
81 2013-08-01  David S. Miller  <davem@davemloft.net>
82
83         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
84         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
85         Bilka.
86
87 2013-07-30  David S. Miller  <davem@davemloft.net>
88
89         * po/fr.po: Update French translation from translation project.
90
91 2013-07-28  David S. Miller  <davem@davemloft.net>
92
93         * po/cs.po: Update Czech translation from translation project.
94
95         * po/sv.po: Update Swedish translation from translation project.
96
97 2013-07-27  David S. Miller  <davem@davemloft.net>
98
99         * po/eo.po: Update Esperanto translation from translation project.
100
101         * po/vi.po: Update Vietnamese translation from translation project.
102
103         * po/de.po: Update German translation from translation project.
104
105 2013-07-26  David S. Miller  <davem@davemloft.net>
106
107         * po/bg.po: Update Bulgarian translation from translation project.
108
109         * po/nl.po: Update Dutch translation from translation project.
110         * po/pl.po: Update Polish translation from translation project.
111         * po/ru.po: Update Russian translation from translation project.
112
113 2013-07-24  David S. Miller  <davem@davemloft.net>
114
115         * po/libc.pot: Update.
116
117 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
118
119         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
120         variable page size.
121         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
122         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
123         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
124
125 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
126
127         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
128
129 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
130             Andreas Schwab  <schwab@suse.de>
131             Roland McGrath  <roland@hack.frob.com>
132             Joseph Myers  <joseph@codesourcery.com>
133             Carlos O'Donell  <carlos@redhat.com>
134
135         [BZ #15755]
136         * config.h.in: Define HAVE_PT_CHOWN.
137         * config.make.in (build-pt-chown): New variable.
138         * configure.in (--enable-pt_chown): New configure option.
139         * configure: Regenerate.
140         * login/Makefile: Include Makeconfig.  Build pt_chown only if
141         build-pt-chown is enabled.
142         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
143         pt_chown to fix pty ownership.
144         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
145         CLOSE_ALL_FDS.
146         * manual/install.texi (Configuring and compiling): Mention
147         --enable-pt_chown. Add @findex for grantpt.
148         * INSTALL: Regenerate.
149
150 2013-07-20  David S. Miller  <davem@davemloft.net>
151
152         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
153         difference between 32-bit and 64-bit.
154
155 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
156
157         [BZ #15711]
158         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
159         Avoid system header dependency with -ffreestanding.
160         ($(objpfx)bits/syscall%d): Likewise.
161
162 2013-07-13  David S. Miller  <davem@davemloft.net>
163
164         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
165         underflows from atanl/atan2l due to bug 15319.
166         (casinh_test_data): Likewise.
167
168 2013-07-07  David S. Miller  <davem@davemloft.net>
169
170         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
171
172 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
173
174         * sysdeps/i386/fpu/libm-test-ulps: Update.
175         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
176
177 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
178
179         * configure.in (--enable-lock-elision): Fix message text.
180         * INSTALL: Regenerate.
181         * configure: Regenerate.
182
183 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
184
185         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
186
187 2013-07-03  Andreas Jaeger  <aj@suse.de>
188
189         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
190         define.
191         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
192         (ptrace_peeksiginfo_args): Add.
193         (__ptrace_peeksiginfo_flags): Add.
194         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
195         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
196         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
197
198 2013-07-03  Allan McRae  <allan@archlinux.org>
199
200         * sysdeps/i386/fpu/libm-test-ulps: Update.
201
202 2013-07-02  David S. Miller  <davem@davemloft.net>
203
204         * sysdeps/sparc/fpu/libm-test-ulps: Update.
205
206 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
207
208         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
209
210 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
211
212         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
213         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
214
215 2013-07-02  Andi Kleen <ak@linux.intel.com>
216
217         * config.h.in (ENABLE_LOCK_ELISION): Add.
218         * configure.in (--enable-lock-elision): Add option.
219         * manual/install.texi: Document --enable lock elision.
220         * configure: Regenerate
221         * INSTALL: Regenerate.
222
223 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
224
225         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
226         SSE4.2 strcasecmp for libc.a.
227         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
228
229 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
230
231         [BZ #13304]
232         * soft-fp/op-common.h (_FP_FMA): New macro.
233         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
234         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
235         (_FP_MUL_MEAT_1_imm): ... here.
236         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
237         (_FP_MUL_MEAT_1_wide): ... here.
238         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
239         (_FP_MUL_MEAT_1_hard): ... here.
240         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
241         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
242         (_FP_MUL_MEAT_2_wide): ... here.
243         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
244         (_FP_MUL_MEAT_2_wide_3mul): ... here.
245         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
246         (_FP_MUL_MEAT_2_gmp): ... here.
247         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
248         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
249         (_FP_MUL_MEAT_4_wide): ... here.
250         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
251         (_FP_MUL_MEAT_4_gmp): ... here.
252         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
253         (_FP_WFRACBITS_DW_S): Likewise.
254         (_FP_WFRACXBITS_DW_S): Likewise.
255         (_FP_HIGHBIT_DW_S): Likewise.
256         (FP_FMA_S): Likewise.
257         (_FP_FRAC_HIGH_DW_S): Likewise.
258         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
259         (_FP_WFRACBITS_DW_D): Likewise.
260         (_FP_WFRACXBITS_DW_D): Likewise.
261         (_FP_HIGHBIT_DW_D): Likewise.
262         (FP_FMA_D): Likewise.
263         (_FP_FRAC_HIGH_DW_D): Likewise.
264         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
265         (_FP_WFRACBITS_DW_E): Likewise.
266         (_FP_WFRACXBITS_DW_E): Likewise.
267         (_FP_HIGHBIT_DW_E): Likewise.
268         (FP_FMA_E): Likewise.
269         (_FP_FRAC_HIGH_DW_E): Likewise.
270         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
271         (_FP_WFRACBITS_DW_Q): Likewise.
272         (_FP_WFRACXBITS_DW_Q): Likewise.
273         (_FP_HIGHBIT_DW_Q): Likewise.
274         (FP_FMA_Q): Likewise.
275         (_FP_FRAC_HIGH_DW_Q): Likewise.
276         * soft-fp/fmasf4.c: New file.
277         * soft-fp/fmadf4.c: Likewise.
278         * soft-fp/fmatf4.c: Likewise.
279
280 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
281
282         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
283         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
284         Silvermont.
285         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
286         macro.
287         (index_Slow_SSE4_2): Likewise.
288         (index_Prefer_PMINUB_for_stringop): Likewise.
289         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
290         bit_Slow_SSE4_2 is set.
291         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
292         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
293
294 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
295
296         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
297         rtld_global._dl_hwcap2.
298         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
299         POWER8.
300         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
301         POWER8 feature descriptions defined in _dl_hwcap2.
302         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
303         string handling for POWER8 feature bits.
304         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
305         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
306         _dl_powerpc_cap_flags.
307         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
308         * sysdeps/powerpc/rtld-global-offsets.sym
309         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
310         _dl_hwcap2 in the rtld_global_ro structure.
311
312 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
313
314         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
315         hardware capabilities in support of AT_HWCAP2.
316         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
317         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
318         GLRO(dl_hwcap2).
319         (_dl_show_auxv): Add support for calling _dl_procinfo to display
320         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
321         explicitly the unknown a_type display mechanism is used.
322         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
323         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
324         struct member.
325         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
326         to macro prototype for AT_HWCAP2 support.
327         * sysdeps/i386/dl-procinfo.h: Likewise.
328         * sysdeps/s390/dl-procinfo.h: Likewise.
329         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
330         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
331         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
332         return -1 for unknown a_type display fallback.
333         * sysdeps/sparc/dl-procinfo.h: Likewise.
334         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
335         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
336
337 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
338
339         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
340         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
341
342 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
343
344         [BZ #12492]
345         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
346         mprotect making __stack_prot writable.
347
348 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
349             Joseph Myers  <joseph@codesourcery.com>
350
351         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
352         as being properly aligned.
353
354 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
355
356         * dlfcn/modstatic5.c: New file.
357         * dlfcn/tststatic5.c: New file.
358         * dlfcn/Makefile (tests): Add tststatic5.
359         (tests-static): Likewise.
360         (modules-names): Add modstatic5.
361         (tststatic5-ENV): New variable.
362         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
363
364         [BZ #15022]
365         * elf/dl-support.c (_dl_main_map): New variable.
366         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
367         (_dl_nns, _dl_load_adds): Set to 1.
368         (_dl_initial_searchlist): Refer to _dl_main_map.
369         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
370         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
371         call to _dl_get_origin.
372         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
373         around call_map.
374         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
375         * dlfcn/modstatic3.c: New file.
376         * dlfcn/tststatic3.c: New file.
377         * dlfcn/tststatic4.c: New file.
378         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
379         (tests-static): Likewise.
380         (modules-names): Add modstatic3.
381         (tststatic3-ENV, tststatic4-ENV): New variables.
382         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
383         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
384
385 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
386
387         * configure.in (CC): Require GCC version 4.4 or later.
388         * configure: Regenerated.
389         * manual/install.texi (Tools for Compilation): Update GCC version
390         requirement.
391         * INSTALL: Regenerated.
392
393 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
394
395         [BZ #15674]
396         * string/test-memcmp.c (check2): New.
397         (main): Call check2.
398
399         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
400
401 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
402
403         [BZ #15022]
404         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
405         over to...
406         (dl_open_worker) [!SHARED]: ... here.
407
408 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
409
410         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
411
412 2013-06-25  Richard Henderson  <rth@redhat.com>
413
414         * locale/programs/locarchive.c: Include <libc-internal.h>
415
416 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
417
418         * manual/texinfo.tex: Update to version 2013-06-21.17, with
419         trailing whitespace removed.
420
421 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
422
423         [BZ #10283]
424         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
425         * locale/programs/locarchive.c: Include libc-mmap.h.
426         (prepare_address_space): Take two new outputs (the mmap base and len).
427         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
428         values.
429         (create_archive): Declare new mmap base and len values for
430         prepare_address_space, and store the result in ah.
431         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
432         (enlarge_archive): If ah->mmap_base is not NULL, use that and
433         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
434         Declare new mmap base and len values for
435         prepare_address_space, and store the result in new_ah.
436         (open_archive): Declare new mmap base and len values for
437         prepare_address_space, and store the result in ah.
438         (close_archive): If ah->mmap_base is not NULL, use that and
439         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
440         * sysdeps/generic/libc-mmap.h: New file.
441
442 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
443
444         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
445         (ALIGN_UP): Likewise.
446         (PTR_ALIGN_DOWN): Likewise.
447         (PTR_ALIGN_UP): Likewise.
448
449 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
450
451         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
452         entry mapped to PPC_PLATFORM_POWER8.
453         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
454         POWER8.
455         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
456         (_dl_string_platform): Add case for exporting platform position for
457         POWER8.
458         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
459         search path to sysdeps/powerpc/powerpc32/power8 directory.
460         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
461         search path to sysdeps/powerpc/powerpc64/power8 directory.
462         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
463         power7 directories.
464         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
465         power7 directories.
466
467 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
468
469         * INSTALL: Regenerate.
470
471         * nscd/connections.c (nscd_init): Fix comment.
472
473 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
474
475         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
476
477         [BZ #15667]
478         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
479         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
480
481 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
482
483         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
484         DL_DST_REQ_STATIC.
485         (DL_DST_REQ_STATIC): Remove macro.
486
487 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
488
489         [BZ #7006]
490         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
491         with a shift of 0 bits.
492
493 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
494
495         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
496         $(tststatic-ENV).
497
498 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
499
500         [BZ #15655]
501         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
502
503 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
504
505         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
506         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
507         accepts -fno-tree-loop-distribute-patterns.
508         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
509         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
510         recursive call.
511         * string/memset.c (memset): Likewise.
512         * string/test-memmove.c (simple_memmove): Disable loop transformation
513         to library calls.
514         * string/test-memset.c (simple_memset): Likewise.
515         * benchtests/bench-memmove.c (simple_memmove): Likewise.
516         * benchtests/bench-memset.c (simple_memset): Likewise.
517         * configure: Regenerated.
518
519 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
520
521         * math/test-misc.c (main): Ignore fesetround failure when failures
522         of subsequent rounding tests would be ignored.
523
524         [BZ #15654]
525         * math/fedisblxcpt.c (fedisableexcept): Return 0.
526         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
527         * math/fegetenv.c (__fegetenv): Return 0.
528         * math/fegetexcept.c (fegetexcept): Return 0.
529         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
530         FE_TONEAREST.
531         * math/feholdexcpt.c (feholdexcept): Return 0.
532         * math/fesetenv.c (__fesetenv): Return 0.
533         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
534         argument FE_TONEAREST.
535         * math/feupdateenv.c (__feupdateenv): Return 0.
536         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
537
538 2013-06-18  Roland McGrath  <roland@hack.frob.com>
539
540         * elf/rtld-Rules (rtld-compile-command.S): New variable.
541         (rtld-compile-command.s, rtld-compile-command.c): New variables.
542         ($(objpfx)rtld-%.os rules): Use them.
543
544 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
545
546         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
547         fields.
548
549 2013-06-17  Roland McGrath  <roland@hack.frob.com>
550
551         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
552         length of target pattern, then descending length of dependency pattern.
553         * configure.in (AWK): Require gawk 3.1.2 or newer.
554         * manual/install.texi (Tools for Compilation): Say that we do.
555         * configure: Regenerated.
556
557         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
558         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
559         * scripts/sysd-rules.awk: ... this new script.
560         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
561         than a glob-style pattern.
562
563 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
564
565         * math/test-misc.c (main): Do not treat incorrectly rounded
566         conversions as failure unless ROUNDING_TESTS passes.
567
568 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
569
570         [BZ #15631]
571         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
572         restore exception state around main square root computation, then
573         check for inexactness explicitly.
574
575         * math/libm-test.inc (fma_test_data): Add another test.
576
577 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
578
579         * manual/threads.texi (Non-POSIX Extensions): New document
580         node.  Document pthread_getattr_default_np and
581         pthread_setattr_default_np.
582
583         * Versions.def (libpthread): Add GLIBC_2.18.
584         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
586         Likewise.
587         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
588         Likewise.
589         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
590         Likewise.
591         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
592         Likewise.
593         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
594         Likewise.
595         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
596         Likewise.
597         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
598         Likewise.
599         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
600         Likewise.
601         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
602         Likewise.
603
604 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
605
606         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
607         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
608
609 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
610             H.J. Lu  <hjl.tools@gmail.com>
611
612         [BZ #15627]
613         * sysdeps/x86_64/rtld-memset.c: Remove file.
614         * sysdeps/x86_64/rtld-memset.S: New file.
615
616 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
617
618         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
619         (test_in_one_mode): Take arguments for whether the rounding mode
620         is supported for each floating-point type.
621         (do_test): Pass new arguments to test_in_one_mode using
622         ROUNDING_TESTS.
623
624 2013-06-13  Roland McGrath  <roland@hack.frob.com>
625
626         * posix/tst-waitid.c (do_test): Distinguish different instances of
627         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
628         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
629         before entering the kernel for waitpid.
630
631 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
632
633         * NEWS: Fix note on clock function precision.  Text by Roland
634         McGrath.
635
636 2013-06-13  Roland McGrath  <roland@hack.frob.com>
637
638         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
639         it into place only when and if the sanity check passes.
640
641 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
642
643         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
644         output for whether conversion result is exact.  Take argument
645         indicating whether type is IBM long double.
646         (round_for_all): Change need_exact field to ibm_ld.
647         * stdlib/tst-strtod-round.c (struct exactness): New type.
648         (struct test): Change bool ld_ok field to struct exactness exact.
649         (TEST): Update all definitions for change to field.
650         (tests): Regenerate array contents.
651         (test_in_one_mode): Take pointer to new field instead of old ld_ok
652         field value.  Check for IBM long double here.
653         (do_test): Update calls to test_in_one_mode.
654
655 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
656
657         [BZ #12515]
658         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
659         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
660
661 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
662
663         [BZ #15605]
664         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
665         generated by the compiler on loop optimizations.
666         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
667         general definitions.
668
669 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
670
671         * math/bug-nextafter.c: Include <math-tests.h>.
672         (main): Only test for exceptions if EXCEPTION_TESTS is true for
673         the relevant type.
674         * math/bug-nexttoward.c: Include <math-tests.h>.
675         (main): Only test for exceptions if EXCEPTION_TESTS is true for
676         the relevant type.
677         * math/test-misc.c: Include <math-tests.h>.
678         (main): Only test for exceptions if EXCEPTION_TESTS is true for
679         the relevant type.
680
681 2013-06-12  Andreas Jaeger  <aj@suse.de>
682
683         * po/ia.po: Update Interlingua translation from translation
684         project.
685
686 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
687
688         * include/fenv.h: Include stdbool.h.
689         (struct rm_ctx): New structure.
690         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
691         Define macro.
692         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
693         (SET_RESTORE_ROUNDF): Likewise.
694         (SET_RESTORE_ROUNDL): Likewise.
695         (SET_RESTORE_ROUND_NOEX): Likewise.
696         (SET_RESTORE_ROUND_NOEXF): Likewise.
697         (SET_RESTORE_ROUND_NOEXL): Likewise.
698         (SET_RESTORE_ROUND_53BIT): Likewise.
699         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
700         (libc_feresetround_noexf_ctx): Likewise.
701         (libc_feresetround_noexl_ctx): Likewise.
702         (libc_feholdsetround_53bit_ctx): Likewise.
703         (libc_feresetround_53bit_ctx): Likewise.
704         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
705         (libc_feholdexcept_setround_sse_ctx): New function.
706         (libc_fesetenv_sse_ctx): Likewise.
707         (libc_feupdateenv_sse_ctx): Likewise.
708         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
709         (libc_feholdexcept_setround_387_ctx): Likewise.
710         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
711         (libc_feholdsetround_387_prec_ctx): Likewise.
712         (libc_feholdsetround_387_ctx): Likewise.
713         (libc_feholdsetround_387_53bit_ctx): Likewise.
714         (libc_feholdsetround_sse_ctx): Likewise.
715         (libc_feresetround_sse_ctx): Likewise.
716         (libc_feresetround_387_ctx): Likewise.
717         (libc_feupdateenv_387_ctx): Likewise.
718         (libc_feholdexcept_setroundf_ctx): Define macro.
719         (libc_fesetenvf_ctx): Likewise.
720         (libc_feupdateenvf_ctx): Likewise.
721         (libc_feholdsetroundf_ctx): Likewise.
722         (libc_feresetroundf_ctx): Likewise.
723         (libc_feholdexcept_setround_ctx): Likewise.
724         (libc_fesetenv_ctx): Likewise.
725         (libc_feupdateenv_ctx): Likewise.
726         (libc_feholdsetround_ctx): Likewise.
727         (libc_feresetround_ctx): Likewise.
728         (libc_feholdexcept_setroundl_ctx): Likewise.
729         (libc_feupdateenvl_ctx): Likewise.
730         (libc_feholdsetroundl_ctx): Likewise.
731         (libc_feresetroundl_ctx): Likewise.
732         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
733         (libc_feresetround_53bit_ctx): Likewise.
734
735 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
736
737         * locale/iso-639.def: Convert to UTF-8.
738
739 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
740
741         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
742         (EXCEPTION_TESTS_double): Likewise.
743         (EXCEPTION_TESTS_long_double): Likewise.
744         (EXCEPTION_TESTS): Likewise.
745         * math/libm-test.inc (test_exceptions): Only test exceptions if
746         EXCEPTION_TESTS (FLOAT).
747
748 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
749
750         * benchtests/Makefile (string-bench): Add strcpy_chk and
751         stpcpy_chk.
752         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
753         * benchtests/bench-stpcpy_chk.c: New file.
754         * benchtests/bench-strcpy_chk-ifunc.c: New file.
755         * benchtests/bench-strcpy_chk.c: New file.
756         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
757         code.
758         (do_test): Likewise.
759
760 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
761
762         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
763         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
764         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
765         with tabs where appropriate.
766         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
767         dl-procinfo.h.
768         [PPC_PLATFORM_PPC440]: Likewise.
769         [PPC_PLATFORM_PPC464]: Likewise.
770         [PPC_PLATFORM_PPC476]: Likewise.
771         (_dl_string_platform): Add support for detecting ppc405, ppc440,
772         ppc464, and ppc476 platform strings merging from ports/
773         dl-procinfo.h.
774
775 2013-06-11  Andreas Schwab  <schwab@suse.de>
776
777         [BZ #14991]
778         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
779         (from_ucs4_idx): Regenerate.
780         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
781         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
782         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
783         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
784         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
785         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
786         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
787         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
788         from FROM_LOOP and TO_LOOP specific macros.
789         (BODY): Handle combining characters.
790         * iconvdata/BIG5HKSCS.irreversible: Update.
791         * iconvdata/BIG5HKSCS.precomposed: New file.
792         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
793         characters.
794         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
795
796 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
797
798         * include/sys/time.h: Fix indentation and add copyright header.
799
800         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
801         (do_test): Likewise.
802         * string/test-memchr.c (do_one_test): Likewise.
803         (do_test): Likewise.
804         * string/test-memcmp.c (do_one_test): Likewise.
805         (do_test): Likewise.
806         * string/test-memcpy.c (do_one_test): Likewise.
807         (do_test): Likewise.
808         * string/test-memmem.c (do_one_test): Likewise.
809         (do_test): Likewise.
810         (do_random_tests): Likewise.
811         * string/test-memmove.c (do_one_test): Likewise.
812         (do_test): Likewise.
813         * string/test-memset.c (do_one_test): Likewise.
814         (do_test): Likewise.
815         * string/test-rawmemchr.c (do_one_test): Likewise.
816         (do_test): Likewise.
817         * string/test-strcasecmp.c (do_one_test): Likewise.
818         (do_test): Likewise.
819         * string/test-strcasestr.c (do_one_test): Likewise.
820         (do_test): Likewise.
821         * string/test-strcat.c (do_one_test): Likewise.
822         (do_test): Likewise.
823         * string/test-strchr.c (do_one_test): Likewise.
824         (do_test): Likewise.
825         * string/test-strcmp.c (do_one_test): Likewise.
826         (do_test): Likewise.
827         * string/test-strcpy.c (do_one_test): Likewise.
828         (do_test): Likewise.
829         * string/test-string.h: Likewise.
830         (test_init): Likewise.
831         * string/test-strlen.c (do_one_test): Likewise.
832         (do_test): Likewise.
833         * string/test-strncasecmp.c (do_one_test): Likewise.
834         (do_test): Likewise.
835         * string/test-strncat.c (do_one_test): Likewise.
836         (do_test): Likewise.
837         * string/test-strncmp.c (do_one_test): Likewise.
838         (do_test_limit): Likewise.
839         (do_test): Likewise.
840         * string/test-strncpy.c (do_one_test): Likewise.
841         (do_test): Likewise.
842         * string/test-strnlen.c (do_one_test): Likewise.
843         (do_test): Likewise.
844         * string/test-strpbrk.c (do_one_test): Likewise.
845         (do_test): Likewise.
846         * string/test-strrchr.c (do_one_test): Likewise.
847         (do_test): Likewise.
848         * string/test-strspn.c (do_one_test): Likewise.
849         (do_test): Likewise.
850         * string/test-strstr.c (do_one_test): Likewise.
851         (do_test): Likewise.
852
853         * benchtests/Makefile (string-bench): Add string benchmarks.
854         * benchtests/bench-bcopy-ifunc.c: New file.
855         * benchtests/bench-bcopy.c: New file.
856         * benchtests/bench-bzero-ifunc.c: New file.
857         * benchtests/bench-bzero.c: New file.
858         * benchtests/bench-memccpy-ifunc.c: New file.
859         * benchtests/bench-memccpy.c: New file.
860         * benchtests/bench-memchr-ifunc.c: New file.
861         * benchtests/bench-memchr.c: New file.
862         * benchtests/bench-memcmp-ifunc.c: New file.
863         * benchtests/bench-memcmp.c: New file.
864         * benchtests/bench-memmem-ifunc.c: New file.
865         * benchtests/bench-memmem.c: New file.
866         * benchtests/bench-memmove-ifunc.c: New file.
867         * benchtests/bench-memmove.c: New file.
868         * benchtests/bench-mempcpy-ifunc.c: New file.
869         * benchtests/bench-mempcpy.c: New file.
870         * benchtests/bench-memset-ifunc.c: New file.
871         * benchtests/bench-memset.c: New file.
872         * benchtests/bench-rawmemchr-ifunc.c: New file.
873         * benchtests/bench-rawmemchr.c: New file.
874         * benchtests/bench-stpcpy-ifunc.c: New file.
875         * benchtests/bench-stpcpy.c: New file.
876         * benchtests/bench-stpncpy-ifunc.c: New file.
877         * benchtests/bench-stpncpy.c: New file.
878         * benchtests/bench-strcasecmp-ifunc.c: New file.
879         * benchtests/bench-strcasecmp.c: New file.
880         * benchtests/bench-strcasestr-ifunc.c: New file.
881         * benchtests/bench-strcasestr.c: New file.
882         * benchtests/bench-strcat-ifunc.c: New file.
883         * benchtests/bench-strcat.c: New file.
884         * benchtests/bench-strchr-ifunc.c: New file.
885         * benchtests/bench-strchr.c: New file.
886         * benchtests/bench-strchrnul-ifunc.c: New file.
887         * benchtests/bench-strchrnul.c: New file.
888         * benchtests/bench-strcmp-ifunc.c: New file.
889         * benchtests/bench-strcmp.c: New file.
890         * benchtests/bench-strcpy-ifunc.c: New file.
891         * benchtests/bench-strcpy.c: New file.
892         * benchtests/bench-strcspn-ifunc.c: New file.
893         * benchtests/bench-strcspn.c: New file.
894         * benchtests/bench-strlen-ifunc.c: New file.
895         * benchtests/bench-strlen.c: New file.
896         * benchtests/bench-strncasecmp-ifunc.c: New file.
897         * benchtests/bench-strncasecmp.c: New file.
898         * benchtests/bench-strncat-ifunc.c: New file.
899         * benchtests/bench-strncat.c: New file.
900         * benchtests/bench-strncmp-ifunc.c: New file.
901         * benchtests/bench-strncmp.c: New file.
902         * benchtests/bench-strncpy-ifunc.c: New file.
903         * benchtests/bench-strncpy.c: New file.
904         * benchtests/bench-strnlen-ifunc.c: New file.
905         * benchtests/bench-strnlen.c: New file.
906         * benchtests/bench-strpbrk-ifunc.c: New file.
907         * benchtests/bench-strpbrk.c: New file.
908         * benchtests/bench-strrchr-ifunc.c: New file.
909         * benchtests/bench-strrchr.c: New file.
910         * benchtests/bench-strspn-ifunc.c: New file.
911         * benchtests/bench-strspn.c: New file.
912         * benchtests/bench-strstr-ifunc.c: New file.
913         * benchtests/bench-strstr.c: New file.
914
915         * benchtests/Makefile: Disable parallel execution of targets.
916         (string-bench): Add memcpy.
917         (benchset): New variable to store a list of benchmark sets.
918         (bench-func): Renamed from bench.
919         (bench-set): New target.
920         (bench): Depend on bench-func and bench-set.
921         * benchtests/README: Add section on benchmark sets.
922         * benchtests/bench-memcpy-ifunc.c: New file.
923         * benchtests/bench-memcpy.c: New file.
924         * benchtests/bench-string.h: New file.
925
926 2013-06-11  Andreas Schwab  <schwab@suse.de>
927
928         [BZ #15577]
929         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
930         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
931         values in the triple.
932         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
933         terminator in the group key.
934
935 2013-06-11  Andreas Jaeger  <aj@suse.de>
936
937         * po/zh_TW.po: Update Chinese (traditional) translation from
938         translation project.
939
940 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
941
942         * include/time.h (__clock_gettime): Add libc_hidden_proto.
943         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
944         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
945         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
946         (clock_getcpuclockid): Likewise.
947         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
948         Add weak_alias and libc_hidden_def.
949         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
950         * rt/clock_gettime.c (clock_gettime): Rename to
951         __clock_gettime.  Add weak_alias and libc_hidden_def.
952         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
953         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
954         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
955         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
956         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
957         Likewise.
958         * rt/clock_settime.c (clock_settime): Rename to
959         __clock_settime.  Add weak_alias and libc_hidden_def.
960         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
961
962 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
963
964         * mach/err_boot.sub: Remove trailing whitespace.
965         * mach/err_ipc.sub: Likewise.
966         * mach/err_mach.sub: Likewise.
967
968         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
969         (ROUNDING_TESTS_double): Likewise.
970         (ROUNDING_TESTS_long_double): Likewise.
971         (ROUNDING_TESTS): Likewise.
972         * math/libm-test.inc: Include <math-tests.h>.
973         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
974         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
975         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
976         (IF_ROUND_INIT_FE_UPWARD): Likewise.
977
978 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
979
980         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
981         of assigning.
982
983 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
984
985         * sysdeps/gnu/errlist.awk: Do not generate space at end of
986         otherwise empty TRANS lines.
987         * sysdeps/gnu/errlist.c: Regenerated.
988
989         * catgets/gencat.c (error_print): Use (void) in function
990         definition.
991         * crypt/crypt_util.c (__init_des): Likewise.
992         * crypt/speeds.c (Stop): Likewise.
993         (main): Likewise.
994         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
995         * inet/ruserpass.c (token): Likewise.
996         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
997         * intl/localealias.c (extend_alias_table): Likewise.
998         * intl/plural-exp.c (init_germanic_plural): Likewise.
999         * libio/fcloseall.c (__fcloseall): Likewise.
1000         * libio/genops.c (_IO_flush_all): Likewise.
1001         (_IO_flush_all_linebuffered): Likewise.
1002         (_IO_cleanup): Likewise.
1003         (_IO_iter_begin): Likewise.
1004         (_IO_iter_end): Likewise.
1005         (_IO_list_lock): Likewise.
1006         (_IO_list_unlock): Likewise.
1007         (_IO_list_resetlock): Likewise.
1008         * libio/getchar.c (getchar): Likewise.
1009         * libio/getchar_u.c (getchar_unlocked): Likewise.
1010         * libio/getwchar.c (getwchar): Likewise.
1011         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
1012         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
1013         * login/getpt.c (__getpt): Likewise.
1014         * login/tst-utmp.c (main): Likewise.
1015         * malloc/hooks.c (__malloc_check_init): Likewise.
1016         * malloc/malloc.c (__malloc_stats): Likewise.
1017         * malloc/mtrace.c (tr_break): Likewise.
1018         (mtrace): Likewise.
1019         (muntrace): Likewise.
1020         * misc/fstab.c (endfsent): Likewise.
1021         * misc/getclktck.c (__getclktck): Likewise.
1022         * misc/getdtsz.c (__getdtablesize): Likewise.
1023         * misc/gethostid.c (gethostid): Likewise.
1024         * misc/getpagesize.c (__getpagesize): Likewise.
1025         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
1026         (__get_nprocs): Likewise.
1027         (__get_phys_pages): Likewise.
1028         (__get_avphys_pages): Likewise.
1029         * misc/getttyent.c (getttyent): Likewise.
1030         (setttyent): Likewise.
1031         (endttyent): Likewise.
1032         * misc/getusershell.c (getusershell): Likewise.
1033         (endusershell): Likewise.
1034         (setusershell): Likewise.
1035         (initshells): Likewise.
1036         * misc/hsearch.c (__hdestroy): Likewise.
1037         * misc/sync.c (sync): Likewise.
1038         * misc/syslog.c (closelog_internal): Likewise.
1039         (closelog): Likewise.
1040         * misc/ttyslot.c (ttyslot): Likewise.
1041         * misc/vhangup.c (vhangup): Likewise.
1042         * posix/fork.c (__fork): Likewise.
1043         * posix/getegid.c (__getegid): Likewise.
1044         * posix/geteuid.c (__geteuid): Likewise.
1045         * posix/getgid.c (__getgid): Likewise.
1046         * posix/getpid.c (__getpid): Likewise.
1047         * posix/getppid.c (__getppid): Likewise.
1048         * posix/getuid.c (__getuid): Likewise.
1049         * posix/pause.c (pause): Likewise.
1050         * posix/setpgrp.c (setpgrp): Likewise.
1051         * posix/setsid.c (__setsid): Likewise.
1052         * posix/test-vfork.c (noop): Likewise.
1053         * resolv/gethnamaddr.c (_endhtent): Likewise.
1054         (_gethtent): Likewise.
1055         (ht_endhostent): Likewise.
1056         (gethostent): Likewise.
1057         (dns_service): Likewise.
1058         * stdlib/drand48.c (drand48): Likewise.
1059         * stdlib/lrand48.c (lrand48): Likewise.
1060         * stdlib/mrand48.c (mrand48): Likewise.
1061         * stdlib/rand.c (rand): Likewise.
1062         * stdlib/random.c (__random): Likewise.
1063         * stdlib/setenv.c (clearenv): Likewise.
1064         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
1065         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
1066         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
1067         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
1068         (__get_nprocs): Likewise.
1069         (__get_phys_pages): Likewise.
1070         (__get_avphys_pages): Likewise.
1071         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
1072         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
1073         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
1074         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
1075         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
1076         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
1077         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
1078         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
1079         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
1080         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
1081         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
1082         * sysdeps/mach/hurd/sync.c (sync): Likewise.
1083         * sysdeps/posix/clock.c (clock): Likewise.
1084         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
1085         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
1086         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
1087         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
1088         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
1089         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
1090         (__get_nprocs_conf): Likewise.
1091         (__get_phys_pages): Likewise.
1092         (__get_avphys_pages): Likewise.
1093         * time/clock.c (clock): Likewise.
1094         * time/tzset.c (__tzname_max): Likewise.
1095
1096 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
1097
1098         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
1099         (__bswap_32): Do not use "register".
1100         * crypt/crypt.c (_ufc_doit_r): Likewise.
1101         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
1102         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
1103         * gmon/gmon.c (__monstartup): Likewise.
1104         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
1105         * hurd/hurdmalloc.c (more_memory): Likewise.
1106         (malloc): Likewise.
1107         (free): Likewise.
1108         (realloc): Likewise.
1109         (malloc_fork_prepare): Likewise.
1110         (malloc_fork_parent): Likewise.
1111         (malloc_fork_child): Likewise.
1112         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
1113         (_svcauth_des): Likewise.
1114         * inet/inet_lnaof.c (inet_lnaof): Likewise.
1115         * inet/inet_net.c (inet_network): Likewise.
1116         * inet/inet_netof.c (inet_netof): Likewise.
1117         * inet/rcmd.c (__validuser2_sa): Likewise.
1118         * io/fts.c (fts_open): Likewise.
1119         (fts_load): Likewise.
1120         (fts_close): Likewise.
1121         (fts_read): Likewise.
1122         (fts_children): Likewise.
1123         (fts_build): Likewise.
1124         (fts_stat): Likewise.
1125         (fts_sort): Likewise.
1126         (fts_alloc): Likewise.
1127         (fts_lfree): Likewise.
1128         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
1129         (_IO_file_xsgetn): Likewise.
1130         (_IO_file_xsgetn_mmap): Likewise.
1131         * libio/iofopncook.c (_IO_cookie_read): Likewise.
1132         (_IO_cookie_write): Likewise.
1133         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
1134         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
1135         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
1136         * malloc/obstack.c (_obstack_begin): Likewise.
1137         (_obstack_begin_1): Likewise.
1138         (_obstack_newchunk): Likewise.
1139         (_obstack_allocated_p): Likewise.
1140         (obstack_free): Likewise.
1141         (_obstack_memory_used): Likewise.
1142         * misc/getttyent.c (getttynam): Likewise.
1143         (getttyent): Likewise.
1144         (skip): Likewise.
1145         (value): Likewise.
1146         * misc/getusershell.c (initshells): Likewise.
1147         * misc/syslog.c (__vsyslog_chk): Likewise.
1148         * misc/ttyslot.c (ttyslot): Likewise.
1149         * nis/nis_hash.c (__nis_hash): Likewise.
1150         * posix/fnmatch_loop.c (FCT): Likewise.
1151         * posix/getconf.c (print_all): Likewise.
1152         (main): Likewise.
1153         * posix/getopt.c (exchange): Likewise.
1154         * posix/glob.c (globfree): Likewise.
1155         (prefix_array): Likewise.
1156         (__glob_pattern_type): Likewise.
1157         * resolv/arpa/nameser.h (NS_GET16): Likewise.
1158         (NS_GET32): Likewise.
1159         (NS_PUT16): Likewise.
1160         (NS_PUT32): Likewise.
1161         * resolv/gethnamaddr.c (getanswer): Likewise.
1162         (gethostbyname2): Likewise.
1163         (gethostbyaddr): Likewise.
1164         (_gethtent): Likewise.
1165         (_gethtbyname2): Likewise.
1166         (_gethtbyaddr): Likewise.
1167         * resolv/ns_print.c (dst_s_get_int16): Likewise.
1168         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
1169         * resolv/res_init.c (__res_vinit): Likewise.
1170         (net_mask): Likewise.
1171         * resolv/res_mkquery.c (outchar): Likewise.
1172         (PRINT): Likewise.
1173         * stdio-common/printf_fp.c (outchar): Likewise.
1174         (PRINT): Likewise.
1175         * stdio-common/printf_fphex.c (outchar): Likewise.
1176         (PRINT): Likewise.
1177         * stdio-common/printf_size.c (outchar): Likewise.
1178         (PRINT): Likewise.
1179         * stdio-common/test_rdwr.c (main): Likewise.
1180         * stdio-common/tfformat.c (matches): Likewise.
1181         * stdio-common/vfprintf.c (outchar): Likewise.
1182         (printf_unknown): Likewise.
1183         (buffered_vfprintf): Likewise.
1184         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
1185         * stdio-common/xbug.c (AppendToBuffer): Likewise.
1186         (ReadFile): Likewise.
1187         * stdlib/qsort.c (SWAP): Likewise.
1188         (_quicksort): Likewise.
1189         * stdlib/setenv.c (__add_to_environ): Likewise.
1190         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
1191         * stdlib/strtol_l.c (__strtol_l): Likewise.
1192         * stdlib/tst-strtod.c (main): Likewise.
1193         * stdlib/tst-strtol.c (main): Likewise.
1194         * stdlib/tst-strtoll.c (main): Likewise.
1195         * string/bits/string2.h (__strcmp_cc): Likewise.
1196         (__strcmp_cg): Likewise.
1197         (__strcspn_c1): Likewise.
1198         (__strcspn_c2): Likewise.
1199         (__strcspn_c3): Likewise.
1200         (__strspn_c1): Likewise.
1201         (__strspn_c2): Likewise.
1202         (__strspn_c3): Likewise.
1203         (__strsep_1c): Likewise.
1204         (__strsep_2c): Likewise.
1205         (__strsep_3c): Likewise.
1206         * string/memccpy.c (__memccpy): Likewise.
1207         * string/stpcpy.c (__stpcpy): Likewise.
1208         * string/strcmp.c (strcmp): Likewise.
1209         * string/strrchr.c (strrchr): Likewise.
1210         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
1211         Likewise.
1212         * sysdeps/mach/hurd/getcwd.c
1213         (_hurd_canonicalize_directory_name_internal): Likewise.
1214         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
1215         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
1216         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
1217         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
1218         Likewise, in both definitions.
1219         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
1220         definitions.
1221         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
1222         64] (__bswap_64): Likewise.
1223         * time/test_time.c (main): Likewise.
1224         * time/tzfile.c (__tzfile_read): Likewise.
1225         (__tzfile_compute): Likewise.
1226         * time/tzset.c (__tzset_parse_tz): Likewise.
1227         (tzset_internal): Likewise.
1228         (compute_change): Likewise.
1229         * wcsmbs/wcscat.c (__wcscat): Likewise.
1230         * wcsmbs/wcschr.c (wcschr): Likewise.
1231         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
1232         * wcsmbs/wcscspn.c (wcscspn): Likewise.
1233         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
1234         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
1235         * wcsmbs/wcsspn.c (wcsspn): Likewise.
1236         * wcsmbs/wcsstr.c (wcsstr): Likewise.
1237         * wcsmbs/wmemchr.c (wmemchr): Likewise.
1238         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
1239         * wcsmbs/wmemset.c (wmemset): Likewise.
1240
1241 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
1242
1243         * scripts/config.guess: Update to version 2013-05-16.
1244         * scripts/config.sub: Update to version 2013-04-24.
1245         * scripts/install-sh: Update to version 2011-11-20.07.
1246         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
1247         * scripts/move-if-change: Update to version 2012-01-06 07:23.
1248
1249 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
1250
1251         * debug/fgetws_u_chk.c: Fix leading whitespaces.
1252         * elf/sln.c: Likewise.
1253         * hurd/hurd/ioctl.h: Likewise.
1254         * hurd/hurdmalloc.c: Likewise.
1255         * hurd/xattr.c: Likewise.
1256         * include/shlib-compat.h: Likewise.
1257         * inet/ruserpass.c: Likewise.
1258         * libio/iofgets_u.c: Likewise.
1259         * libio/iofgetws_u.c: Likewise.
1260         * locale/programs/ld-identification.c: Likewise.
1261         * locale/programs/ld-time.c: Likewise.
1262         * mach/msg-destroy.c: Likewise.
1263         * nss/nss_files/files-netgrp.c: Likewise.
1264         * resolv/res_data.c: Likewise.
1265         * soft-fp/op-1.h: Likewise.
1266         * soft-fp/op-2.h: Likewise.
1267         * soft-fp/op-4.h: Likewise.
1268         * soft-fp/op-common.h: Likewise.
1269         * stdio-common/printf_fphex.c: Likewise.
1270         * stdlib/strtod_l.c: Likewise.
1271         * sunrpc/rpc/clnt.h: Likewise.
1272         * sysdeps/generic/framestate.c: Likewise.
1273         * sysdeps/i386/bsd-_setjmp.S: Likewise.
1274         * sysdeps/i386/bsd-setjmp.S: Likewise.
1275         * sysdeps/i386/__longjmp.S: Likewise.
1276         * sysdeps/i386/setjmp.S: Likewise.
1277         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1278         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
1279         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
1280         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
1281         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
1282         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
1283         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
1284         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
1285         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
1286         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
1287         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
1288         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
1289         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
1290         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
1291         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
1292         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
1293         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
1294         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
1295         * sysdeps/ieee754/support.c: Likewise.
1296         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
1297         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
1298         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
1299         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
1300         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
1301         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
1302         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
1303         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
1304         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
1305         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
1306         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
1307         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
1308         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
1309         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
1310         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
1311         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
1312         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
1313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
1314
1315 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
1316
1317         * posix/transbug.c: Remove executable mode.
1318
1319 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
1320
1321         * crypt/speeds.c: Remove trailing whitespace.
1322         * dlfcn/default.c: Likewise.
1323         * elf/ifuncdep2.c: Likewise.
1324         * elf/ifuncmain1.c: Likewise.
1325         * elf/ifuncmain1vis.c: Likewise.
1326         * elf/testobj.h: Likewise.
1327         * elf/tst-stackguard1.c: Likewise.
1328         * gmon/sys/gmon.h: Likewise.
1329         * hurd/hurdmsg.c: Likewise.
1330         * hurd/new-fd.c: Likewise.
1331         * hurd/ports-get.c: Likewise.
1332         * iconvdata/ibm1008_420.c: Likewise.
1333         * inet/tst-getni1.c: Likewise.
1334         * inet/tst-getni2.c: Likewise.
1335         * libio/ioungetc.c: Likewise.
1336         * libio/wfiledoalloc.c: Likewise.
1337         * manual/libm-err-tab.pl: Likewise.
1338         * math/w_dremf.c: Likewise.
1339         * misc/ftruncate.c: Likewise.
1340         * posix/bug-glob2.c: Likewise.
1341         * posix/tst-pcre.c: Likewise.
1342         * posix/wait4.c: Likewise.
1343         * resolv/README: Likewise.
1344         * resolv/res_debug.h: Likewise.
1345         * resolv/tst-inet_ntop.c: Likewise.
1346         * setjmp/bug269-setjmp.c: Likewise.
1347         * soft-fp/extended.h: Likewise.
1348         * soft-fp/op-1.h: Likewise.
1349         * soft-fp/op-2.h: Likewise.
1350         * soft-fp/op-4.h: Likewise.
1351         * soft-fp/op-8.h: Likewise.
1352         * soft-fp/testit.c: Likewise.
1353         * stdio-common/bug16.c: Likewise.
1354         * stdlib/random.c: Likewise.
1355         * sunrpc/rpcsvc/rquota.x: Likewise.
1356         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
1357         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
1358         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
1359         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
1360         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
1361         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
1362         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
1363         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
1364         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
1365         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
1366         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
1367         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
1368         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
1369         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
1370         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
1371         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
1372         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
1373         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
1374         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
1375         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
1376         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
1377         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
1378         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
1379         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
1380         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
1381         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
1382         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
1383         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
1384         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
1385         * sysdeps/ieee754/s_lib_version.c: Likewise.
1386         * sysdeps/mach/hurd/check_fds.c: Likewise.
1387         * sysdeps/mach/hurd/getsockname.c: Likewise.
1388         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
1389         * sysdeps/mach/hurd/recvfrom.c: Likewise.
1390         * sysdeps/powerpc/bits/link.h: Likewise.
1391         * sysdeps/powerpc/dl-procinfo.c: Likewise.
1392         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
1393         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
1394         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
1395         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
1396         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
1397         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
1398         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
1399         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
1400         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
1401         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
1402         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
1403         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
1404         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
1405         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
1406         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
1407         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
1408         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
1409         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
1410         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
1411         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
1412         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
1413         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
1414         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
1415         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
1416         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
1417         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
1418         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
1419         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
1420         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
1421         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
1422         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
1423         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
1424         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
1425         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
1426         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
1427         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
1428         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1429         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
1430         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
1431         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
1432         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
1433         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
1434         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
1435         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
1436         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
1437         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
1438         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
1439         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
1440         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
1441         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
1442         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
1443         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
1444         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
1445         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
1446         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
1447         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
1448         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
1449         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
1450         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
1451         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
1452         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
1453         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
1454         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
1455         * sysdeps/powerpc/sysdep.h: Likewise.
1456         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
1457         * sysdeps/s390/s390-64/sub_n.S: Likewise.
1458         * sysdeps/sh/dl-trampoline.S: Likewise.
1459         * sysdeps/sh/memset.S: Likewise.
1460         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
1461         * sysdeps/sh/strlen.S: Likewise.
1462         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
1463         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
1464         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
1465         * sysdeps/sparc/sparc32/rem.S: Likewise.
1466         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
1467         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
1468         * sysdeps/sparc/sparc32/strchr.S: Likewise.
1469         * sysdeps/sparc/sparc32/udiv.S: Likewise.
1470         * sysdeps/sparc/sparc32/urem.S: Likewise.
1471         * sysdeps/sparc/sparc64/add_n.S: Likewise.
1472         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
1473         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
1474         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
1475         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
1476         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
1477         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
1478         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
1479         * sysdeps/unix/bsd/times.c: Likewise.
1480         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
1481         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
1482         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
1483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
1484         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
1485         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
1486         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
1487         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
1488         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
1489         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
1490         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
1491         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
1492         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
1493         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
1494         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
1495         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
1496         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
1497         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
1498         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
1499         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
1500         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
1501         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
1502         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
1503         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
1504         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
1505         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
1506         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
1507         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
1508         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
1509         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
1510         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
1511         * sysdeps/x86_64/strcspn.S: Likewise.
1512
1513 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
1514
1515         * locale/C-translit.h: Revert #include <stdint.h> because this is a
1516         generated file.  Regenerate properly from gen-translit.pl.
1517         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
1518         locale/C-translit.h.
1519
1520 2013-06-05  Andreas Schwab  <schwab@suse.de>
1521
1522         [BZ #15100]
1523         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
1524         week as 6 instead of -1.
1525         * time/tst-strptime.c (day_tests): Add test case.
1526
1527 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
1528
1529         * sysdeps/generic/math_private.h
1530         (libc_feholdexcept_setround_53bit): Replace with
1531         libc_feholdsetround_53bit.
1532         (libc_feupdateenv_53bit): Replace with
1533         libc_feresetround_53bit.
1534         (SET_RESTORE_ROUND_53BIT): Adjust.
1535
1536 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
1537
1538         * string/test-strchrnul.c: Add copyright header.
1539
1540         * posix/tst-getaddrinfo4.c: Increase test timeout.
1541
1542 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
1543
1544         [BZ #15536]
1545         * math/libm-test.inc (MAX_EXP): Remove
1546         (MIN_EXP): Define.
1547         (ulp): Use MIN_EXP - MANT_DIG.
1548         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
1549
1550 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
1551
1552         * po/be.po: Revert last change.
1553         * po/zh_CN.po: Likewise.
1554         * po/header.pot: Likewise.
1555
1556 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
1557
1558         * Makefile ($(common-objpfx)linkobj/libc.so): Define
1559         link-libc-deps to empty as target-specific variable.
1560         * Makerules (link-libc-args): New variable.
1561         (libc-for-link): Likewise.
1562         (link-libc-deps): Likewise.
1563         (lib%.so): Depend on $(link-libc-deps).  Link with
1564         $(link-libc-args).
1565         (build-module): Link with $(link-libc-args).
1566         (build-module-asneeded): Likewise.
1567         (build-module-helper-objlist): Filter out $(link-libc-deps) from
1568         list of objects.
1569         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
1570         target-specific variable.
1571         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
1572         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
1573         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
1574         libc.
1575         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
1576         libc and ld.so.
1577         ($(objpfx)libpcprofile.so): Likewise.
1578         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
1579         libc_nonshared.a.
1580         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
1581         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
1582         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
1583         $(link-libc-deps).
1584         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
1585         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
1586         * login/Makefile ($(objpfx)libutil.so): Likewise.
1587         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
1588         * math/Makefile ($(objpfx)libm.so): Likewise.
1589         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
1590         $(objpfx)libnsl.so): Define libc-for-link as target-specific
1591         variable instead of depending directly on libc.
1592         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
1593         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
1594         $(link-libc-deps).
1595         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
1596         libc.
1597         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
1598         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
1599         ($(objpfx)libanl.so): Likewise.
1600         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
1601         ld.so.
1602         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
1603         $(link-libc-deps).
1604         * sysdeps/i386/fpu/Makefile: Remove file.
1605         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
1606         ($(objpfx)libm.so): Remove dependency on ld.so.
1607
1608 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
1609
1610         [BZ # 15553]
1611         * nis/yp_xdr.c (XDRMAXNAME): Define.
1612         (XDRMAXRECORD): Define.
1613         (xdr_domainname): Use XDRMAXNAME.
1614         (xdr_mapname): Likewise.
1615         (xdr_peername): Likewise.
1616         (xdr_keydat): Use XDRMAXRECORD.
1617         (xdr_valdat): Likewise.
1618
1619 2013-05-30  Jeff Law  <law@redhat.com>
1620
1621         [BZ #14256]
1622         * manual/errno.texi (ESTALE): Update to account for more than
1623         just NFS file systems.
1624         * sysdeps/gnu/errlist.c: Regenerated.
1625
1626 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
1627
1628         [BZ #15465]
1629         * elf/Makefile (tests): Add tst-null-argv.
1630         (modules-names):  Add tst-null-argv-lib.
1631         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
1632         (tst-null-argv-ENV): Set environment for tst-null-argv.
1633         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
1634         (RTLD_PROGNAME): New macro.
1635         * elf/tst-null-argv.c: New test case.
1636         * elf/tst-null-argv-lib.c: Library for test case.
1637         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
1638         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
1639         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
1640         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
1641         * elf/dl-init.c (call_init): Likewise.
1642         (_dl_init): Likewise.
1643         * elf/dl-load.c (print_search_path): Likewise.
1644         (_dl_map_object): Likewise.
1645         * elf/dl-lookup.c (do_lookup_x): Likewise.
1646         (add_dependency): Likewise.
1647         (_dl_lookup_symbol_x): Likewise.
1648         (_dl_debug_bindings): Likewise.
1649         * elf/dl-open.c (_dl_show_scope): Likewise.
1650         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
1651         * elf/dl-version.c (match_symbol): Likewise.
1652         (_dl_check_map_versions): Likewise.
1653         * elf/rtld.c (dl_main): Likewise.
1654         (print_unresolved): Use RTLD_PROGNAME.
1655         (print_missing_version): Likewise.
1656         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
1657         (elf_machine_rela): Likewise.
1658         * sysdeps/powerpc/powerpc32/dl-machine.c
1659         (__process_machine_rela): Likewise.
1660         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
1661         Likewise.
1662         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
1663         Likewise.
1664         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
1665         Likewise.
1666         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
1667         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
1668         Likewise.
1669         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
1670         Likewise.
1671         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
1672
1673 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
1674
1675         * po/be.po: Add descriptive title.
1676         * po/zh_CN.po: Likewise.
1677         * po/header.pot: Likewise.
1678
1679 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
1680
1681         * locale/programs/locarchive.c (create_archive): Inlucde fname in
1682         error message.
1683         (enlarge_archive): Likewise.
1684
1685 2013-05-28  Ben North  <ben@redfrontdoor.org>
1686
1687         * manual/arith.texi (frexp): It is the magnitude of the return
1688         value which lies in [0.5, 1), not the return value itself.
1689
1690 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1691
1692         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
1693
1694 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
1695
1696         * stdio-common/bug26.c (main): Correct fscanf template.
1697
1698         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
1699         declare _dl_skip_args.
1700
1701         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
1702         Don't declare.
1703
1704         * manual/platform.texi: Add missing @end deftypefun.
1705
1706 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
1707
1708         [BZ #15529]
1709         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
1710         bit of mantissa of 2^16382.
1711         * math/libm-test.inc (hypot_test_data): Add more tests.
1712
1713         * math/libm-test.inc: Add drem and pow10 to list of tested
1714         functions.
1715         (pow10_test): New function.
1716         (drem_test): Likewise.
1717         (drem_test_tonearest): Likewise.
1718         (drem_test_towardzero): Likewise.
1719         (drem_test_downward): Likewise.
1720         (drem_test_upward): Likewise.
1721         (main): Call the new functions.
1722
1723         * math/libm-test.inc (finite_test_data): Remove.
1724         (finite_test): Run tests from isfinite_test_data.
1725         (gamma_test_data): Remove.
1726         (gamma_test): Run tests from lgamma_test_data.
1727         * sysdeps/i386/fpu/libm-test-ulps: Update.
1728         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
1729
1730 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1731
1732         * manual/platform.texi: Add PowerPC PPR function set documentation.
1733         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
1734         implementation.
1735
1736 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
1737
1738         * math/libm-test.inc (MAX_EXP): Define.
1739         (ULPDIFF): Define.
1740         (ulp): New function.
1741         (check_float_internal): Use ULPDIFF.
1742         (cpow_test): Disable failing test.
1743         (check_ulp): Test ulp() implemetnation.
1744         (main): Call check_ulp before starting tests.
1745
1746 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
1747
1748         * math/gen-libm-test.pl (generate_testfile): Do not handle
1749         START_DATA and END_DATA.
1750         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
1751         END_DATA.
1752         (acos_tonearest_test_data): Likewise.
1753         (acos_towardzero_test_data): Likewise.
1754         (acos_downward_test_data): Likewise.
1755         (acos_upward_test_data): Likewise.
1756         (acosh_test_data): Likewise.
1757         (asin_test_data): Likewise.
1758         (asin_tonearest_test_data): Likewise.
1759         (asin_towardzero_test_data): Likewise.
1760         (asin_downward_test_data): Likewise.
1761         (asin_upward_test_data): Likewise.
1762         (asinh_test_data): Likewise.
1763         (atan_test_data): Likewise.
1764         (atanh_test_data): Likewise.
1765         (atan2_test_data): Likewise.
1766         (cabs_test_data): Likewise.
1767         (cacos_test_data): Likewise.
1768         (cacosh_test_data): Likewise.
1769         (carg_test_data): Likewise.
1770         (casin_test_data): Likewise.
1771         (casinh_test_data): Likewise.
1772         (catan_test_data): Likewise.
1773         (catanh_test_data): Likewise.
1774         (cbrt_test_data): Likewise.
1775         (ccos_test_data): Likewise.
1776         (ccosh_test_data): Likewise.
1777         (ceil_test_data): Likewise.
1778         (cexp_test_data): Likewise.
1779         (cimag_test_data): Likewise.
1780         (clog_test_data): Likewise.
1781         (clog10_test_data): Likewise.
1782         (conj_test_data): Likewise.
1783         (copysign_test_data): Likewise.
1784         (cos_test_data): Likewise.
1785         (cos_tonearest_test_data): Likewise.
1786         (cos_towardzero_test_data): Likewise.
1787         (cos_downward_test_data): Likewise.
1788         (cos_upward_test_data): Likewise.
1789         (cosh_test_data): Likewise.
1790         (cosh_tonearest_test_data): Likewise.
1791         (cosh_towardzero_test_data): Likewise.
1792         (cosh_downward_test_data): Likewise.
1793         (cosh_upward_test_data): Likewise.
1794         (cpow_test_data): Likewise.
1795         (cproj_test_data): Likewise.
1796         (creal_test_data): Likewise.
1797         (csin_test_data): Likewise.
1798         (csinh_test_data): Likewise.
1799         (csqrt_test_data): Likewise.
1800         (ctan_test_data): Likewise.
1801         (ctan_tonearest_test_data): Likewise.
1802         (ctan_towardzero_test_data): Likewise.
1803         (ctan_downward_test_data): Likewise.
1804         (ctan_upward_test_data): Likewise.
1805         (ctanh_test_data): Likewise.
1806         (ctanh_tonearest_test_data): Likewise.
1807         (ctanh_towardzero_test_data): Likewise.
1808         (ctanh_downward_test_data): Likewise.
1809         (ctanh_upward_test_data): Likewise.
1810         (erf_test_data): Likewise.
1811         (erfc_test_data): Likewise.
1812         (exp_test_data): Likewise.
1813         (exp_tonearest_test_data): Likewise.
1814         (exp_towardzero_test_data): Likewise.
1815         (exp_downward_test_data): Likewise.
1816         (exp_upward_test_data): Likewise.
1817         (exp10_test_data): Likewise.
1818         (exp2_test_data): Likewise.
1819         (expm1_test_data): Likewise.
1820         (fabs_test_data): Likewise.
1821         (fdim_test_data): Likewise.
1822         (finite_test_data): Likewise.
1823         (floor_test_data): Likewise.
1824         (fma_test_data): Likewise.
1825         (fma_towardzero_test_data): Likewise.
1826         (fma_downward_test_data): Likewise.
1827         (fma_upward_test_data): Likewise.
1828         (fmax_test_data): Likewise.
1829         (fmin_test_data): Likewise.
1830         (fmod_test_data): Likewise.
1831         (fpclassify_test_data): Likewise.
1832         (frexp_test_data): Likewise.
1833         (gamma_test_data): Likewise.
1834         (hypot_test_data): Likewise.
1835         (ilogb_test_data): Likewise.
1836         (isfinite_test_data): Likewise.
1837         (isgreater_test_data): Likewise.
1838         (isgreaterequal_test_data): Likewise.
1839         (isinf_test_data): Likewise.
1840         (isless_test_data): Likewise.
1841         (islessequal_test_data): Likewise.
1842         (islessgreater_test_data): Likewise.
1843         (isnan_test_data): Likewise.
1844         (isnormal_test_data): Likewise.
1845         (issignaling_test_data): Likewise.
1846         (isunordered_test_data): Likewise.
1847         (j0_test_data): Likewise.
1848         (j1_test_data): Likewise.
1849         (jn_test_data): Likewise.
1850         (ldexp_test_data): Likewise.
1851         (lgamma_test_data): Likewise.
1852         (lrint_test_data): Likewise.
1853         (lrint_tonearest_test_data): Likewise.
1854         (lrint_towardzero_test_data): Likewise.
1855         (lrint_downward_test_data): Likewise.
1856         (lrint_upward_test_data): Likewise.
1857         (llrint_test_data): Likewise.
1858         (llrint_tonearest_test_data): Likewise.
1859         (llrint_towardzero_test_data): Likewise.
1860         (llrint_downward_test_data): Likewise.
1861         (llrint_upward_test_data): Likewise.
1862         (log_test_data): Likewise.
1863         (log10_test_data): Likewise.
1864         (log1p_test_data): Likewise.
1865         (log2_test_data): Likewise.
1866         (logb_test_data): Likewise.
1867         (logb_downward_test_data): Likewise.
1868         (lround_test_data): Likewise.
1869         (llround_test_data): Likewise.
1870         (modf_test_data): Likewise.
1871         (nearbyint_test_data): Likewise.
1872         (nextafter_test_data): Likewise.
1873         (nexttoward_test_data): Likewise.
1874         (pow_test_data): Likewise.
1875         (pow_tonearest_test_data): Likewise.
1876         (pow_towardzero_test_data): Likewise.
1877         (pow_downward_test_data): Likewise.
1878         (pow_upward_test_data): Likewise.
1879         (remainder_test_data): Likewise.
1880         (remainder_tonearest_test_data): Likewise.
1881         (remainder_towardzero_test_data): Likewise.
1882         (remainder_downward_test_data): Likewise.
1883         (remainder_upward_test_data): Likewise.
1884         (remquo_test_data): Likewise.
1885         (rint_test_data): Likewise.
1886         (rint_tonearest_test_data): Likewise.
1887         (rint_towardzero_test_data): Likewise.
1888         (rint_downward_test_data): Likewise.
1889         (rint_upward_test_data): Likewise.
1890         (round_test_data): Likewise.
1891         (scalb_test_data): Likewise.
1892         (scalbn_test_data): Likewise.
1893         (scalbln_test_data): Likewise.
1894         (signbit_test_data): Likewise.
1895         (sin_test_data): Likewise.
1896         (sin_tonearest_test_data): Likewise.
1897         (sin_towardzero_test_data): Likewise.
1898         (sin_downward_test_data): Likewise.
1899         (sin_upward_test_data): Likewise.
1900         (sincos_test_data): Likewise.
1901         (sinh_test_data): Likewise.
1902         (sinh_tonearest_test_data): Likewise.
1903         (sinh_towardzero_test_data): Likewise.
1904         (sinh_downward_test_data): Likewise.
1905         (sinh_upward_test_data): Likewise.
1906         (sqrt_test_data): Likewise.
1907         (tan_test_data): Likewise.
1908         (tan_tonearest_test_data): Likewise.
1909         (tan_towardzero_test_data): Likewise.
1910         (tan_downward_test_data): Likewise.
1911         (tan_upward_test_data): Likewise.
1912         (tanh_test_data): Likewise.
1913         (tgamma_test_data): Likewise.
1914         (trunc_test_data): Likewise.
1915         (y0_test_data): Likewise.
1916         (y1_test_data): Likewise.
1917         (yn_test_data): Likewise.
1918         (significand_test_data): Likewise.
1919
1920         * math/gen-libm-test.pl (@functions): Remove variable.
1921         (generate_testfile): Don't handle START and END lines.
1922         * math/libm-test.inc (START): New macro.
1923         (END): Likewise.
1924         (END_COMPLEX): Likewise.
1925         (acos_test): Use END macro without arguments.
1926         (acos_test_tonearest): Likewise.
1927         (acos_test_towardzero): Likewise.
1928         (acos_test_downward): Likewise.
1929         (acos_test_upward): Likewise.
1930         (acosh_test): Likewise.
1931         (asin_test): Likewise.
1932         (asin_test_tonearest): Likewise.
1933         (asin_test_towardzero): Likewise.
1934         (asin_test_downward): Likewise.
1935         (asin_test_upward): Likewise.
1936         (asinh_test): Likewise.
1937         (atan_test): Likewise.
1938         (atanh_test): Likewise.
1939         (atan2_test): Likewise.
1940         (cabs_test): Likewise.
1941         (cacos_test): Use END_COMPLEX macro without arguments.
1942         (cacosh_test): Likewise.
1943         (carg_test): Use END macro without arguments.
1944         (casin_test): Use END_COMPLEX macro without arguments.
1945         (casinh_test): Likewise.
1946         (catan_test): Likewise.
1947         (catanh_test): Likewise.
1948         (cbrt_test): Use END macro without arguments.
1949         (ccos_test): Use END_COMPLEX macro without arguments.
1950         (ccosh_test): Likewise.
1951         (ceil_test): Use END macro without arguments.
1952         (cexp_test): Use END_COMPLEX macro without arguments.
1953         (cimag_test): Use END macro without arguments.
1954         (clog_test): Use END_COMPLEX macro without arguments.
1955         (clog10_test): Likewise.
1956         (conj_test): Likewise.
1957         (copysign_test): Use END macro without arguments.
1958         (cos_test): Likewise.
1959         (cos_test_tonearest): Likewise.
1960         (cos_test_towardzero): Likewise.
1961         (cos_test_downward): Likewise.
1962         (cos_test_upward): Likewise.
1963         (cosh_test): Likewise.
1964         (cosh_test_tonearest): Likewise.
1965         (cosh_test_towardzero): Likewise.
1966         (cosh_test_downward): Likewise.
1967         (cosh_test_upward): Likewise.
1968         (cpow_test): Use END_COMPLEX macro without arguments.
1969         (cproj_test): Likewise.
1970         (creal_test): Use END macro without arguments.
1971         (csin_test): Use END_COMPLEX macro without arguments.
1972         (csinh_test): Likewise.
1973         (csqrt_test): Likewise.
1974         (ctan_test): Likewise.
1975         (ctan_test_tonearest): Likewise.
1976         (ctan_test_towardzero): Likewise.
1977         (ctan_test_downward): Likewise.
1978         (ctan_test_upward): Likewise.
1979         (ctanh_test): Likewise.
1980         (ctanh_test_tonearest): Likewise.
1981         (ctanh_test_towardzero): Likewise.
1982         (ctanh_test_downward): Likewise.
1983         (ctanh_test_upward): Likewise.
1984         (erf_test): Use END macro without arguments.
1985         (erfc_test): Likewise.
1986         (exp_test): Likewise.
1987         (exp_test_tonearest): Likewise.
1988         (exp_test_towardzero): Likewise.
1989         (exp_test_downward): Likewise.
1990         (exp_test_upward): Likewise.
1991         (exp10_test): Likewise.
1992         (exp2_test): Likewise.
1993         (expm1_test): Likewise.
1994         (fabs_test): Likewise.
1995         (fdim_test): Likewise.
1996         (finite_test): Likewise.
1997         (floor_test): Likewise.
1998         (fma_test): Likewise.
1999         (fma_test_towardzero): Likewise.
2000         (fma_test_downward): Likewise.
2001         (fma_test_upward): Likewise.
2002         (fmax_test): Likewise.
2003         (fmin_test): Likewise.
2004         (fmod_test): Likewise.
2005         (fpclassify_test): Likewise.
2006         (frexp_test): Likewise.
2007         (gamma_test): Likewise.
2008         (hypot_test): Likewise.
2009         (ilogb_test): Likewise.
2010         (isfinite_test): Likewise.
2011         (isgreater_test): Likewise.
2012         (isgreaterequal_test): Likewise.
2013         (isinf_test): Likewise.
2014         (isless_test): Likewise.
2015         (islessequal_test): Likewise.
2016         (islessgreater_test): Likewise.
2017         (isnan_test): Likewise.
2018         (isnormal_test): Likewise.
2019         (issignaling_test): Likewise.
2020         (isunordered_test): Likewise.
2021         (j0_test): Likewise.
2022         (j1_test): Likewise.
2023         (jn_test): Likewise.
2024         (ldexp_test): Likewise.
2025         (lgamma_test): Likewise.
2026         (lrint_test): Likewise.
2027         (lrint_test_tonearest): Likewise.
2028         (lrint_test_towardzero): Likewise.
2029         (lrint_test_downward): Likewise.
2030         (lrint_test_upward): Likewise.
2031         (llrint_test): Likewise.
2032         (llrint_test_tonearest): Likewise.
2033         (llrint_test_towardzero): Likewise.
2034         (llrint_test_downward): Likewise.
2035         (llrint_test_upward): Likewise.
2036         (log_test): Likewise.
2037         (log10_test): Likewise.
2038         (log1p_test): Likewise.
2039         (log2_test): Likewise.
2040         (logb_test): Likewise.
2041         (logb_test_downward): Likewise.
2042         (lround_test): Likewise.
2043         (llround_test): Likewise.
2044         (modf_test): Likewise.
2045         (nearbyint_test): Likewise.
2046         (nextafter_test): Likewise.
2047         (nexttoward_test): Likewise.
2048         (pow_test): Likewise.
2049         (pow_test_tonearest): Likewise.
2050         (pow_test_towardzero): Likewise.
2051         (pow_test_downward): Likewise.
2052         (pow_test_upward): Likewise.
2053         (remainder_test): Likewise.
2054         (remainder_test_tonearest): Likewise.
2055         (remainder_test_towardzero): Likewise.
2056         (remainder_test_downward): Likewise.
2057         (remainder_test_upward): Likewise.
2058         (remquo_test): Likewise.
2059         (rint_test): Likewise.
2060         (rint_test_tonearest): Likewise.
2061         (rint_test_towardzero): Likewise.
2062         (rint_test_downward): Likewise.
2063         (rint_test_upward): Likewise.
2064         (round_test): Likewise.
2065         (scalb_test): Likewise.
2066         (scalbn_test): Likewise.
2067         (scalbln_test): Likewise.
2068         (signbit_test): Likewise.
2069         (sin_test): Likewise.
2070         (sin_test_tonearest): Likewise.
2071         (sin_test_towardzero): Likewise.
2072         (sin_test_downward): Likewise.
2073         (sin_test_upward): Likewise.
2074         (sincos_test): Likewise.
2075         (sinh_test): Likewise.
2076         (sinh_test_tonearest): Likewise.
2077         (sinh_test_towardzero): Likewise.
2078         (sinh_test_downward): Likewise.
2079         (sinh_test_upward): Likewise.
2080         (sqrt_test): Likewise.
2081         (tan_test): Likewise.
2082         (tan_test_tonearest): Likewise.
2083         (tan_test_towardzero): Likewise.
2084         (tan_test_downward): Likewise.
2085         (tan_test_upward): Likewise.
2086         (tanh_test): Likewise.
2087         (tgamma_test): Likewise.
2088         (trunc_test): Likewise.
2089         (y0_test): Likewise.
2090         (y1_test): Likewise.
2091         (yn_test): Likewise.
2092         (significand_test): Likewise.
2093
2094 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
2095
2096         [BZ #15381]
2097         * libio/genops.c (_IO_no_init): Initialize wide struct info.
2098
2099 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
2100
2101         [BZ #14894]
2102         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
2103         __ppc_mdoio and __ppc_mdoom.
2104         * manual/platform.texi: Document new functions __ppc_yield,
2105         __ppc_mdoio and __ppc_mdoom.
2106
2107 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
2108
2109         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
2110         (main): Mention "tls" pseudo-hwcap is legacy.
2111         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
2112
2113 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
2114
2115         * math/gen-libm-test.pl (parse_args): Output only string of
2116         arguments as text for test name, not full call or descriptions of
2117         tests for extra outputs.
2118         (generate_testfile): Do not pass function name to parse_args.
2119         Generate this_func variable from START.
2120         * math/libm-test.inc (struct test_f_f_data): Rename test_name
2121         field to arg_str.
2122         (struct test_ff_f_data): Likewise.
2123         (test_ff_f_data_nexttoward): Likewise.
2124         (struct test_fi_f_data): Likewise.
2125         (struct test_fl_f_data): Likewise.
2126         (struct test_if_f_data): Likewise.
2127         (struct test_fff_f_data): Likewise.
2128         (struct test_c_f_data): Likewise.
2129         (struct test_f_f1_data): Likewise.  Remove field extra_name.
2130         (struct test_fF_f1_data): Likewise.
2131         (struct test_ffI_f1_data): Likewise.
2132         (struct test_c_c_data): Rename test_name field to arg_str.
2133         (struct test_cc_c_data): Likewise.
2134         (struct test_f_i_data): Likewise.
2135         (struct test_ff_i_data): Likewise.
2136         (struct test_f_l_data): Likewise.
2137         (struct test_f_L_data): Likewise.
2138         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
2139         and extra2_name.
2140         (COMMON_TEST_SETUP): New macro.
2141         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
2142         (COMMON_TEST_CLEANUP): Likewise.
2143         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
2144         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
2145         macros.
2146         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
2147         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
2148         macros.
2149         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
2150         (RUN_TEST_fff_f): Take argument string.  Call new setup and
2151         cleanup macros.
2152         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
2153         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
2154         macros.
2155         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
2156         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
2157         macros.
2158         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
2159         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
2160         cleanup macros.
2161         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
2162         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
2163         cleanup macros.
2164         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
2165         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
2166         cleanup macros.
2167         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
2168         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
2169         macros.
2170         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
2171         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
2172         macros.
2173         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
2174         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
2175         macros.
2176         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
2177         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
2178         cleanup macros.
2179         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
2180         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
2181         cleanup macros.
2182         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
2183         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
2184         macros.
2185         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
2186         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
2187         cleanup macros.
2188         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
2189         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
2190         macros.
2191         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
2192         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
2193         macros.
2194         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
2195         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
2196         cleanup macros.
2197         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
2198
2199 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
2200
2201         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
2202         to _sifields.sigfault.
2203         (si_addr_lsb): Define new macro.
2204         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
2205         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
2206         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
2207
2208 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
2209
2210         [BZ #15441]
2211         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
2212         returns -1.
2213         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
2214         null return -1.
2215         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
2216         loading the domain.
2217
2218 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
2219
2220         * math/gen-libm-test.pl (parse_args): Do not include expected
2221         result in test name.
2222         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
2223         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2224         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2225         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
2226         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
2227         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2228
2229 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
2230
2231         * benchtests/Makefile: Sort function entries.
2232
2233         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
2234         tanh, asinh, acosh, atanh.
2235         * benchtests/acos-inputs: New file.
2236         * benchtests/acosh-inputs: New file.
2237         * benchtests/asin-inputs: New file.
2238         * benchtests/asinh-inputs: New file.
2239         * benchtests/atanh-inputs: New file.
2240         * benchtests/cosh-inputs: New file.
2241         * benchtests/log-inputs: New file.
2242         * benchtests/sinh-inputs: New file.
2243         * benchtests/tanh-inputs: New file.
2244
2245 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
2246
2247         [BZ #15339]
2248         * posix/tst-getaddrinfo4.c: New test.
2249         * posix/Makefile (tests): Add it.
2250
2251 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2252
2253         [BZ #15339]
2254         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
2255         when no services were used.
2256         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
2257         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
2258
2259 2013-05-21  Andreas Schwab  <schwab@suse.de>
2260
2261         [BZ #15014]
2262         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
2263         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
2264         successful.
2265         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
2266         redundant variable declarations and reallocation of buffer when
2267         parsing as IPv6 address.  Always set NSS status when called from
2268         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
2269         buffer too small.  Correct computation of needed size.
2270         * nss/Makefile (tests): Add test-digits-dots.
2271         * nss/test-digits-dots.c: New test.
2272
2273 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
2274
2275         * benchtests/Makefile: Remove instructions for adding
2276         benchmark tests.
2277         * benchtests/README: New file to explain how to execute and
2278         enhance the benchmark tests.
2279
2280 2013-05-21  Andreas Schwab  <schwab@suse.de>
2281
2282         [BZ #15493]
2283         * setjmp/Makefile (tests): Add tst-sigsetjmp.
2284         * setjmp/tst-sigsetjmp.c: New test.
2285
2286 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
2287
2288         * sysdeps/x86_64/memset.S (memset): New implementation.
2289         (__bzero): Likewise.
2290         (__memset_tail): New function.
2291
2292 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
2293
2294         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
2295         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
2296         __memcpy_sse2_unaligned ifunc selection.
2297         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
2298         Add memcpy-sse2-unaligned.S.
2299         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2300         Add: __memcpy_sse2_unaligned.
2301
2302 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
2303
2304         [BZ #15490]
2305         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
2306         math_force_eval before restoring floating-point envrionment.
2307         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
2308         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
2309         Likewise.
2310         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
2311         <math_private.h>.
2312         (__nearbyintl): Use math_force_eval before restoring
2313         floating-point environment.
2314         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
2315
2316         * math/gen-libm-test.pl (special_functions): Remove.
2317         (parse_args): Don't handle TEST_extra.  Handle functions with no
2318         return value.
2319         * math/libm-test.inc (struct test_sincos_data): Replace with
2320         struct test_fFF_11_data.
2321         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
2322         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
2323         (sincos_test_data): Change element type to struct
2324         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
2325         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
2326         RUN_TEST_LOOP_sincos.
2327         * math/README.libm-test: Don't mention special handling of
2328         individual functions.
2329         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
2330         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
2331         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
2332         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
2333         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
2334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2335
2336         * math/gen-libm-test.pl (get_variable): Remove function.
2337         (parse_args): Don't show pointer parameters to call in test
2338         names.  Use "extra output N" in test names for extra outputs
2339         rather than naming variables.
2340
2341 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
2342
2343         [BZ #15488]
2344         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
2345         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
2346         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
2347         double tests.
2348         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
2349         disable.
2350         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
2351         check_long_double.
2352
2353         * math/gen-libm-test.pl (@tests): Remove variable.
2354         ($count): Likewise.
2355         (new_test): Remove function.
2356         (show_exceptions): New function.
2357         (special_functions): Use show_exceptions instead of new_test.
2358         (parse_args): Likewise.
2359         (generate_testfile): Pass only function name in generated call to
2360         print_max_error or print_complex_max_error.
2361         (get_ulps): Do not handle complex tests specially.
2362         (output_test): Rename to ...
2363         (get_all_ulps_for_test): ... this.  Return a string rather than
2364         printing to a file.  Require ulps to be present.
2365         (output_ulps): Generate arrays rather than #defines.
2366         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
2367         (struct ulp_data): New type.
2368         (BUILD_COMPLEX_ULP): Remove macro.
2369         (compare_ulp_data): New function.
2370         (find_ulps): Likewise.
2371         (find_test_ulps): Likewise.
2372         (find_function_ulps): Likewise.
2373         (find_complex_function_ulps): Likewise.
2374         (print_max_error): Determine allowed ulps using
2375         find_function_ulps.
2376         (print_complex_max_error): Determine allowed ulps using
2377         find_complex_function_ulps.
2378         (check_float_internal): Determine max ulps using find_test_ulps.
2379         (check_float): Do not take max_ulp parameter.  Update call to
2380         check_float_internal.
2381         (check_complex): Likewise.
2382         (check_int): Do not take max_ulp parameter.
2383         (check_long): Likewise.
2384         (check_bool): Likewise.
2385         (check_longlong): Likewise.
2386         (struct test_f_f_data): Remove max_ulp field.
2387         (struct test_ff_f_data): Likewise.
2388         (struct test_ff_f_data_nexttoward): Likewise.
2389         (struct test_fi_f_data): Likewise.
2390         (struct test_fl_f_data): Likewise.
2391         (struct test_if_f_data): Likewise.
2392         (struct test_fff_f_data): Likewise.
2393         (struct test_c_f_data): Likewise.
2394         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
2395         (struct test_fF_f1_data): Likewise.
2396         (struct test_ffI_f1_data): Likewise.
2397         (struct test_c_c_data): Remove max_ulp field.
2398         (struct test_cc_c_data): Likewise.
2399         (struct test_f_i_data): Likewise.
2400         (struct test_ff_i_data): Likewise.
2401         (struct test_f_l_data): Likewise.
2402         (struct test_f_L_data): Likewise.
2403         (struct test_sincos_data): Likewise.
2404         (RUN_TEST_f_f): Do not handle ulps.
2405         (RUN_TEST_LOOP_f_f): Likewise.
2406         (RUN_TEST_2_f): Likewise.
2407         (RUN_TEST_LOOP_2_f): Likewise.
2408         (RUN_TEST_fff_f): Likewise.
2409         (RUN_TEST_LOOP_fff_f): Likewise.
2410         (RUN_TEST_c_f): Likewise.
2411         (RUN_TEST_LOOP_c_f): Likewise.
2412         (RUN_TEST_f_f1): Likewise.
2413         (RUN_TEST_LOOP_f_f1): Likewise.
2414         (RUN_TEST_fF_f1): Likewise.
2415         (RUN_TEST_LOOP_fF_f1): Likewise.
2416         (RUN_TEST_fI_f1): Likewise.
2417         (RUN_TEST_LOOP_fI_f1): Likewise.
2418         (RUN_TEST_ffI_f1): Likewise.
2419         (RUN_TEST_LOOP_ffI_f1): Likewise.
2420         (RUN_TEST_c_c): Likewise.
2421         (RUN_TEST_LOOP_c_c): Likewise.
2422         (RUN_TEST_cc_c): Likewise.
2423         (RUN_TEST_LOOP_cc_c): Likewise.
2424         (RUN_TEST_f_i): Likewise.
2425         (RUN_TEST_LOOP_f_i): Likewise.
2426         (RUN_TEST_f_i_tg): Likewise.
2427         (RUN_TEST_LOOP_f_i_tg): Likewise.
2428         (RUN_TEST_ff_i_tg): Likewise.
2429         (RUN_TEST_LOOP_ff_i_tg): Likewise.
2430         (RUN_TEST_f_b): Likewise.
2431         (RUN_TEST_LOOP_f_b): Likewise.
2432         (RUN_TEST_f_b_tg): Likewise.
2433         (RUN_TEST_LOOP_f_b_tg): Likewise.
2434         (RUN_TEST_f_l): Likewise.
2435         (RUN_TEST_LOOP_f_l): Likewise.
2436         (RUN_TEST_f_L): Likewise.
2437         (RUN_TEST_LOOP_f_L): Likewise.
2438         (RUN_TEST_sincos): Likewise.
2439         (RUN_TEST_LOOP_sincos): Likewise.
2440
2441 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
2442
2443         [BZ #15480]
2444         [BZ #15485]
2445         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
2446         main case of finite arguments, set rounding mode to FE_TONEAREST
2447         and discard exceptions.
2448         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
2449         exceptions.
2450         (remainder_tonearest_test_data): New variable.
2451         (remainder_test_tonearest): New function.
2452         (remainder_towardzero_test_data): New variable.
2453         (remainder_test_towardzero): New function.
2454         (remainder_downward_test_data): New variable.
2455         (remainder_test_downward): New function.
2456         (remainder_upward_test_data): New variable.
2457         (remainder_test_upward): New function.
2458         (main): Call the new test functions.
2459
2460         * math/libm-test.inc (struct test_f_f1_data): Remove field
2461         extra_init.
2462         (struct test_fF_f1_data): Likewise.
2463         (struct test_ffI_f1_data): Likewise.
2464         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
2465         based on value of EXTRA_EXPECTED.
2466         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
2467         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
2468         EXTRA_VAR based on value of EXTRA_EXPECTED.
2469         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
2470         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
2471         EXTRA_VAR based on value of EXTRA_EXPECTED.
2472         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
2473         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
2474         EXTRA_VAR based on value of EXTRA_EXPECTED.
2475         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
2476         * math/gen-libm-test.pl (parse_args): Don't output initializers
2477         for extra output values.
2478
2479         * math/libm-test.inc (check_int): Expect result to be exactly
2480         equal to expected value and do not handle ulps.
2481         (check_long): Likewise.
2482         (check_longlong): Likewise.
2483
2484         * math/libm-test.inc (ceil_test_data): Test for "inexact"
2485         exceptions.
2486         (cimag_test_data): Likewise.
2487         (conj_test_data): Likewise.
2488         (copysign_test_data): Likewise.
2489         (cproj_test_data): Likewise.
2490         (creal_test_data): Likewise.
2491         (fabs_test_data): Likewise.
2492         (fdim_test_data): Likewise.
2493         (finite_test_data): Likewise.
2494         (floor_test_data): Likewise.
2495         (fmax_test_data): Likewise.
2496         (fmin_test_data): Likewise.
2497         (fmod_test_data): Likewise.
2498         (fpclassify_test_data): Likewise.
2499         (frexp_test_data): Likewise.
2500         (ilogb_test_data): Likewise.
2501         (isfinite_test_data): Likewise.
2502         (isgreater_test_data): Likewise.
2503         (isgreaterequal_test_data): Likewise.
2504         (isinf_test_data): Likewise.
2505         (isless_test_data): Likewise.
2506         (islessequal_test_data): Likewise.
2507         (islessgreater_test_data): Likewise.
2508         (isnan_test_data): Likewise.
2509         (isnormal_test_data): Likewise.
2510         (issignaling_test_data): Likewise.
2511         (isunordered_test_data): Likewise.
2512         (ldexp_test_data): Likewise.
2513         (lrint_test_data): Likewise.
2514         (lrint_test_data) [TEST_FLOAT]: Disable one test.
2515         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
2516         (lrint_tonearest_test_data): Test for "inexact" exceptions.
2517         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
2518         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
2519         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
2520         test input.
2521         (lrint_towardzero_test_data): Test for "inexact" exceptions.
2522         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
2523         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
2524         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
2525         that test input.
2526         (lrint_downward_test_data): Test for "inexact" exceptions.
2527         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
2528         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
2529         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
2530         test input.
2531         (lrint_upward_test_data): Test for "inexact" exceptions.
2532         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
2533         test input.
2534         (llrint_test_data): Test for "inexact" exceptions.
2535         (llrint_test_data) [TEST_FLOAT]: Disable one test.
2536         (llrint_tonearest_test_data): Test for "inexact" exceptions.
2537         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
2538         (llrint_towardzero_test_data): Test for "inexact" exceptions.
2539         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
2540         (llrint_downward_test_data): Test for "inexact" exceptions.
2541         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
2542         (llrint_upward_test_data): Test for "inexact" exceptions.
2543         (logb_test_data): Likewise.
2544         (logb_downward_test_data): Likewise.
2545         (nextafter_test_data): Likewise.
2546         (nexttoward_test_data): Likewise.
2547         (remainder_test_data): Likewise.
2548         (remquo_test_data): Likewise.
2549         (scalbn_test_data): Likewise.
2550         (scalbln_test_data): Likewise.
2551         (signbit_test_data): Likewise.
2552         (sqrt_test_data): Likewise.
2553         (significand_test_data): Likewise.
2554
2555 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
2556
2557         [BZ #15424]
2558         * benchtests/bench-modf.c (struct args): Mark arg0 as
2559         volatile.
2560         * scripts/bench.pl: Mark members of struct args as volatile.
2561
2562 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2563
2564         [BZ # 15497]
2565         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
2566         negative infinity on POWER6 or lower.
2567         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
2568
2569 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
2570
2571         [BZ #15442]
2572         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
2573         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
2574         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
2575         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
2576         (_FP_SETQNAN): New macro.
2577         (_FP_SETQNAN_SEMIRAW): Likewise.
2578         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
2579         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
2580         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
2581         (FP_EXTEND): Use _FP_FRAC_SNANP.
2582         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
2583         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
2584         into account.
2585         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
2586         New macro.
2587         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
2588         Likewise.
2589
2590 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
2591
2592         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
2593         with DIVIDE_BY_ZERO_EXCEPTION.
2594         (gamma_test_data): Likewise.
2595         (lgamma_test_data): Likewise.
2596         (log_test_data): Likewise.
2597         (log10_test_data): Likewise.
2598         (log2_test_data): Likewise.
2599         (tgamma_test_data): Likewise.
2600
2601         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
2602         (acos_test_tonearest): Likewise.
2603         (acos_test_towardzero): Likewise.
2604         (acos_test_downward): Likewise.
2605         (acos_test_upward): Likewise.
2606         (acosh_test): Likewise.
2607         (asin_test): Likewise.
2608         (asin_test_tonearest): Likewise.
2609         (asin_test_towardzero): Likewise.
2610         (asin_test_downward): Likewise.
2611         (asin_test_upward): Likewise.
2612         (asinh_test): Likewise.
2613         (atan_test): Likewise.
2614         (atanh_test): Likewise.
2615         (atan2_test): Likewise.
2616         (cabs_test): Likewise.
2617         (cacos_test): Likewise.
2618         (cacosh_test): Likewise.
2619         (casin_test): Likewise.
2620         (casinh_test): Likewise.
2621         (catan_test): Likewise.
2622         (catanh_test): Likewise.
2623         (cbrt_test): Likewise.
2624         (ccos_test): Likewise.
2625         (ccosh_test): Likewise.
2626         (cexp_test): Likewise.
2627         (clog_test): Likewise.
2628         (clog10_test): Likewise.
2629         (cos_test): Likewise.
2630         (cos_test_tonearest): Likewise.
2631         (cos_test_towardzero): Likewise.
2632         (cos_test_downward): Likewise.
2633         (cos_test_upward): Likewise.
2634         (cosh_test): Likewise.
2635         (cosh_test_tonearest): Likewise.
2636         (cosh_test_towardzero): Likewise.
2637         (cosh_test_downward): Likewise.
2638         (cosh_test_upward): Likewise.
2639         (cpow_test): Likewise.
2640         (csin_test): Likewise.
2641         (csinh_test): Likewise.
2642         (csqrt_test): Likewise.
2643         (ctan_test): Likewise.
2644         (ctan_test_tonearest): Likewise.
2645         (ctan_test_towardzero): Likewise.
2646         (ctan_test_downward): Likewise.
2647         (ctan_test_upward): Likewise.
2648         (ctanh_test): Likewise.
2649         (ctanh_test_tonearest): Likewise.
2650         (ctanh_test_towardzero): Likewise.
2651         (ctanh_test_downward): Likewise.
2652         (ctanh_test_upward): Likewise.
2653         (erf_test): Likewise.
2654         (erfc_test): Likewise.
2655         (exp_test): Likewise.
2656         (exp_test_tonearest): Likewise.
2657         (exp_test_towardzero): Likewise.
2658         (exp_test_downward): Likewise.
2659         (exp_test_upward): Likewise.
2660         (exp10_test): Likewise.
2661         (exp2_test): Likewise.
2662         (expm1_test): Likewise.
2663         (fmod_test): Likewise.
2664         (gamma_test): Likewise.
2665         (hypot_test): Likewise.
2666         (j0_test): Likewise.
2667         (j1_test): Likewise.
2668         (jn_test): Likewise.
2669         (lgamma_test): Likewise.
2670         (log_test): Likewise.
2671         (log10_test): Likewise.
2672         (log1p_test): Likewise.
2673         (log2_test): Likewise.
2674         (logb_test_downward): Likewise.
2675         (pow_test): Likewise.
2676         (pow_test_tonearest): Likewise.
2677         (pow_test_towardzero): Likewise.
2678         (pow_test_downward): Likewise.
2679         (pow_test_upward): Likewise.
2680         (remainder_test): Likewise.
2681         (remquo_test): Likewise.
2682         (sin_test): Likewise.
2683         (sin_test_tonearest): Likewise.
2684         (sin_test_towardzero): Likewise.
2685         (sin_test_downward): Likewise.
2686         (sin_test_upward): Likewise.
2687         (sincos_test): Likewise.
2688         (sinh_test): Likewise.
2689         (sinh_test_tonearest): Likewise.
2690         (sinh_test_towardzero): Likewise.
2691         (sinh_test_downward): Likewise.
2692         (sinh_test_upward): Likewise.
2693         (sqrt_test): Likewise.
2694         (tan_test): Likewise.
2695         (tan_test_tonearest): Likewise.
2696         (tan_test_towardzero): Likewise.
2697         (tan_test_downward): Likewise.
2698         (tan_test_upward): Likewise.
2699         (tanh_test): Likewise.
2700         (tgamma_test): Likewise.
2701         (y0_test): Likewise.
2702         (y1_test): Likewise.
2703         (yn_test): Likewise.
2704
2705         * math/gen-libm-test.pl (adjust_arg): Remove function.
2706         (special_function): Remove argument $in_func.  Only handle
2707         generating output for tables of tests, not inside functions.
2708         (parse_args): Likewise.
2709         (generate_testfile): Remove variable $in_func.  Update call to
2710         parse_args.
2711         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
2712         (MINUS_ZERO_INIT): Rename macro to minus_zero.
2713         (PLUS_INFTY_INIT): Rename macro to plus_infty.
2714         (MINUS_INFTY_INIT): Rename macro to minus_infty.
2715         (QNAN_VALUE_INIT): Rename macro to qnan_value.
2716         (MAX_VALUE_INIT): Rename macro to max_value.
2717         (MIN_VALUE_INIT): Rename macro to min_value.
2718         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
2719         (plus_zero): Remove variable.
2720         (minus_zero): Likewise.
2721         (plus_infty): Likewise.
2722         (minus_infty): Likewise.
2723         (qnan_value): Likewise.
2724         (max_value): Likewise.
2725         (min_value): Likewise.
2726         (min_subnorm_value): Likewise.
2727
2728 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
2729
2730         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
2731         uint64_t or uint32_t usage.
2732         * crypt/sha256-block.c: Likewise.
2733         * crypt/sha256-crypt.c: Likewise.
2734         * crypt/sha256.c: Likewise.
2735         * crypt/sha512-block.c: Likewise.
2736         * crypt/sha512-crypt.c: Likewise.
2737         * crypt/sha512.c: Likewise.
2738         * debug/backtrace-tst.c: Likewise.
2739         * debug/pcprofiledump.c: Likewise.
2740         * elf/cache.c: Likewise.
2741         * elf/dl-cache.c: Likewise.
2742         * elf/dl-misc.c: Likewise.
2743         * elf/dl-profile.c: Likewise.
2744         * elf/dl-support.c: Likewise.
2745         * elf/ldconfig.c: Likewise.
2746         * elf/sprof.c: Likewise.
2747         * iconv/dummy-repertoire.c: Likewise.
2748         * iconv/iconv_charmap.c: Likewise.
2749         * iconv/skeleton.c: Likewise.
2750         * iconvdata/8bit-generic.c: Likewise.
2751         * iconvdata/cp737.h: Likewise.
2752         * iconvdata/cp775.h: Likewise.
2753         * iconvdata/ibm1008.h: Likewise.
2754         * iconvdata/ibm1025.h: Likewise.
2755         * iconvdata/ibm1046.h: Likewise.
2756         * iconvdata/ibm1097.h: Likewise.
2757         * iconvdata/ibm1112.h: Likewise.
2758         * iconvdata/ibm1122.h: Likewise.
2759         * iconvdata/ibm1123.h: Likewise.
2760         * iconvdata/ibm1124.h: Likewise.
2761         * iconvdata/ibm1129.h: Likewise.
2762         * iconvdata/ibm1130.h: Likewise.
2763         * iconvdata/ibm1132.h: Likewise.
2764         * iconvdata/ibm1133.h: Likewise.
2765         * iconvdata/ibm1137.h: Likewise.
2766         * iconvdata/ibm1140.h: Likewise.
2767         * iconvdata/ibm1141.h: Likewise.
2768         * iconvdata/ibm1142.h: Likewise.
2769         * iconvdata/ibm1143.h: Likewise.
2770         * iconvdata/ibm1144.h: Likewise.
2771         * iconvdata/ibm1145.h: Likewise.
2772         * iconvdata/ibm1146.h: Likewise.
2773         * iconvdata/ibm1147.h: Likewise.
2774         * iconvdata/ibm1148.h: Likewise.
2775         * iconvdata/ibm1149.h: Likewise.
2776         * iconvdata/ibm1153.h: Likewise.
2777         * iconvdata/ibm1154.h: Likewise.
2778         * iconvdata/ibm1155.h: Likewise.
2779         * iconvdata/ibm1156.h: Likewise.
2780         * iconvdata/ibm1157.h: Likewise.
2781         * iconvdata/ibm1158.h: Likewise.
2782         * iconvdata/ibm1160.h: Likewise.
2783         * iconvdata/ibm1161.h: Likewise.
2784         * iconvdata/ibm1162.h: Likewise.
2785         * iconvdata/ibm1163.h: Likewise.
2786         * iconvdata/ibm1164.h: Likewise.
2787         * iconvdata/ibm1166.h: Likewise.
2788         * iconvdata/ibm1167.h: Likewise.
2789         * iconvdata/ibm12712.h: Likewise.
2790         * iconvdata/ibm1390.h: Likewise.
2791         * iconvdata/ibm1399.h: Likewise.
2792         * iconvdata/ibm16804.h: Likewise.
2793         * iconvdata/ibm4517.h: Likewise.
2794         * iconvdata/ibm4899.h: Likewise.
2795         * iconvdata/ibm4909.h: Likewise.
2796         * iconvdata/ibm4971.h: Likewise.
2797         * iconvdata/ibm5347.h: Likewise.
2798         * iconvdata/ibm803.h: Likewise.
2799         * iconvdata/ibm856.h: Likewise.
2800         * iconvdata/ibm901.h: Likewise.
2801         * iconvdata/ibm902.h: Likewise.
2802         * iconvdata/ibm9030.h: Likewise.
2803         * iconvdata/ibm9066.h: Likewise.
2804         * iconvdata/ibm921.h: Likewise.
2805         * iconvdata/ibm922.h: Likewise.
2806         * iconvdata/ibm9448.h: Likewise.
2807         * iconvdata/isiri-3342.h: Likewise.
2808         * iconvdata/jis0201.h: Likewise.
2809         * include/link.h: Likewise.
2810         * include/netdb.h: Likewise.
2811         * inet/check_native.c: Likewise.
2812         * inet/check_pf.c: Likewise.
2813         * inet/getipv4sourcefilter.c: Likewise.
2814         * inet/getnameinfo.c: Likewise.
2815         * inet/getsourcefilter.c: Likewise.
2816         * inet/htonl.c: Likewise.
2817         * inet/setipv4sourcefilter.c: Likewise.
2818         * inet/setsourcefilter.c: Likewise.
2819         * inet/test-inet6_opt.c: Likewise.
2820         * inet/tst-network.c: Likewise.
2821         * locale/C-collate.c: Likewise.
2822         * locale/C-ctype.c: Likewise.
2823         * locale/C-time.c: Likewise.
2824         * locale/C-translit.h: Likewise.
2825         * locale/loadarchive.c: Likewise.
2826         * locale/programs/3level.h: Likewise.
2827         * locale/programs/charmap.c: Likewise.
2828         * locale/programs/charmap.h: Likewise.
2829         * locale/programs/ld-address.c: Likewise.
2830         * locale/programs/ld-collate.c: Likewise.
2831         * locale/programs/ld-ctype.c: Likewise.
2832         * locale/programs/ld-identification.c: Likewise.
2833         * locale/programs/ld-measurement.c: Likewise.
2834         * locale/programs/ld-messages.c: Likewise.
2835         * locale/programs/ld-monetary.c: Likewise.
2836         * locale/programs/ld-name.c: Likewise.
2837         * locale/programs/ld-numeric.c: Likewise.
2838         * locale/programs/ld-paper.c: Likewise.
2839         * locale/programs/ld-telephone.c: Likewise.
2840         * locale/programs/ld-time.c: Likewise.
2841         * locale/programs/linereader.c: Likewise.
2842         * locale/programs/locale.c: Likewise.
2843         * locale/programs/locarchive.c: Likewise.
2844         * locale/programs/locfile.h: Likewise.
2845         * locale/programs/repertoire.c: Likewise.
2846         * locale/programs/simple-hash.c: Likewise.
2847         * locale/programs/simple-hash.h: Likewise.
2848         * malloc/memusage.c: Likewise.
2849         * malloc/memusagestat.c: Likewise.
2850         * nis/nis_defaults.c: Likewise.
2851         * nis/nis_hash.c: Likewise.
2852         * nis/nis_print.c: Likewise.
2853         * nis/nis_xdr.c: Likewise.
2854         * nscd/connections.c: Likewise.
2855         * nscd/hstcache.c: Likewise.
2856         * nscd/nscd_gethst_r.c: Likewise.
2857         * nscd/nscd_getserv_r.c: Likewise.
2858         * nscd/nscd_helper.c: Likewise.
2859         * nscd/servicescache.c: Likewise.
2860         * nss/makedb.c: Likewise.
2861         * nss/nss_db/db-XXX.c: Likewise.
2862         * nss/nss_db/db-initgroups.c: Likewise.
2863         * nss/nss_db/db-netgrp.c: Likewise.
2864         * nss/nss_files/files-network.c: Likewise.
2865         * nss/nss_files/files-parse.c: Likewise.
2866         * posix/bug-regex5.c: Likewise.
2867         * posix/fnmatch_loop.c: Likewise.
2868         * posix/regcomp.c: Likewise.
2869         * posix/regexec.c: Likewise.
2870         * posix/tst-rfc3484-2.c: Likewise.
2871         * posix/tst-rfc3484-3.c: Likewise.
2872         * posix/tst-rfc3484.c: Likewise.
2873         * resolv/nss_dns/dns-canon.c: Likewise.
2874         * resolv/nss_dns/dns-network.c: Likewise.
2875         * resolv/res_init.c: Likewise.
2876         * resolv/res_mkquery.c: Likewise.
2877         * resolv/tst-aton.c: Likewise.
2878         * stdlib/cxa_atexit.c: Likewise.
2879         * stdlib/cxa_finalize.c: Likewise.
2880         * stdlib/gen-fpioconst.c: Likewise.
2881         * stdlib/strtol_l.c: Likewise.
2882         * string/tst-endian.c: Likewise.
2883         * sunrpc/auth_des.c: Likewise.
2884         * sunrpc/clnt_udp.c: Likewise.
2885         * sunrpc/rtime.c: Likewise.
2886         * sunrpc/svcauth_des.c: Likewise.
2887         * sunrpc/xdr.c: Likewise.
2888         * sunrpc/xdr_intXX_t.c: Likewise.
2889         * sunrpc/xdr_rec.c: Likewise.
2890         * sysdeps/generic/ldconfig.h: Likewise.
2891         * sysdeps/generic/ldsodefs.h: Likewise.
2892         * sysdeps/generic/memusage.h: Likewise.
2893         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
2894         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
2895         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
2896         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
2897         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
2898         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
2899         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
2900         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
2901         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
2902         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
2903         * sysdeps/posix/getaddrinfo.c: Likewise.
2904         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
2905         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
2906         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
2907         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
2908         * sysdeps/powerpc/test-gettimebase.c: Likewise.
2909         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
2910         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
2911         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
2912         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
2913         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
2914         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
2915         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
2916         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
2917         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
2918         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
2919         * sysdeps/x86_64/dl-tls.h: Likewise.
2920         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
2921         * time/alt_digit.c: Likewise.
2922         * time/era.c: Likewise.
2923         * wcsmbs/tst-c16c32-1.c: Likewise.
2924
2925 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
2926
2927         * math/libm-test.inc (struct test_sincos_data): New type.
2928         (RUN_TEST_LOOP_sincos): New macro.
2929         (sincos_test_data): New variable.
2930         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
2931
2932 2013-05-16  Richard Henderson  <rth@redhat.com>
2933
2934         * math/atest-exp2.c (LIMB64): New macro.
2935         (CONSTSZ): New macro.
2936         (mp_exp1, mp_exp_m1, mp_log2): New variables.
2937         (hexdig): Move ...
2938         (print_mpn_fp): ... to function scope.
2939         (read_mpn_hex): Remove.
2940         (get_log2): Remove.
2941         (exp2_mpn): Use mp_log2.
2942         (main): Use mp_exp1.
2943
2944 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
2945
2946         * math/libm-test.inc: Remove comment about not testing "inexact"
2947         exceptions.
2948         (INEXACT_EXCEPTION): New macro.
2949         (NO_INEXACT_EXCEPTION): Likewise.
2950         (INVALID_EXCEPTION_OK): Update value.
2951         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
2952         (OVERFLOW_EXCEPTION_OK): Likewise.
2953         (UNDERFLOW_EXCEPTION_OK): Likewise.
2954         (IGNORE_ZERO_INF_SIGN): Likewise.
2955         (ERRNO_UNCHANGED): Likewise.
2956         (ERRNO_EDOM): Likewise.
2957         (ERRNO_ERANGE): Likewise.
2958         (test_exceptions): Handle testing "inexact" exceptions.
2959         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
2960         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
2961         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
2962         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
2963         INEXACT_EXCEPTION.
2964         (rint_towardzero_test_data): Likewise.
2965         (rint_downward_test_data): Likewise.
2966         (rint_upward_test_data): Likewise.
2967
2968         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
2969         with OVERFLOW_EXCEPTION.
2970         (exp10_test_data): Likewise.
2971         (exp2_test_data): Likewise.
2972         (expm1_test_data): Likewise.
2973         (lgamma_test_data): Likewise.
2974         (pow_test_data): Likewise.
2975         (tgamma_test_data): Likewise.
2976         (yn_test_data): Remove duplicate test of overflow.
2977
2978         * math/libm-test.inc (struct test_cc_c_data): New type.
2979         (RUN_TEST_LOOP_cc_c): New macro.
2980         (cpow_test_data): New variable.
2981         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
2982
2983         * math/libm-test.inc (struct test_f_L_data): New type.
2984         (RUN_TEST_LOOP_f_L): New macro.
2985         (llrint_test_data): New variable.
2986         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
2987         (llrint_tonearest_test_data): New variable.
2988         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
2989         (llrint_towardzero_test_data): New variable.
2990         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
2991         (llrint_downward_test_data): New variable.
2992         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
2993         (llrint_upward_test_data): New variable.
2994         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
2995         (llround_test_data): New variable.
2996         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
2997
2998 2013-05-13  Peter Collingbourne  <pcc@google.com>
2999
3000         * math/atest-exp2.c (get_log2): Remove const attribute.
3001
3002 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
3003
3004         * math/libm-test.inc (struct test_f_l_data): New type.
3005         (RUN_TEST_LOOP_f_l): New macro.
3006         (lrint_test_data): New variable.
3007         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
3008         (lrint_tonearest_test_data): New variable.
3009         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
3010         (lrint_towardzero_test_data): New variable.
3011         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
3012         (lrint_downward_test_data): New variable.
3013         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
3014         (lrint_upward_test_data): New variable.
3015         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
3016         (lround_test_data): New variable.
3017         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
3018
3019 2013-05-15  Peter Collingbourne  <pcc@google.com>
3020
3021         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
3022         (EXTRACT_WORDS64) Use where appropriate.
3023         (INSERT_WORDS64) Likewise.
3024
3025         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
3026         constraints with x constraints.
3027         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
3028
3029         * malloc/obstack.c (_obstack_compat): Add initializer.
3030
3031 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
3032
3033         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
3034         si_trapno and add si_addr_lsb to _sifields.sigfault.
3035         (si_trapno): Remove macro.
3036         (si_addr_lsb): Define new macro.
3037         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
3038
3039 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
3040
3041         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
3042         instead of TEST_f_l.
3043         (llrint_test_tonearest): Likewise.
3044         (llrint_test_towardzero): Likewise.
3045         (llrint_test_downward): Likewise.
3046         (llrint_test_upward): Likewise.
3047         (llround_test): Likewise.
3048
3049         * math/libm-test.inc (struct test_f_i_data): Add comment.
3050         (RUN_TEST_LOOP_f_b): New macro.
3051         (RUN_TEST_LOOP_f_b_tg): Likewise.
3052         (finite_test_data): New variable.
3053         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
3054         (isfinite_test_data): New variable.
3055         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
3056         (isinf_test_data): New variable.
3057         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
3058         (isnan_test_data): New variable.
3059         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
3060         (isnormal_test_data): New variable.
3061         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
3062         (issignaling_test_data): New variable.
3063         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
3064         (signbit_test_data): New variable.
3065         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
3066
3067         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
3068         with INVALID_EXCEPTION.
3069         (acosh_test_data): Likewise.
3070         (asin_test_data): Likewise.
3071         (atanh_test_data): Likewise.
3072         (fmod_test_data): Likewise.
3073         (log_test_data): Likewise.
3074         (log10_test_data): Likewise.
3075         (log2_test_data): Likewise.
3076         (pow_test_data): Likewise.
3077         (sqrt_test_data): Likewise.
3078         (y0_test_data): Likewise.
3079         (y1_test_data): Likewise.
3080         (yn_test_data): Likewise.
3081
3082         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
3083         function contents.
3084
3085         * math/libm-test.inc (struct test_ff_i_data): New type.
3086         (RUN_TEST_LOOP_ff_i_tg): New macro.
3087         (isgreater_test_data): New variable.
3088         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
3089         (isgreaterequal_test_data): New variable.
3090         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
3091         (isless_test_data): New variable.
3092         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
3093         (islessequal_test_data): New variable.
3094         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
3095         (islessgreater_test_data): New variable.
3096         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
3097         (isunordered_test_data): New variable.
3098         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
3099
3100 2013-05-14  David S. Miller  <davem@davemloft.net>
3101
3102         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3103
3104 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
3105
3106         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
3107
3108         * math/libm-test.inc (struct test_fF_f1_data): Change type of
3109         extra_test to int.
3110         (struct test_f_i_data): Change type of max_ulp to int.
3111
3112         * math/libm-test.inc (test_ffI_f1_data): New type.
3113         (RUN_TEST_LOOP_ffI_f1): New macro.
3114         (remquo_test_data): New variable.
3115         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
3116
3117         * setjmp/tst-setjmp-fp.c: New file.
3118         * setjmp/Makefile (tests): Add tst-setjmp-fp.
3119         (link-libm): New variable.
3120         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
3121
3122         * math/libm-test.inc (struct test_f_i_data): New type.
3123         (RUN_TEST_LOOP_f_i): New macro.
3124         (RUN_TEST_LOOP_f_i_tg): Likewise.
3125         (fpclassify_test_data): New variable.
3126         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
3127         (ilogb_test_data): New variable.
3128         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
3129
3130         * math/libm-test.inc (scalbln_test): Correct function name in END
3131         call.
3132
3133         * math/libm-test.inc (struct test_f_f1_data): Add comment.
3134         (RUN_TEST_LOOP_fI_f1): New macro.
3135         (frexp_test_data): New variable.
3136         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
3137
3138         * math/libm-test.inc (struct test_fF_f1_data): New type.
3139         (RUN_TEST_LOOP_fF_f1): New macro.
3140         (modf_test_data): New variable.
3141         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
3142
3143         * math/libm-test.inc (struct test_f_f1_data): New type.
3144         (RUN_TEST_LOOP_f_f1): New macro.
3145         (gamma_test_data): New variable.
3146         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
3147         (lgamma_test_data): New variable.
3148         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
3149
3150 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
3151
3152         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
3153         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
3154         (main): Comment "tls" pseudo-hwcap.
3155
3156 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
3157
3158         * math/libm-test.inc (struct test_fl_f_data): New type.
3159         (RUN_TEST_LOOP_fl_f): New variable.
3160         (scalbln_test_data): New variable.
3161         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
3162
3163         * math/libm-test.inc (struct test_fi_f_data): New type.
3164         (RUN_TEST_LOOP_fi_f): New macro.
3165         (ldexp_test_data): New variable.
3166         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
3167         (scalbn_test_data): New variable.
3168         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
3169
3170         * math/libm-test.inc (struct test_c_f_data): New type.
3171         (RUN_TEST_LOOP_c_f): New macro.
3172         (cabs_test_data): New variable.
3173         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
3174         (carg_test_data): New variable.
3175         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
3176         (cimag_test_data): New variable.
3177         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
3178         (creal_test_data): New variable.
3179         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
3180
3181         * math/libm-test.inc (struct test_if_f_data): New type.
3182         (RUN_TEST_LOOP_if_f): New macro.
3183         (jn_test_data): New variable.
3184         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
3185         (yn_test_data): New variable.
3186         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
3187
3188         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
3189
3190 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3191
3192         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
3193         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
3194
3195 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3196
3197         * benchtests/Makefile (CPPFLAGS-nonlib): Add
3198         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
3199         (bench-deps): Add bench-timing.h.
3200         * benchtests-bench-skeleton.c: Include bench-timing.h.
3201         (main): Use TIMING_* macros instead of clock_gettime.
3202         * benchtests/bench-timing.h: New file.
3203
3204         [BZ #14582]
3205         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
3206         Renamed from _LIB_VERSION.
3207         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
3208
3209 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
3210
3211         * math/libm-test.inc (struct test_fff_f_data): New type.
3212         (RUN_TEST_LOOP_fff_f): New macro.
3213         (fma_test_data): New variable.
3214         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
3215         (fma_towardzero_test_data): New variable.
3216         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
3217         (fma_downward_test_data): New variable.
3218         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
3219         (fma_upward_test_data): New variable.
3220         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
3221
3222         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
3223         (struct test_c_c_data): New type.
3224         (RUN_TEST_LOOP_c_c): New macro.
3225         (cacos_test_data): New variable.
3226         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
3227         (cacosh_test_data): New variable.
3228         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
3229         (casin_test_data): New variable.
3230         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
3231         (casinh_test_data): New variable.
3232         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
3233         (catan_test_data): New variable.
3234         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
3235         (catanh_test_data): New variable.
3236         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
3237         (ccos_test_data): New variable.
3238         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
3239         (ccosh_test_data): New variable.
3240         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
3241         (cexp_test_data): New variable.
3242         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
3243         (clog_test_data): New variable.
3244         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
3245         (clog10_test_data): New variable.
3246         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
3247         (conj_test_data): New variable.
3248         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
3249         (cproj_test_data): New variable.
3250         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
3251         (csin_test_data): New variable.
3252         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
3253         (csinh_test_data): New variable.
3254         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
3255         (csqrt_test_data): New variable.
3256         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
3257         (ctan_test_data): New variable.
3258         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
3259         (ctan_tonearest_test_data): New variable.
3260         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
3261         (ctan_towardzero_test_data): New variable.
3262         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
3263         (ctan_downward_test_data): New variable.
3264         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
3265         (ctan_upward_test_data): New variable.
3266         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
3267         (ctanh_test_data): New variable.
3268         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
3269         (ctanh_tonearest_test_data): New variable.
3270         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
3271         (ctanh_towardzero_test_data): New variable.
3272         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
3273         (ctanh_downward_test_data): New variable.
3274         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
3275         (ctanh_upward_test_data): New variable.
3276         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
3277         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
3278         of BUILD_COMPLEX.
3279
3280         * math/libm-test.inc (struct test_ff_f_data): New type.
3281         (struct test_ff_f_data_nexttoward): Likewise.
3282         (RUN_TEST_LOOP_2_f): New macro.
3283         (RUN_TEST_LOOP_ff_f): Likewise.
3284         (atan2_test_data): New variable.
3285         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
3286         (copysign_test_data): New variable.
3287         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
3288         (fdim_test_data): New variable.
3289         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
3290         (fmax_test_data): New variable.
3291         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
3292         (fmin_test_data): New variable.
3293         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
3294         (fmod_test_data): New variable.
3295         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
3296         (hypot_test_data): New variable.
3297         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
3298         (nextafter_test_data): New variable.
3299         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
3300         (nexttoward_test_data): New variable.
3301         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
3302         (pow_test_data): New variable.
3303         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
3304         (pow_tonearest_test_data): New variable.
3305         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
3306         (pow_towardzero_test_data): New variable.
3307         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
3308         (pow_downward_test_data): New variable.
3309         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
3310         (pow_upward_test_data): New variable.
3311         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
3312         (remainder_test_data): New variable.
3313         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
3314         (scalb_test_data): New variable.
3315         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
3316         * sysdeps/i386/fpu/libm-test-ulps: Update.
3317
3318 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
3319
3320         * math/libm-test.inc (fma_test): Use max_value instead of local
3321         variable fltmax.
3322         (nextafter_test): Likewise.
3323
3324         * math/libm-test.inc (acos_towardzero_test_data): New variable.
3325         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
3326         (acos_downward_test_data): New variable.
3327         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
3328         (acos_upward_test_data): New variable.
3329         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
3330         (acosh_test_data): New variable.
3331         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
3332         (asin_test_data): New variable.
3333         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
3334         (asin_tonearest_test_data): New variable.
3335         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
3336         (asin_towardzero_test_data): New variable.
3337         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
3338         (asin_downward_test_data): New variable.
3339         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
3340         (asin_upward_test_data): New variable.
3341         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
3342         (asinh_test_data): New variable.
3343         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
3344         (atan_test_data): New variable.
3345         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
3346         (atanh_test_data): New variable.
3347         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
3348         (cbrt_test_data): New variable.
3349         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
3350         (ceil_test_data): New variable.
3351         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
3352         (cos_test_data): New variable.
3353         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
3354         (cos_tonearest_test_data): New variable.
3355         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
3356         (cos_towardzero_test_data): New variable.
3357         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
3358         (cos_downward_test_data): New variable.
3359         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
3360         (cos_upward_test_data): New variable.
3361         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
3362         (cosh_test_data): New variable.
3363         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
3364         (cosh_tonearest_test_data): New variable.
3365         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
3366         (cosh_towardzero_test_data): New variable.
3367         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
3368         (cosh_downward_test_data): New variable.
3369         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
3370         (cosh_upward_test_data): New variable.
3371         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
3372         (erf_test_data): New variable.
3373         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
3374         (erfc_test_data): New variable.
3375         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
3376         (exp_test_data): New variable.
3377         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
3378         (exp_tonearest_test_data): New variable.
3379         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
3380         (exp_towardzero_test_data): New variable.
3381         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
3382         (exp_downward_test_data): New variable.
3383         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
3384         (exp_upward_test_data): New variable.
3385         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
3386         (exp10_test_data): New variable.
3387         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
3388         (exp2_test_data): New variable.
3389         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
3390         (expm1_test_data): New variable.
3391         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
3392         (fabs_test_data): New variable.
3393         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
3394         (floor_test_data): New variable.
3395         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
3396         (j0_test_data): New variable.
3397         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
3398         (j1_test_data): New variable.
3399         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
3400         (log_test_data): New variable.
3401         (log_test): Run tests with RUN_TEST_LOOP_f_f.
3402         (log10_test_data): New variable.
3403         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
3404         (log1p_test_data): New variable.
3405         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
3406         (log2_test_data): New variable.
3407         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
3408         (logb_test_data): New variable.
3409         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
3410         (logb_downward_test_data): New variable.
3411         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
3412         (nearbyint_test_data): New variable.
3413         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
3414         (rint_test_data): New variable.
3415         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
3416         (rint_tonearest_test_data): New variable.
3417         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
3418         (rint_towardzero_test_data): New variable.
3419         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
3420         (rint_downward_test_data): New variable.
3421         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
3422         (rint_upward_test_data): New variable.
3423         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
3424         (round_test_data): New variable.
3425         (round_test): Run tests with RUN_TEST_LOOP_f_f.
3426         (sin_test_data): New variable.
3427         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
3428         (sin_tonearest_test_data): New variable.
3429         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
3430         (sin_towardzero_test_data): New variable.
3431         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
3432         (sin_downward_test_data): New variable.
3433         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
3434         (sin_upward_test_data): New variable.
3435         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
3436         (sinh_test_data): New variable.
3437         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
3438         (sinh_tonearest_test_data): New variable.
3439         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
3440         (sinh_towardzero_test_data): New variable.
3441         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
3442         (sinh_downward_test_data): New variable.
3443         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
3444         (sinh_upward_test_data): New variable.
3445         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
3446         (sqrt_test_data): New variable.
3447         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
3448         (tan_test_data): New variable.
3449         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
3450         (tan_tonearest_test_data): New variable.
3451         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
3452         (tan_towardzero_test_data): New variable.
3453         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
3454         (tan_downward_test_data): New variable.
3455         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
3456         (tan_upward_test_data): New variable.
3457         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
3458         (tanh_test_data): New variable.
3459         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
3460         (tgamma_test_data): New variable.
3461         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
3462         (trunc_test_data): New variable.
3463         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
3464         (y0_test_data): New variable.
3465         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
3466         (y1_test_data): New variable.
3467         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
3468         (significand_test_data): New variable.
3469         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
3470
3471 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
3472
3473         [BZ #12387]
3474         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
3475
3476 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
3477
3478         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
3479
3480 2013-05-10  Andreas Jaeger  <aj@suse.de>
3481
3482         [BZ #15448]
3483         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
3484         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
3485
3486 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
3487
3488         * math/gen-libm-test.pl (adjust_arg): New function.
3489         (special_functions): Handle generating output in both functions
3490         and arrays.
3491         (parse_args): Likewise.
3492         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
3493         $in_func argument to parse_args.
3494         * math/libm-test.inc (struct test_f_f_data): New type.
3495         (IF_ROUND_INIT_): New macro.
3496         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
3497         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
3498         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
3499         (IF_ROUND_INIT_FE_UPWARD): Likewise.
3500         (ROUND_RESTORE_): Likewise.
3501         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
3502         (ROUND_RESTORE_FE_TONEAREST): Likewise.
3503         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
3504         (ROUND_RESTORE_FE_UPWARD): Likewise.
3505         (RUN_TEST_LOOP_f_f): New macro.
3506         (acos_test_data): New variable.
3507         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
3508         (acos_tonearest_test_data): New variable.
3509         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
3510
3511 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
3512
3513         * benchtests/bench-skeleton.c (startup): Fix coding style.
3514
3515 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
3516
3517         [BZ #6809]
3518         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
3519         negative infinity argument.
3520         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
3521         negative infinity argument.
3522         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
3523         negative infinity argument.
3524         * math/libm-test.inc (tgamma_test): Expect errno to be set for
3525         domain errors.
3526
3527 2013-05-10  Florian Weimer  <fweimer@redhat.com>
3528
3529         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
3530         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
3531         * iconv/iconv_prog.c (main): Likewise.
3532         * locale/programs/charmap-dir.c (charmap_readdir)
3533         (fopen_uncompressed): Likewise.
3534         * locale/programs/locfile.c (siblings_uncached)
3535         (write_locale_data): Use lstat64 instead of lstat.
3536         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
3537         stat.
3538
3539 2013-05-10  Andreas Jaeger  <aj@suse.de>
3540
3541         [BZ #15395]
3542         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
3543         localization.
3544         Include <locale.h>.
3545
3546 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
3547
3548         * elf/dl-close.c (_dl_close_worker): Add comments.
3549
3550 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
3551
3552         [BZ #15359]
3553         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
3554         high part of pi/2.
3555         (__ieee754_rem_pio2l): Update comments.
3556
3557         [BZ #15429]
3558         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
3559         high part of pi/2.
3560         (__ieee754_rem_pio2l): Update comments.
3561
3562         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
3563         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
3564
3565         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
3566         M_PI_4l.
3567
3568         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
3569         (M_PI_34_LOG10El): Likewise.
3570         (M_PI2_LOG10El): Likewise.
3571         (M_PI4_LOG10El): Likewise.
3572         (M_PI_LOG10El): Likewise.
3573
3574 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3575
3576         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3577
3578 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
3579
3580         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
3581         (MINUS_ZERO_INIT): Likewise.
3582         (PLUS_INFTY_INIT): Likewise.
3583         (MINUS_INFTY_INIT): Likewise.
3584         (QNAN_VALUE_INIT): Likewise.
3585         (MAX_VALUE_INIT): Likewise.
3586         (MIN_VALUE_INIT): Likewise.
3587         (MIN_SUBNORM_VALUE_INIT): Likewise.
3588         (plus_zero): Initialize with PLUS_ZERO_INIT.
3589         (minus_zero): Initialize with MINUS_ZERO_INIT.
3590         (plus_infty): Initialize with PLUS_INFTY_INIT.
3591         (minus_infty): Initialize with MINUS_INFTY_INIT.
3592         (qnan_value): Initialize with QNAN_VALUE_INIT.
3593         (max_value): Initialize with MAX_VALUE_INIT.
3594         (min_value): Initialize with MIN_VALUE_INIT.
3595         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
3596
3597         * math/libm-test.inc (RUN_TEST_if_f): New macro.
3598         (jn_test): Use TEST_if_f instead of TEST_ff_f.
3599         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
3600         (yn_test): Use TEST_if_f instead of TEST_ff_f.
3601
3602         * math/libm-test.inc (RUN_TEST_f_f): New macro.
3603         (RUN_TEST_2_f): Likewise.
3604         (RUN_TEST_ff_f): Likewise.
3605         (RUN_TEST_fi_f): Likewise.
3606         (RUN_TEST_fl_f): Likewise.
3607         (RUN_TEST_fff_f): Likewise.
3608         (RUN_TEST_c_f): Likewise.
3609         (RUN_TEST_f_f1): Likewise.
3610         (RUN_TEST_fF_f1): Likewise.
3611         (RUN_TEST_fI_f1): Likewise.
3612         (RUN_TEST_ffI_f1): Likewise.
3613         (RUN_TEST_c_c): Likewise.
3614         (RUN_TEST_cc_c): Likewise.
3615         (RUN_TEST_f_i): Likewise.
3616         (RUN_TEST_f_i_tg): Likewise.
3617         (RUN_TEST_ff_i_tg): Likewise.
3618         (RUN_TEST_f_b): Likewise.
3619         (RUN_TEST_f_b_tg): Likewise.
3620         (RUN_TEST_f_l): Likewise.
3621         (RUN_TEST_f_L): Likewise.
3622         (RUN_TEST_sincos): Likewise.
3623         * math/gen-libm-test.pl (new_test): Take new argument to indicate
3624         whether to show exceptions.  Do not include ");\n" in return
3625         value.
3626         (special_functions): Output call to RUN_TEST_sincos instead of
3627         check_float calls.  Update calls to new_test.
3628         (parse_args): Output call to single RUN_TEST_* macro instead of
3629         check_* calls and other assignments.  Update calls to new_test.
3630
3631         [BZ #2546]
3632         [BZ #2560]
3633         [BZ #5159]
3634         [BZ #15426]
3635         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
3636         input to result for tgamma overflow.
3637         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
3638         (gamma_coeff): New variable.
3639         (NCOEFF): New macro.
3640         (gamma_positive): New function.
3641         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
3642         underflow here.  Use gamma_positive instead of exp (lgamma) for
3643         other arguments.
3644         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
3645         (gamma_coeff): New variable.
3646         (NCOEFF): New macro.
3647         (gammaf_positive): New function.
3648         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
3649         underflow here.  Use gamma_positive instead of exp (lgamma) for
3650         other arguments.
3651         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
3652         (gamma_coeff): New variable.
3653         (NCOEFF): New macro.
3654         (gammal_positive): New function.
3655         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
3656         underflow here.  Use gamma_positive instead of exp (lgamma) for
3657         other arguments.
3658         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
3659         (gamma_coeff): New variable.
3660         (NCOEFF): New macro.
3661         (gammal_positive): New function.
3662         (__ieee754_gammal_r): Handle positive infinity, overflow and
3663         underflow here.  Handle NaN the same as positive infinity.  Remove
3664         check x < 0xffffffff for negative integers.  Use gamma_positive
3665         instead of exp (lgamma) for other arguments.
3666         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
3667         (gamma_coeff): New variable.
3668         (NCOEFF): New macro.
3669         (gammal_positive): New function.
3670         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
3671         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
3672         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
3673         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
3674         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
3675         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
3676         * sysdeps/generic/math_private.h (__gamma_productf): New
3677         prototype.
3678         (__gamma_product): Likewise.
3679         (__gamma_productl): Likewise.
3680         * math/Makefile (libm-calls): Add gamma_product.
3681         * math/libm-test.inc (tgamma_test): Add more tests.
3682         * sysdeps/i386/fpu/libm-test-ulps: Update.
3683         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3684
3685 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
3686
3687         * benchtests/bench-skeleton.c (main): Preheat CPU.
3688
3689 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
3690
3691         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
3692
3693 2013-05-07  Roland McGrath  <roland@hack.frob.com>
3694
3695         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
3696         and _dl_skip_args_internal.
3697
3698 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
3699
3700         * manual/message.texi (Message Translation): Talk about users.
3701         Message to key mapping impacts design.
3702
3703 2013-05-06  Roland McGrath  <roland@hack.frob.com>
3704
3705         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
3706
3707         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
3708
3709         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
3710         * sysdeps/wordsize-64/glob64.c: ... here.
3711
3712         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
3713         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
3714         New macros.
3715
3716         * debug/getlogin_r_chk.c: Moved to ...
3717         * login/getlogin_r_chk.c: ... here.
3718         * debug/Makefile (routines): Move getlogin_r_chk to ...
3719         * login/Makefile (routines): ... here.
3720         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
3721         * login/Versions (libc: GLIBC_2.4): ... here.
3722
3723         * io/poll.c (__poll): Renamed from poll.
3724         Add libc_hidden_def.
3725         (poll): Define as weak alias.
3726
3727         * debug/ptsname_r_chk.c: Moved to ...
3728         * login/ptsname_r_chk.c: ... here.
3729         * debug/Makefile (routines): Move ptsname_r_chk to ...
3730         * login/Makefile (routines): ... here.
3731         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
3732         * login/Versions (libc: GLIBC_2.4): ... here.
3733
3734         * posix/getlogin.c: Moved to ...
3735         * login/getlogin.c: ... here.
3736         * posix/getlogin_r.c: Moved to ...
3737         * login/getlogin_r.c: ... here.
3738         * posix/getlogin_r.c: Moved to ...
3739         * login/getlogin_r.c: ... here.
3740         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
3741         * login/Makefile (routines): ... here.
3742         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
3743         * login/Versions (libc: GLIBC_2.0): ... here.
3744
3745         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
3746         (setrlimit): Define as weak alias.
3747
3748         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
3749         Call __ names for open, ftruncate, and close.
3750         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
3751         (truncate): Define as weak alias.
3752
3753 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
3754
3755         * math/gen-libm-test.pl (parse_args): Initialize x before each
3756         test of frexp, modf and remquo.
3757
3758         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
3759         test signgam value.
3760
3761 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3762
3763         [BZ #15418]
3764         [BZ #15419]
3765         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
3766         internal tests.
3767         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
3768
3769 2013-05-06  Roland McGrath  <roland@hack.frob.com>
3770
3771         * elf/dl-writev.h: New file.
3772         * elf/dl-misc.c: Include it.
3773         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
3774         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
3775
3776 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
3777
3778         * math/libm-test.inc (noXFails): Remove variable.
3779         (noXPasses): Likewise.
3780         (BUILD_COMPLEX_INT): Remove macro.
3781         (print_screen): Remove xfail argument.
3782         (print_screen_max_error): Likewise.
3783         (update_stats): Likewise.
3784         (print_max_error): Likewise.  Update calls to other affected
3785         functions.
3786         (print_complex_max_error): Likewise.
3787         (test_single_exception): Update calls to print_screen.
3788         (test_single_errno): Likewise.
3789         (check_float_internal): Remove xfail argument.  Update calls to
3790         other affected functions.
3791         (check_float): Likewise.
3792         (check_complex): Likewise.
3793         (check_int): Likewise.
3794         (check_long): Likewise.
3795         (check_bool): Likewise.
3796         (check_longlong): Likewise.
3797         (main): Don't print noXFails and noXPasses.
3798         * math/gen-libm-test.pl (top level): Don't mention expected
3799         failure handling in comment.
3800         (new_test): Don't handle expected failures.
3801         (parse_args): Don't mention expected failure handling in comment.
3802         (generate_testfile): Don't handle expected failures.
3803         (parse_ulps): Likewise.
3804         (print_ulps_file): Likewise.
3805         (get_failure): Remove function.
3806         (output_test): Don't handle expected failures.
3807         * make/README.libm-test: Don't mention expected failure handling.
3808
3809         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
3810         (minus_zero): Likewise.
3811         (plus_infty): Likewise.
3812         (minus_infty): Likewise.
3813         (qnan_value): Likewise.
3814         (max_value): Likewise.
3815         (min_value): Likewise.
3816         (min_subnorm_value): Likewise.
3817         (initialize): Do not initialize those variables dynamically.
3818
3819 2013-05-03  Roland McGrath  <roland@hack.frob.com>
3820
3821         * io/open.c (__open_2): Moved to ...
3822         * io/open_2.c: ... this new file.
3823         * io/open64.c (__open64_2): Moved to ...
3824         * io/open64_2.c: ... this new file.
3825         * io/openat.c (__openat_2): Moved to ...
3826         * io/openat_2.c: ... this new file.
3827         * io/openat64.c (__openat64_2): Moved to ...
3828         * io/openat64_2.c: ... this new file.
3829         * io/Makefile (routines): Add them.
3830         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
3831         * sysdeps/unix/sysv/linux/open_2.c: File removed.
3832         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
3833         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
3834         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
3835         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
3836         (__openat64): Add hidden_ver.
3837         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
3838         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
3839
3840         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
3841         Separately conditionalize setting of GLRO(dl_sysinfo) so
3842         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
3843         as well, but the actual setting is only under [NEED_DL_SYSINFO].
3844
3845 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3846
3847         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
3848         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
3849         definition.
3850         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
3851         * sysdeps/unix/sysv/linux/powerpc/init-first.c
3852         (_libc_vdso_platform_setup): Add __vdso_time initialization.
3853         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
3854         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
3855
3856 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
3857
3858         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
3859         test signgam value.
3860
3861         * math/libm-test.inc (hypot_test): Do not use
3862         IGNORE_ZERO_INF_SIGN.
3863
3864 2013-05-03  Andreas Jaeger  <aj@suse.de>
3865
3866         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
3867         Linux 3.9.
3868         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
3869         (PF_MAX): Adjust for VSOCK change.
3870
3871 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3872
3873         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3874
3875 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
3876
3877         [BZ #15264]
3878         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
3879         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
3880         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
3881
3882 2013-05-02  David S. Miller  <davem@davemloft.net>
3883
3884         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3885
3886 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
3887
3888         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
3889
3890 2013-05-01  Roland McGrath  <roland@hack.frob.com>
3891
3892         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
3893
3894 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
3895
3896         [BZ #14952]
3897         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
3898         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
3899         Use __attribute__ ((__gnu_inline__)).
3900         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
3901         Don't use __attribute__ ((__gnu_inline__)).
3902
3903 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
3904
3905         [BZ #15423]
3906         * math/s_catan.c (__catan): Handle small real or imaginary part of
3907         input specially to avoid spurious underflow.
3908         * math/s_catanf.c (__catanf): Likewise.
3909         * math/s_catanh.c (__catanh): Likewise.
3910         * math/s_catanhf.c (__catanhf): Likewise.
3911         * math/s_catanhl.c (__catanhl): Likewise.
3912         * math/s_catanl.c (__catanl): Likewise.
3913         * math/libm-test.inc (catan_test): Add more tests.
3914         (catanh_test): Likewise.
3915         * sysdeps/i386/fpu/libm-test-ulps: Update.
3916         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3917
3918 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3919
3920         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3921
3922 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
3923
3924         [BZ #15416]
3925         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
3926         accurately for denominator in atan2.
3927         * math/s_catanf.c (__catanf): Likewise.
3928         * math/s_catanh.c (__catanh): Likewise.
3929         * math/s_catanhf.c (__catanhf): Likewise.
3930         * math/s_catanhl.c (__catanhl): Likewise.
3931         * math/s_catanl.c (__catanl): Likewise.
3932         * math/libm-test.inc (catan_test): Add more tests.
3933         (catanh_test): Likewise.
3934         * sysdeps/i386/fpu/libm-test-ulps: Update.
3935         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3936
3937 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
3938
3939         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
3940
3941         * benchtests/Makefile (bench): Remove slow benchmarks.
3942         * benchtests/atan-inputs: Add slow benchmark inputs.
3943         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
3944         (BENCH_FUNC): Accept variant offset.
3945         (VARIANT): Define.
3946         * benchtests/bench-skeleton.c (main): Run benchmark for each
3947         variant.
3948         * benchtests/cos-inputs: Add slow benchmark inputs.
3949         * benchtests/exp-inputs: Likewise.
3950         * benchtests/pow-inputs: Likewise.
3951         * benchtests/sin-inputs: Likewise.
3952         * benchtests/slowatan-inputs: Remove.
3953         * benchtests/slowatan.c: Remove.
3954         * benchtests/slowcos-inputs: Remove.
3955         * benchtests/slowcos.c: Remove.
3956         * benchtests/slowexp-inputs: Remove.
3957         * benchtests/slowexp.c: Remove.
3958         * benchtests/slowpow-inputs: Remove.
3959         * benchtests/slowpow.c: Remove.
3960         * benchtests/slowsin-inputs: Remove.
3961         * benchtests/slowsin.c: Remove.
3962         * benchtests/slowtan-inputs: Remove.
3963         * benchtests/slowtan.c: Remove.
3964         * benchtests/tan-inputs: Add slow benchmark inputs.
3965         * scripts/bench.pl: Parse comments and directives.
3966
3967         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
3968         in CPPFLAGS.
3969         ($(objpfx)bench-%.c): Remove *-ITER.
3970         * benchtests/bench-modf.c: Remove definition of ITER.
3971         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
3972         (main): Loop for DURATION seconds instead of fixed number of
3973         iterations.
3974         * scripts/bench.pl: Don't expect iterations in parameters.
3975
3976 2013-04-29  Roland McGrath  <roland@hack.frob.com>
3977
3978         * io/fchdir.c (__fchdir): Renamed from fchdir.
3979         (fchdir): Define as weak alias.
3980
3981 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
3982
3983         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
3984         (ERRNO_EDOM): Likewise.
3985         (ERRNO_ERANGE): Likewise.
3986         (noErrnoTests): New variable.
3987         (init_max_error): Set errno to 0.
3988         (test_single_errno): New function.
3989         (test_errno): Likewise.
3990         (check_float_internal): Call test_errno.  Set errno to 0.
3991         (check_complex): Refer to errno tests in comment.
3992         (check_int): Call test_errno.  Set errno to 0.
3993         (check_long): Likewise.
3994         (check_bool): Likewise.
3995         (check_longlong): Likewise.
3996         (cos_test): Use ERRNO_* flags for errno tests instead of
3997         check_int.
3998         (expm1_test): Likewise.
3999         (fmod_test): Likewise.
4000         (ilogb_test): Likewise.
4001         (lgamma_test): Likewise.
4002         (pow_test): Likewise.
4003         (remainder_test): Likewise.
4004         (sin_test): Likewise.
4005         (tan_test): Likewise.
4006         (yn_test): Likewise.
4007         (initialize): Set errno to 0.
4008         (main): Print number of errno tests.
4009         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
4010
4011 2013-04-29  Andreas Jaeger  <aj@suse.de>
4012
4013         [BZ #15084]
4014         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
4015         and RES_USEVC.
4016
4017         [BZ #15085]
4018         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
4019         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
4020         unimplemented.
4021
4022         [BZ #15380]
4023         * stdlib/random.c (__initstate): Return NULL if
4024         __initstate fails.
4025
4026         [BZ #15086]
4027         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
4028         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
4029         RES_SNGLKUPREOP.
4030
4031 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4032
4033         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4034
4035 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
4036
4037         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
4038         of individual tests.
4039         (casin_test): Likewise.
4040         (casinh_test): Likewise.
4041
4042 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
4043
4044         [BZ #15409]
4045         * math/s_catan.c (__catan): Handle arguments with large real or
4046         imaginary part separately without squaring.
4047         * math/s_catanf.c (__catanf): Likewise.
4048         * math/s_catanh.c (__catanh): Likewise.
4049         * math/s_catanhf.c (__catanhf): Likewise.
4050         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
4051         and redefine.
4052         (__catanhl): Handle arguments with large real or imaginary part
4053         separately without squaring.
4054         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
4055         and redefine.
4056         (__catanl): Handle arguments with large real or imaginary part
4057         separately without squaring.
4058         * math/libm-test.inc (catan_test): Add more tests.
4059         (catanh_test): Likewise.
4060         * sysdeps/i386/fpu/libm-test-ulps: Update.
4061         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4062
4063 2013-04-27  Andreas Jaeger  <aj@suse.de>
4064
4065         [BZ #15007]
4066         * stdlib/stdlib.h: Update guards for qecvt.
4067         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
4068         <stdlib.h>.
4069
4070 2013-04-27  Allan McRae  <allan@archlinux.org>
4071
4072         * sysdeps/i386/fpu/libm-test-ulps: Update.
4073
4074 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
4075
4076         [BZ #15406]
4077         * math/s_catan.c: Include <float.h>.
4078         (__catan): Ensure underflow exception occurs for underflowed
4079         result.
4080         * math/s_catanf.c: Include <float.h>.
4081         (__catanf): Ensure underflow exception occurs for underflowed
4082         result.
4083         * math/s_catanh.c: Include <float.h>.
4084         (__catanh): Ensure underflow exception occurs for underflowed
4085         result.
4086         * math/s_catanhf.c: Include <float.h>.
4087         (__catanhf): Ensure underflow exception occurs for underflowed
4088         result.
4089         * math/s_catanhl.c: Include <float.h>.
4090         (__catanhl): Ensure underflow exception occurs for underflowed
4091         result.
4092         * math/s_catanl.c: Include <float.h>.
4093         (__catanl): Ensure underflow exception occurs for underflowed
4094         result.
4095         * math/libm-test.inc (catan_test): Add more tests.
4096         (catanh_test): Likewise.
4097
4098         [BZ #15405]
4099         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
4100         underflowed result.
4101         * math/s_ccoshf.c (__ccoshf): Likewise.
4102         * math/s_ccoshl.c (__ccoshl): Likewise.
4103         * math/s_csin.c (__csin): Likewise.
4104         * math/s_csinf.c (__csinf): Likewise.
4105         * math/s_csinh.c (__csinh): Likewise.
4106         * math/s_csinhf.c (__csinhf): Likewise.
4107         * math/s_csinhl.c (__csinhl): Likewise.
4108         * math/s_csinl.c (__csinl): Likewise.
4109         * math/libm-test.inc (ccos_test): Add more tests.
4110         (ccosh_test): Likewise.
4111         (csin_test): Likewise.
4112         (csinh_test): Likewise.
4113
4114 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4115
4116         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
4117         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
4118         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
4119         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
4120         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
4121         powerpc/power5+/fpu folders.
4122         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
4123
4124
4125 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
4126
4127         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4128
4129 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
4130
4131         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
4132         additions to variable.
4133         [$(config-machine) = x86_64] (modules-names): Likewise.
4134         ($(objpfx)tst-audit3): Remove dependency.
4135         ($(objpfx)tst-audit3.out): Likewise.
4136         ($(objpfx)tst-audit4): Likewise.
4137         ($(objpfx)tst-audit4.out): Likewise.
4138         ($(objpfx)tst-audit5): Likewise.
4139         ($(objpfx)tst-audit5.out): Likewise.
4140         ($(objpfx)tst-audit6): Likewise.
4141         ($(objpfx)tst-audit6.out): Likewise.
4142         ($(objpfx)tst-audit7): Likewise.
4143         ($(objpfx)tst-audit7.out): Likewise.
4144         (tst-audit3-ENV): Remove variable.
4145         (tst-audit4-ENV): Likewise.
4146         (tst-audit5-ENV): Likewise.
4147         (tst-audit6-ENV): Likewise.
4148         (tst-audit7-ENV): Likewise.
4149         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
4150         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
4151         addition to variable.
4152         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
4153         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
4154         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
4155         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
4156         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
4157         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
4158         tst-audit3, tst-audit4 and tst-audit5.
4159         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
4160         tst-audit6 and tst-audit7.
4161         [$(subdir) = elf] (modules-names): Add audit modules for those
4162         tests.
4163         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
4164         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
4165         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
4166         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
4167         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
4168         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
4169         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
4170         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
4171         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
4172         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
4173         [$(subdir) = elf] (tst-audit3-ENV): New variable.
4174         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
4175         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
4176         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
4177         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
4178         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
4179         Likewise.
4180         [$(subdir) = elf && $(config-cflags-avx) = yes]
4181         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
4182         [$(subdir) = elf && $(config-cflags-avx) = yes]
4183         (CFLAGS-tst-auditmod4a.c): Likewise.
4184         [$(subdir) = elf && $(config-cflags-avx) = yes]
4185         (CFLAGS-tst-auditmod4b.c): Likewise.
4186         [$(subdir) = elf && $(config-cflags-avx) = yes]
4187         (CFLAGS-tst-auditmod6b.c): Likewise.
4188         [$(subdir) = elf && $(config-cflags-avx) = yes]
4189         (CFLAGS-tst-auditmod6c.c): Likewise.
4190         [$(subdir) = elf && $(config-cflags-avx) = yes]
4191         (CFLAGS-tst-auditmod7b.c): Likewise.
4192         * elf/tst-audit3.c: Move to ...
4193         * sysdeps/x86_64/tst-audit3.c: ... here.
4194         * elf/tst-audit4.c: Move to ...
4195         * sysdeps/x86_64/tst-audit4.c: ... here.
4196         * elf/tst-audit5.c: Move to ...
4197         * sysdeps/x86_64/tst-audit5.c: ... here.
4198         * elf/tst-audit6.c: Move to ...
4199         * sysdeps/x86_64/tst-audit6.c: ... here.
4200         * elf/tst-audit7.c: Move to ...
4201         * sysdeps/x86_64/tst-audit7.c: ... here.
4202         * elf/tst-auditmod3a.c: Move to ...
4203         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
4204         * elf/tst-auditmod3b.c: Move to ...
4205         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
4206         * elf/tst-auditmod4a.c: Move to ...
4207         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
4208         * elf/tst-auditmod4b.c: Move to ...
4209         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
4210         * elf/tst-auditmod5a.c: Move to ...
4211         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
4212         * elf/tst-auditmod5b.c: Move to ...
4213         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
4214         * elf/tst-auditmod6a.c: Move to ...
4215         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
4216         * elf/tst-auditmod6b.c: Move to ...
4217         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
4218         * elf/tst-auditmod6c.c: Move to ...
4219         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
4220         * elf/tst-auditmod7a.c: Move to ...
4221         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
4222         * elf/tst-auditmod7b.c: Move to ...
4223         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
4224
4225 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
4226
4227         [BZ #15366]
4228         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
4229         define unconditionally.
4230         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
4231         define unconditionally.
4232         (INT8_C, INT16_C, etc.): Likewise.
4233
4234 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
4235
4236         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
4237         __ehdr_start with hidden visibility.
4238
4239         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
4240
4241 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
4242
4243         * math/libm-test.inc (cos_test): Use accurate hex constants.
4244         (sincost_test): Likewise.
4245
4246 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
4247
4248         * math/libm-test.inc (catan_test): Add more tests.
4249         (catanh_test): Likewise.
4250
4251         * math/s_catanf.c (__catanf): Use suffixed floating-point
4252         constants.
4253         * math/s_catanhf.c (__catanhf): Likewise.
4254         * math/s_catanhl.c (__catanhl): Likewise.
4255         * math/s_catanl.c (__catanl): Likewise.
4256
4257         [BZ #15394]
4258         * math/s_catan.c (__catan): Calculate imaginary part of result
4259         with log1p not log unless computing log of number close to 0.
4260         * math/s_catanf.c (__catanf): Likewise.
4261         * math/s_catanl.c (__catanl): Likewise.
4262         * math/s_catanh.c (__catanh): Calculate real part of result with
4263         log1p not log unless computing log of number close to 0.
4264         * math/s_catanhf.c (__catanhf): Likewise.
4265         * math/s_catanhl.c (__catanhl): Likewise.
4266         * math/libm-test.inc (catan_test): Add more tests.
4267         (catanh_test): Likewise.
4268         * sysdeps/i386/fpu/libm-test-ulps: Update.
4269         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4270
4271 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
4272
4273         * benchtests/Makefile: Mention files in which fast and slow
4274         paths of math functions are implemented.
4275
4276 2013-04-23  Roland McGrath  <roland@hack.frob.com>
4277
4278         * sysdeps/posix/timespec_get.c: New file.
4279
4280 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4281
4282         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
4283         POWER.
4284         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
4285         for POWER.
4286         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
4287         powerpc/power5/fpu folders.
4288         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
4289         * benchtests/Makefile: Add modf testcase.
4290         * benchtests/bench-modf.c: New file: Benchmark test for mo
4291
4292 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
4293
4294         [BZ #14888]
4295         * time/Makefile (tests): Add tst-strptime-whitespace.
4296         * time/strptime_l.c (get_number): Use ISSPACE.
4297         (__strptime_internal): Likewise.
4298         * time/tst-strptime-whitespace.c: New test case.
4299
4300 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
4301
4302         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
4303         member.
4304         (_nss_files_init): Set it here.
4305
4306 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
4307
4308         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
4309         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
4310         unsigned.
4311
4312 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
4313
4314         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
4315
4316 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4317
4318         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
4319         size just once.
4320
4321 2013-04-21  David S. Miller  <davem@davemloft.net>
4322
4323         * po/ru.po: Update Russion translation from translation project.
4324
4325 2013-04-17  Adam Conrad  <adconrad@0c3.net>
4326
4327         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
4328         and setfsgid.
4329
4330 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
4331
4332         * configure.in: Remove i386 configure warning. Remove i386 case.
4333         * configure: Regenerate.
4334         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
4335         Add example to error message.
4336         * sysdeps/i386/configure: Regenerate.
4337
4338 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
4339
4340         * benchtests/Makefile (bench): Add cos, tan, slowcos and
4341         slowtan.
4342         * benchtests/cos-inputs: New file.
4343         * benchtests/slowcos-inputs: New file.
4344         * benchtests/slowcos.c: New file.
4345         * benchtests/slowtan-inputs: New file.
4346         * benchtests/slowtan.c: New file.
4347         * benchtests/tan-inputs: New file.
4348
4349 2013-04-16  Roland McGrath  <roland@hack.frob.com>
4350
4351         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
4352         considered kosher.
4353
4354 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
4355
4356         * benchtests/Makefile: Include cppflags-iterator.mk to add
4357         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
4358
4359         * Makefile.in (bench-clean): New target.
4360         * benchtests/Makefile (bench-clean): Likewise.
4361
4362 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
4363
4364         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
4365
4366 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
4367
4368         * stdio-common/tstdiomisc.c: Fix coding-style violation.
4369
4370 2013-04-15  Andreas Schwab  <schwab@suse.de>
4371
4372         * nscd/grpcache.c (cache_addgr): Properly check for short write.
4373         * nscd/initgrcache.c (addinitgroupsX): Likewise.
4374         * nscd/pwdcache.c (cache_addpw): Likewise.
4375         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
4376         more than recsize.
4377
4378 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
4379
4380         * benchtests/Makefile (bench): Write all output to
4381         bench-out.tmp together.
4382
4383 2013-04-15  Andreas Schwab  <schwab@suse.de>
4384
4385         * nscd/nscd.c (main): Don't fork again after closing files.
4386
4387 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
4388
4389         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
4390
4391         * benchtests/Rules (bench-deps): Collect dependencies into a
4392         single variable.  Add Makefile to dependencies.
4393         ($(objpfx)bench-%.c): Depend on bench-deps.
4394
4395 2013-04-12  Roland McGrath  <roland@hack.frob.com>
4396             Xavier Roche  <roche+kml2@exalead.com>
4397
4398         [BZ #15361]
4399         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
4400         just that it's a file descriptor.
4401         * manual/llio.texi (Synchronizing AIO Operations): Update description
4402         for EBADF error from aio_fsync.
4403
4404 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
4405
4406         * Rules (bench): Move target definition...
4407         * benchtests/Makefile: ... here.
4408
4409 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
4410
4411         * math/libm-test.inc (cos_test): Fix PI/2 test.
4412         (sincos_test): Likewise.
4413         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
4414         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
4415
4416 2013-04-11  Andreas Schwab  <schwab@suse.de>
4417
4418         [BZ #13988]
4419         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
4420         accept exponent character only when digits were seen.
4421         * stdio-common/Makefile (tests): Add bug26.
4422         * stdio-common/bug26.c: New file.
4423
4424         [BZ #14293]
4425         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
4426         non-freeable.
4427
4428 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4429
4430         * Makeconfig (rtld-prefix): Define built linker prefix.
4431         * Rules (run-bench): Use it.
4432         * math/Makefile (run-regen-ulps): Likewise.
4433
4434         * Rules (bench): Remove eval.
4435
4436 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4437             Roland McGrath  <roland@hack.frob.com>
4438             Ondrej Bilka  <neleai@seznam.cz>
4439
4440         [BZ #15346]
4441         * time/getdate.c: Include ctype.h and alloca.h.
4442         (__getdate_r): Trim leading and trailing spaces of input.
4443         * time/tst-getdate.c (tests): Add tests with leading and
4444         trailing spaces.
4445
4446 2013-04-08  Roland McGrath  <roland@hack.frob.com>
4447
4448         [BZ #14280]
4449         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
4450         when computing value.
4451
4452 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
4453
4454         * math/README.libm-test (How can I generate "libm-test-ulps"?):
4455         Use testrun.sh to run libm tests.
4456
4457         [BZ #15309]
4458         * elf/dl-open.c (dl_open_worker): memset all of seen array.
4459
4460 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
4461
4462         [BZ #15264]
4463         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
4464
4465 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
4466
4467         * Makefile.in (regen-ulps): New target.
4468         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
4469         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
4470         [ifneq (no,$(PERL)] (regen-ulps): New target.
4471         [ifeq (no,$(PERL)] (regen-ulps): New target.
4472         * math/libm-test.inc (ulps_file_name): Define.
4473         (output_dir): New variable.
4474         (options): Add "output-dir" option.
4475         (parse_opt): Handle 'o' case.
4476         (main): If output_dir is non-NULL use it as a prefix
4477         otherwise use "".
4478         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
4479
4480 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
4481
4482         [BZ #10060, #10062]
4483         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
4484         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
4485         fail configure if __sync_val_compare_and_swap is not inlined.
4486         * sysdeps/i386/configure: Regenerate.
4487         * configure.in: Build for i686 when configured for i386.
4488         * configure: Regenerate.
4489         * README: Remove i386 reference.
4490
4491 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
4492
4493         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
4494         * sysdeps/s390/s390-64/sysdep.h: Likewise.
4495
4496 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
4497
4498         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
4499         (lmsnanval): New variables.
4500         (F): Add conversion tests.
4501         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
4502         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
4503
4504         * stdio-common/tstdiomisc.c (F): Properly collect individual
4505         tests' results.
4506
4507         [BZ #14686, #15336]
4508         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
4509         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
4510         Instead, use input NaN values or generate a qNaN by arithmetic
4511         operation.  Also fix bugs to comply with the standard.
4512         * math/libm-test.inc (remainder_test): Add more tests.
4513
4514         [BZ #15335, #15342]
4515         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
4516         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
4517         input NaN values or generate a qNaN by arithmetic operation.
4518
4519         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
4520         unreachable code.
4521
4522         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
4523         definitions.
4524
4525 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
4526
4527         [BZ #14478]
4528         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
4529         underflowed result.
4530         * math/s_cexpf.c (__cexpf): Likewise.
4531         * math/s_cexpl.c (__cexpl): Likewise.
4532         * math/libm-test.inc (cexp_test): Add more tests.
4533
4534 2013-04-03  Andreas Schwab  <schwab@suse.de>
4535
4536         [BZ #15330]
4537         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
4538         order arrays from heap if bigger than alloca cutoff.
4539
4540 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
4541
4542         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
4543         (SNAN_TESTS_double): Refer to GCC PR56831.
4544         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
4545         GCC PR56828.
4546
4547 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
4548
4549         * Rules (bench): Move bench.out after the run is complete.
4550
4551         * Rules (bench): Echo currently running benchmark.
4552
4553         * benchtests/Makefile (bench): Add atan and slowatan.
4554         * benchtests/atan-inputs: New file.
4555         * benchtests/slowatan-inputs: New file.
4556         * benchtests/slowatan.c: New file.
4557
4558         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
4559         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
4560         its value.
4561
4562         [BZ #15305]
4563         * sysdeps/unix/sysv/linux/kernel-features.h
4564         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
4565         __ASSUME_XFS_RESTRICTED_CHOWN.
4566         * sysdeps/unix/sysv/linux/pathconf.c
4567         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
4568         Save and restore errno.
4569
4570 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
4571
4572         [BZ #15327]
4573         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
4574         arguments using __kernel_casinh.
4575         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
4576         arguments using __kernel_casinhf.
4577         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
4578         arguments using __kernel_casinhl.
4579         * math/libm-test.inc (cacosh_test): Add more tests.
4580         * sysdeps/i386/fpu/libm-test-ulps: Update.
4581         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4582
4583 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
4584
4585         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
4586         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
4587
4588         * bench/Makefile (bench): Add sin and slowsin.
4589         * benchtests/sin-inputs: New file.
4590         * benchtests/slowsin-inputs: New file.
4591         * benchtests/slowsin.c: New file.
4592
4593         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
4594         (bench): Add slowexp and slowpow.
4595         (exp-ITER): Increase iterations.
4596         (pow-ITER): Likewise.
4597         * benchtests/exp-inputs: Change input.
4598         * benchtests/pow-inputs: Likewise.
4599         * benchtests/slowexp-inputs: New file.
4600         * benchtests/slowexp.c: New file.
4601         * benchtests/slowpow-inputs: New file.
4602         * benchtests/slowpow.c: New file.
4603
4604 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4605
4606         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
4607         instructions.
4608         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
4609         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
4610         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
4611         * benchtests/Makefile: Add rint benchtest.
4612         * benchtests/rint-inputs: Input for rint benchtest.
4613
4614 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
4615
4616         * Versions.def (libm): Add GLIBC_2.18.
4617         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
4618         hidden libm prototypes.
4619         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
4620         * math/Makefile (libm-calls): Add s_issignaling.
4621         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
4622         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
4623         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
4624         declaration.
4625         * math/math.h [__USE_GNU] (issignaling): New macro.
4626         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
4627         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
4628         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
4629         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
4630         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
4631         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
4632         * manual/arith.texi (issignaling): New section.
4633         * manual/libm-err-tab.pl (@all_functions): Update comment.
4634         * math/gen-libm-test.pl (parse_args): Apply special handling for
4635         issignaling.
4636         * math/libm-test.inc (print_float, issignaling_test): New
4637         functions.
4638         (check_float_internal): Add issignaling checks.
4639         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
4640         default definition.
4641         * sysdeps/powerpc/math-tests.h: New file.
4642         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
4643         tests.
4644         * math/test-snan.c (TEST_FUNC): Likewise.
4645
4646 2013-03-30  David S. Miller  <davem@davemloft.net>
4647
4648         * po/de.po: Update from translation team.
4649
4650 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
4651
4652         [BZ #10357]
4653         * math/k_casinh.c (__kernel_casinh): Handle arguments with
4654         imaginary part less than 1.0 and real part less than 0.5
4655         specially.
4656         * math/k_casinhf.c (__kernel_casinhf): Likewise.
4657         * math/k_casinhl.c (__kernel_casinhl): Likewise.
4658         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
4659         (cacos_test): Add more tests.
4660         (casin_test): Likewise.
4661         (casinh_test): Likewise.
4662         * sysdeps/i386/fpu/libm-test-ulps: Update.
4663         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4664
4665 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4666
4667         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
4668         ONE with its value.
4669
4670         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
4671         (__pow_mp): Replace ONE and MONE with their values.
4672         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
4673         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
4674         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
4675         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
4676         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
4677         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
4678
4679         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
4680
4681         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
4682         (__pow_mp): Replace ZERO and MZERO with their values.
4683         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
4684         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
4685         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
4686         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
4687         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
4688         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
4689         (__sqr): Likewise.
4690
4691         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
4692
4693         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
4694
4695 2013-03-28  Roland McGrath  <roland@hack.frob.com>
4696
4697         * include/stdlib.h [!SHARED] (__call_tls_dtors):
4698         Declare with __attribute__ ((weak)).
4699         * stdlib/exit.c (__libc_atexit) [!SHARED]:
4700         Call __call_tls_dtors only if it's not NULL.
4701
4702 2013-03-28  Roland McGrath  <roland@hack.frob.com>
4703
4704         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
4705         didn't do it already, then set _dl_phdr and _dl_phnum based on the
4706         magic __ehdr_start linker symbol if it's defined.
4707         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
4708         them up here if it was already done.
4709
4710         * elf/dl-support.c (_dl_phdr): Make pointer to const.
4711         (_dl_aux_init): Use const in cast when setting it.
4712         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
4713         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
4714         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
4715
4716         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
4717         Declare them here.
4718         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
4719         * csu/libc-tls.c: Nor here.
4720         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
4721
4722         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
4723         (__libc_message): Never call vsyslog.
4724
4725 2013-03-28  Alan Modra  <amodra@gmail.com>
4726
4727         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
4728         Define as empty.
4729         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
4730         Likewise.
4731
4732 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4733
4734         [BZ #15214]
4735         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
4736         underflow.
4737         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4738
4739 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4740
4741         [BZ #15304]
4742         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
4743         Don't add gid passed as argument.
4744
4745         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
4746
4747 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
4748
4749         [BZ #15307]
4750         * math/k_casinh.c (__kernel_casinh): Handle arguments with
4751         imaginary part between 1.0 and 1.5 and real part less than 0.5
4752         specially.
4753         * math/k_casinhf.c (__kernel_casinhf): Likewise.
4754         * math/k_casinhl.c (__kernel_casinhl): Likewise.
4755         * math/libm-test.inc (cacos_test): Add more tests.
4756         (casin_test): Likewise.
4757         (casinh_test): Likewise.
4758         * sysdeps/i386/fpu/libm-test-ulps: Update.
4759         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4760
4761 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
4762
4763         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
4764         constants.
4765         (norm): Likewise.
4766         (denorm): Likewise.
4767         (__dbl_mp): Likewise.
4768         (add_magnitudes): Likewise.
4769         (sub_magnitudes): Likewise.
4770         (__add): Likewise.
4771         (__sub): Likewise.
4772         (__mul): Likewise.
4773         (__sqr): Likewise.
4774         (__inv): Likewise.
4775         (__dvd): Likewise.
4776
4777         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
4778         commented code.
4779         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
4780         (__dubcos): Likewise.
4781         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
4782         (__ieee754_acos): Likewise.
4783         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
4784         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
4785         (__exp1): Likewise.
4786         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
4787         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
4788         (log1): Likewise.
4789         (my_log2): Likewise.
4790         (checkint): Likewise.
4791         * sysdeps/ieee754/dbl-64/e_remainder.c
4792         (__ieee754_remainder): Likewise.
4793         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
4794         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
4795         (bsloww): Likewise.
4796         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
4797
4798         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
4799         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
4800         MANTISSA_STORE_T to store computations on mantissa.  Use
4801         macros for rounding and division.
4802         (denorm): Likewise.
4803         (__dbl_mp): Likewise.
4804         (add_magnitudes): Likewise.
4805         (sub_magnitudes): Likewise.
4806         (__mul): Likewise.
4807         (__sqr): Likewise.
4808         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
4809         powers of two in terms of TWOPOW macro.
4810         (mp_no): Make type of mantissa as MANTISSA_T.
4811         [!RADIXI]: Define RADIXI.
4812         [!TWO52]: Define TWO52.
4813         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
4814
4815 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4816
4817         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
4818         llroundl symbol when building for PPC32.
4819
4820 2013-03-24  Mark H Weaver  <mhw@netris.org>
4821
4822         * manual/arith.texi (Normalization Functions): Fix prototypes for
4823         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
4824
4825 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4826
4827         [BZ #13889]
4828         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
4829         high value to check if expl overflow.
4830         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
4831         to check for underflow and overflow.
4832         * math/libm-test.inc: Add exp test.
4833
4834 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
4835
4836         [BZ #11120]
4837         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
4838         with NOT_IN_libc.
4839
4840 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
4841
4842         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
4843         symbol.
4844
4845 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4846
4847         * math/gen-libm-test.pl (parse_args, special_functions): Properly
4848         wrap blocks consisting of several statements.
4849
4850         * sysdeps/generic/math-tests.h: New file.
4851         * sysdeps/i386/fpu/math-tests.h: Likewise.
4852         * math/test-snan.c: Include it.
4853         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
4854
4855 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
4856
4857         [BZ #15285]
4858         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
4859         (__ieee754_j0l): Do not improve calculations using cos of twice
4860         input for inputs above LDBL_MAX / 2.0L.
4861         (__ieee754_y0l): Likewise.
4862         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
4863         (__ieee754_j1l): Do not improve calculations using cos of twice
4864         input for inputs above LDBL_MAX / 2.0L.
4865         (__ieee754_y1l): Likewise.
4866         * math/libm-test.inc (j0_test): Add another test.
4867         (j1_test): Likewise.
4868         (y0_test): Likewise.
4869         (y1_test): Likewise.
4870         * sysdeps/i386/fpu/libm-test-ulps: Update.
4871
4872 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4873
4874         * Rules ($(objpfx)bench-%.c): Include code from a C source
4875         file.
4876
4877 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
4878
4879         [BZ #15287]
4880         * math/k_casinh.c (__kernel_casinh): Handle arguments with
4881         imaginary part 1.0 and real part less than 0.5 specially.
4882         * math/k_casinhf.c (__kernel_casinhf): Likewise.
4883         * math/k_casinhl.c (__kernel_casinhl): Likewise.
4884         * math/libm-test.inc (cacos_test): Add more tests.
4885         (casin_test): Likewise.
4886         (casinh_test): Likewise.
4887         * sysdeps/i386/fpu/libm-test-ulps: Update.
4888         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4889
4890 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
4891
4892         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
4893         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
4894
4895 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
4896
4897         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
4898         * config.make.in (config-cflags-sse4): Remove variable.
4899         (config-cflags-avx): Likewise.
4900         (config-cflags-sse2avx): Likewise.
4901         (config-cflags-novzeroupper): Likewise.
4902         (config-asflags-i686): Likewise.
4903         (have-mfma4): Likewise.
4904         (have-as-vis3): Likewise.
4905         (MIG): Likewise.
4906         * configure.in (MIG): Do not AC_SUBST.
4907         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
4908         (libc_cv_cc_sse4): Do not AC_SUBST.
4909         (libc_cv_cc_avx): Likewise.
4910         (libc_cv_cc_sse2avx): Likewise.
4911         (libc_cv_cc_novzeroupper): Likewise.
4912         (libc_cv_cc_fma4): Likewise.
4913         (libc_cv_as_i686): Likewise.
4914         (libc_cv_sparc_as_vis3): Likewise.
4915         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
4916         LIBC_CONFIG_VAR.
4917         (config-asflags-i686): Likewise.
4918         (config-cflags-avx): Likewise.
4919         (config-cflags-sse2avx): Likewise.
4920         (have-mfma4): Likewise.
4921         (config-cflags-novzeroupper): Likewise.
4922         * sysdeps/mach/configure.in (MIG): Likewise.
4923         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
4924         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
4925         LIBC_CONFIG_VAR.
4926         (config-cflags-avx): Likewise.
4927         (config-cflags-sse2avx): Likewise.
4928         (have-mfma4): Likewise.
4929         (config-cflags-novzeroupper): Likewise.
4930         * configure: Regenerated.
4931         * sysdeps/i386/configure: Likewise.
4932         * sysdeps/mach/configure: Likewise.
4933         * sysdeps/sparc/configure: Likewise.
4934         * sysdeps/x86_64/configure: Likewise.
4935
4936 2013-03-20  Roland McGrath  <roland@hack.frob.com>
4937
4938         [BZ #14812]
4939         * locale/programs/localedef.c (options): Put N_ translation marker
4940         on argument names, not just descriptions.
4941
4942 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
4943
4944         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
4945
4946 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
4947
4948         [BZ #14176]
4949         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
4950
4951 2013-03-19  Roland McGrath  <roland@hack.frob.com>
4952
4953         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
4954         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
4955         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
4956         [!BEFORE_ABORT] (before_abort): New function.
4957         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
4958         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
4959         (writev_for_fatal): New function.
4960         (WRITEV_FOR_FATAL): New macro; call that.
4961         (backtrace_and_maps): New function.
4962         (BEFORE_ABORT): New macro; call that.
4963         (struct str_list): Type removed.
4964         (__libc_message, __libc_fatal): Functions removed.
4965         Include <sysdeps/posix/libc_fatal.c> instead.
4966
4967 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
4968
4969         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
4970         constants.
4971         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
4972         double constants.
4973
4974 2013-03-19  Andreas Schwab  <schwab@suse.de>
4975
4976         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
4977         * sysdeps/gnu/configure: Regenerate.
4978
4979         * configure.in: Substitute libc_cv_rtlddir.
4980         * configure: Regenerate.
4981         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
4982         * Makeconfig (rtlddir, inst_rtlddir): New variables.
4983         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
4984         * elf/Makefile (install-others, CFLAGS-interp.c)
4985         (ldso_install, common-ldd-rewrite): Likewise.
4986         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
4987         $(inst_slibdir)/$(rtld-installed-name).
4988         * scripts/rellns-sh: Add -p option.
4989         * Makerules (make-shlib-link): Use rellns-sh to get relative name
4990         for source.
4991
4992 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
4993
4994         * manual/nptl.texi: Renamed to ...
4995         * manual/threads.texi: ... this.
4996         * manual/Makefile (chapters): Update.
4997
4998 2013-03-18  Roland McGrath  <roland@hack.frob.com>
4999
5000         [BZ #14812]
5001         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
5002         on argument names, not just descriptions.
5003         * malloc/memusagestat.c (options): Likewise.
5004         * nss/getent.c (options): Likewise.
5005
5006 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
5007
5008         [BZ #14812]
5009         * iconv/iconv_prog.c (options): Put N_ translation marker
5010         on argument names, not just descriptions.
5011         * iconv/iconvconfig.c (options): Likewise.
5012
5013 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
5014
5015         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
5016         implementation which is faster on all x86_64 architectures.
5017         Tested on AMD, Intel Nehalem, SNB, IVB.
5018         * sysdeps/x86_64/strnlen.S: Likewise.
5019
5020         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
5021         Remove all multiarch strlen and strnlen versions.
5022         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
5023         Remove strlen and strnlen related parts.
5024
5025         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
5026         Inline strlen part.
5027         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
5028
5029         * sysdeps/x86_64/multiarch/strlen.S: Remove.
5030         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
5031         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
5032         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
5033         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
5034         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
5035
5036 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
5037
5038         * manual/memory.texi (Malloc Tunable Parameters):
5039         Sort parameters alphabetically. Add comments for missing entries.
5040
5041 2013-03-17  David S. Miller  <davem@davemloft.net>
5042
5043         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5044
5045 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
5046
5047         [BZ #15283]
5048         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
5049         for arguments at most half maximum finite value.
5050         * math/libm-test.inc (j0_test): Add more tests.
5051         (j1_test): Likewise.
5052         (y0_test): Likewise.
5053         (y1_test): Likewise.
5054         * sysdeps/i386/fpu/libm-test-ulps: Update.
5055         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5056
5057         [BZ #14155]
5058         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
5059         1 / x and functions P and Q for arguments above 0x1p256L.
5060         (__ieee754_y0l): Likewise.
5061         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
5062         (__ieee754_y1l): Likewise.
5063         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
5064         (j1_test): Likewise.
5065         (y0_test): Likewise.
5066         (y1_test): Likewise.
5067
5068 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
5069
5070         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
5071         variable.
5072
5073 2013-03-15  Roland McGrath  <roland@hack.frob.com>
5074
5075         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
5076         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
5077         zero since it's initialized to EXEC_PAGESIZE.
5078
5079         * sysdeps/unix/sysv/linux/ldsodefs.h
5080         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
5081         * sysdeps/generic/ldsodefs.h: ... here.
5082
5083 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
5084
5085         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
5086
5087         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
5088         math/test-snan.c.
5089         * math/test-snan.c: Renamed from
5090         sysdeps/powerpc/fpu/test-powerpc-snan.c.
5091         * math/Makefile (tests): Add test-snan.
5092         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
5093         test-powerpc-snan.
5094
5095         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
5096         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
5097         functions.
5098         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
5099         __builtin_nan family of functions.
5100         * math/libm-test.inc (initialize): Initialize qnan_value with
5101         __builtin_nan family of functions.
5102         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
5103         Remove variables.
5104         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
5105         Remove functions.
5106         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
5107         storage class.  Initialize qNaN_var and sNaN_var with
5108         __builtin_nan and __builtin_nans families of functions,
5109         respectively.
5110
5111         * math/libm-test.inc (acosh_test): Also test with qNaN input.
5112         (sqrt_test): Remove duplicate test with qNaN input.
5113         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
5114         (round_test, signbit_test, significand_test): Note missing +/-Inf
5115         as well as qNaN tests.
5116
5117         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
5118         qNaN_var.  Fix a few strings, too.
5119         * math/libm-test.inc (nan_value): Rename to qnan_value.
5120         * math/gen-libm-test.pl (%beautify): Adjust to that.
5121         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
5122         * math/test-misc.c (main): Likewise.
5123         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
5124         to __qnan_bytes, and __qnan_union, respectively.
5125         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
5126         Likewise.
5127         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
5128         and lqnanval, respectively.
5129         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
5130         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
5131         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
5132         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
5133
5134         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
5135         * math/test-misc.c (main) [__x86_64__]: Enable test for long
5136         doubles.
5137
5138         * math/test-misc.c (main): Fix copy'n'pastos.
5139         * misc/tst-efgcvt.c (special): Likewise.
5140
5141         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
5142         Remove declarations.
5143
5144 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
5145
5146         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
5147         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
5148         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
5149         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
5150
5151 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5152
5153         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
5154         macro to return vdso values correctly in IFUNC implementations.
5155         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
5156         Optimization by using IFUNC.
5157
5158 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
5159             Richard Henderson  <rth@redhat.com>
5160             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
5161
5162         * Makefile.in (bench): New target.
5163         * NEWS: Mention the benchmark framework.
5164         * Rules (bench): Likewise.
5165         (binaries-bench): Generate binaries for functions to
5166         benchmark.
5167         * benchtests/Makefile: New makefile for benchmark tests.
5168         * benchtests/bench-skeleton.c: New skeleton file for benchmark
5169         programs.
5170         * benchtests/exp-inputs: New input file for EXP function.
5171         * benchtests/pow-inputs: New input file for POW function.
5172         * scripts/bench.pl: New script to generate source files for
5173         benchmark programs.
5174
5175 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
5176
5177         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
5178         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
5179         computations on mantissa.  Use macros for rounding and
5180         division.
5181         (denorm): Likewise.
5182         (__dbl_mp): Likewise.
5183         (add_magnitudes): Likewise.
5184         (sub_magnitudes): Likewise.
5185         (__mul): Likewise.
5186         (__sqr): Likewise.
5187         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
5188         powers of two in terms of TWOPOW macro.
5189         (mp_no): Make type of mantissa as MANTISSA_T.
5190         [!RADIXI]: Define RADIXI.
5191         [!TWO52]: Define TWO52.
5192         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
5193
5194         * manual/nptl.texi (cindex): Modify threads to pthreads.
5195
5196 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
5197
5198         * sysdeps/x86_64/preconfigure: Regenerated.
5199
5200 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
5201
5202         [BZ #14155]
5203         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
5204         0x1p28 and above.
5205         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
5206         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
5207         0x1p28 and above.
5208         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
5209         * math/libm-test.inc (j0_test): Do not allow one spurious
5210         underflow exception.
5211         (y1_test): Likewise.
5212
5213 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
5214
5215         * manual/Makefile (chapters): Add nptl.
5216         * manual/debug.texi (Debugging Support): Add link to Threads
5217         chapter.
5218         * manual/nptl.texi: New file.
5219
5220         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
5221
5222 2013-03-14  Petr Baudis  <pasky@ucw.cz>
5223
5224         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
5225         for non-NULL pointer before the memory validity test. Pointed
5226         out by Holger Brunck <holger.brunck@keymile.com>.
5227
5228 2013-03-13  Andreas Schwab  <schwab@suse.de>
5229
5230         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
5231         instead of .os.
5232
5233 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
5234
5235         * timezone/zic.c: Update from tzcode 2013b.
5236
5237 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
5238
5239         * manual/install.texi (Configuring and compiling):
5240         Mention i686 and i586.
5241         * INSTALL: Regenerate.
5242
5243 2013-03-12  Roland McGrath  <roland@hack.frob.com>
5244
5245         * sysdeps/init_array/elf-init.c: New file.
5246         * csu/elf-init.c
5247         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
5248         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
5249
5250         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
5251         __gmon_start__ as global, but as static with a .preinit_array pointer.
5252         * sysdeps/init_array/gmon-start.c: New file.  Use that.
5253         * sysdeps/init_array/crti.S: New file, empty except for comments.
5254         * sysdeps/init_array/crtn.S: Likewise.
5255
5256 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
5257
5258         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
5259         definining bcopy.
5260         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
5261         Remove Prefer_SSE_for_memop.
5262         * sysdeps/x86_64/multiarch/init-arch.h: Remove
5263         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
5264         HAS_PREFER_SSE_FOR_MEMOP.
5265         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
5266         memset-x86-64.
5267         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
5268         Remove bzero, memset ifunc support.
5269         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
5270         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
5271         * sysdeps/x86_64/multiarch/memset.S: Likewise.
5272         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
5273
5274 2013-03-11  Andreas Schwab  <schwab@suse.de>
5275
5276         [BZ #15234]
5277         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
5278         by SHLIB_COMPAT.
5279         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
5280         (GLIBC_2.16): Remove pthread_atfork.
5281
5282 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
5283
5284         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
5285         (ptestcases.h): Likewise.
5286
5287 2013-03-08  Roland McGrath  <roland@hack.frob.com>
5288
5289         * Makeconfig ($(common-objpfx)config.status): Depend on
5290         sysdeps/*/preconfigure{,.in} too.
5291
5292 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
5293
5294         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
5295         (__free_hook): Use void * instead of __malloc_ptr_t.
5296         (__malloc_hook): Likewise.
5297         (__realloc_hook): Likewise.
5298         (__memalign_hook): Likewise.
5299         (__after_morecore_hook): Likewise.
5300         * malloc/arena.c (save_malloc_hook): Likewise.
5301         (save_free_hook): Likewise.
5302         * malloc/hooks.c (malloc_hook_ini): Likewise.
5303         (realloc_hook_ini): Likewise.
5304         (memalign_hook_ini): Likewise.
5305         * malloc/malloc.c (malloc_hook_ini): Likewise.
5306         (realloc_hook_ini): Likewise.
5307         (memalign_hook_ini): Likewise.
5308         (__free_hook): Likewise.
5309         (__malloc_hook): Likewise.
5310         (__realloc_hook): Likewise.
5311         (__memalign_hook): Likewise.
5312         (__libc_malloc): Likewise.
5313         (__libc_free): Likewise.
5314         (__libc_realloc): Likewise.
5315         (__libc_memalign): Likewise.
5316         (__libc_valloc): Likewise.
5317         (__libc_pvalloc): Likewise.
5318         (__libc_calloc): Likewise.
5319         (__posix_memalign): Likewise.
5320         * malloc/morecore.c (__sbrk): Likewise.
5321         (__default_morecore): Likewise.
5322
5323         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
5324
5325         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
5326         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
5327         __malloc_ptrdiff_t.
5328
5329         * malloc/malloc.h (__malloc_size_t): Remove macro.
5330         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
5331         __malloc_size_t.
5332         (old_memalign_hook): Likewise.
5333         (old_realloc_hook): Likewise.
5334         (struct hdr): Likewise.
5335         (flood): Likewise.
5336         (mallochook): Likewise.
5337         (memalignhook): Likewise.
5338         (reallochook): Likewise.
5339         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
5340         (tr_old_realloc_hook): Likewise.
5341         (tr_old_memalign_hook): Likewise.
5342         (tr_mallochook): Likewise.
5343         (tr_reallochook): Likewise.
5344         (tr_memalignhook): Likewise.
5345
5346 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5347
5348         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
5349         default_ldbl_pack and using as default implementation.
5350         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
5351         implementation.
5352         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
5353         redundant definition.
5354         (ldbl_insert_mantissa): Likewise.
5355         (ldbl_canonicalize): Likewise.
5356         (ldbl_nearbyint): Likewise.
5357         (ldbl_pack): Rename to ldbl_pack_ppc.
5358         (ldbl_unpack): Rename to ldbl_unpack_ppc.
5359         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
5360         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
5361
5362 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
5363
5364         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
5365         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
5366         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
5367         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
5368         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
5369         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
5370         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
5371         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
5372
5373 2013-03-07  Andreas Jaeger  <aj@suse.de>
5374
5375         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5376         bits/mman-linux.h.
5377
5378 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
5379
5380         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
5381         Include mpa.h and declare __MPEXP.
5382         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
5383         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
5384         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
5385         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
5386         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
5387         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
5388         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
5389
5390         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
5391         (__slowpow): Use long double EXPL and LOGL functions to
5392         compute POW.
5393         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
5394         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
5395         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
5396         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
5397         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
5398         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
5399
5400         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
5401         intermediate variable to calculate exponent.
5402         (__sqr): Likewise.
5403         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
5404         Likewise.
5405         (__sqr): Likewise.
5406
5407         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
5408         [!NO__SQR]: Define __sqr.
5409         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
5410         and NO__SQR.  Remove all code except __mul and __sqr.  Include
5411         sysdeps/ieee754/dbl-64/mpa.c.
5412         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
5413
5414         [BZ #12723]
5415         * posix/Makefile (tests): Add tst-pathconf.
5416         * posix/tst-pathconf.c: New test case.
5417         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
5418         _PC_PIPE_BUF.
5419         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
5420
5421 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
5422
5423         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
5424
5425 2013-03-06  Andreas Jaeger  <aj@suse.de>
5426
5427         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
5428         definition via __MAP_ANONYMOUS.
5429
5430         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
5431         it's not part of Linux headers.
5432
5433         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
5434         (MAP_HUGE_MASK): Define.
5435
5436         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
5437         Define.
5438         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
5439         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
5440         Define.
5441         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
5442         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
5443         Define.
5444         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
5445         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
5446         Define.
5447         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
5448
5449         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
5450         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
5451         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
5452         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
5453         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
5454         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
5455
5456         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
5457         Handle f2fs.
5458
5459         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
5460         Handle f2fs and efivarfs.
5461
5462         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
5463         f2fs.
5464
5465         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
5466         (EFIVARFS_MAGIC): Add.
5467         (F2FS_LINK_MAX): Add.
5468
5469 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
5470
5471         * stdio-common/vfprintf.c: Replace __builtin_expect with
5472         __glibc_unlikely.
5473
5474 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
5475
5476         [BZ #13550]
5477         * sysdeps/generic/bp-sym.h: Remove file.
5478         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
5479         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
5480         <bp-sym.h> and <bp-asm.h>.
5481         (__longjmp): Don't use BP_SYM.
5482         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
5483         and <bp-asm.h>.
5484         (memcpy): Don't use BP_SYM.
5485         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
5486         <bp-sym.h> and <bp-asm.h>.
5487         (memcpy): Don't use BP_SYM.
5488         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
5489         <bp-asm.h>.
5490         (memcpy): Don't use BP_SYM.
5491         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
5492         <bp-asm.h>.
5493         (memset): Don't use BP_SYM.
5494         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
5495         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
5496         (__bzero): Don't use BP_SYM.
5497         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
5498         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
5499         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
5500         <bp-sym.h> and <bp-asm.h>.
5501         (memcmp): Don't use BP_SYM.  Remove comment about bounded
5502         pointers.
5503         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
5504         <bp-sym.h> and <bp-asm.h>.
5505         (memcpy): Don't use BP_SYM.
5506         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
5507         <bp-sym.h> and <bp-asm.h>.
5508         (memset): Don't use BP_SYM.
5509         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
5510         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
5511         (__bzero): Don't use BP_SYM.
5512         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
5513         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
5514         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
5515         <bp-sym.h> and <bp-asm.h>.
5516         (strncmp): Don't use BP_SYM.  Remove comment about bounded
5517         pointers.
5518         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
5519         <bp-sym.h> and <bp-asm.h>.
5520         (memcpy): Don't use BP_SYM.
5521         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
5522         <bp-sym.h> and <bp-asm.h>.
5523         (memset): Don't use BP_SYM.
5524         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
5525         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
5526         (__bzero): Don't use BP_SYM.
5527         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
5528         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
5529         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
5530         <bp-sym.h> and <bp-asm.h>.
5531         (__memchr): Don't use BP_SYM.
5532         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
5533         <bp-sym.h> and <bp-asm.h>.
5534         (memcmp): Don't use BP_SYM.  Remove comment about bounded
5535         pointers.
5536         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
5537         <bp-sym.h> and <bp-asm.h>.
5538         (memcpy): Don't use BP_SYM.
5539         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
5540         <bp-sym.h> and <bp-asm.h>.
5541         (__mempcpy): Don't use BP_SYM.
5542         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
5543         <bp-sym.h> and <bp-asm.h>.
5544         (__memrchr): Don't use BP_SYM.
5545         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
5546         <bp-sym.h> and <bp-asm.h>.
5547         (memset): Don't use BP_SYM.
5548         (__bzero): Likewise.
5549         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
5550         <bp-sym.h> and <bp-asm.h>.
5551         (__rawmemchr): Don't use BP_SYM.
5552         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
5553         <bp-sym.h> and <bp-asm.h>.
5554         (__STRCMP): Don't use BP_SYM.
5555         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
5556         <bp-sym.h> and <bp-asm.h>.
5557         (strchr): Don't use BP_SYM.
5558         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
5559         <bp-sym.h> and <bp-asm.h>.
5560         (__strchrnul): Don't use BP_SYM.
5561         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
5562         <bp-sym.h> and <bp-asm.h>.
5563         (strlen): Don't use BP_SYM.
5564         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
5565         <bp-sym.h> and <bp-asm.h>.
5566         (strncmp): Don't use BP_SYM.  Remove comment about bounded
5567         pointers.
5568         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
5569         <bp-sym.h> and <bp-asm.h>.
5570         (__strnlen): Don't use BP_SYM.
5571         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
5572         <bp-sym.h> and <bp-asm.h>.
5573         (__GI__setjmp): Don't use BP_SYM.
5574         (_setjmp): Likewise.
5575         (__sigsetjmp): Likewise.
5576         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
5577         (L(start_addresses)): Don't use BP_SYM.
5578         (_start): Likewise.
5579         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
5580         <bp-asm.h>.
5581         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
5582         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
5583         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
5584         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
5585         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
5586         <bp-asm.h>.
5587         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
5588         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
5589         about bounded pointers.
5590         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
5591         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
5592         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
5593         <bp-asm.h>.
5594         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
5595         about bounded pointers.  Remove GKM FIXME comments.
5596         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
5597         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
5598         <bp-asm.h>.
5599         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
5600         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
5601         Remove GKM FIXME comments.
5602         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
5603         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
5604         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
5605         <bp-asm.h>.
5606         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
5607         about bounded pointers.  Remove GKM FIXME comment.
5608         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
5609         and <bp-asm.h>.
5610         (strncmp): Don't use BP_SYM.  Remove comment about bounded
5611         pointers.
5612         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
5613         <bp-sym.h> and <bp-asm.h>.
5614         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
5615         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
5616         <bp-sym.h> and <bp-asm.h>.
5617         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
5618         comment.
5619
5620 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
5621
5622         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
5623         call free(NULL).
5624
5625 2013-03-05  David S. Miller  <davem@davemloft.net>
5626
5627         * po/es.po: Update from translation team.
5628
5629 2013-03-05  Andreas Jaeger  <aj@suse.de>
5630
5631         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
5632         <bits/mman-linux.h>.
5633         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
5634         is fine.
5635         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
5636         <bits/mman-linux.h> to end of file.
5637         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
5638         is fine.
5639         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
5640         <bits/mman-linux.h> to end of file.
5641         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
5642         is fine.
5643         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
5644         <bits/mman-linux.h> to end of file.
5645
5646         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
5647         (MCL_CURRENT, MCL_FUTURE): Define here.
5648
5649 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5650
5651         [BZ #15232]
5652         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
5653         attribute_hidden.
5654         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
5655
5656 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
5657
5658         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
5659         fourth parameter needed for rt_sigprocmask syscall.
5660         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
5661         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
5662         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
5663         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
5664         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
5665         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
5666
5667 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
5668
5669         [BZ #13550]
5670         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
5671         comment about bounded pointers.
5672         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
5673         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
5674
5675 2013-03-04  Andreas Jaeger  <aj@suse.de>
5676
5677         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
5678         common definitions.
5679
5680         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
5681         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
5682         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
5683         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
5684         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
5685         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
5686
5687 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5688
5689         [BZ #15055]
5690         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
5691         __ieee754_sqrl instead of __sqrl.
5692
5693 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
5694
5695         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
5696         * sysdeps/powerpc/fpu_control.h: ... here.
5697         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
5698         * sysdeps/powerpc/bits/fenvinline.h: ... here.
5699         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
5700         * sysdeps/powerpc/bits/mathinline.h: ... here.
5701
5702 2013-03-01  Roland McGrath  <roland@hack.frob.com>
5703
5704         * elf/dl-hwcaps.c (_dl_important_hwcaps):
5705         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
5706         to just [NEED_DL_SYSINFO_DSO].
5707         * elf/dl-support.c: Likewise.
5708         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
5709         * elf/rtld.c (dl_main): Likewise.
5710         * elf/setup-vdso.h (setup_vdso): Likewise.
5711         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
5712         * sysdeps/unix/sysv/linux/dl-sysdep.c
5713         (_dl_discover_osversion): Likewise.
5714
5715 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
5716
5717         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
5718         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
5719
5720 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
5721
5722         * NEWS: Mention libm performance improvements and non-x86 PI
5723         futex support.
5724
5725         * csu/libc-start.c (__pthread_initialize_minimal): Change
5726         function arguments.
5727         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
5728
5729 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
5730
5731         [BZ #13550]
5732         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
5733         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
5734         <bp-sym.h> and <bp-asm.h>.
5735         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
5736         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
5737         and <bp-asm.h>.
5738         (memcpy): Don't use BP_SYM.
5739         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
5740         <bp-asm.h>.
5741         (__mpn_add_n): Don't use BP_SYM.
5742         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
5743         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
5744         and <bp-asm.h>.
5745         (__mpn_addmul_1): Don't use BP_SYM.
5746         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
5747         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
5748         <bp-sym.h>.
5749         (_setjmp): Don't use BP_SYM.
5750         (__novmx_setjmp): Likewise.
5751         (__GI__setjmp): Likewise.
5752         (__vmx_setjmp): Likewise.
5753         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
5754         <bp-sym.h>.
5755         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
5756         (__bzero): Don't use BP_SYM.
5757         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
5758         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
5759         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
5760         <bp-sym.h> and <bp-asm.h>.
5761         (memcpy): Don't use BP_SYM.
5762         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
5763         <bp-sym.h> and <bp-asm.h>.
5764         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
5765         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
5766         <bp-sym.h> and <bp-asm.h>.
5767         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
5768         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
5769         <bp-asm.h>.
5770         (__mpn_lshift): Don't use BP_SYM.
5771         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
5772         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
5773         <bp-asm.h>.
5774         (memset): Don't use BP_SYM.
5775         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
5776         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
5777         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
5778         <bp-asm.h>.
5779         (__mpn_mul_1): Don't use BP_SYM.
5780         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
5781         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
5782         <bp-sym.h> and <bp-asm.h>.
5783         (memcmp): Don't use BP_SYM.
5784         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
5785         <bp-sym.h> and <bp-asm.h>.
5786         (memcpy): Don't use BP_SYM.
5787         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
5788         <bp-sym.h> and <bp-asm.h>.
5789         (memset): Don't use BP_SYM.
5790         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
5791         <bp-sym.h> and <bp-asm.h>.
5792         (strncmp): Don't use BP_SYM.
5793         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
5794         <bp-sym.h> and <bp-asm.h>.
5795         (memcpy): Don't use BP_SYM.
5796         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
5797         <bp-sym.h> and <bp-asm.h>.
5798         (memset): Don't use BP_SYM.
5799         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
5800         <bp-sym.h> and <bp-asm.h>.
5801         (__memchr): Don't use BP_SYM.
5802         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
5803         <bp-sym.h> and <bp-asm.h>.
5804         (memcmp): Don't use BP_SYM.
5805         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
5806         <bp-sym.h> and <bp-asm.h>.
5807         (memcpy): Don't use BP_SYM.
5808         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
5809         <bp-sym.h> and <bp-asm.h>.
5810         (__mempcpy): Don't use BP_SYM.
5811         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
5812         <bp-sym.h> and <bp-asm.h>.
5813         (__memrchr): Don't use BP_SYM.
5814         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
5815         <bp-sym.h> and <bp-asm.h>.
5816         (memset): Don't use BP_SYM.
5817         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
5818         <bp-sym.h> and <bp-asm.h>.
5819         (__rawmemchr): Don't use BP_SYM.
5820         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
5821         <bp-sym.h> and <bp-asm.h>.
5822         (__STRCMP): Don't use BP_SYM.
5823         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
5824         <bp-sym.h> and <bp-asm.h>.
5825         (strchr): Don't use BP_SYM.
5826         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
5827         <bp-sym.h> and <bp-asm.h>.
5828         (__strchrnul): Don't use BP_SYM.
5829         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
5830         <bp-sym.h> and <bp-asm.h>.
5831         (strlen): Don't use BP_SYM.
5832         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
5833         <bp-sym.h> and <bp-asm.h>.
5834         (strncmp): Don't use BP_SYM.
5835         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
5836         <bp-sym.h> and <bp-asm.h>.
5837         (__strnlen): Don't use BP_SYM.
5838         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
5839         <bp-asm.h>.
5840         (__mpn_rshift): Don't use BP_SYM.
5841         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
5842         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
5843         <bp-sym.h> and <bp-asm.h>.
5844         (__sigsetjmp): Don't use BP_SYM.
5845         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
5846         (L(start_addresses)): Don't use BP_SYM.
5847         (_start): Likewise.
5848         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
5849         <bp-asm.h>.
5850         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
5851         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
5852         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
5853         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
5854         <bp-asm.h>.
5855         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
5856         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
5857         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
5858         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
5859         <bp-asm.h>.
5860         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
5861         comments.
5862         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
5863         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
5864         <bp-asm.h>.
5865         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
5866         FIXME comments.
5867         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
5868         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
5869         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
5870         <bp-asm.h>.
5871         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
5872         comment.
5873         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
5874         and <bp-asm.h>.
5875         (strncmp): Don't use BP_SYM,
5876         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
5877         <bp-asm.h>.
5878         (__mpn_sub_n): Don't use BP_SYM.
5879         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
5880         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
5881         and <bp-asm.h>.
5882         (__mpn_submul_1): Don't use BP_SYM.
5883         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
5884         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
5885         <bp-sym.h> and <bp-asm.h>.
5886         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
5887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
5888         <bp-sym.h> and <bp-asm.h>.
5889         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
5890         comment.
5891
5892 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
5893
5894         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
5895         Use ZK to minimize writes to Z.
5896         (sub_magnitudes): Simplify code a bit.
5897         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
5898         Use ZK to minimize writes to Z.
5899         (sub_magnitudes): Simplify code a bit.
5900
5901 2013-02-27  Roland McGrath  <roland@hack.frob.com>
5902
5903         * csu/gmon-start.c: Add special exception to license text.
5904
5905 2013-02-27  Richard Henderson  <rth@redhat.com>
5906
5907         * scripts/config.guess: Update from config.git.
5908         * scripts/config.sub: Likewise.
5909
5910 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
5911
5912         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
5913
5914         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
5915
5916         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
5917
5918         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
5919
5920         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
5921
5922 2013-02-26  Roland McGrath  <roland@hack.frob.com>
5923
5924         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
5925         [$(build-shared = yes].
5926
5927 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5928
5929         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
5930         (__mul): Reduce iterations for calculating mantissa.
5931
5932         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
5933         MPTWO.
5934         (__mpranred): Likewise.
5935
5936         [BZ #15160]
5937         * malloc/memusagestat.c (main): Draw graphs for heap and stack
5938         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
5939
5940 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
5941
5942         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
5943         Define __attribute__.
5944
5945 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
5946
5947         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
5948         unused.
5949         * posix/regex_internal.h (__attribute): Remove.
5950         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
5951         (re_string_context_at): Likewise.
5952         (bitset_not): Use __attribute__ and mark function as possibly
5953         unused.
5954         (bitset_merge): Likewise.
5955         (bitset_mask): Likewise.
5956         (re_string_char_size_at): Likewise.
5957         (re_string_wchar_at): Likewise.
5958         (re_string_elem_size_at): Likewise.
5959
5960 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
5961
5962         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
5963         code.
5964         (cc32): Likewise.
5965
5966         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
5967         (__acr): Likewise.
5968         (__cpy): Likewise.
5969         (norm): Likewise.
5970         (denorm): Likewise.
5971         (__dbl_mp): Likewise.
5972         (add_magnitudes): Likewise.
5973         (sub_magnitudes): Likewise.
5974         (__mul): Likewise.
5975         (__inv): Likewise.
5976
5977         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
5978         style.
5979
5980         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
5981         style.
5982
5983         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
5984         code.
5985
5986         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
5987         up changes with default code.
5988         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
5989         Likewise.
5990
5991 2013-02-24  Allan McRae  <allan@archlinux.org>
5992
5993         * manual/socket.texi (The Internet Namespace): Order menu items
5994         to match that in the file.
5995
5996         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
5997         node listing of the info page menu.
5998
5999 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
6000
6001         [BZ #13550]
6002         * sysdeps/i386/bp-asm.h: Remove file.
6003         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
6004         (PARMS): Do not use macros from bp-asm.h.
6005         (S1): Likewise.
6006         (S2): Likewise.
6007         (SIZE): Likewise.
6008         (__mpn_add_n): Do not use BP_SYM
6009         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
6010         "bp-asm.h".
6011         (PARMS): Do not use macros from bp-asm.h.
6012         (S1): Likewise.
6013         (SIZE): Likewise.
6014         (__mpn_addmul_1): Do not use BP_SYM
6015         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
6016         "bp-asm.h".
6017         (PARMS): Do not use macros from bp-asm.h.
6018         (SIGMSK): Likewise.
6019         (_setjmp): Likewise.  Do not use BP_SYM.
6020         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
6021         "bp-asm.h".
6022         (PARMS): Do not use macros from bp-asm.h.
6023         (SIGMSK): Likewise.
6024         (setjmp): Likewise.  Do not use BP_SYM.
6025         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
6026         "bp-asm.h".
6027         (PARMS): Do not use macros from bp-asm.h.
6028         (__frexp): Do not use BP_SYM.
6029         (frexp): Likewise.
6030         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
6031         "bp-asm.h".
6032         (PARMS): Do not use macros from bp-asm.h.
6033         (__frexpf): Do not use BP_SYM.
6034         (frexpf): Likewise.
6035         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
6036         "bp-asm.h".
6037         (PARMS): Do not use macros from bp-asm.h.
6038         (__frexpl): Do not use BP_SYM.
6039         (frexpl): Likewise.
6040         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
6041         "bp-asm.h".
6042         (PARMS): Do not use macros from bp-asm.h.
6043         (__remquo): Do not use BP_SYM.
6044         (remquo): Likewise.
6045         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
6046         "bp-asm.h".
6047         (PARMS): Do not use macros from bp-asm.h.
6048         (__remquof): Do not use BP_SYM.
6049         (remquof): Likewise.
6050         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
6051         "bp-asm.h".
6052         (PARMS): Do not use macros from bp-asm.h.
6053         (__remquol): Do not use BP_SYM.
6054         (remquol): Likewise.
6055         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
6056         "bp-asm.h".
6057         (PARMS): Do not use macros from bp-asm.h.
6058         (DEST): Likewise.
6059         (SRC): Likewise.
6060         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
6061         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
6062         "bp-asm.h".
6063         (PARMS): Do not use macros from bp-asm.h.
6064         (strlen): Do not use BP_SYM.
6065         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
6066         "bp-asm.h".
6067         (PARMS): Do not use macros from bp-asm.h.
6068         (S1): Likewise.
6069         (S2): Likewise.
6070         (SIZE): Likewise.
6071         (__mpn_add_n): Do not use BP_SYM.
6072         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
6073         "bp-asm.h".
6074         (PARMS): Do not use macros from bp-asm.h.
6075         (S1): Likewise.
6076         (SIZE): Likewise.
6077         (__mpn_addmul_1): Do not use BP_SYM.
6078         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
6079         weak_alias.
6080         (bzero): Likewise.
6081         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
6082         "bp-asm.h".
6083         (PARMS): Do not use macros from bp-asm.h.
6084         (S): Likewise.
6085         (SIZE): Likewise.
6086         (__mpn_lshift): Do not use BP_SYM.
6087         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
6088         "bp-asm.h".
6089         (PARMS): Do not use macros from bp-asm.h.
6090         (DEST): Likewise.
6091         (SRC): Likewise.
6092         (LEN): Likewise.
6093         (memcpy): Likewise.  Do not use BP_SYM.
6094         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
6095         libc_hidden_def and weak_alias.
6096         (mempcpy): Do not use BP_SYM in weak_alias.
6097         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
6098         "bp-asm.h".
6099         (PARMS): Do not use macros from bp-asm.h.
6100         (DEST): Likewise.
6101         (LEN): Likewise.
6102         [!BZERO_P] (CHR): Likewise.
6103         (memset): Likewise.  Do not use BP_SYM.
6104         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
6105         "bp-asm.h".
6106         (PARMS): Do not use macros from bp-asm.h.
6107         (S1): Likewise.
6108         (SIZE): Likewise.
6109         (__mpn_mul_1): Do not use BP_SYM.
6110         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
6111         "bp-asm.h".
6112         (PARMS): Do not use macros from bp-asm.h.
6113         (S): Likewise.
6114         (SIZE): Likewise.
6115         (__mpn_rshift): Do not use BP_SYM.
6116         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
6117         "bp-asm.h".
6118         (PARMS): Do not use macros from bp-asm.h.
6119         (STR): Likewise.
6120         (CHR): Likewise.
6121         (strchr): Likewise.  Do not use BP_SYM.
6122         (index): Do not use BP_SYM in weak_alias.
6123         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
6124         "bp-asm.h".
6125         (PARMS): Do not use macros from bp-asm.h.
6126         (DEST): Likewise.
6127         (SRC): Likewise.
6128         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
6129         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
6130         "bp-asm.h".
6131         (PARMS): Do not use macros from bp-asm.h.
6132         (strlen): Do not use BP_SYM.
6133         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
6134         "bp-asm.h".
6135         (PARMS): Do not use macros from bp-asm.h.
6136         (S1): Likewise.
6137         (S2): Likewise.
6138         (SIZE): Likewise.
6139         (__mpn_sub_n): Do not use BP_SYM.
6140         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
6141         "bp-asm.h".
6142         (PARMS): Do not use macros from bp-asm.h.
6143         (S1): Likewise.
6144         (SIZE): Likewise.
6145         (__mpn_submul_1): Do not use BP_SYM.
6146         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
6147         "bp-asm.h".
6148         (PARMS): Do not use macros from bp-asm.h.
6149         (S1): Likewise.
6150         (S2): Likewise.
6151         (SIZE): Likewise.
6152         (__mpn_add_n): Do not use BP_SYM.
6153         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
6154         weak_alias.
6155         (bzero): Likewise.
6156         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
6157         "bp-asm.h".
6158         (PARMS): Do not use macros from bp-asm.h.
6159         (BLK2): Likewise.
6160         (LEN): Likewise.
6161         (memcmp): Do not use BP_SYM.
6162         (bcmp): Do not use BP_SYM in weak_alias.
6163         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
6164         "bp-asm.h".
6165         (PARMS): Do not use macros from bp-asm.h.
6166         (DEST): Likewise.
6167         (SRC): Likewise.
6168         (LEN): Likewise.
6169         (memcpy): Likewise.  Do not use BP_SYM.
6170         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
6171         "bp-asm.h".
6172         (PARMS): Do not use macros from bp-asm.h.
6173         (DEST): Likewise.
6174         (SRC): Likewise.
6175         (LEN): Likewise.
6176         (memmove): Likewise.  Do not use BP_SYM.
6177         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
6178         "bp-asm.h".
6179         (PARMS): Do not use macros from bp-asm.h.
6180         (DEST): Likewise.
6181         (SRC): Likewise.
6182         (LEN): Likewise.
6183         (__mempcpy): Likewise.  Do not use BP_SYM.
6184         (mempcpy): Do not use BP_SYM in weak_alias.
6185         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
6186         "bp-asm.h".
6187         (PARMS): Do not use macros from bp-asm.h.
6188         (DEST): Likewise.
6189         (LEN): Likewise.
6190         [!BZERO_P] (CHR): Likewise.
6191         (memset): Likewise.  Do not use BP_SYM.
6192         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
6193         "bp-asm.h".
6194         (PARMS): Do not use macros from bp-asm.h.
6195         (STR2): Likewise.
6196         (strcmp): Do not use BP_SYM.
6197         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
6198         "bp-asm.h".
6199         (PARMS): Do not use macros from bp-asm.h.
6200         (STR): Likewise.
6201         (DELIM): Likewise.
6202         [USE_AS_STRTOK_R] (SAVE): Likewise.
6203         (FUNCTION): Likewise.  Do not use BP_SYM.
6204         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
6205         aliases.
6206         (strtok_r): Likewise.
6207         (__GI___strtok_r): Likewise.
6208         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
6209         (PARMS): Do not use macros from bp-asm.h.
6210         (S): Likewise.
6211         (SIZE): Likewise.
6212         (__mpn_lshift): Do not use BP_SYM.
6213         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
6214         (PARMS): Do not use macros from bp-asm.h.
6215         (STR): Likewise.
6216         (CHR): Likewise.
6217         (__memchr): Do not use BP_SYM.
6218         (memchr): Do not use BP_SYM in weak_alias.
6219         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
6220         (PARMS): Do not use macros from bp-asm.h.
6221         (BLK2): Likewise.
6222         (LEN): Likewise.
6223         (memcmp): Do not use BP_SYM.
6224         (bcmp): Do not use BP_SYM in weak_alias.
6225         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
6226         (PARMS): Do not use macros from bp-asm.h.
6227         (S1): Likewise.
6228         (SIZE): Likewise.
6229         (__mpn_mul_1): Do not use BP_SYM.
6230         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
6231         "bp-asm.h".
6232         (PARMS): Do not use macros from bp-asm.h.
6233         (STR): Likewise.
6234         (CHR): Likewise.
6235         (__rawmemchr): Do not use BP_SYM.
6236         (rawmemchr): Do not use BP_SYM in weak_alias.
6237         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
6238         (PARMS): Do not use macros from bp-asm.h.
6239         (S): Likewise.
6240         (SIZE): Likewise.
6241         (__mpn_rshift): Do not use BP_SYM.
6242         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
6243         (PARMS): Do not use macros from bp-asm.h.
6244         (SIGMSK): Likewise.
6245         (__sigsetjmp): Likewise.  Do not use BP_SYM.
6246         * sysdeps/i386/start.S: Do not include "bp-sym.h".
6247         (_start): Do not use BP_SYM.
6248         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
6249         (PARMS): Do not use macros from bp-asm.h.
6250         (DEST): Likewise.
6251         (SRC): Likewise.
6252         (__stpcpy): Likewise.  Do not use BP_SYM.
6253         (stpcpy): Do not use BP_SYM in weak_alias.
6254         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
6255         "bp-asm.h".
6256         (PARMS): Do not use macros from bp-asm.h.
6257         (DEST): Likewise.
6258         (SRC): Likewise.
6259         (LEN): Likewise.
6260         (__stpncpy): Likewise.  Do not use BP_SYM.
6261         (stpncpy): Do not use BP_SYM in weak_alias.
6262         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
6263         (PARMS): Do not use macros from bp-asm.h.
6264         (STR): Likewise.
6265         (CHR): Likewise.
6266         (strchr): Likewise.  Do not use BP_SYM.
6267         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
6268         "bp-asm.h".
6269         (PARMS): Do not use macros from bp-asm.h.
6270         (STR): Likewise.
6271         (CHR): Likewise.
6272         (__strchrnul): Likewise.  Do not use BP_SYM.
6273         (strchrnul): Do not use BP_SYM in weak_alias.
6274         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
6275         "bp-asm.h".
6276         (PARMS): Do not use macros from bp-asm.h.
6277         (STOP): Likewise.
6278         (strcspn): Do not use BP_SYM.
6279         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
6280         "bp-asm.h".
6281         (PARMS): Do not use macros from bp-asm.h.
6282         (STR): Likewise.
6283         (STOP): Likewise.
6284         (strpbrk): Likewise.  Do not use BP_SYM.
6285         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
6286         "bp-asm.h".
6287         (PARMS): Do not use macros from bp-asm.h.
6288         (STR): Likewise.
6289         (CHR): Likewise.
6290         (strrchr): Likewise.  Do not use BP_SYM.
6291         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
6292         (PARMS): Do not use macros from bp-asm.h.
6293         (SKIP): Likewise.
6294         (strspn): Do not use BP_SYM.
6295         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
6296         (PARMS): Do not use macros from bp-asm.h.
6297         (STR): Likewise.
6298         (DELIM): Likewise.
6299         (SAVE): Likewise.
6300         (FUNCTION): Likewise.  Do not use BP_SYM.
6301         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
6302         aliases.
6303         (strtok_r): Likewise.
6304         (__GI___strtok_r): Likewise.
6305         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
6306         (PARMS): Do not use macros from bp-asm.h.
6307         (S1): Likewise.
6308         (S2): Likewise.
6309         (SIZE): Likewise.
6310         (__mpn_sub_n): Do not use BP_SYM.
6311         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
6312         "bp-asm.h".
6313         (PARMS): Do not use macros from bp-asm.h.
6314         (S1): Likewise.
6315         (SIZE): Likewise.
6316         (__mpn_submul_1): Do not use BP_SYM.
6317         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
6318         <bp-sym.h>.
6319         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
6320         and <bp-asm.h>.
6321         (PARMS): Do not use macros from bp-asm.h.
6322         (FLAGS): Likewise.
6323         (PTID): Likewise.
6324         (TLS): Likewise.
6325         (CTID): Likewise.
6326         (__clone): Do not use BP_SYM.
6327         (clone): Do not use BP_SYM in weak_alias.
6328         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
6329         and <bp-asm.h>.
6330         (PARMS): Do not use macros from bp-asm.h.
6331         (LEN): Likewise.
6332         (__mmap64): Do not use BP_SYM.
6333         (mmap64): Do not use BP_SYM in weak_alias.
6334         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
6335         <bp-sym.h> and <bp-asm.h>.
6336         (PARMS): Do not use macros from bp-asm.h.
6337         (__posix_fadvise64_l64): Do not use BP_SYM.
6338         * sysdeps/unix/sysv/linux/i386/semtimedop.S
6339         (PARMS): Do not use macros from bp-asm.h.
6340         (NSOPS): Likewise.
6341         (semtimedop): Do not use BP_SYM.
6342         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
6343         and <bp-asm.h>.
6344
6345 2013-02-21  Allan McRae  <allan@archlinux.org>
6346
6347         * manual/message.texi (Charset conversion in gettext):
6348         Move @end statement to beginning of line.
6349
6350 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6351
6352         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
6353         static.
6354         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
6355         Likewise.
6356
6357         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
6358         (denorm): Likewise.
6359         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
6360         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
6361
6362 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6363
6364         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
6365         tail-call to the resolved function if pltexit isn't needed.
6366
6367 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
6368
6369         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
6370         or Y being zero as being unlikely.
6371         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
6372         Likewise.
6373
6374 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
6375
6376         * manual/nss.texi (System Databases and Name Service Switch):
6377         Remove frobnicate @pxref.
6378
6379 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
6380
6381         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
6382         __attribute__ ((unused)) to __attribute__ ((__unused__)).
6383
6384 2013-02-20  Petr Machata  <pmachata@redhat.com>
6385
6386         * elf/elf.h (R_ARM_TARGET1): New macro.
6387         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
6388         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
6389         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
6390         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
6391         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
6392         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
6393         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
6394         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
6395         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
6396         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
6397         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
6398         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
6399         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
6400         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
6401         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
6402         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
6403         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
6404         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
6405         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
6406         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
6407         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
6408         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
6409         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
6410         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
6411         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
6412         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
6413         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
6414         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
6415         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
6416         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
6417         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
6418         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
6419         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
6420         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
6421         (R_ARM_THM_GOT_BREL12): Likewise.
6422         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
6423         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
6424         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
6425         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
6426         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
6427         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
6428         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
6429         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
6430         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
6431
6432 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
6433
6434         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
6435         __attribute_used__ to __attribute__ ((unused)).
6436
6437 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
6438
6439         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
6440         powerpc mpa.c.
6441         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
6442         comment formatting.
6443         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
6444
6445 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
6446
6447         [BZ #13550]
6448         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
6449         Remove macro.
6450         (ENTER): Remove both macro definitions.
6451         (LEAVE): Likewise.
6452         (CHECK_BOUNDS_LOW): Likewise.
6453         (CHECK_BOUNDS_HIGH): Likewise.
6454         (CHECK_BOUNDS_BOTH): Likewise.
6455         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
6456         (RETURN_BOUNDED_POINTER): Likewise.
6457         (RETURN_NULL_BOUNDED_POINTER): Likewise.
6458         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
6459         (POP_ERRNO_LOCATION_RETURN): Likewise.
6460         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
6461         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
6462         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
6463         macros.
6464         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
6465         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
6466         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
6467         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
6468         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
6469         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
6470         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
6471         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
6472         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
6473         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
6474         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
6475         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
6476         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
6477         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
6478         removed macros.
6479         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
6480         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
6481         macros.
6482         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
6483         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
6484         * sysdeps/i386/i586/memset.S (memset): Likewise.
6485         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
6486         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
6487         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
6488         macros.
6489         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
6490         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
6491         Change uses of L(2) to L(out).
6492         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
6493         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
6494         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
6495         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
6496         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
6497         removed macros.
6498         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
6499         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
6500         macros.
6501         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
6502         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
6503         (RETURN): Do not use macro LEAVE.
6504         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
6505         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
6506         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
6507         * sysdeps/i386/i686/memset.S (memset): Likewise.
6508         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
6509         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
6510         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
6511         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
6512         Likewise.
6513         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
6514         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
6515         L(1_2) and L(1_3) into L(1).
6516         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
6517         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
6518         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
6519         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
6520         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
6521         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
6522         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
6523         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
6524         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
6525         macros.
6526         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
6527         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
6528         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
6529         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
6530         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
6531         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
6532         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
6533         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
6534         * sysdeps/i386/strcspn.S (strcspn): Likewise.
6535         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
6536         * sysdeps/i386/strrchr.S (strrchr): Likewise.
6537         * sysdeps/i386/strspn.S (strspn): Likewise.
6538         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
6539         conditional code.
6540         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
6541         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
6542         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
6543         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
6544         L(1_3) into L(1_1).
6545         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
6546         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
6547         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
6548         macros.
6549         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
6550
6551 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
6552
6553         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
6554         macro.
6555
6556 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
6557
6558         * math/atest-exp.c (exp_mpn): Remove ROUND.
6559         * math/atest-exp2.c (exp_mpn): Likewise.
6560         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
6561
6562         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
6563         * stdlib/tst-tls-atexit-lib.c: Likewise.
6564         * stdlib/tst-tls-atexit.c: Likewise.
6565
6566 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
6567
6568         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
6569         and __attribute_alloc_size__.
6570
6571 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
6572
6573         * include/programs/xmalloc.h: Change __attribute_alloc_size to
6574         __attribute_alloc_size__.
6575         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
6576         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
6577
6578 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
6579
6580         * include/programs/xmalloc.h: New file.
6581         * catgets/gencat.c: Include it.
6582         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
6583         * elf/pldd.c: Likewise.
6584         * iconv/iconv_charmap.c: Likewise.
6585         * iconv/iconvconfig.c: Likewise.
6586         * iconv/strtab.c: Likewise.
6587         * locale/programs/locale.c: Likewise.
6588         * locale/programs/localedef.h: Likewise.
6589         * locale/programs/simple-hash.c: Likewise.
6590         * nscd/nscd.h: Likewise.
6591         * nss/makedb.c: Likewise.
6592         * sysdeps/generic/ldconfig.h: Likewise.
6593
6594 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
6595
6596         * Versions.def: Add GLIBC_2.18.
6597         * include/link.h (struct link_map): New member l_tls_dtor_count.
6598         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
6599         (__call_tls_dtors): Likewise.
6600         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
6601         __cxa_thread_atexit_impl.
6602         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
6603         Likewise.
6604         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
6605         Likewise.
6606         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
6607         Likewise.
6608         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
6609         Likewise.
6610         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
6611         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
6612         Likewise.
6613         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
6614         Likewise.
6615         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
6616         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
6617         Likewise.
6618         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
6619         (tests): Add test case tst-tls-atexit.
6620         (modules-names): Add shared library for tst-tls-atexit.
6621         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
6622         (GLIBC_PRIVATE): Add __call_tls_dtors.
6623         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
6624         for libstdc++.
6625         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
6626         * stdlib/tst-tls-atexit.c: New test case.
6627         * stdlib/tst-tls-atexit-lib.c: New test case.
6628
6629         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
6630
6631         * elf/Versions (ld): Add _dl_find_dso_for_object.
6632         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
6633         * elf/dl-open.c (_dl_find_dso_for_object): New function.
6634         (dl_open_worker): Use _dl_find_dso_for_object.
6635         * elf/dl-sym.c (do_sym): Likewise.
6636         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
6637
6638 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
6639
6640         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
6641         Syntactic changes only.
6642         (_dl_runtime_profile): Do a tail-call to the resolved function.
6643
6644 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
6645
6646         [BZ #13550]
6647         * sysdeps/x86_64/bp-asm.h: Remove file.
6648         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
6649         <bp-sym.h> and <bp-asm.h>.
6650         (__clone): Do not use BP_SYM.
6651         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
6652         <bp-sym.h> and <bp-asm.h>.
6653         * sysdeps/unix/x86_64/sysdep.S: Likewise.
6654         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
6655         "bp-asm.h".
6656         (_setjmp): Do not use BP_SYM.
6657         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
6658         "bp-asm.h".
6659         (setjmp): Do not use BP_SYM.
6660         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
6661         libc_hidden_def.
6662         (mempcpy): Do not use BP_SYM in weak_alias.
6663         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
6664         "bp-asm.h".
6665         (strchr): Do not use BP_SYM.
6666         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
6667         "bp-asm.h".
6668         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
6669         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
6670         (_start): Do not use BP_SYM.
6671         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
6672         "bp-asm.h".
6673         (strcat): Do not use BP_SYM.
6674         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
6675         "bp-asm.h".
6676         (STRCMP): Do not use BP_SYM.
6677         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
6678         "bp-asm.h".
6679         (STRCPY): Do not use BP_SYM.
6680         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
6681         "bp-asm.h".
6682         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
6683         "bp-asm.h".
6684         (FUNCTION): Do not use BP_SYM.
6685         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
6686         weak_alias.
6687         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
6688
6689 2013-02-17  Andreas Jaeger  <aj@suse.de>
6690
6691         * time/Versions: Sort entries.
6692         * string/Versions: Likewise.
6693         * resolv/Versions: Likewise.
6694         * posix/Versions: Likewise.
6695         * iconv/Versions: Likewise.
6696         * elf/Versions: Likewise.
6697         * wcsmbs/Versions: Likewise.
6698
6699 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
6700
6701         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
6702         loop termination condition.
6703
6704         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
6705         variable to calculate EZ.
6706         (__sqr): Likewise.
6707
6708         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
6709         the lower precision input.
6710
6711 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
6712
6713         [BZ #13550]
6714         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
6715         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
6716         (run-via-rtld-prefix): Do not handle %-bp tests.
6717         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
6718         (all-object-suffixes): Remove .ob.
6719         (bppfx): Remove variable.
6720         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
6721         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
6722         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
6723         [$(build-bounded) = yes] (libtype.ob): Likewise.
6724         * Makerules (elide-routines.ob): Remove variable.
6725         (do-tests-clean): Do not handle *-bp.out.
6726         (common-mostlyclean): Do not handle *-bp and *-bp.out.
6727         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
6728         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
6729         (tests): Do not include $(tests-bp.out).
6730         (xtests): Do not include $(xtests-bp.out).
6731         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
6732         [$(build-bounded) = yes] ($(addprefix
6733         $(objpfx),$(binaries-bounded))): Remove rule.
6734         ($(objpfx)%-bp.out): Remove rule.
6735         * config.make.in (build-bounded): Remove variable.
6736         * crypt/Makefile [$(build-bounded) = yes]
6737         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
6738         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
6739         append to variable.
6740         [$(build-bounded) = yes] (install-lib): Likewise.
6741         [$(build-bounded) = yes] (generated): Likewise.
6742         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
6743         Remove rule.
6744         * intl/Makefile [$(build-bounded) = yes]
6745         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
6746         * math/Makefile [$(build-bounded) = yes]
6747         ($(tests:%=$(objpfx)%-bp): Likewise.
6748         * misc/Makefile [$(build-bounded) = yes]
6749         ($(objpfx)tst-tsearch-bp): Likewise.
6750         * nptl/Makeconfig (bounded-thread-library): Remove variable.
6751         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
6752         Remove dependency.
6753         * string/Makefile (o-objects.ob): Remove variable.
6754         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
6755         (CFLAGS-.ob): Remove variable.
6756         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
6757         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
6758         both definitions of variable.
6759         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
6760         (ASFLAGS-.ob): Remove variable.
6761
6762 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
6763
6764         [BZ #13550]
6765         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
6766         Remove __BOUNDED_POINTERS__ from condition.
6767         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
6768         * string/bits/string2.h [!__NO_STRING_INLINES &&
6769         !__BOUNDED_POINTERS__]: Likewise.
6770         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
6771         Likewise.
6772         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
6773         Remove conditional code.
6774         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
6775         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
6776         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
6777         condition.
6778
6779         [BZ #13550]
6780         * csu/libc-start.c: Do not include <bp-sym.h>.
6781         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
6782         * elf/dl-open.c: Do not include <bp-sym.h>.
6783         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
6784         * math/fegetenv.c: Do not include <bp-sym.h>.
6785         (fegetenv): Do not use BP_SYM in versioned symbols.
6786         * nptl/sysdeps/pthread/bits/libc-lockP.h
6787         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
6788         <bp-sym.h>.
6789         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6790         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
6791         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6792         (__pthread_mutex_destroy): Likewise.
6793         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6794         (__pthread_mutex_lock): Likewise.
6795         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6796         (__pthread_mutex_trylock): Likewise.
6797         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6798         (__pthread_mutex_unlock): Likewise.
6799         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6800         (__pthread_mutexattr_init): Likewise.
6801         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6802         (__pthread_mutexattr_destroy): Likewise.
6803         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6804         (__pthread_mutexattr_settype): Likewise.
6805         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6806         (__pthread_rwlock_init): Likewise.
6807         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6808         (__pthread_rwlock_destroy): Likewise.
6809         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6810         (__pthread_rwlock_rdlock): Likewise.
6811         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6812         (__pthread_rwlock_tryrdlock): Likewise.
6813         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6814         (__pthread_rwlock_wrlock): Likewise.
6815         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6816         (__pthread_rwlock_trywrlock): Likewise.
6817         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6818         (__pthread_rwlock_unlock): Likewise.
6819         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6820         (__pthread_key_create): Likewise.
6821         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6822         (__pthread_setspecific): Likewise.
6823         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6824         (__pthread_getspecific): Likewise.
6825         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
6826         Likewise.
6827         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6828         (_pthread_cleanup_push_defer): Likewise.
6829         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6830         (_pthread_cleanup_pop_restore): Likewise.
6831         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
6832         (pthread_setcancelstate): Likewise.
6833         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
6834         <bp-sym.h>.
6835         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
6836         (memchr): Do not use BP_SYM in weak_alias.
6837         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
6838         (fegetenv): Do not use BP_SYM in versioned symbols.
6839         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
6840         (fesetenv): Do not use BP_SYM in versioned symbols.
6841         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
6842         (feupdateenv): Do not use BP_SYM in versioned symbols.
6843         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
6844         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
6845         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
6846         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
6847         (open64): Do not use BP_SYM in weak_alias.
6848         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
6849         (fegetenv): Do not use BP_SYM in versioned symbols.
6850         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
6851         (fesetenv): Do not use BP_SYM in versioned symbols.
6852         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
6853         (feupdateenv): Do not use BP_SYM in versioned symbols.
6854         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
6855         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
6856         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
6857         (feraiseexcept): Do not use BP_SYM in versioned symbols.
6858         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
6859         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
6860         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
6861         <bp-sym.h>.
6862         (__libc_start_main): Do not use BP_SYM.
6863
6864 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
6865
6866         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
6867         redundant return line.
6868         (norm): Likewise.
6869         (denorm): Likewise.
6870         (dbl_mp): Likewise.
6871         (sub_magnitudes): Likewise.
6872         (__add): Likewise.
6873         (__sub): Likewise.
6874         (__mul): Likewise.
6875         (__inv): Likewise.
6876         (__dvd): Likewise.
6877         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
6878         (norm): Likewise.
6879         (denorm): Likewise.
6880         (dbl_mp): Likewise.
6881         (sub_magnitudes): Likewise.
6882         (__add): Likewise.
6883         (__sub): Likewise.
6884         (__mul): Likewise.
6885         (__inv): Likewise.
6886         (__dvd): Likewise.
6887
6888         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
6889         instead of __mul.
6890         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
6891         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
6892         (cc32): Likewise.
6893
6894         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
6895         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
6896         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
6897         of __mul for squares.
6898         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
6899         function
6900         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
6901         Likewise.
6902         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
6903         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
6904
6905 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
6906
6907         [BZ #13550]
6908         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
6909         code.
6910         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
6911         prototype or function definition.  Rename ubp_* variables and
6912         parameters.  Remove argv definitions conditional on
6913         [__BOUNDED_POINTERS__].
6914         * debug/backtrace.c (__backtrace): Do not use __unbounded.
6915         * elf/dl-runtime.c (_dl_fixup): Likewise.
6916         * include/set-hooks.h (RUN_HOOK): Likewise.
6917         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
6918         definition.
6919         * string/strcpy.c (strcpy): Do not use __unbounded.
6920         * sysdeps/generic/frame.h (struct layout): Likewise.
6921         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
6922         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
6923         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
6924         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
6925         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
6926         (__backtrace): Likewise.
6927         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
6928         use __ptrvalue.
6929         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
6930         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
6931         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
6932         Likewise.
6933         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
6934         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
6935         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
6936         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
6937         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
6938         Do not use __unbounded.
6939         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
6940         Rename __unboundedrlimits parameter to rlimits in prototype.
6941         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
6942         Do not use __unbounded.
6943         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
6944         not use __ptrvalue.
6945         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
6946         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
6947         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
6948         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
6949         __ptrvalue or __unbounded.
6950         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
6951         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
6952         use __unbounded.
6953         (__new_msgctl): Do not use __ptrvalue.
6954         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
6955         __unbounded.
6956         (__libc_msgrcv): Do not use __ptrvalue.
6957         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
6958         startup_info): Do not use __unbounded.
6959         (__libc_start_main): Likewise.  Rename ubp_* variables and
6960         parameters.  Remove argv definitions conditional on
6961         [__BOUNDED_POINTERS__].
6962         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
6963         __ptrvalue.
6964         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
6965         use __unbounded.
6966         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
6967         or __ptrvalue.
6968         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
6969         use __unbounded.
6970         (__new_shmctl): Do not use __ptrvalue.
6971         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
6972         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
6973         Likewise.
6974         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
6975         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
6976         (__libc_sigaction): Likewise.
6977         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
6978         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
6979         Likewise.
6980         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
6981
6982 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
6983
6984         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
6985
6986         * string/mempcpy.c: Implement by calling memcpy.
6987
6988 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
6989
6990         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
6991
6992         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
6993         evaluation.
6994
6995         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
6996         values in the mantissa.
6997
6998         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
6999         minimize writes to Z.
7000         (sub_magnitudes): Simplify code a bit.
7001
7002 2013-02-12  Roland McGrath  <roland@hack.frob.com>
7003
7004         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
7005         from the message.  The linker prefixes all warnings with that already.
7006
7007 2013-02-12  Andreas Schwab  <schwab@suse.de>
7008
7009         [BZ #15078]
7010         * posix/regexec.c (extend_buffers): Add parameter min_len.
7011         (check_matching): Pass minimum needed length.
7012         (clean_state_log_if_needed): Likewise.
7013         (get_subexp): Likewise.
7014         * posix/Makefile (tests): Add bug-regex34.
7015         (bug-regex34-ENV): Define.
7016         * posix/bug-regex34.c: New file.
7017
7018         [BZ #11561]
7019         * posix/regcomp.c (parse_bracket_exp): When looking up collating
7020         elements compare against the byte sequence of it, not its name.
7021         * posix/Makefile (tests): Add bug-regex35.
7022         (bug-regex35-ENV): Define.
7023         * posix/bug-regex35.c: New file.
7024
7025 2013-02-11  Tom de Vries  <tom@codesourcery.com>
7026
7027         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
7028         comment.
7029         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
7030         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
7031         (CHECK_EOL): Add undef.
7032
7033 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
7034
7035         * bits/stdlib-bsearch.h: New file.
7036         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
7037         * stdlib/stdlib.h: Likewise.
7038
7039 2013-02-11  Roland McGrath  <roland@hack.frob.com>
7040
7041         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
7042         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
7043         declaration.
7044         * manual/search.texi (Array Search Function): Add missing const in
7045         lfind prototype.
7046         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
7047         declaration to use rlim_t.
7048         (Basic Scheduling Functions): Remove erroneous const from
7049         sched_getparam prototype.  Remove erroneous * from
7050         sched_get_priority_max and sched_get_priority_min prototypes.
7051         (Resource Usage): Fix summary @comment on vtimes to refer to
7052         sys/vtimes.h rather than vtimes.h.
7053         Add missing *s in vtimes prototype.
7054         (Limits on Resources): Fix ulimit prototype to return long int.
7055         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
7056         prototypes to use long int rather than double.
7057         (BSD Random): Fix initstate and setstate to use char *, not void *.
7058         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
7059         prototype to make second argument 'struct aiocb64 *const[]'.
7060         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
7061         (Status of AIO Operations): Remove erroneous const in aio_return and
7062         aio_return64 prototypes.
7063         (Synchronizing I/O): Fix sync prototype to return void.
7064         * manual/startup.texi (Suboptions): Remove an erroneous const in
7065         getsubopt prototype.
7066         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
7067         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
7068         use size_t rather than int.
7069         (Scanning All Users): Likewise for getpwent_r.
7070         (Setting Groups): Add missing const to setgroups prototype.
7071         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
7072         * manual/socket.texi (Host Names): Fix gethostbyaddr and
7073         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
7074         'const void *' rather than 'const char *'.
7075         (Host Address Functions): Likewise for inet_ntop.
7076         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
7077         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
7078         ssize_t for return value.
7079         (Sending Data): Likewise for send, sendto, sendmsg.
7080         (Socket Option Functions): Add a missing const in setsockopt prototype.
7081         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
7082         use wchar_t for the argument.
7083         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
7084         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
7085         take no arguments.
7086         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
7087         double/float/long double for second argument.
7088         Fix return types of significand, significandf, significandl.
7089         * manual/filesys.texi (Setting Permissions): Use mode_t for second
7090         argument in fchmod prototype.
7091         (File Owner): Use uid_t and gid_t in fchown prototype.
7092         (File Times): Add const to utimes, futimes, and lutimes prototypes.
7093         (Making Special Files): Use mode_t and dev_t in mknod prototype.
7094         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
7095         use 'const struct dirent **' as argument types to CMP function pointer
7096         argument.
7097         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
7098         (File Times): Fix summary magic @comment for struct utimbuf and utime
7099         to refer to utime.h, not time.h.
7100         * manual/string.texi (Argz Functions): Add missing const in
7101         argz_extract and argz_next prototypes.
7102         (Finding Tokens in a String): Likewise for basename.
7103         (String/Array Comparison): Fix typo in wcscasecmp prototype.
7104         (Copying and Concatenation): Fix typo in wmemmove prototype.
7105         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
7106         (Signal Stack): Remove erroneous const in sigstack prototype.
7107         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
7108         prototype.
7109         (Simple Calendar Time): Likewise for stime.
7110         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
7111         prototype.
7112         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
7113         say sys/sysctl.h instead.
7114         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
7115         and vsyslog prototypes.
7116
7117 2013-02-11  Tom de Vries  <tom@codesourcery.com>
7118
7119         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
7120         Remove.
7121
7122 2013-02-11  Roland McGrath  <roland@hack.frob.com>
7123
7124         * misc/sys/mman.h: Fix typo in mremap comment.
7125
7126 2013-02-08  Roland McGrath  <roland@hack.frob.com>
7127
7128         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
7129         the '\0' terminator.
7130
7131 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
7132
7133         [BZ #13550]
7134         * debug/segfault.c: Don't include <bp-checks.h>.
7135         * sysdeps/generic/bp-checks.h: Remove file.
7136         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
7137         (__GETDENTS): Don't use CHECK_N.
7138         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
7139         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
7140         (__getgroups): Don't use CHECK_N.
7141         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
7142         (setgroups): Don't use CHECK_N.
7143         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
7144         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
7145         (__libc_msgrcv): Don't use CHECK_N.
7146         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
7147         (__libc_msgsnd): Don't use CHECK_N.
7148         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
7149         <bp-checks.h>.
7150         (__libc_pread): Don't use CHECK_N.
7151         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
7152         include <bp-checks.h>.
7153         (__libc_pread64): Don't use CHECK_N.
7154         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
7155         include <bp-checks.h>.
7156         (__libc_pwrite): Don't use CHECK_N.
7157         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
7158         include <bp-checks.h>.
7159         (__libc_pwrite64): Don't use CHECK_N.
7160         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
7161         <bp-checks.h>.
7162         (__libc_pread): Don't use CHECK_N.
7163         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
7164         include <bp-checks.h>.
7165         (__libc_pread64): Don't use CHECK_N.
7166         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
7167         include <bp-checks.h>.
7168         (__libc_pwrite): Don't use CHECK_N.
7169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
7170         include <bp-checks.h>.
7171         (__libc_pwrite64): Don't use CHECK_N.
7172         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
7173         (do_pread): Don't use CHECK_N.
7174         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
7175         (do_pread64): Don't use CHECK_N.
7176         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
7177         (do_pwrite): Don't use CHECK_N.
7178         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
7179         (do_pwrite64): Don't use CHECK_N.
7180         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
7181         (__libc_readv): Don't use CHECK_N.
7182         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
7183         (semop): Don't use CHECK_N.
7184         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
7185         <bp-checks.h>.
7186         (semtimedop): Don't use CHECK_N.
7187         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
7188         (__libc_pread): Don't use CHECK_N.
7189         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
7190         <bp-checks.h>.
7191         (__libc_pread64): Don't use CHECK_N.
7192         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
7193         <bp-checks.h>.
7194         (__libc_pwrite): Don't use CHECK_N.
7195         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
7196         <bp-checks.h>.
7197         (__libc_pwrite64): Don't use CHECK_N.
7198         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
7199         <bp-checks.h>.
7200         (__libc_msgrcv): Don't use CHECK_N.
7201         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
7202         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
7203         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
7204         (__libc_writev): Don't use CHECK_N.
7205
7206 2013-02-08  Roland McGrath  <roland@hack.frob.com>
7207
7208         * string/strcpy.c: Removed unused variable.
7209
7210         * Makeconfig (+sysdep-includes): Define with := rather than =.
7211         Use an existing include/ subdir of each sysdeps dir before it.
7212
7213 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
7214
7215         * nscd/connection.c (register_traced_file): Comment function.
7216         [HAVE_INOTIFY] (union __inev): Define.
7217         [HAVE_INOTIFY] (inotify_check_files): New function.
7218         [HAVE_INOTIFY] (clear_db_cache): Likewise.
7219         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
7220         clear_db_cache.
7221         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
7222
7223 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
7224
7225         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
7226         loaded if not already and that a failure is permanent.
7227
7228 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
7229
7230         [BZ #15006]
7231         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
7232         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
7233
7234 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
7235
7236         [BZ #13550]
7237         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
7238         (CHECK_1_NULL_OK): Likewise.
7239         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
7240         (__fxstat): Do not use CHECK_1.
7241         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
7242         <bp-checks.h>.
7243         (___fxstat64): Do not use CHECK_1.
7244         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
7245         <bp-checks.h>.
7246         (__fxstatat): Do not use CHECK_1.
7247         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
7248         <bp-checks.h>.
7249         (__fxstatat64): Do not use CHECK_1.
7250         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
7251         <bp-checks.h>.
7252         (__fxstat): Do not use CHECK_1.
7253         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
7254         <bp-checks.h>.
7255         (__fxstatat): Do not use CHECK_1.
7256         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
7257         <bp-checks.h>.
7258         (__getresgid): Do not use CHECK_1.
7259         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
7260         <bp-checks.h>.
7261         (__getresuid): Do not use CHECK_1.
7262         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
7263         <bp-checks.h>.
7264         (__lxstat): Do not use CHECK_1.
7265         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
7266         <bp-checks.h>.
7267         (__old_msgctl): Do not use CHECK_1.
7268         (__new_msgctl): Likewise.
7269         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
7270         <bp-checks.h>.
7271         (__new_setrlimit): Do not use CHECK_1.
7272         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
7273         <bp-checks.h>.
7274         (__old_shmctl): Do not use CHECK_1.
7275         (__new_shmctl): Likewise.
7276         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
7277         <bp-checks.h>.
7278         (__xstat): Do not use CHECK_1.
7279         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
7280         (__lxstat): Do not use CHECK_1.
7281         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
7282         <bp-checks.h>.
7283         (___lxstat64): Do not use CHECK_1.
7284         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
7285         (__old_msgctl): Do not use CHECK_1.
7286         (__new_msgctl): Likewise.
7287         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
7288         <bp-checks.h>.
7289         (__gettimeofday): Do not use CHECK_1.
7290         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
7291         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
7292         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
7293         <bp-checks.h>.
7294         (__gettimeofday): Do not use CHECK_1.
7295         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
7296         (__old_shmctl): Do not use CHECK_1_NULL_OK.
7297         (__new_shmctl): Do not use CHECK_1.
7298         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
7299         <bp-checks.h>.
7300         (do_sigtimedwait): Do not use CHECK_1.
7301         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
7302         <bp-checks.h>.
7303         (do_sigwaitinfo): Do not use CHECK_1.
7304         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
7305         <bp-checks.h>.
7306         (msgctl): Do not use CHECK_1.
7307         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
7308         <bp-checks.h>.
7309         (shmctl): Do not use CHECK_1.
7310         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
7311         (ustat): Do not use CHECK_1.
7312         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
7313         <bp-checks.h>.
7314         (__fxstat): Do not use CHECK_1.
7315         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
7316         <bp-checks.h>.
7317         (__fxstatat): Do not use CHECK_1.
7318         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
7319         <bp-checks.h>.
7320         (__lxstat): Do not use CHECK_1.
7321         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
7322         <bp-checks.h>.
7323         (__xstat): Do not use CHECK_1.
7324         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
7325         (__xstat): Do not use CHECK_1.
7326         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
7327         (___xstat64): Do not use CHECK_1.
7328
7329         [BZ #13550]
7330         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
7331         definitions.
7332         (CHECK_BOUNDS_HIGH): Likewise.
7333         * string/strcpy.c: Do not include <bp-checks.h>.
7334         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
7335
7336 2013-02-07  Roland McGrath  <roland@hack.frob.com>
7337
7338         * nscd/nscd-client.h (__nscd_drop_map_ref):
7339         Add __attribute__ ((unused)).
7340         * nis/nss-nisplus.h (niserr2nss): Likewise.
7341
7342         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
7343         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
7344
7345         * csu/libc-tls.c (init_static_tls, init_slotinfo):
7346         Remove inline keyword.
7347         * include/rounding-mode.h (round_away): Likewise.
7348         * libio/wfileops.c (adjust_wide_data): Likewise.
7349         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
7350         (__m128i_strloadu_tolower): Likewise.
7351         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
7352         (__m128i_strloadu_tolower): Likewise.
7353         * time/mktime.c (ydhms_diff): Likewise.
7354         * locale/elem-hash.h (elem_hash): Likewise.
7355         * locale/setlocale.c (setdata): Likewise.
7356         * posix/regex_internal.h (re_string_char_size_at): Likewise.
7357         (re_string_wchar_at): Likewise.
7358         (bitset_not, bitset_merge, bitset_mask): Likewise.
7359         [!(__GNUC__ > 3)] (inline): Remove macro.
7360         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
7361         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
7362         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
7363         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
7364         * string/memcmp.c (memcmp_bytes): Likewise.
7365         * locale/programs/locarchive.c (compute_hashval): Likewise.
7366         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
7367         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
7368         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
7369         * nss/getent.c (print_rpc, print_protocols): Likewise.
7370         (print_passwd, print_group, print_aliases): Likewise.
7371         * nis/nss-nisplus.h (niserr2nss): Likewise.
7372         * nscd/connections.c (restart_p): Likewise.
7373         Change return type to bool.
7374
7375 2013-02-05  Roland McGrath  <roland@hack.frob.com>
7376
7377         * Makeconfig (all-Depend-files): Add existing
7378         $(sorted-subdirs:=/Depend) files.
7379         (all-subdirs): Remove nss.
7380         * sysdeps/unix/inet/Subdirs: Add it here instead.
7381         * hesiod/Depend: New file.
7382
7383         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
7384         instead of calling alloca.
7385
7386         * io/lseek.c (__lseek): Rename to __libc_lseek.
7387         Define __lseek as an alias.
7388
7389         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
7390
7391 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
7392
7393         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
7394         else clause and remove check for non-standard endianness.
7395
7396 2013-02-04  David S. Miller  <davem@davemloft.net>
7397
7398         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7399
7400 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
7401
7402         [BZ #13550]
7403         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
7404         (__ubp_memchr): Remove prototype.
7405         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
7406         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
7407         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
7408         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
7409         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
7410         Remove alias.
7411         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
7412         (__ubp_memchr): Likewise.
7413         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
7414         (__ubp_memchr): Likewise.
7415         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
7416         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
7417         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
7418         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
7419         CHECK_STRING.
7420         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
7421         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
7422         (__getcwd): Do not use CHECK_STRING.
7423         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
7424         <bp-checks.h>.
7425         (__real_chown): Do not use CHECK_STRING.
7426         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
7427         <bp-checks.h>.
7428         (fchownat): Do not use CHECK_STRING.
7429         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
7430         CHECK_STRING.
7431         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
7432         <bp-checks.h>.
7433         (__lchown): Do not use CHECK_STRING.
7434         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
7435         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
7436         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
7437         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
7438         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
7439         include <bp-checks.h>.
7440         (truncate64): Do not use CHECK_STRING.
7441         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
7442         <bp-checks.h>.
7443         (__real_chown): Do not use CHECK_STRING.
7444         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
7445         <bp-checks.h>.
7446         (__lchown): Do not use CHECK_STRING.
7447         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
7448         <bp-checks.h>.
7449         (__chown): Do not use CHECK_STRING.
7450         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
7451         <bp-checks.h>.
7452         (truncate64): Do not use CHECK_STRING.
7453         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
7454         Likewise.
7455         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
7456         (__xmknod): Do not use CHECK_STRING.
7457         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
7458         <bp-checks.h>.
7459         (__xmknodat): Do not use CHECK_STRING.
7460         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
7461         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
7462
7463 2013-02-04  Andreas Schwab  <schwab@suse.de>
7464
7465         [BZ #14142]
7466         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
7467         * include/netdb.h: Likewise for h_errno.
7468         * elf/tst-stackguard1.c: Include <tls.h>.
7469
7470 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
7471
7472         * elf/link.h (struct link_map): Extend the l_addr comment.
7473         * include/link.h (struct link_map): Likewise.
7474
7475 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
7476
7477         [BZ #13550]
7478         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
7479         (BOUNDED_1): Remove macro.
7480         * debug/backtrace.c: Don't include <bp-checks.h>.
7481         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
7482         (__backtrace): Likewise.
7483         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
7484         <bp-checks.h>.
7485         (__backtrace): Don't use BOUNDED_1.
7486         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
7487         <bp-checks.h>.
7488         (__backtrace): Don't use BOUNDED_1.
7489         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
7490         (__backtrace): Don't use BOUNDED_1.
7491         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
7492         (shmat): Don't use BOUNDED_N.
7493
7494 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
7495
7496         [BZ #13550]
7497         * sysdeps/generic/bp-start.h: Remove file.
7498         * csu/libc-start.c: Don't include <bp-start.h>.
7499         (LIBC_START_MAIN): Set up __environ directly instead of using
7500         INIT_ARGV_and_ENVIRON.
7501         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
7502         <bp-start.h>.
7503
7504         [BZ #13550]
7505         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
7506         definitions.
7507         (CHECK_FCNTL): Likewise.
7508         (CHECK_N_PAGES): Likewise.
7509
7510         [BZ #13550]
7511         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
7512         definitions.
7513         (CHECK_SIGSET_NULL_OK): Likewise.
7514         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
7515         <bp-checks.h>.
7516         (sigpending): Don't use CHECK_SIGSET.
7517         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
7518         <bp-checks.h>.
7519         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
7520         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
7521         <bp-checks.h>.
7522         (do_sigsuspend): Don't use CHECK_SIGSET.
7523         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
7524         use CHECK_SIGSET.
7525         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
7526         (do_sigwait): Don't use CHECK_SIGSET.
7527         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
7528         use CHECK_SIGSET.
7529         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
7530         include <bp-checks.h>.
7531         (sigpending): Don't use CHECK_SIGSET.
7532         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
7533         include <bp-checks.h>.
7534         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
7535         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
7536         <bp-checks.h>.
7537         (sigpending): Don't use CHECK_SIGSET.
7538         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
7539         <bp-checks.h>.
7540         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
7541
7542         [BZ #13550]
7543         * sysdeps/generic/bp-semctl.h: Remove file.
7544         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
7545         <bp-checks.h> and <bp-semctl.h>.
7546         (__old_semctl): Don't use CHECK_SEMCTL.
7547         (__new_semctl): Likewise.
7548         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
7549         and <bp-semctl.h>.
7550         (__old_semctl): Don't use CHECK_SEMCTL.
7551         (__new_semctl): Likewise.
7552         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
7553         <bp-checks.h> and <bp-semctl.h>.
7554         (__old_semctl): Don't use CHECK_SEMCTL.
7555         (__new_semctl): Likewise.
7556         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
7557         <bp-checks.h> and <bp-semctl.h>.
7558         (semctl): Don't use CHECK_SEMCTL.
7559
7560         [BZ #13550]
7561         * Makerules (elide-bp-thunks): Remove variable.
7562         (elide-routines.oS): Don't use $(elide-bp-thunks).
7563         (elide-routines.os): Likewise.
7564         (elide-routines.o): Likewise.
7565         (elide-routines.op): Likewise.
7566         (elide-routines.og): Likewise.
7567         (objects): Don't use $(bp-thunks).
7568         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
7569         include.
7570         (common-generated): Do not add s-proto-bp.d.
7571         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
7572         (int): Likewise.
7573         (typ): Likewise.
7574         Do not generate makefile rules for bounded-pointer thunks.
7575         * sysdeps/generic/bp-thunks.h: Remove file.
7576         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
7577         * sysdeps/unix/s-proto-bp.S: Likewise.
7578
7579         [BZ #15062]
7580         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
7581         parts of result separately when argument is not close to line from
7582         -i to i and one part of argument is small.
7583         * math/k_casinhf.c (__kernel_casinhf): Likewise.
7584         * math/k_casinhl.c (__kernel_casinhl): Likewise.
7585         * math/libm-test.inc (cacos_test): Add more tests.
7586         (casin_test): Likewise.
7587         (casinh_test): Likewise.
7588         * sysdeps/i386/fpu/libm-test-ulps: Update.
7589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7590
7591 2013-01-31  David S. Miller  <davem@davemloft.net>
7592
7593         * po/de.po: Update from translation team.
7594
7595 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
7596
7597         * time/tzfile.c: Include stdint.h for SIZE_MAX.
7598
7599 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
7600
7601         * configure.in (_AC_PROG_CC_C89): New definition.
7602         * configure: Regenerate.
7603
7604         * configure.in (AC_PROG_CPP): New definition.
7605         * configure: Regenerate.
7606
7607 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
7608
7609         * debug/tst-backtrace.h: New file.
7610         * debug/tst-backtrace2.c: Include tst-backtrace.h.
7611         (ret): Remove variable.
7612         (x): Likewise.
7613         (FAIL): Remove macro.
7614         (NO_INLINE): Likewise.
7615         (fn1): Use match function instead of strstr.
7616         * debug/tst-backtrace3.c: Include tst-backtrace.h.
7617         (ret): Remove variable.
7618         (x): Likewise.
7619         (FAIL): Remove macro.
7620         (NO_INLINE): Likewise.
7621         (fn): Use match function instead of strstr.
7622         * debug/tst-backtrace4.c: Include tst-backtrace.h.
7623         (ret): Remove variable.
7624         (x): Likewise.
7625         (FAIL): Remove macro.
7626         (NO_INLINE): Likewise.
7627         (handle_signal): Use match function instead of strstr.
7628         * debug/tst-backtrace5.c: Include tst-backtrace.h.
7629         (ret): Remove variable.
7630         (x): Likewise.
7631         (FAIL): Remove macro.
7632         (NO_INLINE): Likewise.
7633         (handle_signal): Use match function instead of strstr.
7634
7635 2013-01-23  Roland McGrath  <roland@hack.frob.com>
7636
7637         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
7638
7639 2013-01-23  David S. Miller  <davem@davemloft.net>
7640
7641         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
7642         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
7643         argument of CAS if possible.
7644         * sysdeps/sparc/sparc64/bits/atomic.h
7645         (__arch_compare_and_exchange_val_32_acq): Likewise.
7646         (__arch_compare_and_exchange_val_64_acq): Likewise.
7647
7648 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
7649
7650         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
7651         * sysdeps/posix/ulimit.c: ... this.
7652         Include <limits.h>.
7653         * sysdeps/unix/bsd/ulimit.c: Remove file.
7654
7655 2013-01-23  Adam Conrad  <adconrad@0c3.net>
7656
7657         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
7658         (LDFLAGS-tst-array5): Likewise.
7659
7660 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
7661
7662         [BZ #15036]
7663         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
7664         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
7665         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
7666         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
7667
7668 2013-01-21  David S. Miller  <davem@davemloft.net>
7669
7670         * sysdeps/sparc/backtrace.c: New file.
7671         * sysdeps/sparc/sparc32/backtrace.h: New file.
7672         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
7673         * sysdeps/sparc/sparc64/backtrace.h: New file.
7674         * sysdeps/sparc/sparc64/backtrace.c: Delete.
7675         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
7676         -funwind-tables.
7677
7678 2013-01-21  Andreas Schwab  <schwab@suse.de>
7679
7680         [BZ #15020]
7681         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
7682         closed its stdout.
7683
7684 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
7685
7686         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
7687         "mpa2.h".
7688         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
7689
7690 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
7691             Mark Mitchell  <mark@codesourcery.com>
7692             Tom de Vries  <tom@codesourcery.com>
7693             Paul Pluzhnikov  <ppluzhnikov@google.com>
7694
7695         * debug/tst-backtrace2.c: New file.
7696         * debug/tst-backtrace3.c: Likewise.
7697         * debug/tst-backtrace4.c: Likewise.
7698         * debug/tst-backtrace5.c: Likewise.
7699         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
7700         (CFLAGS-tst-backtrace3.c): Likewise.
7701         (CFLAGS-tst-backtrace4.c): Likewise.
7702         (CFLAGS-tst-backtrace5.c): Likewise.
7703         (LDFLAGS-tst-backtrace2): Likewise.
7704         (LDFLAGS-tst-backtrace3): Likewise.
7705         (LDFLAGS-tst-backtrace4): Likewise.
7706         (LDFLAGS-tst-backtrace5): Likewise.
7707         (tests): Add new tests tst-backtrace2, tst-backtrace3,
7708         tst-backtrace4 and tst-backtrace5.
7709
7710 2013-01-18  Anton Blanchard  <anton@samba.org>
7711             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
7712
7713         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
7714         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
7715         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
7716         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
7717         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
7718         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
7719         "+r" and remove output regs list as redundant.  Add explicit inline
7720         asm to specify register of return val to work around compiler codegen
7721         bug.  Remove (int) cast on return value.  Add return type parameter to
7722         use in macro so that this macro does not truncate return value for
7723         64-bit values.
7724         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
7725         pass to INTERNAL_VSYSCALL_NCS.
7726         (INLINE_VSYSCALL): Add 'long int' as return type to
7727         INTERNAL_VSYSCALL_NCS macro invocation.
7728         (INTERNAL_VSYSCALL): Add 'long int' as return type to
7729         INTERNAL_VSYSCALL_NCS macro invocation.
7730         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
7731
7732 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
7733
7734         [BZ #14496]
7735         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
7736         Fix application of SIMD FP exception mask.
7737
7738         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
7739         mp_no from a power of two.
7740         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
7741         __mpexp_twomm1.  Use __pow_mp.
7742
7743         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
7744         multiplication.
7745
7746 2013-01-17  David S. Miller  <davem@davemloft.net>
7747
7748         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7749
7750 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
7751
7752         [BZ #15023]
7753         * include/complex.h: Condition contents on [!_COMPLEX_H].
7754         (__kernel_casinhf): New prototype.
7755         (__kernel_casinh): Likewise.
7756         (__kernel_casinhl): Likewise.
7757         * math/Makefile (libm_calls): Add k_casinh.
7758         * math/k_casinh.c: New file.
7759         * math/k_casinhf.c: Likewise.
7760         * math/k_casinhl.c: Likewise.
7761         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
7762         finite nonzero arguments.
7763         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
7764         finite nonzero arguments.
7765         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
7766         finite nonzero arguments.
7767         * math/s_casinh.c: Do not include <float.h>.
7768         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
7769         * math/s_casinhf.c: Do not include <float.h>.
7770         (__casinhf): Move code for finite nonzero arguments to
7771         k_casinhf.c.
7772         * math/s_casinhl.c: Do not include <float.h>.
7773         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
7774         redefine.
7775         (__casinhl): Move code for finite nonzero arguments to
7776         k_casinhl.c.
7777         * math/libm-test.inc (cacos_test): Add more tests.
7778         * sysdeps/i386/fpu/libm-test-ulps: Update.
7779         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7780
7781 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
7782
7783         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
7784         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
7785         [!HAVE_MREMAP]: Remove [defined linux] case.
7786         * malloc/arena.c: Do not include <malloc-sysdep.h>.
7787
7788 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
7789
7790         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
7791
7792 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
7793
7794         * elf/elf.h (R_386_SIZE32): New relocation.
7795         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
7796         R_386_SIZE32.
7797         (elf_machine_rela): Likewise.
7798         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
7799         R_X86_64_SIZE64 and R_X86_64_SIZE32.
7800
7801 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
7802
7803         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
7804         (FP_FAST_FMA): Do not define.
7805         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
7806         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
7807         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
7808         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
7809         !_SOFT_FLOAT]: Likewise.
7810         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
7811         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
7812         value.
7813         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
7814         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
7815         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
7816         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
7817         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
7818         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
7819         file.
7820
7821 2013-01-16  Andreas Schwab  <schwab@suse.de>
7822
7823         [BZ #14327]
7824         * include/stdlib.h (__mktemp): Add declaration.
7825         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
7826         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
7827
7828 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7829
7830         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
7831         definitions.
7832         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
7833         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
7834         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
7835         definitions here.
7836         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
7837         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
7838         definitions.
7839         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
7840         and ONE.
7841         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
7842         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
7843         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
7844         definitions.
7845         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
7846         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
7847         definitions.
7848         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
7849
7850         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
7851
7852 2013-01-15  David S. Miller  <davem@davemloft.net>
7853
7854         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
7855         trunc{,f} to libm-sysdep_routes.
7856         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
7857         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
7858         file.
7859         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
7860         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
7861         file.
7862         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
7863         file.
7864         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
7865         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
7866         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
7867         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
7868         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
7869         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
7870         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
7871         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
7872
7873         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
7874         nearbyint{,f} to libm-sysdep_routes.
7875         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
7876         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
7877         New file.
7878         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
7879         file.
7880         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
7881         New file.
7882         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
7883         file.
7884         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
7885         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
7886         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
7887         file.
7888         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
7889         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
7890         file.
7891         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
7892         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
7893         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
7894
7895         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
7896         libc_feholdexcept and libc_fesetenv.
7897
7898 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
7899
7900         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
7901
7902 2013-01-14  David S. Miller  <davem@davemloft.net>
7903
7904         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
7905         (SPARC_ASM_VIS2_IFUNC): Likewise.
7906         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
7907         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
7908         use of 'siam' instruction.
7909         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
7910         Likewise.
7911         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
7912         Likewise.
7913         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
7914         Likewise.
7915         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
7916         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
7917         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
7918         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
7919         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
7920         file.
7921         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
7922         file.
7923         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
7924         file.
7925         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
7926         file.
7927         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
7928         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
7929         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
7930         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
7931         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
7932         new VIS2 routines.
7933         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
7934         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
7935         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
7936         Likewise.
7937         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
7938         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
7939         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
7940         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
7941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
7942         routines to libm-sysdep_routines.
7943         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
7944
7945         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
7946         fdim/fdimf to libm-sysdep_routines.
7947         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
7948         file.
7949         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
7950         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
7951         file.
7952         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
7953         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
7954         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
7955         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
7956         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
7957         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
7958         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
7959
7960 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
7961
7962         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
7963         to optimize copies.
7964
7965         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
7966         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
7967         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
7968
7969         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
7970         local variable MPTWO.
7971         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
7972         Likewise.
7973
7974 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
7975
7976         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
7977         GLOB_NOESCAPE.
7978
7979 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
7980
7981         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
7982
7983 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
7984
7985         * manual/pattern.texi (glob_t): Document gl_flags.
7986         (glob64_t): Likewise.
7987
7988 2013-01-11  David S. Miller  <davem@davemloft.net>
7989
7990         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
7991         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
7992         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
7993         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
7994         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
7995         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
7996         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
7997         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
7998         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
7999         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
8000         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
8001         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
8002         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
8003
8004         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
8005         sparc V9 rather than using V8 code.
8006         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
8007         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
8008
8009         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
8010         Move to...
8011         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
8012         Here.
8013
8014 2013-01-11  Roland McGrath  <roland@hack.frob.com>
8015
8016         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
8017         not in the main loop.
8018         * configure: Regenerated.
8019
8020 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
8021
8022         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
8023         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
8024         to just #else.
8025         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
8026         [!__GLIBC_HAVE_LONG_LONG] case.
8027         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
8028         condition to just #else.
8029         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
8030         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
8031         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
8032         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
8033         unconditional.
8034         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
8035         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
8036         #elif condition to just #else.
8037         * sysdeps/unix/sysv/linux/sys/sysmacros.h
8038         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
8039         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
8040         #elif condition to just #else.
8041
8042 2013-01-11  Steve Ellcey  <sellcey@mips.com>
8043
8044         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
8045         (EF_MIPS_ARCH_64): Fix value.
8046         (EF_MIPS_ARCH_32R2): New.
8047         (EF_MIPS_ARCH_64R2): New.
8048
8049 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
8050
8051         * Makeconfig (+link-pie-before-libc): New.
8052         (+link-pie-after-libc): Likewise.
8053         (+link-pie-tests): Likewise.
8054         (+link-pie): Rewritten.
8055         (link-before-libc): Remove $(config-LDFLAGS).
8056         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
8057         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
8058         (config-LDFLAGS): Renamed to ...
8059         (rtld-LDFLAGS): This.
8060         (rtld-tests-LDFLAGS): New macro.
8061         (link-libc-rpath-link): Likewise.
8062         (link-libc-tests-rpath-link): Likewise.
8063         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
8064         (link-libc): Prepand $(link-libc-rpath-link).
8065         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
8066         (test-program-prefix): New macro.
8067         (test-via-rtld-prefix): Likewise.
8068         (test-program-cmd): Likewise.
8069         (host-test-program-cmd): Likewise.
8070         * Makefile ($(common-objpfx)testrun.sh): Replace
8071         $(run-program-prefix) with $(test-program-prefix).
8072         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
8073         $(rtld-LDFLAGS).
8074         ($(common-objpfx)shlib.lds): Likewise.
8075         (build-module-helper): Likewise.
8076         ($(common-objpfx)format.lds): Likewise.
8077         * Rules (binaries-pie-tests): New.
8078         (binaries-pie-notests): Likewise.
8079         (binaries-pie): Rewritten.
8080         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
8081         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
8082         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
8083         (make-test-out): Replace $(host-built-program-cmd) with
8084         $(host-test-program-cmd).
8085         * config.make.in (build-hardcoded-path-in-tests): New variable.
8086         * configure.in (--enable-hardcoded-path-in-tests): New configure
8087         option.
8088         (hardcoded_path_in_tests): New AC_SUBST.
8089         * configure: Regenerated.
8090         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
8091         $(built-program-cmd) with $(test-program-cmd).
8092         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
8093         (test_program_cmd): This.
8094         * elf/Makefile ($(objpfx)order.out): Run test with
8095         $(test-program-prefix).
8096         ($(objpfx)order2.out): Likewise.
8097         ($(objpfx)tst-initorder.out): Likewise.
8098         ($(objpfx)tst-initorder2.out): Likewise.
8099         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
8100         $(test-program-cmd).
8101         ($(objpfx)tst-array1-static.out): Likewise.
8102         ($(objpfx)tst-array2.out): Likewise.
8103         ($(objpfx)tst-array3.out): Likewise.
8104         ($(objpfx)tst-array4.out): Likewise.
8105         ($(objpfx)tst-array5.out): Likewise.
8106         ($(objpfx)tst-array5-static.out): Likewise.
8107         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
8108         $(test-program-cmd).
8109         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
8110         $(run-program-prefix) with $(test-program-prefix).
8111         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
8112         (test_program_prefix): This.
8113         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
8114         $(run-program-prefix) with $(test-program-prefix).
8115         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
8116         (test_program_prefix): This.
8117         * iconvdata/tst-tables.sh: Likewise.
8118         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
8119         $(run-program-prefix) with $(test-program-prefix).
8120         ($(objpfx)tst-translit.out): Likewise.
8121         ($(objpfx)tst-gettext2.out): Likewise.
8122         ($(objpfx)tst-gettext4.out): Likewise.
8123         ($(objpfx)tst-gettext6.out): Likewise.
8124         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
8125         (test_program_prefix): This.
8126         * intl/tst-gettext2.sh: Likewise.
8127         * intl/tst-gettext4.sh  Likewise.
8128         * intl/tst-gettext6.sh: Likewise.
8129         * intl/tst-translit.sh: Likewise.
8130         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
8131         with $(test-program-cmd).
8132         * libio/Makefile ($(objpfx)test-freopen.out): Replace
8133         $(run-program-prefix) with $(test-program-prefix).
8134         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
8135         (test_program_prefix): This.
8136         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
8137         $(run-program-prefix) with $(test-program-prefix).
8138         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
8139         (test_program_prefix): This.
8140         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
8141         * posix/Makefile ($(objpfx)globtest.out): Replace
8142         $(run-via-rtld-prefix) and $(test-wrapper) with
8143         $(test-program-prefix) and $(test-via-rtld-prefix).
8144         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
8145         $(test-program-prefix).
8146         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
8147         $(host-test-program-cmd).
8148         (tst-spawn-ARGS): Likewise.
8149         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
8150         $(test-program-prefix).
8151         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
8152         (test_via_rtld_prefix): This.
8153         (test_wrapper): Renamed to ...
8154         (test_program_prefix): This.
8155         (run_program_prefix): Replaced by test_program_prefix.
8156         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
8157         (test_program_prefix): This.
8158         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
8159         with $(host-test-program-cmd).
8160         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
8161         $(run-program-prefix) with $(test-program-prefix).
8162         ($(objpfx)tst-printf.out): Likewise.
8163         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
8164         $(test-program-cmd).
8165         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
8166         (test_program_prefix): This.
8167         * stdio-common/tst-unbputc.sh: Likewise.
8168         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
8169         $(run-program-prefix) with $(test-program-prefix).
8170         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
8171         (test_program_prefix): This.
8172         * string/Makefile ($(objpfx)tst-svc.out):  Replace
8173         $(built-program-cmd) with $(test-program-cmd).
8174
8175 2013-01-11  Andreas Jaeger  <aj@suse.de>
8176
8177         [BZ #15003]
8178         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
8179         value. Sync with Linux 3.7.
8180
8181 2013-01-10  David S. Miller  <davem@davemloft.net>
8182
8183         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
8184         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
8185         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
8186
8187 2013-01-10  Roland McGrath  <roland@hack.frob.com>
8188
8189         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
8190         never set.
8191         * configure: Regenerated.
8192
8193 2013-01-10  David S. Miller  <davem@davemloft.net>
8194
8195         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
8196         sparc V9 rather than using V8 code.
8197         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
8198         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
8199
8200 2013-01-10  Roland McGrath  <roland@hack.frob.com>
8201
8202         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
8203         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
8204         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
8205         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
8206         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
8207         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
8208         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
8209         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
8210         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
8211         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
8212         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
8213         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
8214         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
8215         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
8216         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
8217         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
8218         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
8219         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
8220         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
8221         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
8222         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
8223         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
8224         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
8225         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
8226         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
8227         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
8228         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
8229
8230 2013-01-10  David S. Miller  <davem@davemloft.net>
8231
8232         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8233
8234 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
8235
8236         * posix/Makefile (tests-static): New variable.
8237         (tests): Add $(tests-static).
8238         (tst-exec-static-ARGS): New variable.
8239         (tst-spawn-static-ARGS): Likewise.
8240         * posix/tst-exec-static.c: New file.
8241         * posix/tst-spawn-static.c: Likewise.
8242         * posix/tst-exec.c: Support run directly.
8243         * posix/tst-spawn.c: Likewise.
8244
8245 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
8246
8247         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
8248         long.
8249         * math/bits/mathcalls.h (llrint): Likewise.
8250         (llround): Likewise.
8251         * stdlib/stdlib.h (struct drand48_data): Likewise.
8252         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
8253         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
8254         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
8255         Likewise.
8256         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
8257         Likewise.
8258         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
8259         (elf_greg_t): Likewise.
8260         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
8261         (__jmp_buf): Likewise.
8262         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
8263         definitions.
8264         (llrint): Likewise, for all definitions.
8265         (llrintl): Likewise.
8266
8267         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
8268         Remove [__GNUC__] condition.
8269         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
8270         condition to just [__USE_ISOC99].
8271         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
8272
8273 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
8274
8275         [BZ #14200]
8276         * sysdeps/unix/sysv/linux/x86/bits/environments.h
8277         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
8278         defined.
8279         (_POSIX_V6_ILP32_OFF32): Likewise.
8280         (_XBS5_ILP32_OFF32): Likewise.
8281         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
8282         (__ILP32_OFFBIG_LDFLAGS): Likewise.
8283
8284 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
8285
8286         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
8287
8288         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
8289         doubles __mpexp_twomm1.  Adjust usage.
8290         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
8291         Remove.
8292
8293 2013-01-10  Andreas Schwab  <schwab@suse.de>
8294
8295         [BZ #14964]
8296         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
8297         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
8298
8299 2013-01-09  David S. Miller  <davem@davemloft.net>
8300
8301         [BZ #15003]
8302         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
8303         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
8304         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
8305         TCP_FASTOPEN): Define.
8306         (tcp_repair_opt): New structure.
8307         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
8308         enum values.
8309         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
8310         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
8311         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
8312         (tcp_cookie_transactions): New structure.
8313
8314 2013-01-09  Anton Blanchard  <anton@samba.org>
8315
8316         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
8317         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
8318         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
8319         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
8320
8321 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
8322
8323         * include/features.h (__USE_ANSI): Remove.
8324
8325 2013-01-09  Roland McGrath  <roland@hack.frob.com>
8326
8327         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
8328
8329         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
8330
8331 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
8332
8333         * sysdeps/s390/fpu/libm-test-ulps: Update.
8334
8335         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8336
8337         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
8338         (__acr): Likewise.
8339         (__cpy): Likewise.
8340         (norm): Likewise.
8341         (denorm): Likewise.
8342         (__mp_dbl): Likewise.
8343         (__dbl_mp): Likewise.
8344         (add_magnitudes): Likewise.
8345         (sub_magnitudes): Likewise.
8346         (__add): Likewise.
8347         (__sub): Likewise.
8348         (__mul): Likewise.
8349         (__inv): Likewise.
8350         (__dvd): Likewise.
8351         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
8352         (__acr): Likewise.
8353         (__cpy): Likewise.
8354         (norm): Likewise.
8355         (denorm): Likewise.
8356         (__mp_dbl): Likewise.
8357         (__dbl_mp): Likewise.
8358         (add_magnitudes): Likewise.
8359         (sub_magnitudes): Likewise.
8360         (__add): Likewise.
8361         (__sub): Likewise.
8362         (__mul): Likewise.
8363         (__inv): Likewise.
8364         (__dvd): Likewise.
8365         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
8366         (__acr): Likewise.
8367         (__cpy): Likewise.
8368         (norm): Likewise.
8369         (denorm): Likewise.
8370         (__mp_dbl): Likewise.
8371         (__dbl_mp): Likewise.
8372         (add_magnitudes): Likewise.
8373         (sub_magnitudes): Likewise.
8374         (__add): Likewise.
8375         (__sub): Likewise.
8376         (__mul): Likewise.
8377         (__inv): Likewise.
8378         (__dvd): Likewise.
8379
8380 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
8381
8382         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
8383         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
8384         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
8385         2 && __USE_EXTERN_INLINES]: Likewise.
8386
8387 2013-01-08  Andreas Jaeger  <aj@suse.de>
8388
8389         [BZ# 14985]
8390         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
8391         Remove.
8392         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
8393         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
8394
8395 2013-01-07  Anton Blanchard  <anton@samba.org>
8396
8397         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
8398         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
8399         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
8400         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
8401         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
8402         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
8403         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
8404         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
8405         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8406         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
8407         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
8408         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
8409         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
8410         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
8411         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
8412         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
8413         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
8414         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
8415         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
8416         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
8417         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
8418         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
8419         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
8420         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
8421         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
8422         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
8423         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
8424         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
8425         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
8426         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
8427         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
8428         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
8429         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
8430         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
8431         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
8432         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
8433         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
8434         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
8435         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
8436         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
8437         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
8438         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
8439         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
8440
8441 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
8442
8443         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
8444         (__MALLOC_PMT): Likewise.
8445         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
8446         [__GNUC__], only on [_LIBC].
8447         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
8448         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
8449         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
8450         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
8451         forward declaration.
8452         (realloc_hook_ini): Likewise.
8453         (memalign_hook_ini): Likewise.
8454         (__libc_memalign): Do not use __MALLOC_PMT in variable
8455         declaration.
8456         (__libc_valloc): Likewise.
8457         (__libc_pvalloc): Likewise.
8458         (__libc_calloc): Likewise.
8459         (__posix_memalign): Likewise.
8460
8461         [BZ #14996]
8462         * math/s_casinh.c: Include <float.h>.
8463         (__casinh): Do not do computation with squaring and square root
8464         for large arguments.
8465         * math/s_casinhf.c: Include <float.h>.
8466         (__casinhf): Do not do computation with squaring and square root
8467         for large arguments.
8468         * math/s_casinhl.c: Include <float.h>.
8469         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
8470         (__casinhl): Do not do computation with squaring and square root
8471         for large arguments.
8472         * math/libm-test.inc (casin_test): Add more tests.
8473         (casinh_test): Likewise.
8474         * sysdeps/i386/fpu/libm-test-ulps: Update.
8475         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8476
8477 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
8478
8479         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
8480         (__x86_64_raw_data_cache_size): Likewise.
8481         (__x86_64_data_cache_size_half): Likewise.
8482         (__x86_64_raw_data_cache_size_half): Likewise.
8483         (__x86_64_shared_cache_size): Likewise.
8484         (__x86_64_raw_shared_cache_size): Likewise.
8485         (__x86_64_shared_cache_size_half): Likewise.
8486         (__x86_64_raw_shared_cache_size_half): Likewise.
8487         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
8488         to ...
8489         (__x86_data_cache_size): This.
8490         (__x86_64_raw_data_cache_size): Renamed to ...
8491         (__x86_raw_data_cache_size): This.
8492         (__x86_64_data_cache_size_half): Renamed to ...
8493         (__x86_data_cache_size_half): This.
8494         (__x86_64_raw_data_cache_size_half): Renamed to ...
8495         (__x86_raw_data_cache_size_half): This.
8496         (__x86_64_shared_cache_size): Renamed to ...
8497         (__x86_shared_cache_size): This.
8498         (__x86_64_raw_shared_cache_size): Renamed to ...
8499         (__x86_raw_shared_cache_size): This.
8500         (__x86_64_shared_cache_size_half): Renamed to ...
8501         (__x86_shared_cache_size_half): This.
8502         (__x86_64_raw_shared_cache_size_half): Renamed to ...
8503         (__x86_raw_shared_cache_size_half): This.
8504         * sysdeps/x86_64/memcpy.S: Updated.
8505         * sysdeps/x86_64/memset.S: Likewise.
8506         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
8507         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
8508         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
8509
8510 2013-01-04  David S. Miller  <davem@davemloft.net>
8511
8512         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8513
8514 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
8515
8516         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
8517         1 to avoid redefinition warning.
8518         (__USE_GNU): Don't define.
8519         (init_signaling_nan): Protoize.
8520
8521         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8522
8523 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
8524
8525         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
8526         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
8527         (__cpymn): Likewise.
8528         (norm): Remove commented code.
8529         (denorm): Likewise.
8530         (__mp_dbl): Likewise.
8531         (__inv): Likewise.
8532         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
8533         (__cpymn): Likewise.
8534         (norm): Remove commented code.
8535         (denorm): Likewise.
8536         (__mp_dbl): Likewise.
8537         (__inv): Likewise.
8538
8539         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
8540         mp_no value for 1.0 and 2.0.
8541         (norm): Use RADIXI instead of radixi.d.
8542         (denorm): Likewise.
8543         (__mul): Use 0.0 instead of zero.d.
8544         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
8545         mp_no value for 1.0 and 2.0.
8546         (norm): Use RADIXI instead of radixi.d.
8547         (denorm): Likewise.
8548         (__mul): Use 0.0 instead of zero.d.
8549
8550 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
8551
8552         [BZ #14994]
8553         * math/s_casinh.c (__casinh): Reduce finite argument to first
8554         quadrant then set signs of results at the end.
8555         * math/s_casinhf.c (__casinhf): Likewise.
8556         * math/s_casinhl.c (__casinhl): Likewise.
8557         * math/libm-test.inc (casin_test): Add more tests.
8558         (casinh_test): Likewise.
8559         * sysdeps/i386/fpu/libm-test-ulps: Update.
8560         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8561
8562 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
8563
8564         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
8565
8566         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
8567
8568         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
8569         declarations.
8570         (denorm): Likewise.
8571         (__mp_dbl): Likewise.
8572         (__inv): Likewise.
8573
8574         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
8575         and adjust the header comment.
8576
8577         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
8578         variable name from declaration.
8579
8580 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
8581
8582         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8583         Initialize COMMON_CPUID_INDEX_7 element.
8584         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
8585         (CPUID_RTM): Likewise.
8586         (HAS_RTM): Likewise.
8587         (COMMON_CPUID_INDEX_7): New enum.
8588
8589 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
8590
8591         [BZ #14981]
8592         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
8593         size is zero, record memory as freed.
8594
8595 2013-01-03  Andreas Jaeger  <aj@suse.de>
8596
8597         * po/ia.po: Add new Interlingua translation.
8598
8599 2012-01-03  Allan McRae  <allan@archlinux.org>
8600
8601         * locale/programs/localedef.c: Fix description of '--posix' flag.
8602
8603 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
8604
8605         * NEWS: Update dates in second copyright notice.
8606         * README: Update copyright dates in example.
8607         * manual/libc.texinfo: Update copyright dates.
8608         * scripts/test-installation.pl: Update copyright date in --version
8609         output.
8610
8611         * hurd/ctty-input.c: Fix copyright notice formatting.
8612         * hurd/ctty-output.c: Likewise.
8613         * hurd/dtable.c: Likewise.
8614         * hurd/hurd-raise.c: Likewise.
8615         * hurd/hurdprio.c: Likewise.
8616         * hurd/msgportdemux.c: Likewise.
8617         * misc/sys/file.h: Likewise.
8618         * misc/sys/ioctl.h: Likewise.
8619         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
8620         * sysdeps/mach/hurd/chdir.c: Likewise.
8621         * sysdeps/mach/hurd/fchdir.c: Likewise.
8622         * sysdeps/mach/hurd/rename.c: Likewise.
8623         * sysdeps/mach/hurd/rmdir.c: Likewise.
8624         * sysdeps/mach/hurd/seekdir.c: Likewise.
8625         * sysdeps/mach/hurd/setsid.c: Likewise.
8626         * sysdeps/posix/wait3.c: Likewise.
8627
8628         * All files with FSF copyright notices: Update copyright dates
8629         using scripts/update-copyrights.
8630         * intl/plural.c: Regenerated.
8631         * locale/programs/charmap-kw.h: Likewise.
8632         * locale/programs/locfile-kw.h: Likewise.
8633
8634 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
8635
8636         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
8637         four values.
8638
8639         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
8640         calculation loop and add branch prediction.
8641
8642         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
8643         check access beyond bounds of m1np.
8644
8645         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
8646         MPTWO.
8647         (__inv): Remove local variable MPTWO to use the global
8648         constant.
8649         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
8650         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
8651         variable MPTWO.
8652         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
8653         MP3HALFS static const.
8654
8655 2013-01-01  David S. Miller  <davem@davemloft.net>
8656
8657         * po/ca.po: Update from translation team.
8658
8659 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
8660
8661         * scripts/update-copyrights: New file.
8662         * Makeconfig: Reformat copyright notice.
8663         * ctype/ctype.h: Likewise.
8664         * debug/swprintf_chk.c: Likewise.
8665         * elf/dl-cache.c: Likewise.
8666         * elf/dl-debug.c: Likewise.
8667         * elf/dl-object.c: Likewise.
8668         * grp/initgroups.c: Likewise.
8669         * hurd/Makefile: Likewise.
8670         * hurd/hurd/signal.h: Likewise.
8671         * hurd/hurdfault.c: Likewise.
8672         * hurd/hurdioctl.c: Likewise.
8673         * hurd/hurdlookup.c: Likewise.
8674         * hurd/intr-msg.c: Likewise.
8675         * iconv/gconv_open.c: Likewise.
8676         * libio/swprintf.c: Likewise.
8677         * locale/lc-ctype.c: Likewise.
8678         * locale/nl_langinfo.c: Likewise.
8679         * mach/Machrules: Likewise.
8680         * mach/Makefile: Likewise.
8681         * malloc/obstack.h: Likewise.
8682         * manual/Makefile: Likewise.
8683         * manual/tsort.awk: Likewise.
8684         * misc/bits/stab.def: Likewise.
8685         * nis/nis_print_group_entry.c: Likewise.
8686         * nis/nis_table.c: Likewise.
8687         * nis/nss_compat/compat-pwd.c: Likewise.
8688         * nis/nss_compat/compat-spwd.c: Likewise.
8689         * po/Makefile: Likewise.
8690         * posix/fnmatch.c: Likewise.
8691         * posix/regex.h: Likewise.
8692         * resolv/Makefile: Likewise.
8693         * resolv/nss_dns/dns-network.c: Likewise.
8694         * resolv/res_hconf.c: Likewise.
8695         * scripts/gen-sorted.awk: Likewise.
8696         * soft-fp/soft-fp.h: Likewise.
8697         * stdio-common/printf.h: Likewise.
8698         * stdlib/monetary.h: Likewise.
8699         * stdlib/random.c: Likewise.
8700         * stdlib/random_r.c: Likewise.
8701         * sysdeps/generic/Makefile: Likewise.
8702         * sysdeps/gnu/Makefile: Likewise.
8703         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
8704         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
8705         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
8706         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
8707         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
8708         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
8709         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
8710         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
8711         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
8712         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
8713         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
8714         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
8715         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
8716         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
8717         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
8718         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
8719         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
8720         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
8721         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
8722         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
8723         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
8724         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
8725         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
8726         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
8727         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
8728         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
8729         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
8730         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
8731         * sysdeps/mach/hurd/errnos.awk: Likewise.
8732         * sysdeps/mach/hurd/fork.c: Likewise.
8733         * sysdeps/mach/hurd/getcwd.c: Likewise.
8734         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
8735         * sysdeps/mach/hurd/mmap.c: Likewise.
8736         * sysdeps/mach/hurd/utimes.c: Likewise.
8737         * sysdeps/mach/hurd/xmknod.c: Likewise.
8738         * sysdeps/posix/profil.c: Likewise.
8739         * sysdeps/posix/readdir_r.c: Likewise.
8740         * sysdeps/powerpc/bits/mathdef.h: Likewise.
8741         * sysdeps/powerpc/bits/setjmp.h: Likewise.
8742         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
8743         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
8744         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
8745         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
8746         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
8747         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
8748         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
8749         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
8750         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
8751         * sysdeps/pthread/lio_listio.c: Likewise.
8752         * sysdeps/sparc/dl-procinfo.h: Likewise.
8753         * sysdeps/unix/i386/sysdep.S: Likewise.
8754         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
8755         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
8756         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
8757         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
8758         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
8759         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
8760         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
8761         * sysdeps/unix/sysv/linux/speed.c: Likewise.
8762         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
8763         * sysdeps/wordsize-32/divdi3.c: Likewise.
8764         * time/sys/time.h: Likewise.
8765         * wcsmbs/Makefile: Likewise.
8766
8767 2013-01-01  David S. Miller  <davem@davemloft.net>
8768
8769         * po/fr.po: Update from translation team.
8770
8771         * catgets/gencat.c: Update copyright year.
8772         * csu/version.c: Likewise.
8773         * debug/catchsegv.sh: Likewise.
8774         * debug/pcprofiledump.c: Likewise.
8775         * debug/xtrace.sh: Likewise.
8776         * elf/ldconfig.c: Likewise.
8777         * elf/ldd.bash.in: Likewise.
8778         * elf/pldd.c: Likewise.
8779         * elf/sotruss.ksh: Likewise.
8780         * elf/sprof.c: Likewise.
8781         * iconv/iconv_prog.c: Likewise.
8782         * iconv/iconvconfig.c: Likewise.
8783         * locale/programs/locale.c: Likewise.
8784         * locale/programs/localedef.c: Likewise.
8785         * login/programs/pt_chown.c: Likewise.
8786         * malloc/memusage.sh: Likewise.
8787         * malloc/memusagestat.c: Likewise.
8788         * malloc/mtrace.pl: Likewise.
8789         * nscd/nscd.c: Likewise.
8790         * nss/getent.c: Likewise.
8791         * nss/makedb.c: Likewise.
8792         * posix/getconf.c: Likewise.
8793
8794 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
8795
8796         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
8797         numbers.
8798
8799 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
8800
8801         * math/bits/mathcalls.h (modf): Use __nonnull.
8802
8803 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
8804
8805         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
8806         (split): Use macro CN instead of the bare value.
8807         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
8808         could be used.
8809         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
8810         instead of the bare value.
8811         (power1): Likewise.
8812
8813 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8814
8815         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
8816         __ATAN_TWOM.
8817         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
8818
8819         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
8820         their values.
8821         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
8822         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
8823         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
8824         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
8825
8826 2012-12-28  Andreas Jaeger  <aj@suse.de>
8827
8828         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
8829         values are from Linux 3.7.
8830
8831         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
8832         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
8833
8834 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8835
8836         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
8837         TRUE case.
8838
8839         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
8840         (norm): Likewise.
8841         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
8842         variables with preprocessor constants.
8843         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
8844         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
8845         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
8846
8847 2012-12-27  Bruno Haible  <bruno@clisp.org>
8848
8849         [BZ #14317]
8850         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
8851         only if needed.
8852
8853 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
8854
8855         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
8856         and use variable directly.
8857         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
8858
8859         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
8860         MPONE.
8861         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
8862         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
8863         variable MPONE.
8864         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
8865         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
8866         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
8867         include directive.  Remove local variable MPONE.
8868         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
8869         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
8870         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
8871
8872 2012-12-25  David S. Miller  <davem@davemloft.net>
8873
8874         * version.h (RELEASE): Set to "development".
8875         (VERSION): Set to "2.17.90".
8876         * NEWS: Add 2.18 section.
8877
8878 2012-12-21  David S. Miller  <davem@davemloft.net>
8879
8880         * po/hr.po: Update from translation team.
8881
8882 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8883
8884         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
8885
8886 2012-12-19  Steve Ellcey  <sellcey@mips.com>
8887
8888         * NEWS:  Mention new memcpy for MIPS.
8889
8890 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
8891
8892         * manual/contrib.texi (Contributors): Spelling correction.
8893
8894 2012-12-15  David S. Miller  <davem@davemloft.net>
8895
8896         * po/ru.po: Update from translation team.
8897
8898 2012-12-13  David S. Miller  <davem@davemloft.net>
8899
8900         * NEWS: Mention IFUNC testsuite enhancements.
8901
8902         * po/pl.po: Update from translation team.
8903         * po/bg.po: Likewise.
8904
8905         * manual/contrib.texi (Contributors): Update entries for Hongjiu
8906         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
8907
8908 2012-12-11  David S. Miller  <davem@davemloft.net>
8909
8910         * po/sv.po: Update from translation team.
8911
8912         * po/vi.po: Update from translation team.
8913
8914         * po/cs.po: Update from translation team.
8915
8916         * po/de.po: Update from translation team.
8917         * po/eo.po: Likewise.
8918         * po/nl.po: Likewise.
8919
8920 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
8921
8922         [BZ #14246]
8923         * manual/argp.texi (Argp Helper Functions): Move node to follow
8924         Argp Parsing State.
8925
8926         [BZ #14872]
8927         * manual/conf.texi (Limits on File System Capacity): Mention if
8928         terminating null is included in the max size.
8929
8930 2012-12-10  Andreas Jaeger  <aj@suse.de>
8931
8932         * po/cs.po: Update from translation team.
8933
8934 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
8935
8936         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
8937         void pointer and cast to uintptr_t.
8938         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
8939         path.
8940         * sysdeps/s390/s390-64/memcpy.S: Likewise.
8941         * sysdeps/s390/s390-64/memset.S: Likewise.
8942
8943 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
8944
8945         [BZ #14833]
8946         * menual/message.texi (Message Translation): Fix typos.
8947         (Helper programs for gettext): Likewise.
8948
8949 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
8950
8951         [BZ #14898]
8952         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
8953         Change to -1.
8954
8955 2012-12-07  David S. Miller  <davem@davemloft.net>
8956
8957         * po/libc.pot: Update.
8958
8959 2012-12-07  Richard Henderson  <rth@redhat.com>
8960
8961         [BZ #10114]
8962         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
8963         normal/normal case to before the switch.
8964         (_FP_DIV): Likewise.
8965
8966 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
8967             Mike Frysinger  <vapier@gentoo.org>
8968
8969         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
8970         check for __NR_fadvise64_64.
8971
8972 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
8973
8974         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
8975         0, not just to plain "0" as a statement.
8976         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
8977         with cw.
8978
8979 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
8980
8981         * NEWS: Use sourceware.org in Bugzilla URL.
8982
8983 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
8984
8985         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
8986         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
8987
8988         * stdio-common/tst-put-error.c (do_test): Add newline to the
8989         padded test to ensure flush.
8990
8991 2012-12-05  Jeff Law  <law@redhat.com>
8992
8993         * sunrpc/etc.rpc (fedfs_admin): Add entry.
8994
8995 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
8996
8997         * README: Don't refer to ports add-on as distributed separately.
8998         Mention AArch64 in list of systems supported in the ports add-on.
8999
9000         * LICENSES: Add more non-FSF copyright and license notices.
9001
9002         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
9003         ((unused)).
9004
9005         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
9006
9007         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
9008         10000 as width of padded output.
9009
9010 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
9011
9012         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
9013
9014         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
9015         variable LX with __attribute__ ((unused)).
9016         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
9017         Likewise.
9018         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
9019         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
9020         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
9021         with __attribute__ ((unused)).
9022
9023 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
9024
9025         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
9026
9027 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
9028
9029         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
9030         (CFLAGS-nldbl-acos.c): New variable.
9031         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
9032         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
9033         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
9034         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
9035         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
9036         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
9037         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
9038         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
9039         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
9040         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
9041         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
9042         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
9043         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
9044         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
9045         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
9046         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
9047         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
9048         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
9049         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
9050         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
9051         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
9052         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
9053         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
9054         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
9055         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
9056         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
9057         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
9058         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
9059         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
9060         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
9061         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
9062         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
9063         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
9064         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
9065         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
9066         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
9067         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
9068         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
9069         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
9070         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
9071         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
9072         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
9073         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
9074         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
9075         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
9076         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
9077         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
9078         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
9079         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
9080         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
9081         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
9082         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
9083         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
9084         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
9085         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
9086         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
9087         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
9088         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
9089         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
9090         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
9091         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
9092         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
9093         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
9094         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
9095         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
9096         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
9097         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
9098         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
9099         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
9100         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
9101         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
9102         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
9103         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
9104         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
9105         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
9106         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
9107         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
9108         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
9109         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
9110         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
9111         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
9112         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
9113         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
9114         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
9115         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
9116         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
9117         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
9118         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
9119         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
9120         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
9121         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
9122         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
9123         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
9124         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
9125         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
9126         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
9127         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
9128
9129         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
9130         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
9131
9132         [BZ #14914]
9133         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
9134         whole low double instead of just low 47 bits when splitting values
9135         into two parts.
9136
9137 2012-12-03  Allan McRae  <allan@archlinux.org>
9138
9139         * manual/stdio.texi (Predefined Printf Handlers): Remove
9140         @hsep and @vsep usage.
9141
9142 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
9143
9144         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
9145         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
9146
9147 2012-12-03  Jeff Law  <law@redhat.com>
9148
9149         * time/sys/time.h (settimeofday): Do not mark TV argument
9150         as __nonnull.
9151
9152 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
9153
9154         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
9155         when currently writing and seek to current position when not.
9156         * libio/Makefile (tests): Remove bug-fclose1.
9157         * libio/bug-fclose1.c: Delete.
9158
9159 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
9160
9161         * manual/arith.texi (feenableexcept): Fix typo.
9162         (fedisableexcept): Likewise.
9163
9164 2012-11-30  Roland McGrath  <roland@hack.frob.com>
9165
9166         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
9167         second, differently-typed declaration, rather than a cast.
9168
9169 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
9170
9171         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
9172         * include/rpc/svc.h: ... here.
9173
9174 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
9175
9176         [BZ #13013]
9177         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
9178         depending n and resplen2 to catch cases where answer
9179         equals answerp2.
9180
9181 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
9182
9183         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
9184         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
9185
9186 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
9187
9188         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
9189
9190 2012-11-29  Roland McGrath  <roland@hack.frob.com>
9191
9192         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
9193
9194 2012-11-28  Jeff Law  <law@redhat.com>
9195
9196         [BZ #13761]
9197         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
9198         dataset_temporary.  Track alloca usage into alloca_used.
9199         If dataset is large allocate and release it via malloc/free.
9200
9201 2012-06-04  Florian Weimer  <fweimer@redhat.com>
9202
9203         [BZ #14197]
9204         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
9205
9206 2012-11-28  David S. Miller  <davem@davemloft.net>
9207
9208         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9209
9210 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
9211
9212         [BZ #14803]
9213         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
9214         of pi/2 rounded to nearest to 64 bits.
9215         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
9216         nearest to 64 bits.
9217         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
9218         bits.
9219
9220 2012-11-28  Jeff Law <law@redhat.com>
9221             Martin Osvald <mosvald@redhat.com>
9222
9223         [BZ #14889]
9224         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
9225         * sunrpc/svc.c: Include time.h.
9226         (__svc_accept_failed): New function.
9227         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
9228         any reason other than EINTR, call __svc_accept_failed.
9229         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
9230         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
9231
9232 2012-11-28  Andreas Schwab  <schwab@suse.de>
9233
9234         * scripts/abilist.awk: Also handle indirect functions in .opd
9235         section.
9236
9237 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
9238
9239         [BZ #13881]
9240         * sysdeps/x86/fpu/powl_helper.c: New file.
9241         * sysdeps/x86/fpu/Makefile: Likewise.
9242         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
9243         (p3): New object.
9244         (__ieee754_powl): Use __powl_helper for finite arguments except
9245         integer exponents below 8.
9246         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
9247         (p3): New object.
9248         (__ieee754_powl): Use __powl_helper for finite arguments except
9249         integer exponents below 8.
9250         * math/libm-test.inc (pow_test): Add more tests and enable some
9251         previously disabled tests.
9252         * sysdeps/i386/fpu/libm-test-ulps: Update.
9253         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
9254
9255 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9256             Carlos O'Donell  <carlos_odonell@mentor.com>
9257
9258         * nss/makedb.c (is_prime): Assert that input is odd and greater
9259         than 4.  Note that fact in a comment too.
9260         (next_prime): Add 4 to input.
9261
9262 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
9263
9264         [BZ #11741]
9265         * libio/Makefile (tests): Add test case tst-fwrite-error.
9266         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
9267         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
9268         * libio/tst-fwrite-error.c: New test case.
9269
9270 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
9271
9272         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
9273         before casting to void *.
9274         * include/libc-internal.h (__pointer_type): New macro.
9275         (__integer_if_pointer_type_sub): Likewise.
9276         (__integer_if_pointer_type): Likewise.
9277         (cast_to_integer): Likewise.
9278         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
9279         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
9280         before casting to atomic64_t.
9281         (atomic_exchange_acq): Likewise.
9282         (__arch_exchange_and_add_body): Likewise.
9283         (__arch_add_body): Likewise.
9284         (atomic_add_negative): Likewise.
9285         (atomic_add_zero): Likewise.
9286
9287 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
9288
9289         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
9290         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
9291         (add_fdes): Likewise.
9292         (linear_search_fdes): Likewise.
9293         (binary_search_unencoded_fdes): Likewise.
9294
9295 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
9296
9297         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
9298
9299 2012-11-24  Adam Conrad  <adconrad@0c3.net>
9300
9301         * configure.in: Autodetect C++ header directories.
9302         * configure: Regenerated.
9303
9304 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
9305
9306         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
9307
9308 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
9309
9310         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
9311
9312 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
9313
9314         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
9315         LDBL_MANT_DIG == 106]: Disable some tests.
9316         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
9317         Likewise.
9318         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
9319         Likewise.
9320
9321         [BZ #14871]
9322         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
9323         input for small inputs.  Return +/- pi/2 for large inputs.
9324         * math/libm-test.inc (atan_test): Add more tests.
9325
9326         * sysdeps/generic/unwind-dw2-fde-glibc.c
9327         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
9328         __attribute__ ((unused)).
9329
9330         [BZ #14645]
9331         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
9332         x * y if x and y are nonzero and z is zero.
9333
9334         [BZ #14811]
9335         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
9336         nonzero exponents with absolute value below 0x1p-117 to +/-
9337         0x1p-117.
9338
9339         [BZ #14869]
9340         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
9341         up arguments below 2**-450, not just those below 2**-500.
9342         * math/libm-test.inc (hypot_test): Add another test.
9343
9344         [BZ #14868]
9345         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
9346         Return a+b for ratio over 2**120, not 2**60.
9347         * math/libm-test.inc (hypot_test): Add another test.
9348
9349         * math/libm-test.inc (clog_test): Use
9350         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
9351         (clog10_test): Likewise.
9352
9353         [BZ #6778]
9354         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
9355
9356 2012-11-22  Andreas Schwab  <schwab@suse.de>
9357
9358         * sysdeps/i386/fpu/libm-test-ulps: Update.
9359
9360 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
9361
9362         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
9363         printf output with newline.
9364
9365 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
9366
9367         [BZ #14865]
9368         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
9369         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
9370         -z nodlopen, -z initfirst and -z execstack support.
9371         * configure: Regenerated.
9372
9373         * elf/elf.h (DF_1_NODIRECT): New macro.
9374         (DF_1_IGNMULDEF): Likewise.
9375         (DF_1_NOKSYMS): Likewise.
9376         (DF_1_NOHDR): Likewise.
9377         (DF_1_EDITED): Likewise.
9378         (DF_1_NORELOC): Likewise.
9379         (DF_1_SYMINTPOSE): Likewise.
9380         (DF_1_GLOBAUDIT): Likewise.
9381         (DF_1_SINGLETON): Likewise.
9382         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
9383         DT_1_SUPPORTED_MASK bits.
9384         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
9385
9386 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
9387
9388         * sysdeps/unix/make-syscalls.sh: Document prefixes.
9389
9390 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
9391
9392         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
9393         macro.
9394
9395         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
9396         (sendmmsg): Move declarations...
9397         * socket/sys/socket.h: ... here.
9398         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
9399         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
9400         include it from...
9401         * socket/recvmmsg.c: ... this new file.
9402         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
9403         (sendmmsg): Rename to __sendmmsg, create weak alias and make
9404         definition of __sendmmsg hidden.
9405         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
9406         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
9407         Move ENOSYS stub into and include it from...
9408         * socket/sendmmsg.c: ... this new file.
9409         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
9410         (sysdep_routines): Move recvmmsg and sendmmsg...
9411         * socket/Makefile (routines): ... here.
9412         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
9413         (GLIBC_PRIVATE): Add __sendmmsg.
9414         * include/sys/socket.h (__sendmmsg): Add declarations.
9415         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
9416         sendmmsg.
9417
9418 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
9419
9420         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
9421         variable I1 with __attribute__ ((unused)).
9422         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
9423
9424 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
9425
9426         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
9427         DUMMY variables with __attribute__ ((unused)).
9428
9429         * bits/byteswap.h: Include <bits/types.h>.
9430         (__bswap_64): Use __uint64_t instead of unsigned long long int.
9431
9432 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
9433
9434         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
9435         string_t.  Do not manually set errno.
9436         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
9437         length with __strnlen.  Make sure to both set errno and return it on
9438         failure.
9439
9440 2012-11-19  David S. Miller  <davem@davemloft.net>
9441
9442         With help from Joseph Myers.
9443         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
9444         very large arguments properly.
9445         * math/libm-test.inc (atan_test): New tests.
9446         (atan2_test): New tests.
9447         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9448         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9449
9450 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
9451
9452         [BZ #14856]
9453         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
9454         Define to 3.
9455
9456         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
9457         [POSIX] (EADDRNOTAVAIL): Likewise.
9458         [POSIX] (EAFNOSUPPORT): Likewise.
9459         [POSIX] (EALREADY): Likewise.
9460         [POSIX] (ECONNABORTED): Likewise.
9461         [POSIX] (ECONNREFUSED): Likewise.
9462         [POSIX] (ECONNRESET): Likewise.
9463         [POSIX] (EDESTADDRREQ): Likewise.
9464         [POSIX] (EDQUOT): Likewise.
9465         [POSIX] (EHOSTUNREACH): Likewise.
9466         [POSIX] (EIDRM): Likewise.
9467         [POSIX] (EISCONN): Likewise.
9468         [POSIX] (ELOOP): Likewise.
9469         [POSIX] (EMULTIHOP): Likewise.
9470         [POSIX] (ENETDOWN): Likewise.
9471         [POSIX] (ENETUNREACH): Likewise.
9472         [POSIX] (ENOBUFS): Likewise.
9473         [POSIX] (ENODATA): Likewise.
9474         [POSIX] (ENOLINK): Likewise.
9475         [POSIX] (ENOMSG): Likewise.
9476         [POSIX] (ENOPROTOOPT): Likewise.
9477         [POSIX] (ENOSR): Likewise.
9478         [POSIX] (ENOSTR): Likewise.
9479         [POSIX] (ENOTCONN): Likewise.
9480         [POSIX] (ENOTSOCK): Likewise.
9481         [POSIX] (EOPNOTSUPP): Likewise.
9482         [POSIX] (EOVERFLOW): Likewise.
9483         [POSIX] (EPROTO): Likewise.
9484         [POSIX] (EPROTONOSUPPORT): Likewise.
9485         [POSIX] (EPROTOTYPE): Likewise.
9486         [POSIX] (ESTALE): Likewise.
9487         [POSIX] (ETIME): Likewise.
9488         [POSIX] (ETXTBSY): Likewise.
9489         [POSIX] (EWOULDBLOCK): Likewise.
9490         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
9491         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
9492         [POSIX] (SEEK_CUR): Likewise.
9493         [POSIX] (SEEK_END): Likewise.
9494         [POSIX || UNIX98] (mode_t): Do not require.
9495         [POSIX] (off_t): Likewise.
9496         [POSIX] (pid_t): Likewise.
9497         [POSIX] (sys/stat.h): Do not allow header.
9498         [POSIX] (unistd.h): Likewise.
9499         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
9500         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
9501         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
9502         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
9503         require.
9504         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
9505         sigevent): Specify elements.
9506         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
9507         entry.
9508         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
9509         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
9510
9511         * conform/data/cpio.h-data [POSIX]: Disable whole file.
9512         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
9513         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
9514         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
9515         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
9516         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
9517         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
9518         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
9519         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
9520         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
9521         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
9522         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
9523         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
9524         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
9525         Likewise.
9526         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
9527         Likewise.
9528         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
9529         Likewise.
9530         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
9531         Likewise.
9532         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
9533         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
9534         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
9535         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
9536         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
9537         Specify lower bound on value.
9538         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
9539         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
9540         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
9541         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
9542         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
9543         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
9544         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
9545         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
9546         value.
9547         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
9548         as optional.
9549         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
9550         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
9551         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
9552         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
9553         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
9554         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
9555         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
9556         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
9557         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
9558         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
9559         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
9560         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
9561         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
9562         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
9563         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
9564         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
9565         entry.
9566         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
9567         optional.
9568         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
9569         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
9570         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
9571         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
9572         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
9573         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
9574         Likewise.
9575         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
9576         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
9577         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
9578         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
9579         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
9580         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
9581         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
9582         as optional.
9583         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
9584         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
9585         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
9586         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
9587         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
9588         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
9589         specify as optional.
9590         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
9591         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
9592         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
9593         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
9594         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
9595         [XPG3] (NL_LANGMAX): Likewise.
9596         [POSIX || XPG3] (NL_MSGMAX): Likewise.
9597         [POSIX || XPG3] (NL_NMAX): Likewise.
9598         [POSIX || XPG3] (NL_SETMAX): Likewise.
9599         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
9600         [XPG3] (NZERO): Likewise.
9601         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
9602         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
9603         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
9604         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
9605         (REG_ERANGE): Expect.
9606         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
9607         optional-constant.
9608         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
9609         Use (void) in prototype.
9610         [POSIX] (*_t): Allow.
9611         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
9612         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
9613         (WRDE_BADVAL): Expect.
9614
9615         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
9616         expect.
9617         [XPG3 || XPG4] (O_RSYNC): Likewise.
9618         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
9619         Likewise.
9620         [XPG3 || XPG4] (pthread_sigmask): Likewise.
9621         [XPG3 || XPG4] (sigqueue): Likewise.
9622         [XPG3 || XPG4] (sigtimedwait): Likewise.
9623         [XPG3 || XPG4] (sigwaitinfo): Likewise.
9624         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
9625         [XPG3 || XPG4] (vsnprintf): Likewise.
9626         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
9627         Likewise.
9628         [XPG3 || XPG4] (blksize_t): Likewise.
9629         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
9630         Likewise.
9631         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
9632         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
9633         [XPG3 || XPG4] (struct itimerspec): Likewise.
9634         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
9635         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
9636         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
9637         [XPG3 || XPG4] (clockid_t): Likewise.
9638         [XPG3 || XPG4] (timer_t): Likewise.
9639         [XPG3 || XPG4] (clock_getres): Likewise.
9640         [XPG3 || XPG4] (clock_gettime): Likewise.
9641         [XPG3 || XPG4] (clock_settime): Likewise.
9642         [XPG3 || XPG4] (nanosleep): Likewise.
9643         [XPG3 || XPG4] (timer_create): Likewise.
9644         [XPG3 || XPG4] (timer_delete): Likewise.
9645         [XPG3 || XPG4] (timer_gettime): Likewise.
9646         [XPG3 || XPG4] (timer_getoverrun): Likewise.
9647         [XPG3 || XPG4] (timer_settime): Likewise.
9648         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
9649         [XPG3 || XPG4] (getlogin_r): Likewise.
9650         [XPG3 || XPG4] (pread): Likewise.
9651         [XPG3 || XPG4] (pthread_atfork): Likewise.
9652         [XPG3 || XPG4] (pwrite): Likewise.
9653
9654         [BZ #14835]
9655         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
9656         <bits/siginfo.h>.
9657
9658 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
9659
9660         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
9661         finalizing MALLSTREAM.
9662
9663         * sysdeps/mach/hurd/syncfs.c: New file.
9664
9665 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
9666
9667         [BZ #14719]
9668         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
9669         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
9670         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
9671         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
9672         (_nss_dns_gethostbyname4_r): Likewise.
9673         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
9674         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
9675
9676 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
9677
9678         [BZ #13763]
9679         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
9680
9681 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
9682
9683         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
9684         * elf/cache.c (print_entry): Print ",AArch64" for
9685         FLAG_AARCH64_LIB64
9686
9687         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
9688         * elf/cache.c (print_entry): Print ",hard-float" for
9689         FLAG_ARM_LIBHF.
9690
9691 2012-11-18  David S. Miller  <davem@davemloft.net>
9692
9693         With help from Joseph Myers.
9694         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
9695         cutoff to 2**-13.
9696         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
9697         cutoff to 2**-25.
9698         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
9699         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
9700         small.
9701         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
9702         * math/libm-test.inc (y0_test): New tests.
9703         (y1_test): New tests.
9704         * sysdeps/i386/fpu/libm-test-ulps: Update.
9705         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9706         * sysdeps/sparc/fpu/libm-test-ulps: Update.
9707
9708 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
9709
9710         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
9711         64-bit targets.
9712         * configure: Regenerated.
9713
9714 2012-11-17  David S. Miller  <davem@davemloft.net>
9715
9716         [BZ #14811]
9717         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
9718         nonzero exponents with absolute value below 0x1p-128 to +/-
9719         0x1p-128.
9720
9721 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
9722
9723         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
9724
9725         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
9726
9727         * posix/getconf-speclist.c: New file.
9728         * posix/posix-envs.def: Likewise.
9729         * posix/confstr.c (START_ENV_GROUP): New macro.
9730         (END_ENV_GROUP): Likewise.
9731         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
9732         (KNOWN_PRESENT_ENV_STRING): Likewise.
9733         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
9734         (UNKNOWN_ENVIRONMENT): Likewise.
9735         (confstr): Include posix-envs.def instead of handling
9736         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
9737         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
9738         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
9739         (END_ENV_GROUP): Likewise.
9740         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
9741         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
9742         (UNKNOWN_ENVIRONMENT): Likewise.
9743         (__sysconf): Include posix-envs.def instead of handling associated
9744         cases directly here.
9745         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
9746         preprocessing getconf-speclist.c rather than running getconf or
9747         generating empty file.
9748
9749 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
9750
9751         * scripts/check-local-headers.sh: Ignore 'mach' headers.
9752
9753 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
9754
9755         [BZ #14672]
9756         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
9757
9758 2012-11-16  David S. Miller  <davem@davemloft.net>
9759
9760         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
9761         smaller than LDBL_EPSILON/2.0L, just return xm1.
9762
9763 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
9764
9765         * elf/tst-array1.c (init): Set constructor priority to 1000.
9766         (fini): Set destructor priority to 1000.
9767         * elf/tst-array2dep.c: Likewise.
9768
9769 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9770
9771         [BZ #11741]
9772         * libio/fileops.c (_IO_new_file_write): Correctly return error.
9773         (_IO_new_file_xsputn): Also return EOF if none of the input
9774         data was written when overflow failed.
9775         * libio/iopadn.c (_IO_padn): Likewise.
9776         * libio/iowpadn.c (_IO_wpadn): Likewise.
9777         * stdio-common/tst-put-error.c: Add copyright notice.
9778         (do_test): Add case for printing padded string.
9779         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
9780         _IO_padn returned error.
9781         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
9782         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
9783         return EOF.
9784
9785 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
9786
9787         * libio/libioP.h: Add comment note that the references to C++
9788         bits are now obsolete.
9789
9790 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9791
9792         * math/libm-test.inc (check_complex): Use asprintf.
9793
9794 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
9795
9796         * debug/pcprofiledump.c (print_version): Update copyright year.
9797         * malloc/memusagestat.c (print_version): Likewise.
9798
9799 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
9800
9801         [BZ #14831]
9802         * elf/Makefile (tests): Add tst-audit8.
9803         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
9804         ($(objpfx)tst-audit8.out): New target.
9805         (tst-audit8-ENV): New variable.
9806         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
9807         audit if l_reloc_result is NULL.
9808         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
9809         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
9810         * elf/tst-audit8.c: New file.
9811
9812 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9813
9814         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
9815         * misc/Makefile (CFLAGS-select.c): Define.
9816         * posix/Makefile (CFLAGS-pause.c): Define.
9817
9818 2012-11-13  David S. Miller  <davem@davemloft.net>
9819
9820         * crypt/Makefile: Move test targets after toplevel Rules
9821         inclusion.  Grab any necessary sysdep routines when linking.
9822         * crypt/md5.c (md5_process_block): Remove define, we will always
9823         name it __md5_process_block.
9824         (md5_finish_ctx): Update md5_process_block call.
9825         (md5_stream): Likewise.
9826         (md5_process_bytes): Likewise.
9827         (md5_process_block): Rename to __md5_process_block and move to ...
9828         * crypt/md5-block.c: ... here.
9829         * crypt/sha256.c (sha256_process_block): Move to ...
9830         * crypt/sha256-block.c: ... here.
9831         * crypt/sha512.c (sha512_process_block): Move to ...
9832         * crypt/sha512-block.c: ... here.
9833         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
9834         path.
9835         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
9836         * sysdeps/sparc/sparc64/multiarch/Makefile
9837         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
9838         crypt subdir.
9839         (localedef-aux): Add md5 crypto assembler when in locale subdir.
9840         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
9841         multiarch changes.
9842         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
9843         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
9844         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
9845         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
9846         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
9847         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
9848         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
9849         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
9850         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
9851         file.
9852         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
9853         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
9854         file.
9855         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
9856
9857 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
9858
9859         * timezone/tzselect.ksh: Update from tzcode git revision
9860         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
9861         * timezone/zdump.c: Likewise.
9862         * timezone/zic.c: Likewise.
9863         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
9864         in TZVERSION setting, not $(PKGVERSION).
9865         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
9866         REPORT_BUGS_TO settings.
9867
9868         [BZ #14838]
9869         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
9870         macro.
9871
9872 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
9873
9874         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
9875         detection to immediately after _FP_ROUND().
9876         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
9877         bits are 0.
9878
9879 2012-11-11  David S. Miller  <davem@davemloft.net>
9880
9881         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
9882         inttypes.h
9883         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
9884         __close rather than their public counterparts.
9885
9886 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
9887
9888         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
9889         file.
9890         [UNIX98] (sem_timedwait): Do not expect.
9891         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
9892         [XPG4 || UNIX98] (sockatmark): Do not expect.
9893         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
9894         (clock_getcpuclockid): Do not expect.
9895         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
9896         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
9897         Do not expect.
9898         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
9899         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
9900         [UNIX98] (vwscanf): Likewise.
9901         [UNIX98] (vswscanf): Likewise.
9902
9903 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
9904
9905         * timezone/version.h: Remove file.
9906         * timezone/README: Do not refer to version.h.
9907         * timezone/Makefile ($(objpfx)zic.o): New dependency on
9908         $(objpfx)version.h.
9909         ($(objpfx)zdump.o): Likewise.
9910         ($(objpfx)version.h): New target.
9911
9912         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
9913         2012i.
9914         * timezone/README: Don't mention modification to tzselect.ksh.
9915         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
9916         work on unmodified tzselect.ksh.  Substitute version numbers in
9917         tzselect.ksh.
9918
9919         * Makefile (format-me): Remove.
9920         (INSTALL): Adjust indentation.  Use commands directly instead of
9921         using $(format-me).
9922
9923         * aclocal.m4 (ACX_PKGVERSION): New macro.
9924         (ACX_BUGURL): Likewise.
9925         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
9926         (PKGVERSION): New AC_DEFINE_UNQUOTED.
9927         (REPORT_BUGS_TO): Likewise.
9928         * configure: Regenerated.
9929         * config.h.in (PKGVERSION): New macro.
9930         (REPORT_BUGS_TO): Likewise.
9931         * config.make.in (PKGVERSION): New variable.
9932         (PKGVERSION_TEXI): Likewise.
9933         (REPORT_BUGS_TO): Likewise.
9934         (REPORT_BUGS_TEXI): Likewise.
9935         * Makefile (format-me): Use -I$(common-objpfx)manual.
9936         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
9937         ($(common-objpfx)manual/%): New target.
9938         (manual/%): Remove target.
9939         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
9940         (print_version): Use PKGVERSION.
9941         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
9942         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
9943         and REPORT_BUGS_TO.
9944         ($(objpfx)xtrace): Likewise.
9945         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
9946         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
9947         (print_version): Use PKGVERSION.
9948         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
9949         (do_version): Use PKGVERSION.
9950         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
9951         REPORT_BUGS_TO.
9952         (common-ldd-rewrite): Likewise.
9953         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
9954         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
9955         (print_version): Use PKGVERSION.
9956         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
9957         * elf/pldd.c (argp_program_bug_address): Remove variable.
9958         (more_help): New function.
9959         (argp): Use more_help.
9960         (print_version): Use PKGVERSION.
9961         * elf/sln.c (main): Use PKGVERSION.
9962         (usage): Use REPORT_BUGS_TO.
9963         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
9964         (top level): Use PKGVERSION.
9965         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
9966         (print_version): Use PKGVERSION.
9967         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
9968         (print_version): Use PKGVERSION.
9969         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
9970         (print_version): Use PKGVERSION.
9971         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
9972         (print_version): Use PKGVERSION.
9973         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
9974         (print_version): Use PKGVERSION.
9975         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
9976         (print_version): Use PKGVERSION.
9977         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
9978         and BUGURL.
9979         ($(objpfx)memusage): Likewise.
9980         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
9981         (do_version): Use PKGVERSION.
9982         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
9983         (print_version): Use PKGVERSION.
9984         * malloc/mtrace.pl ($PACKAGE): Remove variable.
9985         ($PKGVERSION): New variable.
9986         ($REPORT_BUGS_TO): Likewise.
9987         (usage): Use $REPORT_BUGS_TO.
9988         (top level): Use $PKGVERSION.
9989         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
9990         ($(objpfx)pkgvers.texi): New rule.
9991         ($(objpfx)stamp-pkgvers): Likewise.
9992         * manual/install.texi: Include pkgvers.texi.
9993         (--with-pkgversion): Document new configure option.
9994         (--with-bugurl): Likewise.
9995         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
9996         than necessarily for this particular distribution.  Use
9997         REPORT_BUGS_TO for where to report bugs.
9998         * INSTALL: Regenerated.
9999         * manual/libc.texinfo: Include pkgvers.texi.
10000         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
10001         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
10002         (print_version): Use PKGVERSION.
10003         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
10004         (print_version): Use PKGVERSION.
10005         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
10006         (print_version): Use PKGVERSION.
10007         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
10008         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
10009         macro.
10010         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
10011         (print_version): Use PKGVERSION.
10012         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
10013         (print_version): Use PKGVERSION.
10014         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
10015         and PKGVERSION.
10016
10017         * timezone/checktab.awk: Update from tzcode 2012i.
10018         * timezone/ialloc.c: Likewise.
10019         * timezone/private.h: Likewise.
10020         * timezone/scheck.c: Likewise.
10021         * timezone/tzfile.h: Likewise.
10022         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
10023         (TZVERSION): Hardcode tzcode version number.
10024         * timezone/zdump.c: Update from tzcode 2012i.
10025         * timezone/zic.c: Likewise.
10026         * timezone/version.h: New file.
10027         * timezone/README: Describe version.h.  Update upstream location.
10028
10029         [BZ #14824]
10030         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
10031         (mktemp): Enable declaration.
10032         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
10033         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
10034         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
10035         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
10036         Likewise.
10037         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
10038         Likewise.
10039         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
10040         Likewise.
10041         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
10042         Likewise.
10043         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
10044         Likewise.
10045         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
10046         Likewise.
10047
10048         [BZ #14821]
10049         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
10050         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
10051         for copies of such integer values.
10052         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
10053         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
10054
10055 2012-11-09  Andreas Jaeger  <aj@suse.de>
10056
10057         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
10058         definitions and declarations that are provided by
10059         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
10060
10061 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10062
10063         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
10064         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
10065         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
10066         definition.
10067
10068 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10069
10070         * elf/elf.h: Update comment before AArch64 relocations.
10071
10072 2012-11-07  David S. Miller  <davem@davemloft.net>
10073
10074         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
10075         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
10076         (__start_context): Declare.
10077         (__makecontext_ret): Delete.
10078         (__makecontext): Hook up __start_context instead of
10079         __makecontext_ret.
10080         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
10081         (sysdep_routines): Add __start_context when in stdlib.
10082
10083 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
10084
10085         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
10086         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
10087         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
10088         hardcoded "nm".
10089         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
10090         (READELF): New variable.  Use it instead of hardcoded "readelf".
10091
10092 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
10093
10094         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
10095         * sysdeps/x86/Makefile: Here.
10096         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
10097         * sysdeps/x86/tst-xmmymm.sh: This.
10098
10099 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
10100
10101         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
10102         expectations.
10103         [UNIX98] (pthread_barrier_t): Do not expect.
10104         [UNIX98] (pthread_barrierattr_t): Likewise.
10105         [UNIX98] (pthread_spinlock_t): Likewise.
10106         [UNIX98] (pthread_barrier_destroy): Likewise.
10107         [UNIX98] (pthread_barrier_init): Likewise.
10108         [UNIX98] (pthread_barrier_wait): Likewise.
10109         [UNIX98] (pthread_barrierattr_destroy): Likewise.
10110         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
10111         [UNIX98] (pthread_barrierattr_init): Likewise.
10112         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
10113         [UNIX98] (pthread_getcpuclockid): Likewise.
10114         [UNIX98] (pthread_mutex_timedlock): Likewise.
10115         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
10116         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
10117         [UNIX98] (pthread_sigmask): Likewise.
10118         [UNIX98] (pthread_spin_destroy): Likewise.
10119         [UNIX98] (pthread_spin_init): Likewise.
10120         [UNIX98] (pthread_spin_lock): Likewise.
10121         [UNIX98] (pthread_spin_trylock): Likewise.
10122         [UNIX98] (pthread_spin_unlock): Likewise.
10123         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
10124         Do not expect.
10125         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
10126         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
10127         [XPG3 || XPG4] (pthread_cond_t): Likewise.
10128         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
10129         [XPG3 || XPG4] (pthread_key_t): Likewise.
10130         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
10131         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
10132         [XPG3 || XPG4] (pthread_once_t): Likewise.
10133         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
10134         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
10135         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
10136         [XPG3 || XPG4] (pthread_t): Likewise.
10137
10138         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
10139         not expect.
10140         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
10141
10142         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
10143         Change function return type to int.
10144
10145         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
10146         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
10147         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
10148         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
10149         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
10150         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
10151         [!POSIX] (posix_madvise): Likewise.
10152         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
10153         && !UNIX98].
10154         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
10155         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
10156         (mode_t): Likewise.
10157         (posix_mem_offset): Likewise.
10158         (posix_typed_mem_get_info): Likewise.
10159         (posix_typed_mem_open): Likewise.
10160
10161         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
10162         Change condition to [XOPEN2K8].
10163
10164         * conform/conformtest.pl: Preprocess allow-header data with -x c
10165         instead of from stdin.
10166         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
10167         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
10168         [C99-based standards] (cerfc): Likewise.
10169         [C99-based standards] (cexp2): Likewise.
10170         [C99-based standards] (cexpm1): Likewise.
10171         [C99-based standards] (clog10): Likewise.
10172         [C99-based standards] (clog1p): Likewise.
10173         [C99-based standards] (clog2): Likewise.
10174         [C99-based standards] (clgamma): Likewise.
10175         [C99-based standards] (ctgamma): Likewise.
10176         [C99-based standards] (cerff): Likewise.
10177         [C99-based standards] (cerfcf): Likewise.
10178         [C99-based standards] (cexp2f): Likewise.
10179         [C99-based standards] (cexpm1f): Likewise.
10180         [C99-based standards] (clog10f): Likewise.
10181         [C99-based standards] (clog1pf): Likewise.
10182         [C99-based standards] (clog2f): Likewise.
10183         [C99-based standards] (clgammaf): Likewise.
10184         [C99-based standards] (ctgammaf): Likewise.
10185         [C99-based standards] (cerfl): Likewise.
10186         [C99-based standards] (cerfcl): Likewise.
10187         [C99-based standards] (cexp2l): Likewise.
10188         [C99-based standards] (cexpm1l): Likewise.
10189         [C99-based standards] (clog10l): Likewise.
10190         [C99-based standards] (clog1pl): Likewise.
10191         [C99-based standards] (clog2l): Likewise.
10192         [C99-based standards] (clgammal): Likewise.
10193         [C99-based standards] (ctgammal): Likewise.
10194         * conform/data/inttypes.h-data [C99-based standards]: Include
10195         stdint.h-data.  Remove all expectations for stdint.h contents.
10196         [C99-based standards] (PRI*): Do not allow.
10197         [C99-based standards] (SCN*): Likewise.
10198         [C99-based standards] (*_t): Likewise.
10199         [C99-based-standards] (PRId8): Expect macro.
10200         [C99-based-standards] (PRIi8): Likewise.
10201         [C99-based-standards] (PRIo8): Likewise.
10202         [C99-based-standards] (PRIu8): Likewise.
10203         [C99-based-standards] (PRIx8): Likewise.
10204         [C99-based-standards] (PRIX8): Likewise.
10205         [C99-based-standards] (SCNd8): Likewise.
10206         [C99-based-standards] (SCNi8): Likewise.
10207         [C99-based-standards] (SCNo8): Likewise.
10208         [C99-based-standards] (SCNu8): Likewise.
10209         [C99-based-standards] (SCNx8): Likewise.
10210         [C99-based-standards] (PRIdLEAST8): Likewise.
10211         [C99-based-standards] (PRIiLEAST8): Likewise.
10212         [C99-based-standards] (PRIoLEAST8): Likewise.
10213         [C99-based-standards] (PRIuLEAST8): Likewise.
10214         [C99-based-standards] (PRIxLEAST8): Likewise.
10215         [C99-based-standards] (PRIXLEAST8): Likewise.
10216         [C99-based-standards] (SCNdLEAST8): Likewise.
10217         [C99-based-standards] (SCNiLEAST8): Likewise.
10218         [C99-based-standards] (SCNoLEAST8): Likewise.
10219         [C99-based-standards] (SCNuLEAST8): Likewise.
10220         [C99-based-standards] (SCNxLEAST8): Likewise.
10221         [C99-based-standards] (PRIdFAST8): Likewise.
10222         [C99-based-standards] (PRIiFAST8): Likewise.
10223         [C99-based-standards] (PRIoFAST8): Likewise.
10224         [C99-based-standards] (PRIuFAST8): Likewise.
10225         [C99-based-standards] (PRIxFAST8): Likewise.
10226         [C99-based-standards] (PRIXFAST8): Likewise.
10227         [C99-based-standards] (SCNdFAST8): Likewise.
10228         [C99-based-standards] (SCNiFAST8): Likewise.
10229         [C99-based-standards] (SCNoFAST8): Likewise.
10230         [C99-based-standards] (SCNuFAST8): Likewise.
10231         [C99-based-standards] (SCNxFAST8): Likewise.
10232         [C99-based-standards] (PRId16): Likewise.
10233         [C99-based-standards] (PRIi16): Likewise.
10234         [C99-based-standards] (PRIo16): Likewise.
10235         [C99-based-standards] (PRIu16): Likewise.
10236         [C99-based-standards] (PRIx16): Likewise.
10237         [C99-based-standards] (PRIX16): Likewise.
10238         [C99-based-standards] (SCNd16): Likewise.
10239         [C99-based-standards] (SCNi16): Likewise.
10240         [C99-based-standards] (SCNo16): Likewise.
10241         [C99-based-standards] (SCNu16): Likewise.
10242         [C99-based-standards] (SCNx16): Likewise.
10243         [C99-based-standards] (PRIdLEAST16): Likewise.
10244         [C99-based-standards] (PRIiLEAST16): Likewise.
10245         [C99-based-standards] (PRIoLEAST16): Likewise.
10246         [C99-based-standards] (PRIuLEAST16): Likewise.
10247         [C99-based-standards] (PRIxLEAST16): Likewise.
10248         [C99-based-standards] (PRIXLEAST16): Likewise.
10249         [C99-based-standards] (SCNdLEAST16): Likewise.
10250         [C99-based-standards] (SCNiLEAST16): Likewise.
10251         [C99-based-standards] (SCNoLEAST16): Likewise.
10252         [C99-based-standards] (SCNuLEAST16): Likewise.
10253         [C99-based-standards] (SCNxLEAST16): Likewise.
10254         [C99-based-standards] (PRIdFAST16): Likewise.
10255         [C99-based-standards] (PRIiFAST16): Likewise.
10256         [C99-based-standards] (PRIoFAST16): Likewise.
10257         [C99-based-standards] (PRIuFAST16): Likewise.
10258         [C99-based-standards] (PRIxFAST16): Likewise.
10259         [C99-based-standards] (PRIXFAST16): Likewise.
10260         [C99-based-standards] (SCNdFAST16): Likewise.
10261         [C99-based-standards] (SCNiFAST16): Likewise.
10262         [C99-based-standards] (SCNoFAST16): Likewise.
10263         [C99-based-standards] (SCNuFAST16): Likewise.
10264         [C99-based-standards] (SCNxFAST16): Likewise.
10265         [C99-based-standards] (PRId32): Likewise.
10266         [C99-based-standards] (PRIi32): Likewise.
10267         [C99-based-standards] (PRIo32): Likewise.
10268         [C99-based-standards] (PRIu32): Likewise.
10269         [C99-based-standards] (PRIx32): Likewise.
10270         [C99-based-standards] (PRIX32): Likewise.
10271         [C99-based-standards] (SCNd32): Likewise.
10272         [C99-based-standards] (SCNi32): Likewise.
10273         [C99-based-standards] (SCNo32): Likewise.
10274         [C99-based-standards] (SCNu32): Likewise.
10275         [C99-based-standards] (SCNx32): Likewise.
10276         [C99-based-standards] (PRIdLEAST32): Likewise.
10277         [C99-based-standards] (PRIiLEAST32): Likewise.
10278         [C99-based-standards] (PRIoLEAST32): Likewise.
10279         [C99-based-standards] (PRIuLEAST32): Likewise.
10280         [C99-based-standards] (PRIxLEAST32): Likewise.
10281         [C99-based-standards] (PRIXLEAST32): Likewise.
10282         [C99-based-standards] (SCNdLEAST32): Likewise.
10283         [C99-based-standards] (SCNiLEAST32): Likewise.
10284         [C99-based-standards] (SCNoLEAST32): Likewise.
10285         [C99-based-standards] (SCNuLEAST32): Likewise.
10286         [C99-based-standards] (SCNxLEAST32): Likewise.
10287         [C99-based-standards] (PRIdFAST32): Likewise.
10288         [C99-based-standards] (PRIiFAST32): Likewise.
10289         [C99-based-standards] (PRIoFAST32): Likewise.
10290         [C99-based-standards] (PRIuFAST32): Likewise.
10291         [C99-based-standards] (PRIxFAST32): Likewise.
10292         [C99-based-standards] (PRIXFAST32): Likewise.
10293         [C99-based-standards] (SCNdFAST32): Likewise.
10294         [C99-based-standards] (SCNiFAST32): Likewise.
10295         [C99-based-standards] (SCNoFAST32): Likewise.
10296         [C99-based-standards] (SCNuFAST32): Likewise.
10297         [C99-based-standards] (SCNxFAST32): Likewise.
10298         [C99-based-standards] (PRId64): Likewise.
10299         [C99-based-standards] (PRIi64): Likewise.
10300         [C99-based-standards] (PRIo64): Likewise.
10301         [C99-based-standards] (PRIu64): Likewise.
10302         [C99-based-standards] (PRIx64): Likewise.
10303         [C99-based-standards] (PRIX64): Likewise.
10304         [C99-based-standards] (SCNd64): Likewise.
10305         [C99-based-standards] (SCNi64): Likewise.
10306         [C99-based-standards] (SCNo64): Likewise.
10307         [C99-based-standards] (SCNu64): Likewise.
10308         [C99-based-standards] (SCNx64): Likewise.
10309         [C99-based-standards] (PRIdLEAST64): Likewise.
10310         [C99-based-standards] (PRIiLEAST64): Likewise.
10311         [C99-based-standards] (PRIoLEAST64): Likewise.
10312         [C99-based-standards] (PRIuLEAST64): Likewise.
10313         [C99-based-standards] (PRIxLEAST64): Likewise.
10314         [C99-based-standards] (PRIXLEAST64): Likewise.
10315         [C99-based-standards] (SCNdLEAST64): Likewise.
10316         [C99-based-standards] (SCNiLEAST64): Likewise.
10317         [C99-based-standards] (SCNoLEAST64): Likewise.
10318         [C99-based-standards] (SCNuLEAST64): Likewise.
10319         [C99-based-standards] (SCNxLEAST64): Likewise.
10320         [C99-based-standards] (PRIdFAST64): Likewise.
10321         [C99-based-standards] (PRIiFAST64): Likewise.
10322         [C99-based-standards] (PRIoFAST64): Likewise.
10323         [C99-based-standards] (PRIuFAST64): Likewise.
10324         [C99-based-standards] (PRIxFAST64): Likewise.
10325         [C99-based-standards] (PRIXFAST64): Likewise.
10326         [C99-based-standards] (SCNdFAST64): Likewise.
10327         [C99-based-standards] (SCNiFAST64): Likewise.
10328         [C99-based-standards] (SCNoFAST64): Likewise.
10329         [C99-based-standards] (SCNuFAST64): Likewise.
10330         [C99-based-standards] (SCNxFAST64): Likewise.
10331         [C99-based-standards] (PRIdMAX): Likewise.
10332         [C99-based-standards] (PRIiMAX): Likewise.
10333         [C99-based-standards] (PRIoMAX): Likewise.
10334         [C99-based-standards] (PRIuMAX): Likewise.
10335         [C99-based-standards] (PRIxMAX): Likewise.
10336         [C99-based-standards] (PRIXMAX): Likewise.
10337         [C99-based-standards] (SCNdMAX): Likewise.
10338         [C99-based-standards] (SCNiMAX): Likewise.
10339         [C99-based-standards] (SCNoMAX): Likewise.
10340         [C99-based-standards] (SCNuMAX): Likewise.
10341         [C99-based-standards] (SCNxMAX): Likewise.
10342         [C99-based-standards] (PRIdPTR): Likewise.
10343         [C99-based-standards] (PRIiPTR): Likewise.
10344         [C99-based-standards] (PRIoPTR): Likewise.
10345         [C99-based-standards] (PRIuPTR): Likewise.
10346         [C99-based-standards] (PRIxPTR): Likewise.
10347         [C99-based-standards] (PRIXPTR): Likewise.
10348         [C99-based-standards] (SCNdPTR): Likewise.
10349         [C99-based-standards] (SCNiPTR): Likewise.
10350         [C99-based-standards] (SCNoPTR): Likewise.
10351         [C99-based-standards] (SCNuPTR): Likewise.
10352         [C99-based-standards] (SCNxPTR): Likewise.
10353         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
10354         allow.
10355         * conform/data/stdint.h-data: Update comments to clarify
10356         requirements.
10357         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
10358         type.
10359         [C99-based standards] (INT8_MAX): Likewise.
10360         [C99-based standards] (INT16_MIN): Likewise.
10361         [C99-based standards] (INT16_MAX): Likewise.
10362         [C99-based standards] (INT32_MIN): Likewise.
10363         [C99-based standards] (INT32_MAX): Likewise.
10364         [C99-based standards] (INT64_MIN): Likewise.
10365         [C99-based standards] (INT64_MAX): Likewise.
10366         [C99-based standards] (UINT8_MAX): Likewise.
10367         [C99-based standards] (UINT16_MAX): Likewise.
10368         [C99-based standards] (UINT32_MAX): Likewise.
10369         [C99-based standards] (UINT64_MAX): Likewise.
10370         [C99-based standards] (INT_LEAST8_MIN): Likewise.
10371         [C99-based standards] (INT_LEAST8_MAX): Likewise.
10372         [C99-based standards] (INT_LEAST16_MIN): Likewise.
10373         [C99-based standards] (INT_LEAST16_MAX): Likewise.
10374         [C99-based standards] (INT_LEAST32_MIN): Likewise.
10375         [C99-based standards] (INT_LEAST32_MAX): Likewise.
10376         [C99-based standards] (INT_LEAST64_MIN): Likewise.
10377         [C99-based standards] (INT_LEAST64_MAX): Likewise.
10378         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
10379         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
10380         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
10381         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
10382         [C99-based standards] (INT_FAST8_MIN): Likewise.
10383         [C99-based standards] (INT_FAST8_MAX): Likewise.
10384         [C99-based standards] (INT_FAST16_MIN): Likewise.
10385         [C99-based standards] (INT_FAST16_MAX): Likewise.
10386         [C99-based standards] (INT_FAST32_MIN): Likewise.
10387         [C99-based standards] (INT_FAST32_MAX): Likewise.
10388         [C99-based standards] (INT_FAST64_MIN): Likewise.
10389         [C99-based standards] (INT_FAST64_MAX): Likewise.
10390         [C99-based standards] (UINT_FAST8_MAX): Likewise.
10391         [C99-based standards] (UINT_FAST16_MAX): Likewise.
10392         [C99-based standards] (UINT_FAST32_MAX): Likewise.
10393         [C99-based standards] (UINT_FAST64_MAX): Likewise.
10394         [C99-based standards] (INTPTR_MIN): Likewise.
10395         [C99-based standards] (INTPTR_MAX): Likewise.
10396         [C99-based standards] (UINTPTR_MAX): Likewise.
10397         [C99-based standards] (INTMAX_MIN): Likewise.
10398         [C99-based standards] (INTMAX_MAX): Likewise.
10399         [C99-based standards] (UINTMAX_MAX): Likewise.
10400         [C99-based standards] (PTRDIFF_MIN): Likewise.
10401         [C99-based standards] (PTRDIFF_MAX): Likewise.
10402         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
10403         [C99-based standards] (SIZE_MAX): Likewise.
10404         [C99-based standards] (WCHAR_MAX): Likewise.
10405         [C99-based standards] (WINT_MAX): Likewise.
10406         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
10407         constraint on value.
10408         [C99-based standards] (WCHAR_MIN): Likewise.
10409         [C99-based standards] (WINT_MIN): Likewise.
10410         [C99-based standards] (*_t): Allow.
10411         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
10412         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
10413         Include math.h-data and complex.h-data.  Remove all expectations
10414         of math.h and complex.h contents.
10415         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
10416         at end of line.
10417         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
10418         (struct tm): Expect tag.
10419         [C99-based-standards] (wcstof): Expect function.
10420         [C99-based-standards] (wcstold): Likewise.
10421         [C99-based-standards] (wcstoll): Likewise.
10422         [C99-based-standards] (wcstoull): Likewise.
10423         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
10424         macro-int-constant.  Specify type.
10425         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
10426         constraint on value.
10427         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
10428         Specify type.
10429         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
10430         Specify value.
10431         [ISO C standards]: Do not allow headers.
10432         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
10433         wcs[abcdefghijklmnopqrstuvwxyz]*.
10434         [ISO C standards] (*_t): Do not allow.
10435         * conform/data/wctype.h-data [C99-based standards] (iswblank):
10436         Expect function.
10437         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
10438         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
10439         Specify type.
10440         [ISO C standards]: Do not allow headers.
10441         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
10442         is[abcdefghijklmnopqrstuvwxyz]*.
10443         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
10444         to[abcdefghijklmnopqrstuvwxyz]*.
10445         [ISO C standards] (*_t): Do not allow.
10446         * conform/data/stdalign.h-data: New file.
10447         * conform/data/stdbool.h-data: Likewise.
10448         * conform/data/stdnoreturn.h-data: Likewise.
10449
10450 2012-11-07  Roland McGrath  <roland@hack.frob.com>
10451
10452         [BZ #14815]
10453         * manual/filesys.texi (Directory Entries): Typo fix.
10454         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
10455
10456 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
10457
10458         * elf/elf.h (EM_AARCH64): New macro.
10459         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
10460         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
10461         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
10462         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
10463         (R_AARCH64_TLSDESC): Likewise.
10464         (NT_ARM_TLS): Likewise.
10465         (NT_ARM_HW_BREAK): Likewise.
10466         (NT_ARM_HW_WATCH): Likewise.
10467
10468 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
10469
10470         [BZ #14811]
10471         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
10472         (__ieee754_powl): Saturate nonzero exponents with absolute value
10473         below 0x1p-79 to +/- 0x1p-79.
10474         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
10475         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
10476         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
10477         nonzero exponents with absolute value below 0x1p-32 to +/-
10478         0x1p-32.
10479         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
10480         (__ieee754_powl): Saturate nonzero exponents with absolute value
10481         below 0x1p-79 to +/- 0x1p-79.
10482         * math/libm-test.inc (pow_test): Add more tests.
10483
10484 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10485
10486         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
10487         _dl_s390_cap_flags with kernel. Increase string length.
10488         (_dl_s390_platforms): Add z196 and zEC12.
10489
10490 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
10491
10492         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
10493         Change XOPEN21K to XOPEN2K.
10494
10495 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
10496
10497         * string/memmove.c: Use memcpy when possible.
10498
10499 2012-11-06  Andreas Jaeger  <aj@suse.de>
10500
10501         * po/eo.po: Update from translation team.
10502
10503 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
10504
10505         [BZ #14793]
10506         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
10507         exponent and small x and y exponents, scale x or y up.  Increase
10508         by 2 the exponent used in scaling up.
10509         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
10510         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
10511         * math/libm-test.inc (fma_test): Add more tests.
10512         (fma_test_towardzero): Likewise.
10513         (fma_test_downward): Likewise.
10514         (fma_test_upward): Likewise.
10515
10516 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
10517
10518         [BZ #14805]
10519         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
10520         fenv_t *.
10521
10522         [BZ #14801]
10523         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
10524         namespace for names of struct fields.
10525         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
10526         fenv_t fields.
10527         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
10528         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
10529
10530 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
10531
10532         [BZ #3665]
10533         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
10534
10535 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
10536
10537         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
10538         PTR_DEMANGLE.
10539
10540         [BZ #5246]
10541         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
10542         PTR_DEMANGLE.
10543
10544 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
10545
10546         [BZ #14797]
10547         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
10548         definitely overflow as x * y not x * y + z.
10549         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
10550         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
10551         * math/libm-test.inc (fma_test): Add more tests.
10552         (fma_test_towardzero): Likewise.
10553         (fma_test_downward): Likewise.
10554         (fma_test_upward): Likewise.
10555
10556 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
10557
10558         [BZ #157]
10559
10560         * include/stub-tag.h: Remove file.
10561         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
10562         '#include' of it.
10563         * manual/maint.texi (Porting): Don't reference it.
10564         * Makerules ($(objpfx)stubs): Likewise.
10565         * dirent/closedir.c: Don't include <stub-tag.h>.
10566         * dirent/dirfd.c: Likewise.
10567         * dirent/fdopendir.c: Likewise.
10568         * dirent/getdents.c: Likewise.
10569         * dirent/getdents64.c: Likewise.
10570         * dirent/opendir.c: Likewise.
10571         * dirent/readdir.c: Likewise.
10572         * dirent/readdir64.c: Likewise.
10573         * dirent/readdir64_r.c: Likewise.
10574         * dirent/readdir_r.c: Likewise.
10575         * dirent/rewinddir.c: Likewise.
10576         * dirent/seekdir.c: Likewise.
10577         * dirent/telldir.c: Likewise.
10578         * gmon/profil.c: Likewise.
10579         * grp/setgroups.c: Likewise.
10580         * inet/if_index.c: Likewise.
10581         * io/access.c: Likewise.
10582         * io/chdir.c: Likewise.
10583         * io/chmod.c: Likewise.
10584         * io/chown.c: Likewise.
10585         * io/close.c: Likewise.
10586         * io/dup.c: Likewise.
10587         * io/dup2.c: Likewise.
10588         * io/dup3.c: Likewise.
10589         * io/euidaccess.c: Likewise.
10590         * io/faccessat.c: Likewise.
10591         * io/fchdir.c: Likewise.
10592         * io/fchmod.c: Likewise.
10593         * io/fchmodat.c: Likewise.
10594         * io/fchown.c: Likewise.
10595         * io/fchownat.c: Likewise.
10596         * io/fcntl.c: Likewise.
10597         * io/flock.c: Likewise.
10598         * io/fstatfs.c: Likewise.
10599         * io/fstatfs64.c: Likewise.
10600         * io/fstatvfs.c: Likewise.
10601         * io/fstatvfs64.c: Likewise.
10602         * io/futimens.c: Likewise.
10603         * io/fxstat.c: Likewise.
10604         * io/fxstat64.c: Likewise.
10605         * io/fxstatat.c: Likewise.
10606         * io/fxstatat64.c: Likewise.
10607         * io/getcwd.c: Likewise.
10608         * io/isatty.c: Likewise.
10609         * io/lchmod.c: Likewise.
10610         * io/lchown.c: Likewise.
10611         * io/link.c: Likewise.
10612         * io/linkat.c: Likewise.
10613         * io/lseek.c: Likewise.
10614         * io/lseek64.c: Likewise.
10615         * io/lxstat64.c: Likewise.
10616         * io/mkdir.c: Likewise.
10617         * io/mkdirat.c: Likewise.
10618         * io/mkfifo.c: Likewise.
10619         * io/mkfifoat.c: Likewise.
10620         * io/open.c: Likewise.
10621         * io/open64.c: Likewise.
10622         * io/openat.c: Likewise.
10623         * io/openat64.c: Likewise.
10624         * io/pipe.c: Likewise.
10625         * io/pipe2.c: Likewise.
10626         * io/poll.c: Likewise.
10627         * io/posix_fadvise.c: Likewise.
10628         * io/posix_fadvise64.c: Likewise.
10629         * io/posix_fallocate.c: Likewise.
10630         * io/posix_fallocate64.c: Likewise.
10631         * io/read.c: Likewise.
10632         * io/readlink.c: Likewise.
10633         * io/readlinkat.c: Likewise.
10634         * io/rmdir.c: Likewise.
10635         * io/sendfile.c: Likewise.
10636         * io/sendfile64.c: Likewise.
10637         * io/statfs.c: Likewise.
10638         * io/statfs64.c: Likewise.
10639         * io/statvfs.c: Likewise.
10640         * io/statvfs64.c: Likewise.
10641         * io/symlink.c: Likewise.
10642         * io/symlinkat.c: Likewise.
10643         * io/ttyname.c: Likewise.
10644         * io/ttyname_r.c: Likewise.
10645         * io/umask.c: Likewise.
10646         * io/unlink.c: Likewise.
10647         * io/unlinkat.c: Likewise.
10648         * io/utime.c: Likewise.
10649         * io/utimensat.c: Likewise.
10650         * io/write.c: Likewise.
10651         * io/xmknod.c: Likewise.
10652         * io/xmknodat.c: Likewise.
10653         * io/xstat.c: Likewise.
10654         * io/xstat64.c: Likewise.
10655         * login/getpt.c: Likewise.
10656         * login/grantpt.c: Likewise.
10657         * login/unlockpt.c: Likewise.
10658         * math/e_acoshl.c: Likewise.
10659         * math/e_acosl.c: Likewise.
10660         * math/e_asinl.c: Likewise.
10661         * math/e_atan2l.c: Likewise.
10662         * math/e_atanhl.c: Likewise.
10663         * math/e_coshl.c: Likewise.
10664         * math/e_expl.c: Likewise.
10665         * math/e_fmodl.c: Likewise.
10666         * math/e_gammal_r.c: Likewise.
10667         * math/e_hypotl.c: Likewise.
10668         * math/e_j0l.c: Likewise.
10669         * math/e_j1l.c: Likewise.
10670         * math/e_jnl.c: Likewise.
10671         * math/e_lgammal_r.c: Likewise.
10672         * math/e_log10l.c: Likewise.
10673         * math/e_log2l.c: Likewise.
10674         * math/e_logl.c: Likewise.
10675         * math/e_powl.c: Likewise.
10676         * math/e_rem_pio2l.c: Likewise.
10677         * math/e_sinhl.c: Likewise.
10678         * math/e_sqrtl.c: Likewise.
10679         * math/fclrexcpt.c: Likewise.
10680         * math/fedisblxcpt.c: Likewise.
10681         * math/feenablxcpt.c: Likewise.
10682         * math/fegetenv.c: Likewise.
10683         * math/fegetexcept.c: Likewise.
10684         * math/fegetround.c: Likewise.
10685         * math/feholdexcpt.c: Likewise.
10686         * math/fesetenv.c: Likewise.
10687         * math/fesetround.c: Likewise.
10688         * math/feupdateenv.c: Likewise.
10689         * math/fgetexcptflg.c: Likewise.
10690         * math/fraiseexcpt.c: Likewise.
10691         * math/fsetexcptflg.c: Likewise.
10692         * math/ftestexcept.c: Likewise.
10693         * math/k_cosl.c: Likewise.
10694         * math/k_rem_pio2l.c: Likewise.
10695         * math/k_sinl.c: Likewise.
10696         * math/k_tanl.c: Likewise.
10697         * math/s_asinhl.c: Likewise.
10698         * math/s_atanl.c: Likewise.
10699         * math/s_cbrtl.c: Likewise.
10700         * math/s_erfl.c: Likewise.
10701         * math/s_expm1l.c: Likewise.
10702         * math/s_log1pl.c: Likewise.
10703         * math/s_tanhl.c: Likewise.
10704         * misc/acct.c: Likewise.
10705         * misc/brk.c: Likewise.
10706         * misc/chflags.c: Likewise.
10707         * misc/chroot.c: Likewise.
10708         * misc/fchflags.c: Likewise.
10709         * misc/fgetxattr.c: Likewise.
10710         * misc/flistxattr.c: Likewise.
10711         * misc/fremovexattr.c: Likewise.
10712         * misc/fsetxattr.c: Likewise.
10713         * misc/fsync.c: Likewise.
10714         * misc/ftruncate.c: Likewise.
10715         * misc/futimes.c: Likewise.
10716         * misc/futimesat.c: Likewise.
10717         * misc/getdomain.c: Likewise.
10718         * misc/getdtsz.c: Likewise.
10719         * misc/gethostid.c: Likewise.
10720         * misc/gethostname.c: Likewise.
10721         * misc/getloadavg.c: Likewise.
10722         * misc/getpagesize.c: Likewise.
10723         * misc/getsysstats.c: Likewise.
10724         * misc/getxattr.c: Likewise.
10725         * misc/gtty.c: Likewise.
10726         * misc/ioctl.c: Likewise.
10727         * misc/lgetxattr.c: Likewise.
10728         * misc/listxattr.c: Likewise.
10729         * misc/llistxattr.c: Likewise.
10730         * misc/lremovexattr.c: Likewise.
10731         * misc/lsetxattr.c: Likewise.
10732         * misc/lutimes.c: Likewise.
10733         * misc/madvise.c: Likewise.
10734         * misc/mincore.c: Likewise.
10735         * misc/mlock.c: Likewise.
10736         * misc/mlockall.c: Likewise.
10737         * misc/mmap.c: Likewise.
10738         * misc/mprotect.c: Likewise.
10739         * misc/msync.c: Likewise.
10740         * misc/munlock.c: Likewise.
10741         * misc/munlockall.c: Likewise.
10742         * misc/munmap.c: Likewise.
10743         * misc/preadv.c: Likewise.
10744         * misc/preadv64.c: Likewise.
10745         * misc/ptrace.c: Likewise.
10746         * misc/pwritev.c: Likewise.
10747         * misc/pwritev64.c: Likewise.
10748         * misc/readv.c: Likewise.
10749         * misc/reboot.c: Likewise.
10750         * misc/remap_file_pages.c: Likewise.
10751         * misc/removexattr.c: Likewise.
10752         * misc/revoke.c: Likewise.
10753         * misc/select.c: Likewise.
10754         * misc/setdomain.c: Likewise.
10755         * misc/setegid.c: Likewise.
10756         * misc/seteuid.c: Likewise.
10757         * misc/sethostid.c: Likewise.
10758         * misc/sethostname.c: Likewise.
10759         * misc/setregid.c: Likewise.
10760         * misc/setreuid.c: Likewise.
10761         * misc/setxattr.c: Likewise.
10762         * misc/sstk.c: Likewise.
10763         * misc/stty.c: Likewise.
10764         * misc/swapoff.c: Likewise.
10765         * misc/swapon.c: Likewise.
10766         * misc/sync.c: Likewise.
10767         * misc/syncfs.c: Likewise.
10768         * misc/syscall.c: Likewise.
10769         * misc/truncate.c: Likewise.
10770         * misc/ualarm.c: Likewise.
10771         * misc/usleep.c: Likewise.
10772         * misc/ustat.c: Likewise.
10773         * misc/utimes.c: Likewise.
10774         * misc/vhangup.c: Likewise.
10775         * misc/writev.c: Likewise.
10776         * posix/_exit.c: Likewise.
10777         * posix/alarm.c: Likewise.
10778         * posix/execve.c: Likewise.
10779         * posix/fexecve.c: Likewise.
10780         * posix/fork.c: Likewise.
10781         * posix/fpathconf.c: Likewise.
10782         * posix/getaddrinfo.c: Likewise.
10783         * posix/getegid.c: Likewise.
10784         * posix/geteuid.c: Likewise.
10785         * posix/getgid.c: Likewise.
10786         * posix/getgroups.c: Likewise.
10787         * posix/getlogin.c: Likewise.
10788         * posix/getlogin_r.c: Likewise.
10789         * posix/getpgid.c: Likewise.
10790         * posix/getpid.c: Likewise.
10791         * posix/getppid.c: Likewise.
10792         * posix/getresgid.c: Likewise.
10793         * posix/getresuid.c: Likewise.
10794         * posix/getsid.c: Likewise.
10795         * posix/getuid.c: Likewise.
10796         * posix/glob64.c: Likewise.
10797         * posix/nanosleep.c: Likewise.
10798         * posix/pathconf.c: Likewise.
10799         * posix/pause.c: Likewise.
10800         * posix/posix_madvise.c: Likewise.
10801         * posix/pread.c: Likewise.
10802         * posix/pread64.c: Likewise.
10803         * posix/pwrite.c: Likewise.
10804         * posix/pwrite64.c: Likewise.
10805         * posix/sched_getaffinity.c: Likewise.
10806         * posix/sched_getp.c: Likewise.
10807         * posix/sched_gets.c: Likewise.
10808         * posix/sched_primax.c: Likewise.
10809         * posix/sched_primin.c: Likewise.
10810         * posix/sched_rr_gi.c: Likewise.
10811         * posix/sched_setaffinity.c: Likewise.
10812         * posix/sched_setp.c: Likewise.
10813         * posix/sched_sets.c: Likewise.
10814         * posix/sched_yield.c: Likewise.
10815         * posix/setgid.c: Likewise.
10816         * posix/setlogin.c: Likewise.
10817         * posix/setpgid.c: Likewise.
10818         * posix/setresgid.c: Likewise.
10819         * posix/setresuid.c: Likewise.
10820         * posix/setsid.c: Likewise.
10821         * posix/setuid.c: Likewise.
10822         * posix/sleep.c: Likewise.
10823         * posix/spawni.c: Likewise.
10824         * posix/sysconf.c: Likewise.
10825         * posix/times.c: Likewise.
10826         * posix/wait.c: Likewise.
10827         * posix/wait3.c: Likewise.
10828         * posix/wait4.c: Likewise.
10829         * posix/waitpid.c: Likewise.
10830         * resolv/gai_sigqueue.c: Likewise.
10831         * resource/getpriority.c: Likewise.
10832         * resource/getrlimit.c: Likewise.
10833         * resource/getrusage.c: Likewise.
10834         * resource/nice.c: Likewise.
10835         * resource/setpriority.c: Likewise.
10836         * resource/setrlimit.c: Likewise.
10837         * resource/ulimit.c: Likewise.
10838         * rt/aio_cancel.c: Likewise.
10839         * rt/aio_fsync.c: Likewise.
10840         * rt/aio_read.c: Likewise.
10841         * rt/aio_sigqueue.c: Likewise.
10842         * rt/aio_suspend.c: Likewise.
10843         * rt/aio_write.c: Likewise.
10844         * rt/clock_getres.c: Likewise.
10845         * rt/clock_gettime.c: Likewise.
10846         * rt/clock_nanosleep.c: Likewise.
10847         * rt/clock_settime.c: Likewise.
10848         * rt/lio_listio.c: Likewise.
10849         * rt/mq_close.c: Likewise.
10850         * rt/mq_getattr.c: Likewise.
10851         * rt/mq_notify.c: Likewise.
10852         * rt/mq_open.c: Likewise.
10853         * rt/mq_receive.c: Likewise.
10854         * rt/mq_send.c: Likewise.
10855         * rt/mq_setattr.c: Likewise.
10856         * rt/mq_timedreceive.c: Likewise.
10857         * rt/mq_timedsend.c: Likewise.
10858         * rt/mq_unlink.c: Likewise.
10859         * rt/shm_open.c: Likewise.
10860         * rt/shm_unlink.c: Likewise.
10861         * rt/timer_create.c: Likewise.
10862         * rt/timer_delete.c: Likewise.
10863         * rt/timer_getoverr.c: Likewise.
10864         * rt/timer_gettime.c: Likewise.
10865         * rt/timer_settime.c: Likewise.
10866         * setjmp/__longjmp.c: Likewise.
10867         * setjmp/setjmp.c: Likewise.
10868         * signal/kill.c: Likewise.
10869         * signal/killpg.c: Likewise.
10870         * signal/raise.c: Likewise.
10871         * signal/sigaction.c: Likewise.
10872         * signal/sigaltstack.c: Likewise.
10873         * signal/sigblock.c: Likewise.
10874         * signal/sigignore.c: Likewise.
10875         * signal/sigintr.c: Likewise.
10876         * signal/signal.c: Likewise.
10877         * signal/sigpause.c: Likewise.
10878         * signal/sigpending.c: Likewise.
10879         * signal/sigqueue.c: Likewise.
10880         * signal/sigreturn.c: Likewise.
10881         * signal/sigset.c: Likewise.
10882         * signal/sigsetmask.c: Likewise.
10883         * signal/sigstack.c: Likewise.
10884         * signal/sigsuspend.c: Likewise.
10885         * signal/sigtimedwait.c: Likewise.
10886         * signal/sigvec.c: Likewise.
10887         * signal/sigwait.c: Likewise.
10888         * signal/sigwaitinfo.c: Likewise.
10889         * signal/sysv_signal.c: Likewise.
10890         * socket/accept.c: Likewise.
10891         * socket/accept4.c: Likewise.
10892         * socket/bind.c: Likewise.
10893         * socket/connect.c: Likewise.
10894         * socket/getpeername.c: Likewise.
10895         * socket/getsockname.c: Likewise.
10896         * socket/getsockopt.c: Likewise.
10897         * socket/isfdtype.c: Likewise.
10898         * socket/listen.c: Likewise.
10899         * socket/recv.c: Likewise.
10900         * socket/recvfrom.c: Likewise.
10901         * socket/recvmsg.c: Likewise.
10902         * socket/send.c: Likewise.
10903         * socket/sendmsg.c: Likewise.
10904         * socket/sendto.c: Likewise.
10905         * socket/setsockopt.c: Likewise.
10906         * socket/shutdown.c: Likewise.
10907         * socket/sockatmark.c: Likewise.
10908         * socket/socket.c: Likewise.
10909         * socket/socketpair.c: Likewise.
10910         * stdio-common/ctermid.c: Likewise.
10911         * stdio-common/cuserid.c: Likewise.
10912         * stdio-common/remove.c: Likewise.
10913         * stdio-common/rename.c: Likewise.
10914         * stdio-common/renameat.c: Likewise.
10915         * stdio-common/tempname.c: Likewise.
10916         * stdlib/getcontext.c: Likewise.
10917         * stdlib/makecontext.c: Likewise.
10918         * stdlib/setcontext.c: Likewise.
10919         * stdlib/swapcontext.c: Likewise.
10920         * stdlib/system.c: Likewise.
10921         * streams/fattach.c: Likewise.
10922         * streams/fdetach.c: Likewise.
10923         * streams/getmsg.c: Likewise.
10924         * streams/getpmsg.c: Likewise.
10925         * streams/putmsg.c: Likewise.
10926         * streams/putpmsg.c: Likewise.
10927         * sysdeps/unix/bsd/getpt.c: Likewise.
10928         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
10929         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
10930         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
10931         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
10932         Likewise.
10933         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
10934         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
10935         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
10936         * sysvipc/msgctl.c: Likewise.
10937         * sysvipc/msgget.c: Likewise.
10938         * sysvipc/msgrcv.c: Likewise.
10939         * sysvipc/msgsnd.c: Likewise.
10940         * sysvipc/semctl.c: Likewise.
10941         * sysvipc/semget.c: Likewise.
10942         * sysvipc/semop.c: Likewise.
10943         * sysvipc/semtimedop.c: Likewise.
10944         * sysvipc/shmat.c: Likewise.
10945         * sysvipc/shmctl.c: Likewise.
10946         * sysvipc/shmdt.c: Likewise.
10947         * sysvipc/shmget.c: Likewise.
10948         * termios/tcdrain.c: Likewise.
10949         * termios/tcflow.c: Likewise.
10950         * termios/tcflush.c: Likewise.
10951         * termios/tcgetattr.c: Likewise.
10952         * termios/tcgetpgrp.c: Likewise.
10953         * termios/tcsendbrk.c: Likewise.
10954         * termios/tcsetattr.c: Likewise.
10955         * termios/tcsetpgrp.c: Likewise.
10956         * time/adjtime.c: Likewise.
10957         * time/clock.c: Likewise.
10958         * time/getitimer.c: Likewise.
10959         * time/gettimeofday.c: Likewise.
10960         * time/setitimer.c: Likewise.
10961         * time/settimeofday.c: Likewise.
10962         * time/stime.c: Likewise.
10963         * time/time.c: Likewise.
10964
10965 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
10966
10967         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
10968         /usr/old/bin.
10969
10970         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
10971         instead of spaces.
10972         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
10973
10974 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
10975
10976         [BZ #14796]
10977         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
10978         FE_TONEAREST before applying Dekker multiplication and Knuth
10979         addition.  Clear inexact exceptions and check for exact zero
10980         results afterwards.
10981         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
10982         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
10983         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
10984         * math/libm-test.inc (fma_test): Add more tests.
10985         (fma_test_towardzero): Likewise.
10986         (fma_test_downward): Likewise.
10987         (fma_test_upward): Likewise.
10988         * sysdeps/generic/math_private.h (default_libc_fesetround): New
10989         function.
10990         (libc_fesetround): New macro.
10991         (libc_fesetroundf): Likewise.
10992         (libc_fesetroundl): Likewise.
10993         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
10994         function.
10995         (libc_fesetround_387): Likewise.
10996         (libc_fesetroundf): New macro.
10997         (libc_fesetround): Likewise.
10998         (libc_fesetroundl): Likewise.
10999         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
11000         function.
11001         (libc_fesetroundf): New macro.
11002         (libc_fesetround): Likewise.
11003         (libc_fesetroundl): Likewise.
11004         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
11005         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
11006         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
11007         libm_hidden_ver.
11008         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
11009         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
11010         libm_hidden_def.
11011         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
11012         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
11013         libm_hidden_ver.
11014         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
11015         libm_hidden_def.
11016
11017         [BZ #3439]
11018         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
11019         integer constant usable in #if and use that to give value to enum
11020         constant.
11021         (FE_DIVBYZERO): Likewise.
11022         (FE_UNDERFLOW): Likewise.
11023         (FE_OVERFLOW): Likewise.
11024         (FE_INVALID): Likewise.
11025         (FE_INVALID_SNAN): Likewise.
11026         (FE_INVALID_ISI): Likewise.
11027         (FE_INVALID_IDI): Likewise.
11028         (FE_INVALID_ZDZ): Likewise.
11029         (FE_INVALID_IMZ): Likewise.
11030         (FE_INVALID_COMPARE): Likewise.
11031         (FE_INVALID_SOFTWARE): Likewise.
11032         (FE_INVALID_SQRT): Likewise.
11033         (FE_INVALID_INTEGER_CONVERSION): Likewise.
11034         (FE_TONEAREST): Likewise.
11035         (FE_TOWARDZERO): Likewise.
11036         (FE_UPWARD): Likewise.
11037         (FE_DOWNWARD): Likewise.
11038         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
11039         (FE_DIVBYZERO): Likewise.
11040         (FE_OVERFLOW): Likewise.
11041         (FE_UNDERFLOW): Likewise.
11042         (FE_INEXACT): Likewise.
11043         (FE_TONEAREST): Likewise.
11044         (FE_DOWNWARD): Likewise.
11045         (FE_UPWARD): Likewise.
11046         (FE_TOWARDZERO): Likewise.
11047         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
11048         (FE_UNDERFLOW): Likewise.
11049         (FE_OVERFLOW): Likewise.
11050         (FE_DIVBYZERO): Likewise.
11051         (FE_INVALID): Likewise.
11052         (FE_TONEAREST): Likewise.
11053         (FE_TOWARDZERO): Likewise.
11054         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
11055         (FE_OVERFLOW): Likewise.
11056         (FE_UNDERFLOW): Likewise.
11057         (FE_DIVBYZERO): Likewise.
11058         (FE_INEXACT): Likewise.
11059         (FE_TONEAREST): Likewise.
11060         (FE_TOWARDZERO): Likewise.
11061         (FE_UPWARD): Likewise.
11062         (FE_DOWNWARD): Likewise.
11063         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
11064         (FE_DIVBYZERO): Likewise.
11065         (FE_OVERFLOW): Likewise.
11066         (FE_UNDERFLOW): Likewise.
11067         (FE_INEXACT): Likewise.
11068         (FE_TONEAREST): Likewise.
11069         (FE_DOWNWARD): Likewise.
11070         (FE_UPWARD): Likewise.
11071         (FE_TOWARDZERO): Likewise.
11072
11073 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
11074
11075         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
11076
11077 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
11078
11079         * scripts/cross-test-ssh.sh (command): Use newlines to separate
11080         commands.  Quote $PWD.
11081         (blacklist_exports): Don't use remove_newlines.  Replace "declare
11082         -x" by "export".
11083         (remove_newlines): Remove.
11084
11085 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
11086
11087         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
11088         * stdlib/stdlib.h (atof): Moved to ...
11089         * include/bits/stdlib-float.h: Here.  New file.
11090         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
11091         * stdlib/bits/stdlib-float.h: New file.
11092         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
11093         -mno-sse -mno-mmx.
11094         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
11095         <xmmintrin.h>.
11096
11097 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
11098
11099         * conform/conformtest.pl (@headers): Add fenv.h.
11100         * conform/data/fenv.h-data: New file.
11101         * include/fenv.h [_ISOMAC]: Disable all contents of file except
11102         include of <math/fenv.h>.
11103
11104         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
11105         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
11106         && !UNIX98].  Enables tests for XOPEN2K8.
11107         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
11108         POSIX2008]: Likewise.
11109
11110         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
11111         (struct rusage): Do not expect type or its members.
11112
11113         [BZ #3439]
11114         * math/math.h (FP_NAN): Define macro to integer constant usable in
11115         #if and use that to give value to enum constant.
11116         (FP_INFINITE): Likewise.
11117         (FP_ZERO): Likewise.
11118         (FP_SUBNORMAL): Likewise.
11119         (FP_NORMAL): Likewise.
11120
11121 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
11122
11123         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
11124         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
11125         arguments.
11126
11127 2012-11-02  Roland McGrath  <roland@hack.frob.com>
11128
11129         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
11130         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
11131         autoconf-time if not.
11132         * configure.in: Remove AC_PREREQ.
11133
11134 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11135
11136         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
11137         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
11138         of the internal implementation.
11139
11140 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
11141
11142         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
11143         except include of <misc/sys/syslog.h>.
11144
11145 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
11146
11147         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
11148         function returns with a NULL context exit with zero.
11149
11150 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11151
11152         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
11153
11154 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
11155
11156         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
11157         (run_program_cmd): This.
11158         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
11159         (tst_langinfo): New variable.  Use it.
11160
11161 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
11162
11163         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
11164         floating point opcodes.
11165
11166 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
11167
11168         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
11169         variable.
11170
11171         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
11172
11173         * sysdeps/mach/hurd/powerpc: Remove directory.
11174         * sysdeps/mach/powerpc: Likewise.
11175
11176 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
11177
11178         * scripts/check-local-headers.sh: Ignore c++ headers.
11179
11180 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
11181
11182         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
11183         __libc_cleanup_region_start argument.
11184
11185 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
11186
11187         [BZ #14784]
11188         [BZ #14785]
11189         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
11190         x * y using scaling, not as x * y + z.
11191         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11192         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11193         * math/libm-test.inc (fma_test): Add more tests.
11194         (fma_test_towardzero): Likewise.
11195         (fma_test_downward): Likewise.
11196         (fma_test_upward): Likewise.
11197
11198 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
11199
11200         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
11201
11202 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
11203
11204         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
11205         New variable.
11206
11207 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
11208
11209         * rt/tst-shm.c (worker): Correct checking for mmap failure.
11210
11211 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
11212
11213         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11214         Fix sort order.
11215         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11216         Likewise.
11217
11218 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
11219
11220         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11221         Fix the order of the list for glibc 2.17.
11222         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11223         Likewise.
11224
11225 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
11226
11227         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11228
11229 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
11230
11231         [BZ #14610]
11232         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
11233         for low part of x being zero before using __atanl (y).
11234         * math/libm-test.inc (atan2_test): Add another test.
11235
11236         * manual/install.texi (Configuring and compiling): Document
11237         general use of test-wrapper and test-wrapper-env.
11238         * INSTALL: Regenerated.
11239
11240         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
11241         (__fma): Do not extract and scale down low bits on after-rounding
11242         systems when result rounded to normal precision would have normal
11243         exponent.
11244         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
11245         (__fmal): Do not extract and scale down low bits on after-rounding
11246         systems when result rounded to normal precision would have normal
11247         exponent.
11248         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
11249         (__fmal): Do not extract and scale down low bits on after-rounding
11250         systems when result rounded to normal precision would have normal
11251         exponent.
11252         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
11253         macro.
11254         (fma_test): Add more tests.
11255         (fma_test_towardzero): Likewise.
11256         (fma_test_downward): Likewise.
11257         (fma_test_upward): Likewise.
11258
11259 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
11260
11261         * sysdeps/i386/tininess.h: Renamed to ...
11262         * sysdeps/x86/tininess.h: This.
11263         * sysdeps/x86_64/tininess.h: Removed.
11264
11265 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
11266
11267         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
11268         input.  Use $(build-program-cmd).
11269         ($(objpfx)tst-array1-static.out): Likewise.
11270         ($(objpfx)tst-array2.out): Likewise.
11271         ($(objpfx)tst-array3.out): Likewise.
11272         ($(objpfx)tst-array4.out): Likewise.
11273         ($(objpfx)tst-array5.out): Likewise.
11274         ($(objpfx)tst-array5-static.out): Likewise.
11275
11276 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
11277
11278         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
11279         if defined.
11280
11281         * nss/nsswitch.h (nss_interface_function): Provide new
11282         macro for use with NSS functions.
11283         * grp/initgroups.c: Use new macro.
11284         * nss/getXXbyYY.c: Likewise.
11285         * nss/getXXbyYY_r.c: Likewise.
11286         * nss/getXXent.c: Likewise.
11287         * nss/getXXent_r.c: Likewise.
11288         * sysdeps/posix/getaddrinfo.c: Likewise.
11289
11290 2012-10-30  Andreas Jaeger  <aj@suse.de>
11291
11292         * po/ru.po: Update Russion translation from translation project.
11293
11294 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
11295
11296         [BZ #14152]
11297         [BZ #14783]
11298         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
11299         result and shift together with sticky bit instead of replicating
11300         round-to-nearest rounding.
11301         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
11302         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
11303         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
11304         missing underflow exceptions.
11305         (fma_test_towardzero): Add more tests.
11306         (fma_test_downward): Likewise.
11307         (fma_test_upward): Likewise.
11308
11309         [BZ #14047]
11310         * sysdeps/generic/tininess.h: New file.
11311         * sysdeps/i386/tininess.h: Likewise.
11312         * sysdeps/sh/tininess.h: Likewise.
11313         * sysdeps/x86_64/tininess.h: Likewise.
11314         * stdlib/tst-strtod-underflow.c: Likewise.
11315         * stdlib/tst-tininess.c: Likewise.
11316         * stdlib/strtod_l.c: Include <tininess.h>.
11317         (round_and_return): Do not set errno for exact underflow cases.
11318         Force an underflow exception when setting errno for underflow.
11319         Determine underflow based on rounding to normal precision if
11320         TININESS_AFTER_ROUNDING.
11321         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
11322         ERANGE for exact underflow cases.
11323         * stdlib/Makefile (tests): Add tst-tininess and
11324         tst-strtod-underflow.
11325         ($(objpfx)tst-tininess): Use $(link-libm).
11326         ($(objpfx)tst-strtod-underflow): Likewise.
11327
11328 2012-10-30  Andreas Jaeger  <aj@suse.de>
11329
11330         [BZ#14767]
11331         * elf/Makefile (tests): Remove conditional for have-initfini-array
11332         since this is now always required and the variable does not exist
11333         anymore.
11334         (tests-static): Likewise.
11335         (modules-names): Likewise.
11336
11337         * po/eo.po: Add Esperanto translation from translation project.
11338
11339         * elf/tst-array1.c (fini_array): Make writeable so that it can be
11340         merged with constructor/destructor.
11341         (init_array): Likewise.
11342         * elf/tst-array2dep.c (fini_array): Likewise.
11343         (init_array): Likewise.
11344
11345 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
11346
11347         * manual/message.texi: Delete @cartouche tags.
11348
11349 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
11350
11351         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
11352         EOPNOTSUPP.
11353         * sysdeps/mach/hurd/fsync.c: Likewise.
11354
11355         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
11356         [_POSIX_REALTIME_SIGNALS]: Change condition to
11357         [_POSIX_REALTIME_SIGNALS > 0].
11358
11359 2012-10-27  Andreas Jaeger  <aj@suse.de>
11360
11361         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
11362         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
11363         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
11364         [__WORDSIZE != 64]: Likewise.
11365
11366 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
11367
11368         *  iconvdata/tst-table.sh: Remove ${SHELL}.
11369         *  iconvdata/tst-tables.sh: Likewise.
11370
11371 2012-10-25  David S. Miller  <davem@davemloft.net>
11372
11373         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11374         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
11375         of strtoull.
11376
11377         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
11378         ifunc-impl-list.c
11379         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11380         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
11381         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
11382         file.
11383
11384 2012-10-25  Roland McGrath  <roland@hack.frob.com>
11385
11386         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11387         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
11388         __getdirentries.
11389
11390 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
11391             Jim Blandy  <jimb@codesourcery.com>
11392
11393         * scripts/cross-test-ssh.sh: New file.
11394         * manual/install.texi (Configuring and compiling): Document use of
11395         cross-test-ssh.sh.
11396         * INSTALL: Regenerated.
11397
11398 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
11399
11400         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
11401         EOPNOTSUPP.
11402
11403 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
11404
11405         * Makeconfig (run-program-prefix): Fix comment.
11406
11407 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
11408             Jim Blandy  <jimb@codesourcery.com>
11409
11410         * Makeconfig (test-wrapper): New variable,
11411         (test-wrapper-env): Likewise.
11412         [$(cross-compiling) = yes && $(test-wrapper) != ""]
11413         (run-built-tests): Define to yes.
11414         (run-program-prefix): Use $(test-wrapper).
11415         (built-program-cmd): Likewise.
11416         * Rules (make-test-out): Use $(test-wrapper-env) and
11417         $(host-built-program-cmd).
11418         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
11419         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
11420         tst-pathopt.sh.
11421         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
11422         $(test-wrapper-env) to tst-rtld-load-self.sh.
11423         ($(objpfx)order2.out): Use $(test-wrapper).
11424         ($(objpfx)tst-initorder.out): Likewise.
11425         ($(objpfx)tst-initorder2.out): Likewise.
11426         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
11427         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
11428         (test_wrapper_env): New variable.  Use it to run ld.so.
11429         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
11430         Use it to run ld.so.
11431         (test_wrapper_env): Likewise.
11432         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
11433         $(test-wrapper) to run-iconv-test.sh.
11434         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
11435         (ICONV): Use $test_wrapper.
11436         * posix/Makefile ($(objpfx)globtest.out): Pass
11437         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
11438         globtest.sh, not $(run-program-prefix).
11439         * posix/globtest.sh (run_via_rtld_prefix): New variable.
11440         (test_wrapper): Likewise.
11441         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
11442         set together with run_via_rtld_prefix.
11443         (run_program_prefix): Define in terms of test_wrapper and
11444         run_via_rtld_prefix.
11445
11446 2012-10-24  Roland McGrath  <roland@hack.frob.com>
11447
11448         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
11449         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
11450         Targets removed.
11451
11452         [BZ #14743]
11453         * include/time.h: Remove librt_hidden_proto (clock_gettime).
11454         Declare __clock_getres, __clock_gettime, __clock_settime,
11455         __clock_nanosleep, and __clock_getcpuclockid.
11456         * rt/clock_gettime.c: Define __clock_gettime as an alias.
11457         Remove librt_hidden_def (clock_gettime).
11458         * sysdeps/unix/clock_gettime.c: Likewise.
11459         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
11460         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
11461         * rt/clock_getres.c: Define __clock_getres as an alias.
11462         * sysdeps/posix/clock_getres.c: Likewise.
11463         * rt/clock_settime.c: Define __clock_settime as an alias.
11464         * sysdeps/unix/clock_settime.c: Likewise.
11465         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
11466         * sysdeps/unix/clock_nanosleep.c: Likewise.
11467         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
11468         * rt/clock-compat.c: New file.
11469         * rt/Makefile (librt-routines): Add clock-compat and move
11470         $(clock-routines) to ...
11471         (routines): ... here, new variable.
11472         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
11473         Don't add get_clockfreq here.
11474         * rt/Versions (libc: GLIBC_2.17): New version set.
11475         Add clock_* symbols here.
11476         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
11477         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
11478         (GLIBC_2.17): Add clock_* symbols.
11479         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
11480         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
11481         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
11482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
11483         Likewise.
11484         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
11485         Likewise.
11486         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
11487         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
11488         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
11489         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
11490         * NEWS: Mention the move.
11491
11492         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
11493         Use __open, __read, __close rather than their public counterparts.
11494         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
11495         (__get_clockfreq_via_cpuinfo): Likewise.
11496         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
11497         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
11498
11499         * config.h.in (HAVE_IFUNC): New #undef.
11500         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
11501         was successful.
11502         * configure: Regenerated.
11503
11504 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
11505
11506         * configure.in: Move READELF check to start of file.
11507         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
11508         libc_cv_asm_gnu_indirect_function in the process.
11509         * configure: Regenerated.
11510
11511 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
11512
11513         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
11514         send the output to /dev/null.
11515         (libc_cv_cc_with_libunwind): Likewise.
11516         (libc_cv_as_noexecstack): Likewise.
11517         * configure: Regenerate.
11518
11519 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
11520
11521         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
11522
11523         * posix/globtest.sh (TMPDIR): Do not set.
11524         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
11525         (testout): Likewise.
11526
11527 2012-10-24  Andreas Jaeger  <aj@suse.de>
11528
11529         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
11530         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
11531         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
11532         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
11533         posix_fadvise64, posix_fallocate64.
11534
11535         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
11536         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
11537         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
11538         Likewise.
11539         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
11540         Likewise.
11541         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
11542
11543         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
11544         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
11545         <bits/fcntl-linux.h>.
11546         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
11547
11548         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
11549         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
11550         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
11551         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
11552         [__WORDSIZE != 64]: Likewise.
11553
11554 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
11555
11556         * Makeconfig (run-built-tests): New variable.
11557         * Rules [$(cross-compiling) = yes]: Change condition to
11558         [$(run-built-tests) = no].
11559         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
11560         to [$(run-built-tests) = yes].
11561         * elf/Makefile [$(cross-compiling) = no]: Likewise
11562         * grp/Makefile [$(cross-compiling) = no]: Likewise.
11563         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
11564         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
11565         * intl/Makefile [$(cross-compiling) = no]: Likewise.
11566         * io/Makefile [$(cross-compiling) = no]: Likewise.
11567         * libio/Makefile [$(cross-compiling) = no]: Likewise.
11568         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
11569         * misc/Makefile [$(cross-compiling) = no]: Likewise.
11570         * posix/Makefile [$(cross-compiling) = no]: Likewise.
11571         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
11572         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
11573         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
11574         * string/Makefile [$(cross-compiling) = no]: Likewise.
11575
11576         * posix/Makefile ($(objpfx)globtest.out): Pass
11577         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
11578         $(rtld-installed-name).
11579         * posix/globtest.sh (elf_objpfx): Remove variable.
11580         (rtld_installed_name): Likewise.
11581         (library_path): Likewise.
11582         (run_program_prefix): New variable.  Use for running globtest
11583         binary.
11584
11585 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
11586             Joseph Myers  <joseph@codesourcery.com>
11587
11588         * Makeconfig (host-built-program-cmd): New variable.
11589         * elf/Makefile (tst-stackguard1-ARGS): Use
11590         $(host-built-program-cmd).
11591         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
11592         (tst-spawn-ARGS): Likewise.
11593         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
11594
11595 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
11596             Jim Blandy  <jimb@codesourcery.com>
11597
11598         * Makeconfig (run-via-rtld-prefix): New variable.
11599         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
11600         (built-program-cmd): Likewise.
11601
11602 2012-10-22  Andreas Jaeger  <aj@suse.de>
11603
11604         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
11605         __O_RSYNC if it exists, otherwise to O_SYNC.
11606
11607 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
11608             Joseph Myers  <joseph@codesourcery.com>
11609
11610         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
11611         /dev/null.
11612         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
11613         from /dev/null
11614         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
11615         /dev/null.
11616
11617 2012-10-22  Andreas Jaeger  <aj@suse.de>
11618
11619         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
11620         Define always.
11621         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
11622
11623         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
11624         bits/fcntl-linux.h.
11625
11626         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
11627         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
11628
11629         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
11630         to __O_LARGEFILE.
11631         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
11632         to __O_LARGEFILE.
11633
11634 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
11635             Joseph Myers  <joseph@codesourcery.com>
11636
11637         * config.make.in (NM): New variable.
11638
11639 2012-10-21  Andreas Jaeger  <aj@suse.de>
11640
11641         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
11642         definitions and declarations that are provided by
11643         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
11644
11645 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
11646
11647         [BZ #14683]
11648         * elf/Makefile (tests-static): Add tst-leaks1-static.
11649         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
11650         ($(objpfx)tst-leaks1-static): New rule.
11651         ($(objpfx)tst-leaks1-static-mem): Likewise.
11652         (tst-leaks1-static-ENV): New macro.
11653         * elf/dl-open.c (dl_open_worker): Check the main application
11654         only if SHARED is defined.
11655         * elf/tst-leaks1-static.c: New file.
11656
11657 2012-10-20  Andreas Jaeger  <aj@suse.de>
11658
11659         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
11660         generic values for Linux.
11661         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
11662         and declarations that are provided by <bits/fcntl-linux.h> and
11663         include <bits/fcntl-linux.h>.
11664         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
11665         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
11666
11667 2012-10-20  Roland McGrath  <roland@hack.frob.com>
11668
11669         * io/fcntl.h: Move include of <bits/types.h> to the top and
11670         include it unconditionally.
11671
11672 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
11673
11674         * wcsmbs/Makefile (tests-ifunc): New variable.
11675         (tests): Add $(tests-ifunc).
11676         * wcsmbs/test-wcschr-ifunc.c: New file.
11677         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
11678         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
11679         * wcsmbs/test-wcslen-ifunc.c: Likewise.
11680         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
11681         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
11682
11683         * string/Makefile (tests-ifunc): New variable.
11684         (tests): Add $(tests-ifunc).
11685         * string/test-memccpy.c (TEST_NAME): New macro.
11686         * string/test-memchr.c (TEST_NAME): Likewise.
11687         * string/test-memcmp.c (TEST_NAME): Likewise.
11688         * string/test-memcpy.c (TEST_NAME): Likewise.
11689         * string/test-memmem.c (TEST_NAME): Likewise.
11690         * string/test-memmove.c (TEST_NAME): Likewise.
11691         * string/test-memset.c (TEST_NAME): Likewise.
11692         * string/test-rawmemchr.c (TEST_NAME): Likewise.
11693         * string/test-stpcpy.c (TEST_NAME): Likewise.
11694         * string/test-stpncpy.c (TEST_NAME): Likewise.
11695         * string/test-strcasecmp.c (TEST_NAME): Likewise.
11696         * string/test-strcasestr.c (TEST_NAME): Likewise.
11697         * string/test-strcat.c (TEST_NAME): Likewise.
11698         * string/test-strchr.c (TEST_NAME): Likewise.
11699         * string/test-strcmp.c(TEST_NAME): Likewise.
11700         * string/test-strcpy.c (TEST_NAME): Likewise.
11701         * string/test-strcspn.c (TEST_NAME): Likewise.
11702         * string/test-strlen.c (TEST_NAME): Likewise.
11703         * string/test-strncasecmp.c (TEST_NAME): Likewise.
11704         * string/test-strncmp.c (TEST_NAME): Likewise.
11705         * string/test-strncpy.c (TEST_NAME): Likewise.
11706         * string/test-strnlen.c (TEST_NAME): Likewise.
11707         * string/test-strpbrk.c (TEST_NAME): Likewise.
11708         * string/test-strrchr.c (TEST_NAME): Likewise.
11709         * string/test-strspn.c (TEST_NAME): Likewise.
11710         * string/test-strstr.c (TEST_NAME): Likewise.
11711         * string/test-bcopy-ifunc.c: New file.
11712         * string/test-bzero-ifunc.c: Likewise.
11713         * string/test-memccpy-ifunc.c: Likewise.
11714         * string/test-memchr-ifunc.c: Likewise.
11715         * string/test-memcmp-ifunc.c: Likewise.
11716         * string/test-memcpy-ifunc.c: Likewise.
11717         * string/test-memmem-ifunc.c: Likewise.
11718         * string/test-memmove-ifunc.c: Likewise.
11719         * string/test-mempcpy-ifunc.c: Likewise.
11720         * string/test-memset-ifunc.c: Likewise.
11721         * string/test-rawmemchr-ifunc.c: Likewise.
11722         * string/test-stpcpy-ifunc.c: Likewise.
11723         * string/test-stpncpy-ifunc.c: Likewise.
11724         * string/test-strcasecmp-ifunc.c: Likewise.
11725         * string/test-strcasestr-ifunc.c: Likewise.
11726         * string/test-strcat-ifunc.c: Likewise.
11727         * string/test-strchr-ifunc.c: Likewise.
11728         * string/test-strchrnul-ifunc.c: Likewise.
11729         * string/test-strcmp-ifunc.c: Likewise.
11730         * string/test-strcpy-ifunc.c: Likewise.
11731         * string/test-strcspn-ifunc.c: Likewise.
11732         * string/test-strlen-ifunc.c: Likewise.
11733         * string/test-strncasecmp-ifunc.c: Likewise.
11734         * string/test-strncat-ifunc.c: Likewise.
11735         * string/test-strncmp-ifunc.c: Likewise.
11736         * string/test-strncpy-ifunc.c: Likewise.
11737         * string/test-strnlen-ifunc.c: Likewise.
11738         * string/test-strpbrk-ifunc.c: Likewise.
11739         * string/test-strrchr-ifunc.c: Likewise.
11740         * string/test-strspn-ifunc.c: Likewise.
11741         * string/test-strstr-ifunc.c: Likewise.
11742
11743         * debug/Makefile (tests-ifunc): New variable.
11744         (tests): Add $(tests-ifunc).
11745         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
11746         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
11747         * debug/test-stpcpy_chk-ifunc.c: New file.
11748         * debug/test-strcpy_chk-ifunc.c: Likewise.
11749
11750 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
11751
11752         [BZ #13601]
11753         * elf/dl-load.c (open_verify): Retry read if the entire ELF
11754         header is not read in.
11755
11756 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
11757
11758         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
11759         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
11760         directly.  Pass built executable to script as
11761         $(built-program-cmd).
11762         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
11763         $testprogram without using LD_LIBRARY_PATH and $ldso.
11764
11765         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
11766         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
11767         $(rtld-installed-name).
11768         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
11769         (rtld_installed_name): Likewise.
11770         (library_path): Likewise.
11771         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
11772         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
11773         $(run-program-prefix) to tst-tables.sh.
11774         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
11775         it to run tst-table-from and tst-table-to.
11776         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
11777         Pass it to tst-table.sh.
11778         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
11779         $(run-program-prefix) to tst-gettext.sh.
11780         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
11781         tst-translit.sh.
11782         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
11783         tst-gettext2.sh.
11784         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
11785         to run tst-gettext.
11786         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
11787         to run tst-gettext2.
11788         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
11789         to run tst-translit.
11790         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
11791         $(run-program-prefix) to tst-mtrace.sh.
11792         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
11793         to run tst-mtrace.
11794         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
11795         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
11796         $(rtld-installed-name).
11797         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
11798         (rtld_installed_name): Likewise.
11799         (run_program_prefix): New variable.  Use it to run wordexp-test.
11800
11801         * Makeconfig (ARCH): Remove all definitions.
11802         (machine): Likewise.
11803         [ARCH]: Remove conditional code.
11804         [!objdir]: Give error.
11805         [!objdir] (objpfx): Remove.
11806         [!objdir] (common-objpfx): Likewise.
11807         [!objdir] (common-objdir): Likewise.
11808         * configure.in (config_makefile): Remove.  Hardcode Makefile in
11809         AC_CONFIG_FILES call.
11810         * configure: Regenerated.
11811
11812         [BZ #13888]
11813         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
11814         or TMPDIR.
11815         (testout): Likewise.
11816
11817         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
11818         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
11819         $(rtld-installed-name).
11820         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
11821         (rtld_installed_name): Likwise.
11822         (runit): Remove function.
11823         (run_getconf): New variable,  Use it for running getconf binary.
11824
11825 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
11826
11827         [BZ #14716]
11828         * string/test-memmem.c (check_result): New function.
11829         (do_one_test): Use it.
11830         (check1): New function.
11831         (test_main): Use it.
11832
11833 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
11834
11835         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
11836
11837 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
11838
11839         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
11840         (_G_LSEEK64): Likewise.
11841         (_G_MMAP64): Likewise.
11842         (_G_FSTAT64): Likewise.
11843         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
11844         (_G_LSEEK64): Likewise.
11845         (_G_MMAP64): Likewise.
11846         (_G_FSTAT64): Likewise.
11847         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
11848         unconditional.  Call __mmap64 directly.
11849         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
11850         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
11851         __lseek64 directly.
11852         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
11853         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
11854         __mmap64 directly.
11855         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
11856         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
11857         __lseek64 directly.
11858         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
11859         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
11860         __lseek64 directly.
11861         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
11862         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
11863         __lseek64 directly.
11864         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
11865         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
11866         __fxstat64 directly.
11867         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
11868         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
11869         unconditional.
11870         (freopen64) [!_G_OPEN64]: Remove conditional code.
11871         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
11872         unconditional.
11873         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
11874         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
11875         unconditional.
11876         (ftello64) [!_G_LSEEK64]: Remove conditional code.
11877         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
11878         unconditional.
11879         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
11880         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
11881         unconditional.
11882         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
11883         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
11884         unconditional.
11885         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
11886         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
11887         unconditional.
11888         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
11889         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
11890         unconditional.
11891         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
11892
11893 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
11894
11895         [BZ #12140]
11896         * manual/memory.texi (Malloc Tunable Parameters): Add note
11897         about free list pointers overwriting some perturb bytes.
11898         Wording suggested by Roland McGrath.
11899
11900 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
11901
11902         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
11903         (lgamma_test): Likewise.
11904         (tgamma_test): Likewise.
11905
11906 2012-10-16  Florian Weimer  <fweimer@redhat.com>
11907
11908         [BZ #14700]
11909         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
11910         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
11911
11912 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
11913
11914         * NEWS: Mention BZ #14716.
11915         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
11916         when removing AVAILABLE1_USES_J macro.
11917
11918 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
11919
11920         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
11921         (__bswap_64): __uint64_t for unsigned 64-bit int.
11922
11923 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
11924
11925         * include/string.h (memmem): Declare libc hidden alias.
11926         * string/memmem.c (memmem): Define libc hidden alias.
11927         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
11928         __read, __close instead of open, read, close.
11929
11930 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
11931
11932         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
11933         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
11934         global and hidden.
11935         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
11936         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
11937         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
11938         Likewise.
11939         (__rawmemchr_sse2): Likewise.
11940         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
11941         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
11942         (__strchr_sse2): Likewise.
11943         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
11944         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
11945         (__strcasecmp_sse2): Likewise.
11946         (__strncasecmp_sse2): Likewise.
11947         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
11948         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
11949         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
11950         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
11951         (__strrchr_sse2): Likewise.
11952         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
11953         ifunc-impl-list.c.
11954         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
11955         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
11956         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
11957         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
11958         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
11959         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
11960         * sysdeps/x86_64/multiarch/memset.S: Likewise.
11961         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
11962         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
11963         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
11964         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
11965         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
11966         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
11967         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
11968         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
11969         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
11970         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
11971         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
11972         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
11973         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
11974         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
11975         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
11976         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
11977         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
11978         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
11979         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
11980         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
11981         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
11982         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
11983         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
11984
11985         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
11986         global and hidden.
11987         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
11988         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
11989         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
11990         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
11991         Likewise.
11992         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
11993         Likewise.
11994         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
11995         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
11996         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
11997         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
11998         ifunc-impl-list.c.
11999         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
12000         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
12001         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
12002         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
12003         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
12004         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
12005         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
12006         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
12007         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
12008         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
12009         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
12010         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
12011         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
12012         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
12013         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
12014         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
12015         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
12016         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
12017         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
12018         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
12019         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
12020         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
12021         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
12022         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
12023         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
12024         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
12025         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
12026         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
12027         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
12028         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
12029         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
12030         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
12031         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
12032         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
12033         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
12034         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
12035         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
12036         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
12037         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
12038         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
12039         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
12040
12041         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
12042         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
12043         * include/ifunc-impl-list.h: New file.
12044         * misc/ifunc-impl-list.c: Likewise.
12045         * misc/Makefile (routines): Add ifunc-impl-list.
12046         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
12047         * string/test-string.h: Include <ifunc-impl-list.h>.
12048         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
12049         impl_array): New variables.
12050         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
12051         are defined.
12052         (test_init): Call __libc_ifunc_impl_list to initialize
12053         func_list if TEST_IFUNC and TEST_NAME are defined.
12054
12055         * string/Makefile (strop-tests): Add bcopy and bzero.
12056         * string/test-bcopy.c: New file.
12057         * string/test-bzero.c: Likewise.
12058         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
12059         defined.
12060         * string/test-memset.c: Support bzero test if TEST_BZERO is
12061         defined.
12062         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
12063         __libc_memmove.
12064         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
12065         __libc_memset.
12066         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
12067         of memset.
12068
12069 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
12070
12071         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
12072         * configure: Regenerated.
12073
12074         * Makeconfig (+link-static-before-libc): Don't include
12075         $(link-static-libc).
12076
12077         * libio/libio.h (_IO_pos_t): Remove.
12078
12079 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
12080
12081         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
12082         McGrath.
12083
12084 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
12085
12086         * crypt/crypt-entry.c: Include fips-private.h.
12087         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
12088         * crypt/md5c-test.c (main): Tolerate disabled MD5.
12089         * sysdeps/unix/sysv/linux/fips-private.h: New file.
12090         * sysdeps/generic/fips-private.h: New file, dummy fallback.
12091
12092 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
12093
12094         * crypt/crypt-private.h: Include stdbool.h.
12095         (_ufc_setup_salt_r): Return bool.
12096         * crypt/crypt-entry.c: Include errno.h.
12097         (__crypt_r): Return NULL with EINVAL for bad salt.
12098         * crypt/crypt_util.c (bad_for_salt): New.
12099         (_ufc_setup_salt_r): Check that salt is long enough and within
12100         the specified alphabet.
12101         * crypt/badsalttest.c: New file.
12102         * crypt/Makefile (tests): Add it.
12103         ($(objpfx)badsalttest): New.
12104
12105 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
12106
12107         * NEWS: Add entry for BZ #14602.
12108
12109 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
12110
12111         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
12112         type-generic.
12113         * math/libm-test.inc: Update comment listing what functions and
12114         macros are tested.
12115         (isgreater_test): New function.
12116         (isgreaterequal_test): Likewise.
12117         (isless_test): Likewise.
12118         (islessequal_test): Likewise.
12119         (islessgreater_test): Likewise.
12120         (isunordered_test): Likewise.
12121         (main): Call the new functions.
12122
12123 2012-10-09  Roland McGrath  <roland@hack.frob.com>
12124
12125         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
12126         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
12127         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
12128         * sysdeps/i386/configure: Regenerated.
12129         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
12130         * sysdeps/mach/configure: Regenerated.
12131         * sysdeps/mach/hurd/configure: Regenerated.
12132         * sysdeps/powerpc/configure: Regenerated.
12133         * sysdeps/powerpc/powerpc32/configure: Regenerated.
12134         * sysdeps/powerpc/powerpc64/configure: Regenerated.
12135         * sysdeps/s390/s390-32/configure: Regenerated.
12136         * sysdeps/s390/s390-64/configure: Regenerated.
12137         * sysdeps/sh/configure: Regenerated.
12138         * sysdeps/sparc/configure: Regenerated.
12139         * sysdeps/unix/sysv/linux/configure: Regenerated.
12140         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
12141         * sysdeps/x86_64/configure: Regenerated.
12142
12143         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
12144         defined.  Don't check if MAP is NULL.
12145
12146 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
12147
12148         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
12149         (_G_stat64): Likewise.
12150         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
12151         (_G_stat64): Likewise.
12152         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
12153         instead of struct _G_stat64.
12154         * libio/fileops.c (mmap_remap_check): Likewise.
12155         (decide_maybe_mmap): Likewise.
12156         (_IO_new_file_seekoff): Likewise.
12157         (_IO_file_stat): Likewise.
12158         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
12159         _G_off64_t.
12160         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
12161         instead of struct _G_stat64.
12162         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
12163
12164 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
12165
12166         [BZ #14602]
12167         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
12168         Replace with ...
12169         (CHECK_EOL): New macro.
12170         (two_way_short_needle): Check beginning of haystack for EOL.  Use
12171         CHECK_EOL.
12172         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
12173         Replace with CHECK_EOL.
12174         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
12175         Replace with CHECK_EOL.
12176
12177 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
12178
12179         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
12180         type-generic.
12181         * math/libm-test.inc: Update comment listing what functions and
12182         macros are tested.
12183         (finite_test): New function.
12184         (isinf_test): Likewise.
12185         (isnan_test): Likewise.
12186         (fpclassify_test): Test subnormal input.
12187         (isfinite_test): Likewise.
12188         (isnormal_test): Likewise.
12189         (main): Call the new functions.
12190
12191 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
12192
12193         [BZ #14660]
12194         * Makerules (%.dynsym): Force C locale when running
12195         $(OBJDUMP) --dynamic-syms.
12196
12197 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
12198
12199         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
12200         <stdint.h>.
12201
12202 2012-10-06  David S. Miller  <davem@davemloft.net>
12203
12204         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
12205         upper 32-bits of the length value in %o2 since we use branch-on-register
12206         tests which consider the entire 64-bit register.
12207
12208 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
12209
12210         * string/test-strstr.c (check2): Add a test for page boundary.
12211
12212 2012-10-05  David S. Miller  <davem@davemloft.net>
12213
12214         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
12215         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
12216         file.
12217         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
12218         sysdep_routines.
12219         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
12220         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
12221         and bzero when HWCAP_SPARC_CRYPTO is present.
12222
12223 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
12224
12225         [BZ #14602]
12226         * string/test-strstr.c (check2): New function.
12227         (test_main): Call check2.
12228
12229         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
12230         and bug-strchr1.
12231         * string/bug-strcasestr1.c (do_test): Moved to ...
12232         * string/test-strcasestr.c (check1): Here.  New function.
12233         (do_one_test): Break out result checking code into ...
12234         (check_result): This.  New function.
12235         (do_one_test): Call check_result.
12236         (test_main): Call check1.
12237         * string/bug-strchr1.c (do_test): Moved to ...
12238         * string/test-strchr.c (check1): Here.  New function.
12239         (do_one_test): Break out result checking code into ...
12240         (check_result): This.  New function.
12241         (do_one_test): Call check_result.
12242         (test_main): Call check1.
12243         * string/bug-strstr1.c (main): Moved to ...
12244         * string/test-strstr.c (check1): Here.  New function.
12245         (do_one_test): Break out result checking code into ...
12246         (check_result): This.  New function.
12247         (do_one_test): Call check_result.
12248         (test_main): Call check1.
12249         * string/bug-strcasestr1.c: Removed.
12250         * string/bug-strchr1.c: Likewise.
12251         * string/bug-strstr1.c: Likewise.
12252
12253         * elf/Makefile (dl-routines): Add hwcaps.
12254         * elf/dl-support.c (_dl_important_hwcaps): Removed.
12255         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
12256         (_dl_important_hwcaps): Moved to ...
12257         * elf/dl-hwcaps.c: Here.  New file.
12258         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
12259
12260         [BZ #14557]
12261         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
12262         if IS_IN_rtld isn't defined.
12263
12264         * elf/dl-support.c (_dl_sysinfo_map): New.
12265         Include "get-dynamic-info.h" and "setup-vdso.h".
12266         (_dl_non_dynamic_init): Call setup_vdso.
12267         * elf/dynamic-link.h: Don't include <assert.h>.
12268         (elf_get_dynamic_info): Moved to ...
12269         * elf/get-dynamic-info.h: Here.  New file.
12270         * elf/dynamic-link.h: Include "get-dynamic-info.h".
12271         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
12272         * elf/setup-vdso.h: Here.  New file.
12273         * elf/rtld.c: Include "setup-vdso.h".
12274         (dl_main): Call setup_vdso.
12275
12276 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
12277
12278         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
12279         creal in comment listing functions tested.  List finite, isinf,
12280         isnan, isless, islessequal, isgreater, isgreaterequal,
12281         islessgreater, isunordered, lgamma_r and pow10 as functions and
12282         macros not tested.  Mention which functions not tested are aliases
12283         for other functions.  Fix typo.  Note that signs of NaNs are not
12284         tested.
12285
12286         * scripts/config.guess: Update from config.git.
12287         * scripts/config.sub: Likewise.
12288
12289 2012-10-04  Roland McGrath  <roland@hack.frob.com>
12290
12291         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
12292         * misc/madvise.c (madvise): Renamed to __madvise.
12293         Make madvise a weak alias.
12294         * include/sys/mman.h: Declare __madvise.
12295         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
12296         * sysdeps/unix/syscalls.list
12297         (madvise): Make __madvise the strong name, and madvise a weak alias.
12298         * sysdeps/unix/sysv/linux/syscalls.list
12299         (madvise, mmap): Remove redundant entries.
12300         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
12301         * malloc/malloc.c (mtrim): Likewise.
12302         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
12303
12304 2012-10-03  Roland McGrath  <roland@hack.frob.com>
12305
12306         * sysdeps/mach/hurd/dl-cache.c: File removed.
12307         * config.h.in (USE_LDCONFIG): New #undef.
12308         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
12309         * configure: Regenerated.
12310         * elf/Makefile (dl-routines): Add dl-cache only under
12311         [$(use-ldconfig) = yes].
12312         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
12313         cache on [USE_LDCONFIG].
12314         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
12315         [USE_LDCONFIG].
12316         * elf/rtld.c (dl_main): Likewise.
12317
12318 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
12319
12320         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
12321         _SC_LEVEL4_CACHE_LINESIZE.
12322
12323 2012-10-03  Roland McGrath  <roland@hack.frob.com>
12324
12325         * sysdeps/unix/bsd/confstr.h: File removed.
12326
12327 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
12328
12329         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
12330         sys/sdt-config.h.
12331
12332 2012-10-02  Roland McGrath  <roland@hack.frob.com>
12333
12334         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
12335         Make 'mapoff' field ElfW(Off) rather than off_t.
12336
12337 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
12338
12339         * nscd/Makefile: Remove nscd-cflags and all its users.
12340         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
12341         (CFLAGS-nonlib): Add compiler flags for nscd modules.
12342
12343         [BZ #10631]
12344         * malloc.c (malloc_printerr): Clarify error message.
12345
12346 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
12347
12348         [BZ #14648]
12349         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12350         Set bit_FMA_Usable if FMA is supported.
12351         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
12352         macro.
12353         (bit_FMA4_Usable): Updated.
12354         (index_FMA_Usable): New macro.
12355         (CPUID_FMA): Likewise
12356         (HAS_FMA): Defined with bit_FMA_Usable.
12357
12358 2012-10-01  Roland McGrath  <roland@hack.frob.com>
12359
12360         * bits/types.h (__swblk_t): Type removed.
12361         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
12362         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
12363         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
12364         (__SWBLK_T_TYPE): Likewise.
12365         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
12366         (__SWBLK_T_TYPE): Likewise.
12367         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
12368         (__SWBLK_T_TYPE): Likewise.
12369         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
12370         (__SWBLK_T_TYPE): Likewise.
12371
12372 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
12373             Honza Horak <hhorak@redhat.com>
12374
12375         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
12376         (xdr_mapname): Use YPMAXMAP as maxsize.
12377         (xdr_peername): Use YPMAXPEER as maxsize.
12378         (xdr_keydat): Use YPAXRECORD as maxsize.
12379         (xdr_valdat): Use YPMAXRECORD as maxsize.
12380
12381 2012-10-01  Roland McGrath  <roland@hack.frob.com>
12382
12383         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
12384
12385         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
12386         * csu/init-first.c: ... here.
12387         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
12388         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
12389         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
12390         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
12391         * sysdeps/i386/init-first.c: File removed.
12392         * sysdeps/sh/init-first.c: File removed.
12393
12394 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
12395
12396         [BZ #14645]
12397         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
12398         if x * y might underflow to zero and z is zero.
12399         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
12400         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12401         * math/libm-test.inc (min_subnorm_value): New variable.
12402         (fma_test): Add more tests.
12403         (fma_test_towardzero): Likewise.
12404         (fma_test_downward): Likewise
12405         (fma_test_upward): Likewise.
12406         (initialize): Set min_subnorm_value.
12407
12408 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
12409
12410         [BZ #14638]
12411         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
12412         0 + 0.
12413         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
12414         mode for addition resulting in exact zero.
12415         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
12416         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
12417         exact 0 + 0.
12418         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
12419         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
12420         * math/libm-test.inc (fma_test): Add more tests.
12421         (fma_test_towardzero): New function.
12422         (fma_test_downward): Likewise.
12423         (fma_test_upward): Likewise.
12424         (main): Call the new functions.
12425
12426 2012-09-28  David S. Miller  <davem@davemloft.net>
12427
12428         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
12429
12430 2012-09-28  Roland McGrath  <roland@hack.frob.com>
12431
12432         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
12433         instead of SIGALRM.
12434
12435         * sysdeps/gnu/_G_config.h: Moved to ...
12436         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
12437         * sysdeps/mach/hurd/_G_config.h: Moved to ...
12438         * sysdeps/generic/_G_config.h: ... here.
12439
12440         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
12441
12442         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
12443
12444         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
12445         Conditionalize target on [libnss_test1.so-version].
12446
12447         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
12448
12449         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
12450         (elfobjdir): Move out of conditionals.
12451
12452         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
12453         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
12454         (__nss_lookup_function): Conditionalize label remove_from_tree on
12455         [!DO_STATIC_NSS || SHARED], matching its only use.
12456
12457 2012-09-28  David S. Miller  <davem@davemloft.net>
12458
12459         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
12460         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
12461         file.
12462         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
12463         sysdep_routines.
12464         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
12465         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
12466         when HWCAP_SPARC_CRYPTO is present.
12467
12468 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
12469
12470         * io/tst-mknodat.c: Create a FIFO instead of a socket.
12471
12472 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
12473
12474         [BZ #6530]
12475         * stdio-common/vfprintf.c (process_string_arg): Revert
12476         2000-07-22 change.
12477
12478 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
12479
12480         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
12481         for testcase.
12482         * stdio-common/tst-sprintf.c: Include <locale.h>
12483         (main): Test sprintf's handling of incomplete multibyte
12484         characters.
12485
12486 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
12487
12488         * elf/dl-runtime.c (VERSYMIDX): Removed.
12489         * elf/dl-version.c (VERSYMIDX): Likewise.
12490         * elf/do-rel.h (VERSYMIDX): Likewise.
12491         (VALIDX): Likewise.
12492         * elf/dynamic-link.h (VERSYMIDX): Likewise.
12493         * elf/rtld.c (VALIDX): Likewise.
12494         (ADDRIDX): Likewise.
12495         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
12496         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
12497         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
12498         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
12499         (VALIDX): Likewise.
12500         (ADDRIDX): Likewise.
12501
12502 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
12503
12504         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
12505
12506 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
12507
12508         [BZ #11438]
12509         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
12510         to global scope.
12511         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
12512         addresses are in the same scope as 192.0.2/24.
12513         * posix/gai.conf: Document new scope table defaults.
12514
12515 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12516
12517         [BZ #5298]
12518         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
12519         for ftell.  Compute offsets from write pointers instead.
12520         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
12521
12522 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12523
12524         [BZ #14543]
12525         * libio/Makefile (tests): New test case tst-fseek.
12526         * libio/tst-fseek.c: New test case to verify that fseek/ftell
12527         combination works in wide mode.
12528         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
12529         state when the external buffer state changes.
12530
12531 2012-09-27  David S. Miller  <davem@davemloft.net>
12532
12533         [BZ #14376]
12534         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
12535         pass reloc->r_addend in as the 'high' argument to
12536         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
12537
12538         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12539
12540 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
12541
12542         * rt/tst-aio2.c: Include <pthread.h>.
12543         * rt/tst-aio3.c: Likewise.
12544
12545 2012-09-27  Steve Ellcey  <sellcey@mips.com>
12546
12547         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
12548
12549 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
12550
12551         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
12552         contents on [SHARED].
12553
12554 2012-09-26  Marek Polacek  <polacek@redhat.com>
12555
12556         [BZ #14530]
12557         [BZ #13741]
12558         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
12559         for C++ and GCC <4.3 as well as for non GCC compilers.
12560
12561 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
12562
12563         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12564
12565 2012-09-25  Roland McGrath  <roland@hack.frob.com>
12566
12567         * Makefile.in (all, install): Declare with .PHONY.
12568         Reported by Michael Hope <michael.hope@linaro.org>.
12569
12570 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
12571
12572         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
12573         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
12574         system header.
12575         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
12576         Likewise.
12577         (sydep_routines): Add the new and the internal functions.
12578         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
12579         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
12580         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
12581         (GLIBC_2.17): Add the new function.
12582         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
12583         (GLIBC_2.17): Likewise.
12584         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
12585         (GLIBC_2.17): Likewise.
12586         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
12587         (GLIBC_2.17): Likewise.
12588         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
12589
12590 2012-09-25  Alan Modra  <amodra@gmail.com>
12591
12592         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
12593         Add release barrier before setting once_control to say
12594         initialisation is done.  Add hints on lwarx.  Use macro in
12595         place of isync.
12596         (clear_once_control): Add release barrier.
12597
12598 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
12599
12600         [BZ #13629]
12601         * math/s_clog.c (__clog): Handle more values close to |z| = 1
12602         specially.
12603         * math/s_clog10.c (__clog10): Likewise.
12604         * math/s_clog10f.c (__clog10f): Likewise.
12605         * math/s_clog10l.c (__clog10l): Likewise.
12606         * math/s_clogf.c (__clogf): Likewise.
12607         * math/s_clogl.c (__clogl): Likewise.
12608         * math/Makefile (libm-calls): Add x2y2m1.
12609         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
12610         (__x2y2m1): Likewise.
12611         (__x2y2m1l): Likewise.
12612         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
12613         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
12614         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
12615         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
12616         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
12617         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
12618         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
12619         * sysdeps/i386/fpu/libm-test-ulps: Update.
12620         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12621
12622         [BZ #14621]
12623         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
12624         int as type of variable DEPTH.
12625         (glob): Use size_t instead of int as type of variables NEWCOUNT
12626         and OLD_PATHC.
12627
12628 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12629
12630         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
12631         Add s_sincosf-sse2.
12632         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
12633         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
12634         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
12635         macros for using routine as __sincosf_ia32.
12636         Use macro for function declaration and weak_alias.
12637         * sysdeps/i386/fpu/libm-test-ulps: Update.
12638
12639         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
12640         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12641
12642         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
12643         subnormal argument.
12644         * math/s_cexpf.c (__cexpf): Likewise.
12645         * math/s_csinf.c (__csinf): Likewise.
12646         * math/s_csinhf.c (__csinhf): Likewise.
12647         * math/s_ctanf.c (__ctanf): Likewise.
12648         * math/s_ctanhf.c (__ctanhf): Likewise.
12649         * math/s_ccosh.c (__ccoshf): Likewise.
12650         * math/s_cexp.c (__cexpl): Likewise.
12651         * math/s_csin.c (__csin): Likewise.
12652         * math/s_csinh.c (__csinh): Likewise.
12653         * math/s_ctan.c (__ctan): Likewise.
12654         * math/s_ctanh.c (ctanh): Likewise.
12655         * math/s_ccoshl.c (__ccoshl): Likewise.
12656         * math/s_cexpl.c (__cexpl): Likewise.
12657         * math/s_csinl.c (__csinl): Likewise.
12658         * math/s_csinhl.c (__csinhl): Likewise.
12659         * math/s_ctanl.c (__ctanl): Likewise.
12660         * math/s_ctanhl.c (__ctanhl): Likewise.
12661
12662 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
12663
12664         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
12665         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
12666         (_IO_off_t): Define to __off_t, not _G_off_t.
12667         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
12668         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
12669         (_IO_wint_t): Define to wint_t, not _G_wint_t.
12670         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
12671         type of __dummy and __dummy2 fields.
12672         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
12673         (_G_ssize_t): Likewise.
12674         (_G_off_t): Likewise.
12675         (_G_pid_t): Likewise.
12676         (_G_uid_t): Likewise.
12677         (_G_wchar_t): Likewise.
12678         (_G_wint_t): Likewise.
12679         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
12680         (_G_ssize_t): Likewise.
12681         (_G_off_t): Likewise.
12682         (_G_pid_t): Likewise.
12683         (_G_uid_t): Likewise.
12684         (_G_wchar_t): Likewise.
12685         (_G_wint_t): Likewise.
12686         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
12687         (_G_ssize_t): Likewise.
12688         (_G_off_t): Likewise.
12689         (_G_pid_t): Likewise.
12690         (_G_uid_t): Likewise.
12691         (_G_wchar_t): Likewise.
12692         (_G_wint_t): Likewise.
12693
12694 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12695
12696         * malloc/arena.c: Include malloc-sysdep.h.
12697         (shrink_heap): Use check_may_shrink_heap to decide if madvise
12698         is sufficient to shrink the heap or an unmap is needed.
12699         * sysdeps/generic/malloc-sysdep.h: New file.  Define
12700         new function check_may_shrink_heap.
12701         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
12702         new function check_may_shrink_heap.
12703
12704 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
12705
12706         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
12707         comments.
12708
12709 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
12710
12711         * catgets/test-gencat.sh: Add "set -e".
12712         * elf/tst-pathopt.sh: Likewise.
12713         * grp/tst_fgetgrent.sh: Likewise.
12714         * iconvdata/run-iconv-test.sh: Likewise.
12715         * intl/tst-gettext.sh: Likewise.
12716         * intl/tst-gettext2.sh: Likewise.
12717         * intl/tst-gettext4.sh: Likewise.
12718         * intl/tst-gettext6.sh: Likewise.
12719         * intl/tst-translit.sh: Likewise.
12720         * io/ftwtest-sh: Likewise.
12721         * libio/test-freopen.sh: Likewise.
12722         * malloc/tst-mtrace.sh: Likewise.
12723         * posix/globtest.sh: Likewise.
12724         * posix/tst-getconf.sh: Likewise.
12725         * posix/wordexp-tst.sh: Likewise.
12726         * stdio-common/tst-printf.sh: Likewise.
12727         * stdio-common/tst-unbputc.sh: Likewise.
12728         * stdlib/tst-fmtmsg.sh: Likewise.
12729         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
12730         * catgets/Makefile: Do not specify -e option when running
12731         testsuite shell scripts.
12732         * elf/Makefile: Likewise.
12733         * grp/Makefile: Likewise.
12734         * iconvdata/Makefile: Likewise.
12735         * intl/Makefile: Likewise.
12736         * io/Makefile: Likewise.
12737         * libio/Makefile: Likewise.
12738         * malloc/Makefile: Likewise.
12739         * posix/Makefile: Likewise.
12740         * stdio-common/Makefile: Likewise.
12741         * stdlib/Makefile: Likewise.
12742         * sysdeps/x86_64/Makefile: Likewise.
12743
12744         * io/ftwtest-sh: Add copyright header.
12745         * posix/globtest.sh: Likewise.
12746         * posix/tst-getconf.sh: Likewise.
12747         * posix/wordexp-tst.sh: Likewise.
12748         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
12749
12750 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
12751
12752         [BZ #13679]
12753         * Makeconfig (+link): Defined as $(+link-static) if
12754         $(build-shared) isn't yes.
12755         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
12756         isn't yes.
12757         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
12758
12759         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
12760
12761         [BZ #14562]
12762         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
12763         new chunk size with MALLOC_ALIGN_MASK.
12764
12765 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
12766
12767         [BZ #5044]
12768         * stdio-common/printf_fphex.c: Include <stdbool.h> and
12769         <rounding-mode.h>.
12770         (__printf_fphex): Determine rounding using get_rounding_mode and
12771         round_away.
12772         * stdio-common/tst-printf-round.c (struct hex_test): New
12773         structure.
12774         (hex_tests): New variable.
12775         (test_hex_in_one_mode): New function.
12776         (do_test): Also run tests for hex float output.
12777
12778 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
12779
12780         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
12781         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
12782         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
12783         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
12784         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
12785         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
12786         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
12787         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
12788
12789 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
12790
12791         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
12792         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
12793         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
12794         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
12795
12796 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
12797
12798         [BZ #14579]
12799         * elf/rtld.c (dl_main): Limit the check for self loading to normal
12800         mode only.
12801         * elf/tst-rtld-load-self.sh: New test.
12802         * elf/Makefile: Run it.
12803
12804 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
12805
12806         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
12807         (tst-writev-ENV): Remove.
12808         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
12809
12810 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
12811
12812         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
12813
12814 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
12815
12816         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
12817         unconditional.
12818         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
12819         Likewise.
12820         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
12821         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
12822         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
12823         Likewise.
12824
12825 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
12826
12827         [BZ #14587]
12828         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
12829         * config.make.in (have-cpp-asm-debuginfo): Removed.
12830         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
12831         * configure: Regenerated.
12832
12833 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
12834
12835         [BZ #5044]
12836         * stdio-common/printf_fp.c: Include <stdbool.h> and
12837         <rounding-mode.h>.
12838         (___printf_fp): Determine rounding using get_rounding_mode and
12839         round_away.
12840         * stdio-common/tst-printf-round.c: New file.
12841         * stdio-common/Makefile (tests): Add tst-printf-round.
12842         (link-libm): New variable.
12843         ($(objpfx)tst-printf-round): Depend in $(link-libm).
12844
12845 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
12846
12847         [BZ #14576]
12848         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
12849         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
12850         Likewise.
12851         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
12852         Likewise.
12853
12854 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
12855
12856         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
12857         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
12858         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
12859         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
12860
12861 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
12862
12863         [BZ #14518]
12864         * include/rounding-mode.h: New file.
12865         * sysdeps/generic/get-rounding-mode.h: Likewise.
12866         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
12867         * stdlib/strtod_l.c: Include <rounding-mode.h>.
12868         (MAX_VALUE): New macro.
12869         (MIN_VALUE): Likewise.
12870         (overflow_value): New function.
12871         (underflow_value): Likewise.
12872         (round_and_return): Use overflow_value and underflow_value to
12873         determine return values in overflow and underflow cases.  Use
12874         round_away to determine rounding depending on rounding mode.
12875         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
12876         determine return values in overflow and underflow cases.
12877         * stdlib/tst-strtod-round.c: Include <fenv.h>.
12878         (struct test_results): New structure.
12879         (struct test): Use struct test_results to store expected results
12880         for all rounding modes.
12881         (TEST): Include expected results for all rounding modes.
12882         (test_in_one_mode): New function.
12883         (do_test): Use test_in_one_mode to compute and check results.
12884         Check results for all rounding modes.
12885         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
12886         $(link-libm).
12887
12888 2012-12-09  Allan McRae  <allan@archlinux.org>
12889
12890         * sysdeps/i386/fpu/libm-test-ulps: Update
12891
12892 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
12893
12894         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
12895         (_G_int32_t): Likewise.
12896         (_G_uint16_t): Likewise.
12897         (_G_uint32_t): Likewise.
12898         (_G_HAVE_BOOL): Likewise.
12899         (_G_HAVE_ATEXIT): Likewise.
12900         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
12901         (_G_HAVE_IO_FILE_OPEN): Likewise.
12902         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
12903         (_G_int32_t): Likewise.
12904         (_G_uint16_t): Likewise.
12905         (_G_uint32_t): Likewise.
12906         (_G_HAVE_BOOL): Likewise.
12907         (_G_HAVE_ATEXIT): Likewise.
12908         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
12909         (_G_HAVE_IO_FILE_OPEN): Likewise.
12910         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
12911         (_G_int32_t): Likewise.
12912         (_G_uint16_t): Likewise.
12913         (_G_uint32_t): Likewise.
12914         (_G_HAVE_BOOL): Likewise.
12915         (_G_HAVE_ATEXIT): Likewise.
12916         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
12917         (_G_HAVE_IO_FILE_OPEN): Likewise.
12918
12919 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
12920
12921         * csu/libc-tls.c: Update copyright years.
12922
12923 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
12924
12925         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
12926         [!_G_USING_THUNKS]: Remove conditional code.
12927         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
12928         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
12929
12930         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
12931         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
12932         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
12933         (_G_VTABLE_LABEL_PREFIX): Likewise.
12934         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
12935         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
12936         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
12937         (_G_VTABLE_LABEL_PREFIX): Likewise.
12938         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
12939         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
12940         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
12941         (_G_VTABLE_LABEL_PREFIX): Likewise.
12942         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
12943
12944 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
12945
12946         * libio/Makefile: Include ../Makeconfig before tests.
12947         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
12948         only if $(build-shared) is yes.
12949
12950         * iconv/gconv_db.c: Update copyright years.
12951
12952 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12953
12954         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
12955         unwind info if defined PIC. Fix special cases description.
12956         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
12957
12958         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
12959         DP_HI_MASK entry.
12960         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
12961
12962 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
12963
12964         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
12965
12966         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
12967         is NULL.
12968
12969         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
12970         (LDLIBS-tst-chk4): This.
12971         (LDFLAGS-tst-chk5): Renamed to ...
12972         (LDLIBS-tst-chk5): This.
12973         (LDFLAGS-tst-chk6): Renamed to ...
12974         (LDLIBS-tst-chk6): This.
12975         (LDFLAGS-tst-lfschk4): Renamed to ...
12976         (LDLIBS-tst-lfschk4): This.
12977         (LDFLAGS-tst-lfschk5): Renamed to ...
12978         (LDLIBS-tst-lfschk5): This.
12979         (LDFLAGS-tst-lfschk6): Renamed to ...
12980         (LDLIBS-tst-lfschk6): This.
12981
12982         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
12983         on $(common-objpfx)soversions.mk.
12984
12985 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
12986
12987         [BZ #10014]
12988         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
12989         example host name.
12990
12991 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
12992
12993         * malloc/arena.c (arena_get_retry): New function that gets
12994         another arena for the caller to try its request on.
12995         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
12996         current arena cannot fulfill the request.
12997         (__libc_memalign): Likewise.
12998         (__libc_memalign): Likewise.
12999         (__libc_pvalloc): Likewise.
13000         (__libc_calloc): Likewise.
13001
13002 2012-09-05  John Tobey  <john.tobey@gmail.com>
13003
13004         [BZ #13542]
13005         * manual/arith.texi (Operations on Complex): Fix description
13006         of carg branch cut.
13007
13008 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
13009
13010         [BZ #10014]
13011         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
13012         host name.
13013
13014         [BZ #10038]
13015         * manual/memory.texi (Memory): Make order of menu items match
13016         order of sections.
13017
13018 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13019
13020         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
13021         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
13022         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
13023
13024 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13025
13026         * csu/libc-tls.c (static_dtv): Renamed to ...
13027         (_dl_static_dtv): This.  Make it global.
13028         (_dl_initial_dtv): Removed.
13029         (__libc_setup_tls): Updated.
13030         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
13031         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
13032         DL_INITIAL_DTV.
13033
13034 2012-09-06  Petr Machata  <pmachata@redhat.com>
13035
13036         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
13037         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
13038         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
13039         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
13040
13041 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13042
13043         [BZ #14545]
13044         * csu/libc-tls.c (_dl_initial_dtv): New variable.
13045         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
13046         freeing dtv[-1].
13047
13048 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
13049
13050         [BZ #14544]
13051         * Makeconfig (link-static-before-libc): Replace $(+prector)
13052         with $(+prectorT).
13053         (link-static-after-libc): Replace $(+postctor) with
13054         $(+postctorT).
13055         (link-bounded): Replace $(+prector)/$(+postctor) with
13056         $(+prectorT)/$(+postctorT).
13057         (+prectorT): New macro.
13058         (+postctorT): Likewise.
13059
13060 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
13061
13062         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
13063         (round_str): Handle values above the maximum for IBM long double
13064         as inexact.
13065         * stdlib/tst-strtod-round.c (tests): Regenerated.
13066
13067 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13068
13069         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
13070         assembler flag.
13071         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
13072         zarch_nohighgprs around the zarch optimized routines.
13073         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
13074         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
13075         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
13076         for zarch.
13077
13078 2012-09-05  David S. Miller  <davem@davemloft.net>
13079
13080         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13081
13082         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
13083         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
13084         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
13085         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
13086         entries.
13087
13088 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
13089
13090         * malloc/arena.c: Fold copyright years.
13091         * malloc/mcheck.c, malloc/memusage.c: Likewise.
13092
13093 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
13094
13095         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
13096
13097 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
13098
13099         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
13100
13101 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
13102
13103         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
13104         change internal state upon failure.
13105
13106 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
13107
13108         * malloc/mcheck.c (mcheck_check_all): Fix typo.
13109         * malloc/memusage.c (mmap): Likewise.
13110         (mmap64, mremap): Likewise.  Adjust name in comment.
13111
13112 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
13113
13114         * libio/fileops.c: Fix typos in comments.
13115         * libio/oldfileops.c: Likewise.
13116         * libio/wfileops.c: Likewise.
13117
13118 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
13119
13120         [BZ #1349]
13121         * malloc/Makefile (tests): Add tst-malloc-usable test case.
13122         (tst-malloc-usable-ENV): Set environment for test case.
13123         * malloc/hooks.c (malloc_check_get_size): New function to get
13124         requested size.
13125         * malloc/malloc.c (musable): Use malloc_check_get_size.
13126         * malloc/tst-malloc-usable.c: New test case.
13127
13128 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
13129
13130         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
13131
13132 2012-09-05  Allan McRae  <allan@archlinux.org>
13133
13134         [BZ #13966]
13135         * configure.in (CXX_SYSINCLUDES): Use compiler output to
13136         determine header location.
13137         * configure: Regenerated.
13138
13139 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
13140
13141         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
13142         float format.
13143         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
13144         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
13145         format.
13146         (test): Regenerate.
13147
13148 2012-09-04  David S. Miller  <davem@davemloft.net>
13149
13150         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
13151         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
13152         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
13153
13154 2012-09-04  Florian Weimer  <fweimer@redhat.com>
13155
13156         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
13157         failures.
13158
13159         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
13160
13161 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
13162
13163         [BZ #9914]
13164         * libio/iogetdelim.c: Include <limits.h>.
13165         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
13166         + len + 1 would overflow.
13167
13168 2012-09-03  Andreas Jaeger  <aj@suse.de>
13169
13170         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13171         * sysdeps/i386/fpu/libm-test-ulps: Update.
13172
13173 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13174
13175         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
13176         Add s_sinf-sse2, s_conf-sse2.
13177
13178         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
13179         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
13180         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
13181         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
13182
13183         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
13184         for using routine as __sinf_ia32.
13185         Use macro for function declaration and weak_alias.
13186         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
13187         for using routine as __cosf_ia32.
13188         Use macro for function declaration and weak_alias.
13189
13190         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
13191         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
13192
13193         * sysdeps/x86_64/fpu/s_sinf.S: New file.
13194         * sysdeps/x86_64/fpu/s_cosf.S: New file.
13195         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13196
13197         * math/libm-test.inc (cos_test): Add more test cases.
13198         (sin_test): Likewise.
13199         (sincos_test): Likewise.
13200
13201 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13202
13203         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
13204         (IFUNC_RESOLVE): Make pointers to the specialized implementations
13205         hidden.
13206         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
13207
13208 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
13209
13210         [BZ #14538]
13211         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
13212         first element of the GOT.
13213         (elf_machine_load_address): Return the difference between
13214         the runtime address of _DYNAMIC and elf_machine_dynamic ().
13215
13216 2012-09-01  Allan McRae  <allan@archlinux.org>
13217
13218         [BZ #13412]
13219         * configure.in (AWK): Require gawk version 3.0 or later.
13220         * configure: Regenerated.
13221
13222 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
13223
13224         * sysdeps/unix/sysv/linux/kernel-features.h
13225         (__ASSUME_POSIX_CPU_TIMERS): Remove.
13226         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
13227         [__NR_clock_getres]: Make code unconditional.
13228         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
13229         (clock_getcpuclockid): Remove code left unreachable by removal of
13230         conditionals.
13231         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
13232         code unconditional.
13233         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
13234         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
13235         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
13236         Make code unconditional.
13237         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
13238         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
13239         * sysdeps/unix/sysv/linux/clock_settime.c
13240         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
13241         conditional code.
13242         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
13243         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
13244
13245 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
13246
13247         [BZ #14476]
13248         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
13249         scripts/test-installation.pl.
13250
13251         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
13252         and $ld_so_version if it is set.
13253
13254 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
13255
13256         [BZ #14516]
13257         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
13258         failure if reading from procfs failed.
13259         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
13260
13261 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
13262
13263         * sysdeps/unix/sysv/linux/kernel-features.h
13264         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
13265         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
13266         Remove conditional code.
13267         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13268         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
13269         Remove conditional code.
13270         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13271         * sysdeps/unix/sysv/linux/i386/fxstat.c
13272         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
13273         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13274         * sysdeps/unix/sysv/linux/i386/fxstatat.c
13275         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
13276         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13277         * sysdeps/unix/sysv/linux/i386/lxstat.c
13278         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
13279         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13280         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
13281         Remove conditional code.
13282         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13283         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
13284         Remove conditional code.
13285         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13286         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
13287         <kernel-features.h>.
13288         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
13289         Remove.
13290         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
13291         Remove conditional code.
13292         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
13293         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
13294         Remove conditional.
13295
13296 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
13297
13298         [BZ #5400]
13299         * NEWS: Add fixed bug number.
13300
13301 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
13302
13303         [BZ #14519]
13304         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
13305         underflowing exponent in case of negative sign.
13306         * stdlib/tst-strtod-round-data: Add more tests.
13307         * stdlib/tst-strtod-round.c (tests): Regenerated.
13308
13309         [BZ #3479]
13310         * stdlib/strtod_l.c (NDIG): Remove.
13311         (HEXNDIG): Likewise.
13312         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
13313         smallest representable value.
13314         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
13315         lie within an exact representation of 1/2 ulp of the result.
13316         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
13317         unconditionally.
13318         (TENS_P9_IDX): Define unconditionally.
13319         (TENS_P9_SIZE): Likewise.
13320         (TENS_P10_IDX): Likewise.
13321         (TENS_P10_SIZE): Likewise.
13322         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
13323         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
13324         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
13325         entries for 10^2^13 and 10^2^14.
13326         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
13327         (TENS_P13_IDX): Define.
13328         (TENS_P13_SIZE): Likewise.
13329         (TENS_P14_IDX): Likewise.
13330         (TENS_P14_SIZE): Likewise.
13331         (_fpioconst_pow10): Change array size to
13332         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
13333         unconditional.
13334         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
13335         1024]: Add entries for 10^2^13 and 10^2^14.
13336         [LAST_POW10 > _LAST_POW10]: Remove #error.
13337         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
13338         (_fpioconst_pow10): Change array size to
13339         FPIOCONST_POW10_ARRAY_SIZE.
13340         * stdlib/gen-fpioconst.c: New file.
13341         * stdlib/gen-tst-strtod-round.c: Likewise.
13342         * stdlib/tst-strtod-round-data: Likewise.
13343         * stdlib/tst-strtod-round.c: Likewise.
13344         * stdlib/Makefile (tests): Add tst-strtod-round.
13345
13346         [BZ #14459]
13347         * stdlib/strtod_l.c: Include <stdint.h>.
13348         (NDEBUG): Do not define.
13349         (round_and_return): Change EXPONENT parameter to type intmax_t.
13350         Rearrange calculations to avoid internal overflow possibilities.
13351         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
13352         Rearrange calculations to avoid internal overflow possibilities.
13353         Assert that number fits inside MPNSIZE limbs.
13354         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
13355         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
13356         calculations and add assertions to avoid internal overflow
13357         possibilities.  Add casts to avoid signed/unsigned operations.
13358         * stdlib/tst-strtod-overflow.c: New file.
13359         * stdlib/Makefile (tests): Add tst-strtod-overflow.
13360
13361 2012-08-25  Marek Polacek  <polacek@redhat.com>
13362
13363         * time/time.h: Fix some typos in comments.
13364
13365 2012-08-23  Roland McGrath  <roland@hack.frob.com>
13366
13367         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
13368         * posix/tst-rfc3484-2.c: Likewise.
13369         * posix/tst-rfc3484-3.c: Likewise.
13370
13371 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
13372
13373         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
13374         (EF_ARM_ABI_FLOAT_HARD): Likewise.
13375
13376 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
13377
13378         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
13379         #include of fxstatat64.c.
13380
13381 2012-08-22  Roland McGrath  <roland@hack.frob.com>
13382
13383         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
13384         * shadow/getspent_r.c: Likewise.
13385         * shadow/getspnam.c: Likewise.
13386         * shadow/getspnam_r.c: Likewise.
13387         * gshadow/getsgent.c: Likewise.
13388         * gshadow/getsgent_r.c: Likewise.
13389         * gshadow/getsgnam.c: Likewise.
13390         * gshadow/getsgnam_r.c: Likewise.
13391         * inet/getnetbyad.c: Likewise.
13392         * inet/getnetbyad_r.c: Likewise.
13393         * inet/getnetbynm.c: Likewise.
13394         * inet/getnetbynm_r.c: Likewise.
13395         * inet/getnetent.c: Likewise.
13396         * inet/getnetent_r.c: Likewise.
13397         * inet/getproto.c: Likewise.
13398         * inet/getproto_r.c: Likewise.
13399         * inet/getprtent.c: Likewise.
13400         * inet/getprtent_r.c: Likewise.
13401         * inet/getprtname.c: Likewise.
13402         * inet/getprtname_r.c: Likewise.
13403         * inet/getrpcbyname.c: Likewise.
13404         * inet/getrpcbyname_r.c: Likewise.
13405         * inet/getrpcbynumber.c: Likewise.
13406         * inet/getrpcbynumber_r.c: Likewise.
13407         * inet/getrpcent.c: Likewise.
13408         * inet/getrpcent_r.c: Likewise.
13409         * inet/getaliasent.c: Likewise.
13410         * inet/getaliasent_r.c: Likewise.
13411         * inet/getaliasname.c: Likewise.
13412         * inet/getaliasname_r.c: Likewise.
13413         * nscd/getgrgid_r.c: Likewise.
13414         * nscd/getgrnam_r.c: Likewise.
13415         * nscd/gethstbyad_r.c: Likewise.
13416         * nscd/gethstbynm3_r.c: Likewise.
13417         * nscd/getpwnam_r.c: Likewise.
13418         * nscd/getpwuid_r.c: Likewise.
13419         * nscd/getsrvbynm_r.c: Likewise.
13420         * nscd/getsrvbypt_r.c: Likewise.
13421         * nscd/gai.c: Likewise.
13422
13423         * configure.in (build_nscd): New substituted variable, set
13424         by --disable-build-nscd and defaults to $use_nscd.
13425         * configure: Regenerated.
13426         * config.make.in (build-nscd): New substituted variable.
13427         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
13428         Change conditional to require [$(build-nscd) = yes] as well.
13429         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
13430
13431         [BZ# 13696]
13432         * configure.in (use_nscd): New substituted variable, set by
13433         --disable-nscd.  If enabled, define USE_NSCD.
13434         * configure: Regenerated.
13435         * config.h.in: Add USE_NSCD.
13436         * config.make.in (use-nscd): New substituted variable.
13437         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
13438         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
13439         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
13440         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
13441         (CFLAGS-getgrnam_r.c): Likewise.
13442         (CFLAGS-initgroups.c): Likewise.
13443         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
13444         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
13445         Variables removed.
13446         * inet/getnetgrent_r.c
13447         (nscd_setnetgrent): New function, broken out of ...
13448         (setnetgrent): ... here.  Call it.
13449         (innetgr): Conditionalize nscd bits on [USE_NSCD].
13450         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
13451         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
13452         * nscd/Makefile (routines, aux): Move definitions after include of
13453         Makeconfig.  Conditionalize on [$(use-nscd) != no].
13454         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
13455         Conditionalize on [USE_NSCD].
13456         (is_nscd, nscd_init_cb): Likewise.
13457         (nss_load_library): Conditionalize init callback on [USE_NSCD].
13458         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
13459         * nss/nss_db/db-init.c: Likewise.
13460         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
13461         [USE_NSCD].
13462         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
13463         (make_request): Use it.
13464         (cache_valid_p): New function.
13465         (__check_pf): Use it.
13466         * NEWS: Add item for --disable-nscd.
13467
13468 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
13469
13470         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
13471         to support sed >= 4.2.1-20-ga9bf076.
13472         * configure: Regenerated.
13473
13474 2012-08-22  Roland McGrath  <roland@hack.frob.com>
13475
13476         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
13477         Conditionalize whole body on [IREL].
13478
13479 2012-08-22  Jeff Law <law@redhat.com>
13480
13481         [BZ #14505]
13482         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
13483         if the family is PF_UNSPEC.
13484
13485 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
13486
13487         * Makerules (lib-version): Rename from V.
13488         (install-lib-nosubdir): Change V to lib-version.
13489
13490 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
13491
13492         [BZ #14252]
13493         * powerpc32/power6/wcschr.c: New file.
13494         * powerpc32/power6/wcscpy.c: New file.
13495         * powerpc32/power6/wcsrchr.c: New file.
13496         * powerpc64/power6/wcschr.c: New file.
13497         * powerpc64/power6/wcscpy.c: New file.
13498         * powerpc64/power6/wcsrchr.c: New file.
13499
13500 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
13501
13502         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
13503         (two_way_short_needle): Use it.
13504         * string/strstr.c (AVAILABLE1_USES_J): Define.
13505         * string/strcasestr.c: Likewise.
13506
13507         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
13508         array references.
13509         * string/strcasestr.c (TOLOWER): Make side-effect safe.
13510
13511         [BZ #11607]
13512         * NEWS: Add an entry.
13513         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
13514         define their defaults.
13515         (two_way_short_needle): Detect end-of-string on-the-fly.
13516         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
13517         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
13518         * string/bug-strcasestr1.c: New test.
13519         * string/Makefile: Run it.
13520
13521 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
13522
13523         [BZ #11607]
13524         * string/str-two-way.h (two_way_short_needle): Optimize matching of
13525         the first character.
13526
13527 2012-08-21  Roland McGrath  <roland@hack.frob.com>
13528
13529         * csu/elf-init.c (__libc_csu_irel): Function removed.
13530         * csu/libc-start.c (apply_irel): New function.
13531         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
13532
13533 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
13534
13535         * sysdeps/unix/sysv/linux/kernel-features.h
13536         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
13537         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
13538         <kernel-features.h>.
13539         [__NR_fadvise64_64]: Make code unconditional.
13540         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
13541         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
13542         !__NR_fadvise64_64)]: Likewise.
13543         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
13544         !__NR_fadvise64_64))]: Likewise.
13545         [__NR_fadvise64]: Make code unconditional.
13546         [!__NR_fadvise64]: Remove conditional code.
13547         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
13548         <kernel-features.h>.
13549         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
13550         unconditional.
13551         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
13552         conditional code.
13553         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
13554         not include <kernel-features.h>.
13555         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
13556         unconditional.
13557         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
13558         conditional code.
13559         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
13560         include <kernel-features.h>.
13561         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
13562         unconditional.
13563         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
13564         conditional code.
13565
13566 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
13567
13568         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
13569         slight instruction rearrangements per scrollpipe analysis.
13570         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
13571
13572 2012-08-20  Roland McGrath  <roland@hack.frob.com>
13573
13574         * manual/syslog.texi (syslog; vsyslog, closelog):
13575         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
13576         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
13577
13578         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
13579         DSOCAPS to match condition on defining it.
13580
13581 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
13582
13583         * sysdeps/unix/sysv/linux/kernel-features.h
13584         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
13585         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
13586         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
13587         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
13588         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
13589         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
13590         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
13591         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
13592         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
13593         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
13594
13595         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
13596         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
13597
13598         * sysdeps/unix/sysv/linux/kernel-features.h
13599         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
13600         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
13601         unconditional.
13602         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
13603         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
13604         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
13605         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
13606         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
13607         Make code unconditional.
13608         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
13609         (__mmap64) [!__NR_mmap2]: Likewise.
13610         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
13611         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
13612         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
13613         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
13614         [__NR_mmap2]: Make code unconditional.
13615         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
13616         (__mmap64) [!__NR_mmap2]: Likewise.
13617
13618 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13619
13620         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
13621
13622 2012-08-18  Andreas Jaeger  <aj@suse.de>
13623
13624         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
13625
13626 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
13627
13628         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
13629         * include/unistd.h (__have_sock_cloexec): Likewise.
13630         (__have_pipe2): Likewise.
13631         (__have_dup3): Likewise.
13632
13633 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
13634
13635         [BZ #9685]
13636         * include/unistd.h (__have_pipe2): Change define into an extern int.
13637         (__have_dup3): Likewise.
13638         * socket/have_sock_cloexec.c: Include fcntl.h.
13639         (__have_pipe2): New variable.
13640         (__have_dup3): Likewise.
13641
13642 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
13643
13644         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
13645
13646 2012-08-17  Marek Polacek  <polacek@redhat.com>
13647
13648         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
13649         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
13650
13651 2012-08-17  Roland McGrath  <roland@hack.frob.com>
13652
13653         * configure.in: Add AC_SUBST for sysheaders.
13654         * configure: Regenerated.
13655         * config.make.in (sysheaders): New substituted variable.
13656
13657         * sysdeps/unix/mkfifo.c: Moved ...
13658         * sysdeps/posix/mkfifo.c: ... here.
13659         * sysdeps/unix/mkfifoat.c: Moved ...
13660         * sysdeps/posix/mkfifoat.c: ... here.
13661
13662         * sysdeps/unix/utime.c: Moved ...
13663         * sysdeps/posix/utime.c: ... here.
13664
13665         * sysdeps/unix/time.c: Moved ...
13666         * sysdeps/posix/time.c: ... here.
13667         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
13668         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
13669
13670         * sysdeps/unix/nice.c: Moved ...
13671         * sysdeps/posix/nice.c: ... here.
13672
13673         * sysdeps/unix/alarm.c: Moved ...
13674         * sysdeps/posix/alarm.c: ... here.
13675
13676         * intl/Makefile ($(codeset_mo)): Depend on the input file.
13677
13678 2012-08-17  Jeff Law <law@redhat.com>
13679
13680         * intl/Makefile (codeset_mo): New variable.
13681         ($(codeset_mo)): New target.
13682         (tst-codeset.out): Depend on that.  Remove explicit rule.
13683         (tst-gettext3.out, tst-gettext5.out): Likewise.
13684         (LOCPATH-ENV, tst-codeset-ENV): New variables.
13685         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
13686         * intl/tst-codeset.sh: Remove.
13687         * intl/tst-gettext3.sh: Likewise.
13688         * intl/tst-gettext5.sh: Likewise.
13689
13690 2012-08-17  Roland McGrath  <roland@hack.frob.com>
13691
13692         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
13693         * sysdeps/unix/syscalls.list: ... here.
13694
13695         * sysdeps/posix/getaddrinfo.c
13696         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
13697         (gaiconf_init, gaiconf_reload): Use them.
13698         [!_STATBUF_ST_NSEC]
13699         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
13700         Define using time_t rather than struct timespec.
13701
13702         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
13703         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
13704         Macros removed.
13705         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
13706         [!NO_THREADS].
13707         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
13708         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
13709         Likewise.
13710
13711         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
13712         __libc_cleanup_push argument.
13713
13714         * bits/param.h: New file.
13715         * misc/sys/param.h: New file.
13716         * include/sys/param.h: New file.
13717         * misc/Makefile (headers): Add bits/param.h.
13718         * sysdeps/generic/sys/param.h: File removed.
13719         * sysdeps/unix/sysv/linux/bits/param.h: New file.
13720         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
13721         * sysdeps/mach/hurd/bits/param.h: New file.
13722         * sysdeps/mach/hurd/sys/param.h: File removed.
13723
13724         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
13725         last change.
13726
13727         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
13728         [_IO_MTSAFE_IO].
13729         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
13730         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
13731         New macros.
13732
13733         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
13734         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
13735         rather than -D_IO_MTSAFE_IO conditionally.
13736         * stdio-common/Makefile (CPPFLAGS): Likewise.
13737         * wcsmbs/Makefile (CPPFLAGS): Likewise.
13738         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
13739         Use $(libio-mtsafe).
13740         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
13741         of -D_IO_MTSAFE_IO.
13742         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
13743         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
13744         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
13745         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
13746         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
13747         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
13748         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
13749         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
13750         (CFLAGS-fread_u_chk.c): Likewise.
13751         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
13752         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
13753         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
13754         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
13755         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
13756         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
13757         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
13758         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
13759         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
13760
13761         * libio/Makefile: Test [$(libc-reentrant) = yes]
13762         instead of [$(filter %REENTRANT, $(defines)) nonempty].
13763
13764         * Makeconfig
13765         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
13766         * sysdeps/pthread/configure: File removed.
13767         * sysdeps/pthread/Makeconfig: New file.
13768         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
13769         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
13770
13771 2012-08-16  Gary Benson  <gbenson@redhat.com>
13772
13773         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
13774         unmapping the first object in a namespace.
13775
13776 2012-08-16  Roland McGrath  <roland@hack.frob.com>
13777
13778         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
13779         (__internal_setnetgrent): ... this.  Add internal_function to
13780         definition.  Add libc_hidden_def.
13781         (setnetgrent): Update caller.
13782         (internal_endnetgrent): Renamed to ...
13783         (__internal_endnetgrent): ... this.  Add internal_function to
13784         definition.  Add libc_hidden_def.
13785         (endnetgrent): Update caller.
13786         (internal_getnetgrent_r): Renamed to ...
13787         (__internal_getnetgrent_r): ... this.  Add internal_function to
13788         definition.  Add libc_hidden_def.
13789         (__getnetgrent_r): Update caller.
13790         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
13791
13792 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
13793
13794         * stdlib/longlong.h: Update from GCC.
13795
13796 2012-08-16  Roland McGrath  <roland@hack.frob.com>
13797
13798         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
13799         on _QL, which is set by umul_ppmm but never used.
13800         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
13801         variables, which are set by GMP macros but never used.
13802         * stdio-common/_itowa.c (_itowa): Likewise.
13803         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
13804         * stdlib/mod_1.c (mpn_mod_1): Likewise.
13805
13806 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
13807
13808         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
13809         struct La_sh_regs is not constant.
13810         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
13811         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
13812         and struct La_sparc64_regs are not constant.
13813
13814 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
13815
13816         * sysdeps/unix/sysv/linux/kernel-features.h
13817         (__ASSUME_POSIX_TIMERS): Remove.
13818         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
13819         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
13820         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
13821         Make code unconditional.
13822         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
13823         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
13824         Make code unconditional.
13825         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
13826         * sysdeps/unix/sysv/linux/clock_nanosleep.c
13827         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
13828         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
13829         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
13830         Make code unconditional.
13831         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
13832         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
13833         (__libc_missing_posix_timers): Remove.
13834
13835 2012-08-15  Roland McGrath  <roland@hack.frob.com>
13836
13837         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
13838         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
13839
13840         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
13841
13842         * elf/dl-sym.c: Include <stdlib.h>.
13843
13844         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
13845         constants, which avoids warnings in 32-bit builds.
13846
13847         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
13848         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
13849
13850         * misc/lseek.c: File moved to ...
13851         * io/lseek.c: ... here.
13852
13853         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
13854
13855         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
13856         shifting LEN more than 31 bits at once.
13857
13858 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
13859
13860         [BZ #14195]
13861         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
13862         segmentation fault for a case of two empty input strings.
13863         * string/test-strncasecmp.c (check1): Renamed to...
13864         (bz12205): ...this.
13865         (bz14195): Add new testcase for two empty input strings and N > 0.
13866         (test_main): Call new testcase, adapt for renamed function.
13867
13868 2012-08-15  Andreas Jaeger  <aj@suse.de>
13869
13870         [BZ #14090]
13871         * crypt/md5test2.c: New test, based on test supplied by Serge
13872         Belyshev <belyshev@depni.sinp.msu.ru>.
13873         * crypt/Makefile (xtests): Add md5test-giant..
13874         * crypt/Makefile ($(objpfx)md5test-giant): Add.
13875
13876 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
13877
13878         [BZ #14090]
13879         * crypt/md5.c (md5_process_block): Don't assume the buffer
13880         length is less than 2**32.
13881         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
13882         length is less than 2**64.
13883
13884 2012-08-15  Roland McGrath  <roland@hack.frob.com>
13885
13886         * string/str-two-way.h: Include <sys/param.h>.
13887         (MAX): Macro removed.
13888
13889         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
13890         Move #define and #undef of memmove to just before and after
13891         including <string.h>.
13892
13893         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
13894         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
13895         and after including <string.h>.  Move declarations of
13896         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
13897         to before #include "string/memmove.c".
13898
13899         * include/dirent.h: Declare __getdirentries.
13900
13901         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
13902         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
13903
13904 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
13905
13906         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
13907         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
13908         * sysdeps/i386/configure: Regenerated.
13909         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
13910         STABS_CURRENT_FILE, and STABS_FUN.
13911         (END): Remove call to STABS_FUN_END.
13912         (STABS_CURRENT_FILE1): Delete.
13913         (STABS_CURRENT_FILE): Likewise.
13914         (STABS_FUN): Likewise.
13915         (STABS_FUN_END): Likewise.
13916         (STABS_FUN2): Likewise.
13917         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
13918         * sysdeps/x86_64/configure: Regenerated.
13919
13920 2012-08-14  Roland McGrath  <roland@hack.frob.com>
13921
13922         * elf/dl-open.c: Include <atomic.h>.
13923         * elf/dl-lookup.c: Likewise.
13924
13925 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
13926
13927         * sysdeps/unix/sysv/linux/kernel-features.h
13928         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
13929         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
13930         unconditionally.
13931         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
13932         unconditionally.
13933         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
13934         condition on __ASSUME_CLONE_THREAD_FLAGS.
13935
13936 2012-08-14  Andreas Jaeger  <aj@suse.de>
13937
13938         * sysdeps/i386/fpu/libm-test-ulps: Update.
13939
13940 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
13941
13942         * include/atomic.h (atomic_exchange_and_add): Split into ...
13943         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
13944         New atomic macros.
13945
13946 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
13947
13948         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13949
13950 2012-08-13  Jeff Law <law@redhat.com>
13951
13952         * manual/stdio.texi (snprintf): Clarify handling of the trailing
13953         null byte in the output string.
13954
13955 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
13956
13957         * sysdeps/unix/sysv/linux/kernel-features.h
13958         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
13959         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
13960         (__ASSUME_ARG_MAX_STACK_BASED): Define.
13961         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
13962         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
13963         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
13964         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
13965
13966 2012-08-09  Jeff Law <law@redhat.com>
13967
13968         [BZ #13939]
13969         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
13970         When avoid_arena is set, don't retry in the that arena.  Pick the
13971         next one, whatever it might be.
13972         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
13973         (arena_lock): Pass in new parameter to arena_get2.
13974         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
13975         arena_get2.
13976         (__libc_malloc): Unify retrying after main arena failure with
13977         __libc_memalign version.
13978         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
13979
13980 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
13981
13982         [BZ #14166]
13983         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
13984         to __redirect_strstr.
13985         (__strstr_sse42): Use typeof __redirect_strstr.
13986         (__strstr_ia32): Likewise.
13987         (__libc_strstr): New prototype.
13988         (strstr): Renamed to ...
13989         (__libc_strstr): This.
13990         (strstr): New strong alias of __libc_strstr.
13991         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
13992         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
13993         __redirect_time.
13994         Include <time.h>.
13995         (__libc_time): New prototype.
13996         (time_ifunc): Replace time with __libc_time.
13997         (time): New strong alias and hidden definition of __libc_time.
13998         (__GI_time): Remove strong alias.
13999         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
14000         Include <stddef.h>.
14001         (memmove): Redefined to __redirect_memmove.
14002         (__memmove_sse2): Use typeof __redirect_memmove.
14003         (__memmove_ssse3): Likewise.
14004         (__memmove_ssse3_back): Likewise.
14005         (__libc_memmove): New prototype.
14006         (memmove): Renamed to ...
14007         (__libc_memmove): This.
14008         (memmove): New strong alias of __libc_memmove.
14009
14010 2012-08-08  Mark Salter  <msalter@redhat.com>
14011
14012         * elf/elf.h
14013         (R_MN10300_TLS_GD): Define.
14014         (R_MN10300_TLS_LD): Likewise.
14015         (R_MN10300_TLS_LDO): Likewise.
14016         (R_MN10300_TLS_GOTIE): Likewise.
14017         (R_MN10300_TLS_IE): Likewise.
14018         (R_MN10300_TLS_LE): Likewise.
14019         (R_MN10300_TLS_DTPMOD): Likewise.
14020         (R_MN10300_TLS_DTPOFF): Likewise.
14021         (R_MN10300_TLS_TPOFF): Likewise.
14022         (R_MN10300_SYM_DIFF): Likewise.
14023         (R_MN10300_ALIGN): Likewise.
14024         (R_MN10300_NUM): Update.
14025
14026 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
14027
14028         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
14029         Remove.
14030
14031 2012-08-08  Roland McGrath  <roland@hack.frob.com>
14032
14033         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
14034
14035         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
14036         sysdeps/unix -> sysdeps/posix move.
14037         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
14038
14039 2012-08-07      Allan McRae     <allan@archlinux.org>
14040
14041         [BZ #14303]
14042         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
14043         (SUNOS_CPP): Likewise.
14044         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
14045         not found.
14046         (open_input): Call CPP using execvp.
14047
14048 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
14049
14050         * sysdeps/unix/sysv/linux/kernel-features.h
14051         (__ASSUME_PROT_GROWSUPDOWN): Remove.
14052         (__ASSUME_NO_CLONE_DETACHED): Likewise.
14053         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
14054         (__ASSUME_WAITID_SYSCALL): Likewise.
14055         * sysdeps/unix/sysv/linux/dl-execstack.c
14056         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
14057         code unconditional.
14058         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
14059         conditional code.
14060         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
14061         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
14062         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
14063         code.
14064         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
14065         unconditional.
14066         [__ASSUME_WAITID_SYSCALL]: Likewise.
14067         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
14068
14069 2012-08-07  Roland McGrath  <roland@hack.frob.com>
14070
14071         * sysdeps/unix/closedir.c: Renamed to ...
14072         * sysdeps/posix/closedir.c: ... here.
14073         * sysdeps/unix/dirfd.c: Renamed to ...
14074         * sysdeps/posix/dirfd.c: ... here.
14075         * sysdeps/unix/dirstream.h: Renamed to ...
14076         * sysdeps/posix/dirstream.h: ... here.
14077         * sysdeps/unix/fdopendir.c: Renamed to ...
14078         * sysdeps/posix/fdopendir.c: ... here.
14079         * sysdeps/unix/opendir.c: Renamed to ...
14080         * sysdeps/posix/opendir.c: ... here.
14081         * sysdeps/unix/readdir.c: Renamed to ...
14082         * sysdeps/posix/readdir.c: ... here.
14083         * sysdeps/unix/readdir_r.c: Renamed to ...
14084         * sysdeps/posix/readdir_r.c: ... here.
14085         * sysdeps/unix/rewinddir.c: Renamed to ...
14086         * sysdeps/posix/rewinddir.c: ... here.
14087         * sysdeps/unix/seekdir.c: Renamed to ...
14088         * sysdeps/posix/seekdir.c: ... here.
14089         * sysdeps/unix/telldir.c: Renamed to ...
14090         * sysdeps/posix/telldir.c: ... here.
14091         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
14092         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
14093         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
14094         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
14095
14096         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
14097         * bits/fcntl.h: ... here.
14098
14099         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
14100         not 0.
14101         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
14102         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
14103         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
14104         (struct flock): Move l_start, l_len to the beginning.
14105         Use __pid_t for l_pid.
14106         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
14107         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
14108         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
14109         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
14110         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
14111         [__USE_LARGEFILE64] (struct flock64): New type.
14112         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
14113
14114         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
14115         * bits/dirent.h: ... here.
14116
14117         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
14118         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
14119
14120 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
14121
14122         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
14123         Change from 2.6.0 to 2.6.16.
14124         * sysdeps/unix/sysv/linux/configure: Regenerated.
14125         * sysdeps/unix/sysv/linux/kernel-features.h
14126         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
14127         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
14128         version.
14129         (__ASSUME_UTIMES): Likewise.
14130         (__ASSUME_CLONE_STOPPED): Remove.
14131         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
14132         architectures, not kernel version.
14133         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
14134         (__ASSUME_NO_CLONE_DETACHED): Likewise.
14135         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
14136         (__ASSUME_WAITID_SYSCALL): Likewise.
14137         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
14138         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
14139         * README: State 2.6.16 as minimum Linux kernel version.  Do not
14140         refer to older versions.
14141
14142 2012-08-06  Roland McGrath  <roland@hack.frob.com>
14143
14144         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
14145         Define alphasort64 as an alias.
14146         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
14147         Define versionsort64 as an alias.
14148         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
14149         Define scandir64 as an alias.
14150         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
14151         Define scandirat64 as an alias.
14152         * dirent/alphasort64.c (alphasort64):
14153         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
14154         * dirent/versionsort64.c: Likewise.
14155         * dirent/scandir64.c: Likewise.
14156         * dirent/scandirat64.c: Likewise.
14157         * sysdeps/wordsize-64/alphasort.c: File removed.
14158         * sysdeps/wordsize-64/alphasort64.c: File removed.
14159         * sysdeps/wordsize-64/scandir.c: File removed.
14160         * sysdeps/wordsize-64/scandir64.c: File removed.
14161         * sysdeps/wordsize-64/scandirat.c: File removed.
14162         * sysdeps/wordsize-64/scandirat64.c: File removed.
14163         * sysdeps/wordsize-64/versionsort.c: File removed.
14164         * sysdeps/wordsize-64/versionsort64.c: File removed.
14165         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
14166         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
14167         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
14168         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
14169         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
14170         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
14171         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
14172         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
14173
14174         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
14175         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
14176         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
14177         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14178         [defined __arch64__ || defined __sparcv9]
14179         (__INO_T_MATCHES_INO64_T): New macro.
14180         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
14181         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
14182         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
14183         * sysdeps/unix/sysv/linux/bits/dirent.h
14184         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
14185         (_DIRENT_MATCHES_DIRENT64): New macro.
14186
14187         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
14188         Define lockf64 as an alias.
14189         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
14190         Define fseeko64 as an alias.
14191         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
14192         Define ftello64 as an alias.
14193         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
14194         Define _IO_fgetpos64 and fgetpos64 as aliases.
14195         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
14196         Define _IO_fsetpos64 and fsetpos64 as aliases.
14197         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
14198         Conditionalize body on this.
14199         * libio/fseeko64.c: Likewise.
14200         * libio/ftello64.c: Likewise.
14201         * libio/iofgetpos64.c: Likewise.
14202         * libio/iofsetpos64.c: Likewise.
14203         * sysdeps/wordsize-64/lockf.c: File removed.
14204         * sysdeps/wordsize-64/lockf64.c: File removed.
14205         * sysdeps/wordsize-64/fseeko.c: File removed.
14206         * sysdeps/wordsize-64/fseeko64.c: File removed.
14207         * sysdeps/wordsize-64/ftello.c: File removed.
14208         * sysdeps/wordsize-64/ftello64.c: File removed.
14209         * sysdeps/wordsize-64/iofgetpos.c: File removed.
14210         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
14211         * sysdeps/wordsize-64/iofsetpos.c: File removed.
14212         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
14213         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
14214         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
14215         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
14216         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
14217         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
14218         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
14219         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
14220         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
14221         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
14222         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
14223
14224         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
14225         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
14226         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
14227         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
14228         [defined __arch64__ || defined __sparcv9]
14229         (__OFF_T_MATCHES_OFF64_T): New macro.
14230         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
14231         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
14232         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
14233         (__OFF_T_MATCHES_OFF64_T): New macro.
14234
14235 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
14236
14237         * stdlib/secure-getenv.c (__secure_getenv): Replace
14238         GLIBC_2_16 with GLIBC_2_17.
14239
14240 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
14241
14242         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
14243         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
14244
14245 2012-08-03  David S. Miller  <davem@davemloft.net>
14246
14247         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14248
14249 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
14250
14251         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
14252         Remove.
14253         (__ASSUME_CORRECT_SI_PID): Likewise.
14254         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
14255         (__ASSUME_TMPFS_NAME): Likewise.
14256         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
14257         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
14258         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
14259         (HAVE_AUX_SECURE): Make definition unconditional.
14260         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
14261         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
14262
14263 2012-08-03  Roland McGrath  <roland@hack.frob.com>
14264
14265         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
14266         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
14267         * sysdeps/mach/hurd/eloop-threshold.h: New file.
14268         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
14269         __eloop_threshold instead of SYMLOOP_MAX.
14270
14271         * sysdeps/generic/eloop-threshold.h: New file.
14272         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
14273         of MAXSYMLINKS.
14274         * elf/chroot_canon.c (chroot_canon): Likewise.
14275
14276 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
14277
14278         [BZ #13717]
14279         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
14280         Change to 2.6.0 everywhere.
14281         * sysdeps/unix/sysv/linux/configure: Regenerated.
14282         * sysdeps/unix/sysv/linux/kernel-features.h
14283         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
14284         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
14285         kernel versions.
14286         (__ASSUME_POSIX_TIMERS): Define unconditionally.
14287         (__ASSUME_FUTEX_REQUEUE): Remove.
14288         (__ASSUME_STATFS64): Define unconditionally.
14289         (__ASSUME_AT_SECURE): Likewise.
14290         (__ASSUME_CORRECT_SI_PID): Likewise.
14291         (__ASSUME_TGKILL): Define without depending on kernel version for
14292         i386.
14293         (__ASSUME_UTIMES): Likewise.
14294         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
14295         kernel version.
14296         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
14297         (__ASSUME_TMPFS_NAME): Likewise.
14298         * README: Update reference to Linux kernel versions.
14299
14300 2012-08-02  Marek Polacek  <polacek@redhat.com>
14301
14302         [BZ# 14150]
14303         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
14304         libc_cv_asm_type_prefix with %.
14305         * configure: Regenerated.
14306         * include/libc-symbols.h: Remove comment about
14307         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
14308         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
14309         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
14310         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
14311         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
14312         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
14313         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
14314         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
14315         * elf/tst-unique2mod1.c: Likewise.
14316         * elf/tst-unique1mod2.c: Likewise.
14317         * elf/tst-unique1mod1.c: Likewise.
14318         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
14319         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
14320         Replace ASM_TYPE_DIRECTIVE with .type.
14321         * sysdeps/s390/s390-64/sysdep.h: Likewise.
14322         * sysdeps/i386/sysdep.h: Likewise.
14323         * sysdeps/x86_64/sysdep.h: Likewise.
14324         * sysdeps/sh/sysdep.h: Likewise.
14325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
14326         Do not define ASM_TYPE_DIRECTIVE.
14327         * sysdeps/powerpc/sysdep.h: Likewise.
14328         * sysdeps/powerpc/powerpc32/sysdep.h:
14329         Replace ASM_TYPE_DIRECTIVE with .type.
14330         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
14331         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
14332         * sysdeps/i386/fpu/e_powf.S: Likewise.
14333         * sysdeps/i386/fpu/e_expl.S: Likewise.
14334         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
14335         * sysdeps/i386/fpu/e_acosh.S: Likewise.
14336         * sysdeps/i386/fpu/e_pow.S: Likewise.
14337         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
14338         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
14339         * sysdeps/i386/fpu/s_expm1.S: Likewise.
14340         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
14341         * sysdeps/i386/fpu/e_log2.S: Likewise.
14342         * sysdeps/i386/fpu/e_log2l.S: Likewise.
14343         * sysdeps/i386/fpu/e_scalb.S: Likewise.
14344         * sysdeps/i386/fpu/e_powl.S: Likewise.
14345         * sysdeps/i386/fpu/e_log10f.S: Likewise.
14346         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
14347         * sysdeps/i386/fpu/e_logl.S: Likewise.
14348         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
14349         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
14350         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
14351         * sysdeps/i386/fpu/e_log2f.S: Likewise.
14352         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
14353         * sysdeps/i386/fpu/e_log.S: Likewise.
14354         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
14355         * sysdeps/i386/fpu/e_logf.S: Likewise.
14356         * sysdeps/i386/fpu/e_log10l.S: Likewise.
14357         * sysdeps/i386/fpu/e_atanh.S: Likewise.
14358         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
14359         * sysdeps/i386/fpu/e_log10.S: Likewise.
14360         * sysdeps/i386/fpu/s_frexp.S: Likewise.
14361         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
14362         * sysdeps/i386/fpu/s_asinh.S: Likewise.
14363         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
14364         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
14365         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
14366         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
14367         * sysdeps/i386/i686/strtok.S: Likewise.
14368         * sysdeps/i386/i386-mcount.S: Likewise.
14369         * sysdeps/i386/strtok.S: Likewise.
14370         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
14371         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
14372         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
14373         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
14374         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
14375         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
14376         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
14377         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
14378         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
14379         * sysdeps/x86_64/_mcount.S: Likewise.
14380         * sysdeps/x86_64/strtok.S: Likewise.
14381         * sysdeps/sh/_mcount.S: Likewise.
14382
14383 2012-08-01  Roland McGrath  <roland@hack.frob.com>
14384
14385         * libio/iofopen.c: Include <fcntl.h>.
14386         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
14387         (_IO_fopen64, fopen64): Define as aliases.
14388         * libio/iofopen64.c: Include <fcntl.h>.
14389         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
14390         Conditionalize body on this.
14391         * sysdeps/wordsize-64/iofopen.c: File removed.
14392         * sysdeps/wordsize-64/iofopen64.c: File removed.
14393
14394 2012-08-01  Marek Polacek  <polacek@redhat.com>
14395
14396         * libc/Makeconfig: Use elf in place of binfmt-subdir.
14397         Use dlfcn directly instead of a variable.
14398         (binfmt-subdir): Do not define.
14399         (dlfcn): Likewise.
14400
14401 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
14402
14403         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
14404         Remove all definitions.
14405         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
14406         <kernel-features.h>.
14407         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
14408         (miss_F_GETOWN_EX): Remove all definitions.
14409         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
14410         macro definition.
14411         [!__ASSUME_FCNTL64]: Remove conditional code.
14412         [__ASSUME_FCNTL64]: Make code unconditional.
14413         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
14414         <kernel-features.h>.
14415         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
14416         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
14417         (lockf64) [__NR_fcntl64]: Make code unconditional.
14418         (lockf64) [__ASSUME_FCNTL64]: Likewise.
14419
14420         * sysdeps/unix/sysv/linux/kernel-features.h
14421         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
14422         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
14423         Make code unconditional.
14424         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
14425         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
14426         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
14427         [__NR_vfork]: Make code unconditional.
14428         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
14429         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
14430         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
14431         [__NR_vfork]: Make code unconditional.
14432         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
14433         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
14434
14435 2012-08-01  Roland McGrath  <roland@hack.frob.com>
14436
14437         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
14438         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
14439
14440         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
14441         Define mkstemp64 as an alias.
14442         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
14443         Define mkstemps64 as an alias.
14444         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
14445         Define mkostemp64 as an alias.
14446         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
14447         Define mkostemps64 as an alias.
14448         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
14449         Conditionalize body on this.
14450         * misc/mkostemp64.c: Likewise.
14451         * misc/mkostemps64.c: Likewise.
14452         * misc/mkstemps64.c: Likewise.
14453         * sysdeps/wordsize-64/mkstemp64.c: File removed.
14454         * sysdeps/wordsize-64/mkostemp64.c: File removed.
14455         * sysdeps/wordsize-64/mkostemp.c: File removed.
14456         * sysdeps/wordsize-64/mkstemp.c: File removed.
14457         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
14458         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
14459         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
14460         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
14461
14462         [BZ #14138]
14463         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
14464         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
14465         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
14466         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
14467
14468         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
14469         compat_symbol macros from <shlib-compat.h> rather than the underlying
14470         default_symbol_version and symbol_version macros, so that DEFAULT
14471         lines in shlib-versions are respected.
14472         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
14473
14474 2012-08-01  Florian Weimer  <fweimer@redhat.com>
14475
14476         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
14477         Declare with warn_unused_result.
14478         (setgid, setregid, setegid, setresgid): Likewise.
14479         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
14480         Likewise.
14481         * WUR-REPORT: Remove set*id functions.
14482
14483 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
14484
14485         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
14486
14487 2012-07-31  Roland McGrath  <roland@hack.frob.com>
14488
14489         [BZ #10191]
14490         * include/sys/socket.h (__libc_accept, __libc_accept4):
14491         Add attribute_hidden.
14492         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
14493
14494         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
14495         use of PTR_MANGLE.
14496         * inet/getnetgrent_r.c (setup): Likewise.
14497
14498         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
14499
14500 2012-07-31  David S. Miller  <davem@davemloft.net>
14501
14502         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14503
14504 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
14505
14506         [BZ #13629]
14507         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
14508         value between 1.0 and 2.0 and smaller part has absolute value less
14509         than 1.0.
14510         * math/s_clog10.c (__clog10): Likewise.
14511         * math/s_clog10f.c (__clog10f): Likewise.
14512         * math/s_clog10l.c (__clog10l): Likewise.
14513         * math/s_clogf.c (__clogf): Likewise.
14514         * math/s_clogl.c (__clogl): Likewise.
14515         * math/libm-test.inc (clog_test): Add more tests.
14516         (clog10_test): Likewise.
14517         * sysdeps/i386/fpu/libm-test-ulps: Update.
14518         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14519
14520 2012-07-31  Florian Weimer  <fweimer@redhat.com>
14521
14522         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
14523         Exit with zero in case no suitable GID is found, and write a
14524         message to standard error.
14525
14526 2012-07-30  Roland McGrath  <roland@hack.frob.com>
14527
14528         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
14529         rather than to 1.
14530         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
14531         (MAXPATHLEN): Removed.
14532         (NOGROUP, NODEV): New macros.
14533         (setbit, clrbit, isset, isclr): New macros.
14534         (howmany, roundup, powerof2): New macros.
14535         (DEV_BSIZE): New macro.
14536
14537         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
14538         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
14539
14540         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
14541         definition on [!__NO_LONG_DOUBLE_MATH].
14542
14543         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
14544         PTR_MANGLE and PTR_DEMANGLE.
14545
14546         * socket/accept4.c (accept4): Rename to __libc_accept4.
14547         Define accept4 as a weak alias.
14548
14549         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
14550         on [_DIRENT_HAVE_D_TYPE].
14551         * io/ftw.c (ftw_dir): Likewise.
14552
14553         * io/xmknod.c (__xmknod): Don't check PATH for being null.
14554
14555         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
14556
14557         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
14558         Use the BSD numbers rather than the arbitrary ones we had.
14559         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
14560         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
14561         (SIGXCPU, SIGXFSZ): New macros.
14562         (_NSIG): Now 32.
14563
14564         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
14565         initializer on [_LIBC_REENTRANT].
14566
14567         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
14568         definitions inside [_POSIX_MAPPED_FILES].
14569
14570         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
14571
14572         * dirent/opendir.c: Include <fcntl.h>.
14573
14574         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
14575         (__libc_getspecific): Likewise.
14576         (__libc_key_create): Likewise.
14577
14578         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
14579         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
14580         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
14581         (tmpfile64): Define as alias.
14582         * sysdeps/wordsize-64/tmpfile.c: File removed.
14583         * sysdeps/wordsize-64/tmpfile64.c: File removed.
14584         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
14585         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
14586
14587         * stdio-common/vfscanf.c: Include <stdbool.h>.
14588         * nss/makedb.c: Likewise.
14589         * stdio-common/_i18n_number.h: Likewise.
14590         * argp/argp-help.c: Likewise.
14591         * posix/wordexp.c: Likewise.
14592         * sysdeps/posix/spawni.c: Likewise.
14593         * nss/nss_files/files-initgroups.c: Likewise.
14594         * stdio-common/reg-modifier.c: Include <stdlib.h>.
14595         * nss/nss_files/files-initgroups.c: Likewise.
14596         * nss/nss_db/db-netgrp.c: Likewise.
14597         * nss/nss_db/db-initgroups.c: Likewise.
14598         * io/fchmodat.c: Include <sys/stat.h>.
14599
14600         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
14601         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
14602
14603         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
14604         [HAVE_MMAP].
14605
14606         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
14607         Add multiple inclusion protection.
14608
14609 2012-07-27  David S. Miller  <davem@davemloft.net>
14610
14611         * sysdeps/sparc/fpu/libm-test-ulps: Update.
14612
14613 2012-07-27  Gary Benson  <gbenson@redhat.com>
14614
14615         [BZ #14298]
14616         * elf/rtld.c: Include <stap-probe.h>.
14617         (dl_main): Added static probes "init_start" and "init_complete".
14618         * elf/dl-load.c: Include <stap-probe.h>.
14619         (lose): Take new parameter "nsid".
14620         Added static probe "map_failed".
14621         (_dl_map_object_from_fd): Pass namespace id to lose.
14622         Added static probe "map_start".
14623         (open_verify): Pass namespace id to lose.
14624         * elf/dl-open.c: Include <stap-probe.h>.
14625         (dl_open_worker) Added static probes "map_complete", "reloc_start"
14626         and "reloc_complete".
14627         * elf/dl-close.c: Include <stap-probe.h>.
14628         (_dl_close_worker): Added static probes "unmap_start" and
14629         "unmap_complete".
14630         * elf/rtld-debugger-interface.txt: New file documenting the above.
14631
14632 2012-07-26  Roland McGrath  <roland@hack.frob.com>
14633
14634         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
14635         rather than a string variable.
14636         * sunrpc/rpc_main.c (h_output): Likewise.
14637         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
14638
14639 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
14640
14641         * inet/check_native.c: New file.
14642
14643 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
14644
14645         [BZ #13629]
14646         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
14647         if larger part has absolute value 1.0.
14648         * math/s_clog10.c (__clog10): Likewise.
14649         * math/s_clog10f.c (__clog10f): Likewise.
14650         * math/s_clog10l.c (__clog10l): Likewise.
14651         * math/s_clogf.c (__clogf): Likewise.
14652         * math/s_clogl.c (__clogl): Likewise.
14653         * math/libm-test.inc (clog_test): Add more tests.
14654         (clog10_test): Likewise.
14655         * sysdeps/i386/fpu/libm-test-ulps: Update.
14656         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
14657
14658         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
14659         (pltexit): Likewise.
14660         (La_regs): Likewise.
14661         (La_retval): Likewise.
14662         (int_retval): Likewise.
14663         Update #error for removed macros to refer only to definitions in
14664         tst-audit.h.
14665         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
14666         macro.
14667         (pltexit): Likewise.
14668         (La_regs): Likewise.
14669         (La_retval): Likewise.
14670         (int_retval): Likewise.
14671         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
14672         macro.
14673         (pltexit): Likewise.
14674         (La_regs): Likewise.
14675         (La_retval): Likewise.
14676         (int_retval): Likewise.
14677         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
14678         macro.
14679         (pltexit): Likewise.
14680         (La_regs): Likewise.
14681         (La_retval): Likewise.
14682         (int_retval): Likewise.
14683         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
14684         macro.
14685         (pltexit): Likewise.
14686         (La_regs): Likewise.
14687         (La_retval): Likewise.
14688         (int_retval): Likewise.
14689         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
14690         macro.
14691         (pltexit): Likewise.
14692         (La_regs): Likewise.
14693         (La_retval): Likewise.
14694         (int_retval): Likewise.
14695         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
14696         macro.
14697         (pltexit): Likewise.
14698         (La_regs): Likewise.
14699         (La_retval): Likewise.
14700         (int_retval): Likewise.
14701         * sysdeps/generic/tst-audit.h: Update comment to refer only to
14702         macro definitions in tst-audit.h.
14703         * sysdeps/i386/tst-audit.h: New file.
14704         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
14705         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
14706         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
14707         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
14708         * sysdeps/sh/tst-audit.h: Likewise.
14709         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
14710         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
14711         * sysdeps/x86_64/tst-audit.h: Likewise.
14712
14713 2012-07-26  Andreas Jaeger  <aj@suse.de>
14714
14715         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
14716         ptrace.
14717
14718         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
14719         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
14720         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
14721         PTRACE_O_MASK.
14722         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
14723         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
14724         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
14725
14726         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
14727         value.
14728
14729         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
14730         _sigsys.
14731         (si_call_addr, si_syscall, si_arch): Define new macro.
14732         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
14733         _sigsys.
14734         (si_call_addr, si_syscall, si_arch): Define new marcro.
14735         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
14736         _sigsys.
14737         (si_call_addr, si_syscall, si_arch): Define new macro.
14738         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
14739         _sigsys.
14740         (si_call_addr, si_syscall, si_arch): Define new macro.
14741
14742 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
14743
14744         [BZ #13717]
14745         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
14746         Change to 2.4.21 where previously 2.4.1.
14747         * sysdeps/unix/sysv/linux/configure: Regenerated.
14748         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
14749         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
14750         Linux kernel version.
14751         (__ASSUME_STD_AUXV): Remove.
14752         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
14753         kernel version.
14754         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
14755         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
14756         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
14757         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
14758         (__ASSUME_NETLINK_SUPPORT): Likewise.
14759         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
14760         (__no_netlink_support): Remove conditional definition.
14761         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
14762         Remove.
14763         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
14764         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
14765         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
14766         (if_nameindex_ioctl): Remove.
14767         (if_nameindex_netlink): Do not handle __no_netlink_support.
14768         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
14769         code.
14770         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
14771         Remove conditional code.
14772         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
14773         code.
14774         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
14775         unconditional.
14776         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
14777         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
14778         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
14779         Remove.
14780         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
14781         [!__ASSUME_STD_AUXV]: Remove conditional code.
14782         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
14783         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
14784         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
14785         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
14786         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
14787         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
14788         code.
14789         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
14790         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
14791         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
14792         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
14793         conditional code.
14794         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
14795         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
14796         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
14797         code.
14798         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
14799         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
14800         conditional code.
14801         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
14802         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
14803         code unconditional.
14804         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
14805         conditional code.
14806         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
14807         unconditional.
14808         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
14809         conditional code.
14810         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
14811         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
14812         unconditional.
14813         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
14814         conditional code.
14815         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
14816         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
14817         code unconditional.
14818         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
14819         conditional code.
14820         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
14821         unconditional.
14822         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
14823         conditional code.
14824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
14825         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
14826         code unconditional.
14827         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
14828         conditional code.
14829         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
14830         unconditional.
14831         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
14832         conditional code.
14833
14834 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
14835
14836         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
14837         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
14838         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
14839         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
14840         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
14841         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
14842         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
14843         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
14844         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
14845         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
14846         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
14847         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
14848         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
14849         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
14850         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
14851         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
14852         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
14853         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
14854         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
14855         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
14856         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
14857         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
14858         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
14859
14860 2012-07-25  Florian Weimer  <fweimer@redhat.com>
14861
14862         * Versions.def: Add GLIBC_2.17.
14863         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
14864         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
14865         Introduce __libc_secure_getenv.
14866         * stdlib/Versions (2.17): Add secure_getenv
14867         (GLIBC_PRIVATE): Add __libc_secure_getenv.
14868         * stdlib/secure-getenv.c: Rename __secure_getenv to
14869         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
14870         symbol __secure_getenv for GLIBC_2.0.
14871         * stdlib/tst-secure-getenv.c: New.
14872         * stdlib/Makefile (tests): Add testcase.
14873         * manual/startup.texi (Environment Access): Document
14874         secure_getenv.
14875         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
14876         __libc_secure_getenv.
14877         * inet/ruserpass.c (ruserpass): Likewise.
14878         * malloc/mtrace.c (mtrace): Likewise.
14879         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
14880         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
14881         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
14882         * sysdeps/posix/tempname.c: Likewise.  Evaluate
14883         HAVE_SECURE_GETENV.
14884         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
14885         __secure_getenv to __libc_secure_getenv.
14886         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
14887         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14888         Likewise.
14889         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
14890         Likewise.
14891         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
14892         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
14893         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
14894         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
14895         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
14896         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
14897         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
14898
14899 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
14900
14901         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
14902         (struct La_i86_retval): Likewise.
14903         (struct La_x86_64_regs): Likewise.
14904         (struct La_x86_64_retval): Likewise.
14905         (struct La_x32_regs): Likewise.
14906         (struct La_x32_retval): Likewise.
14907         (struct La_ppc32_regs): Likewise.
14908         (struct La_ppc32_retval): Likewise.
14909         (struct La_ppc64_regs): Likewise.
14910         (struct La_ppc64_retval): Likewise.
14911         (struct La_sh_regs): Likewise.
14912         (struct La_sh_retval): Likewise.
14913         (struct La_s390_32_regs): Likewise.
14914         (struct La_s390_32_retval): Likewise.
14915         (struct La_s390_64_regs): Likewise.
14916         (struct La_s390_64_retval): Likewise.
14917         (struct La_sparc32_regs): Likewise.
14918         (struct La_sparc32_retval): Likewise.
14919         (struct La_sparc64_regs): Likewise.
14920         (struct La_sparc64_retval): Likewise.
14921         (struct audit_ifaces): Remove architecture-specific pltenter and
14922         pltexit members.
14923         * sysdeps/i386/ldsodefs.h: New file.
14924         * sysdeps/powerpc/ldsodefs.h: Likewise.
14925         * sysdeps/s390/ldsodefs.h: Likewise.
14926         * sysdeps/sh/ldsodefs.h: Likewise.
14927         * sysdeps/sparc/ldsodefs.h: Likewise.
14928         * sysdeps/x86_64/ldsodefs.h: Likewise.
14929
14930 2012-07-25  Marek Polacek  <polacek@redhat.com>
14931
14932         [BZ #6808]
14933         * math/libm-test.inc (yn_test): Add another test.
14934         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
14935         to ERANGE when the result is +-Inf.
14936         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
14937         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
14938         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
14939         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
14940
14941 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
14942
14943         * conform/data/time.h-data (NULL): Use macro-constant.  Require
14944         equal to 0.
14945         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
14946         clock_t.
14947         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
14948
14949 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
14950
14951         * configure.in <sysdeps resolving>: Correct printing
14952         Implies_before.
14953         * configure: Regenerate.
14954
14955 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
14956
14957         * math/w_ilogb.c: Include <limits.h>.
14958         * math/w_ilogbl.c: Likewise.
14959
14960 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
14961
14962         * manual/lang.texi (__va_copy): Document primarily as ISO C99
14963         va_copy.  Document allowing for unavailable va_copy only as
14964         pre-C99 compatibility.
14965         * manual/string.texi (Copying and Concatenation): Use va_copy
14966         instead of __va_copy in concat example.
14967
14968 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
14969
14970         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
14971         (__sendto): Use create_address_port.  Initialize APORT and deallocate
14972         it if not null.
14973
14974         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
14975         with O_NOLINK passed to __file_name_lookup.
14976
14977         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
14978         with O_NOLINK passed to __file_name_lookup.
14979
14980         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
14981         negative N or less than NGIDS.
14982
14983         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
14984         type to string_t.  Set ERANGE as errno and return it if NAME is not big
14985         enough.  Use memcpy instead of strncpy.
14986
14987 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
14988
14989         * elf/Makefile (check-data): Remove.
14990         (localplt.data): New vpath directive.
14991         ($(objpfx)check-localplt.out): Use localplt.data from vpath
14992         instead of $(check-data).
14993         * scripts/data/localplt-generic.data: Move to ...
14994         * sysdeps/generic/localplt.data: ... here.
14995         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
14996         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
14997         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
14998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
14999         ... here.
15000         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
15001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
15002         ... here.
15003         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
15004         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
15005         ... here.
15006         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
15007         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
15008         ... here.
15009         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
15010         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
15011         ... here.
15012         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
15013         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
15014         ... here.
15015
15016 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15017
15018         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
15019         PPC32 and PPC64 files.
15020         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
15021         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
15022
15023 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15024
15025         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
15026         __makecontext_ret to ...
15027         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
15028         ... here and call exit if uc_link is NULL.  New file.
15029         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
15030         __makecontext_ret.S.
15031         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
15032         __makecontext_ret to ...
15033         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
15034         ... here and call exit if uc_link is NULL.  New file.
15035         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
15036         __makecontext_ret.S.
15037
15038 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15039
15040         * elf/elf.h (R_390_IRELATIVE): New definition.
15041         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
15042         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
15043         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
15044         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
15045         (elf_machine_lazy_rel): Likewise.
15046         * sysdeps/s390/dl-irel.h: New file.
15047         * sysdeps/s390/s390-64/memcpy.S: New asm code.
15048         * sysdeps/s390/s390-64/memset.S: New asm code.
15049         * sysdeps/s390/s390-64/memcmp.S: New asm code.
15050         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
15051         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
15052         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
15053         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
15054         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
15055         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
15056         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
15057         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
15058         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
15059         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
15060         * sysdeps/s390/s390-32/memcpy.S: New asm code.
15061         * sysdeps/s390/s390-32/memset.S: New asm code.
15062         * sysdeps/s390/s390-32/memcmp.S: New asm code.
15063
15064 2012-07-17  Marek Polacek  <polacek@redhat.com>
15065
15066         [BZ #14349]
15067         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
15068         * sysdeps/s390/s390-64/configure.in: Likewise.
15069         * sysdeps/sparc/configure.in: Likewise.
15070         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
15071         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
15072         * sysdeps/i386/configure.in: Likewise.
15073         * sysdeps/x86_64/configure.in: Likewise.
15074         * sysdeps/sh/configure.in: Likewise.
15075         * sysdeps/s390/s390-32/configure: Regenerated.
15076         * sysdeps/s390/s390-64/configure: Likewise.
15077         * sysdeps/x86_64/configure: Likewise.
15078         * sysdeps/sh/configure: Likewise.
15079         * sysdeps/powerpc/powerpc64/configure: Likewise.
15080         * sysdeps/powerpc/powerpc32/configure: Likewise.
15081         * sysdeps/sparc/configure: Likwise.
15082         * sysdeps/i386/configure: Likewise.
15083
15084         * elf/dl-open.c: Comment fixes.
15085
15086 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
15087
15088         * Makefile [CXX] (check-data): Remove.
15089         [CXX] (c++-types.data): New vpath directive.
15090         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
15091         vpath.  Do not allow for C++ type data being missing.
15092         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
15093         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
15094         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
15095         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
15096         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
15097         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
15098         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
15099         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
15100         ... here.
15101         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
15102         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
15103         ... here.
15104         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
15105         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
15106         ... here.
15107         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
15108         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
15109         ... here.
15110         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
15111         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
15112         ... here.
15113         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
15114         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
15115         ... here.
15116         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
15117         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
15118         ... here.
15119         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
15120         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
15121
15122         * elf/tls-macros.h (TLS_LE): Move architecture-specific
15123         definitions to architecture-specific files.
15124         (TLS_IE): Likewise.
15125         (TLS_LD): Likewise.
15126         (TLS_GD): Likewise.
15127         * sysdeps/i386/tls-macros.h: New file.
15128         * sysdeps/powerpc/tls-macros.h: Likewise.
15129         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
15130         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
15131         * sysdeps/sh/tls-macros.h: Likewise.
15132         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
15133         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
15134         * sysdeps/x86_64/tls-macros.h: Likewise.
15135
15136 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
15137
15138         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
15139         zero value for regular exit case.
15140
15141         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
15142         (__start_context): Preserve zero value for regular exit case.
15143
15144 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
15145             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
15146
15147         * manual/setjmp.texi (setcontext): Clarify normal process
15148         termination when uc_link is the null pointer.
15149         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
15150         exit call.
15151
15152 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
15153
15154         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
15155         preprocessor.  Test for each exception mask separately.
15156
15157 2012-07-16  Andreas Jaeger  <aj@suse.de>
15158
15159         * po/ru.po: Update from translation team.
15160
15161 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
15162
15163         * conform/data/string.h-data (NULL): Use macro-constant.  Require
15164         equal to 0.
15165         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
15166         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
15167         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
15168         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
15169         [ISO || ISO99 || ISO11] (*_t): Do not allow.
15170
15171 2012-07-13  Andreas Jaeger  <aj@suse.de>
15172
15173         * po/fr.po: Update from translation team.
15174
15175 2012-07-12  Marek Polacek  <polacek@redhat.com>
15176
15177         [BZ #14173]
15178         * math/libm-test.inc (yn_test): Add test for BZ #14173.
15179         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
15180         loop condition.
15181
15182 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
15183
15184         [BZ #13717]
15185         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
15186         Change to 2.4.1 where previously 2.4.0.
15187         * sysdeps/unix/sysv/linux/configure: Regenerated.
15188         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
15189         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
15190         version.
15191         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
15192         (__ASSUME_AT_CLKTCK): Remove.
15193         (__ASSUME_AT_PAGESIZE): Likewise.
15194         (__ASSUME_AT_XID): Likewise.
15195         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
15196         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
15197         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
15198         unconditionally.
15199         (HAVE_AUX_PAGESIZE): Likewise.
15200         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
15201         [__ASSUME_AT_CLKTCK]: Make code unconditional.
15202         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
15203
15204 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
15205
15206         [BZ #14307]
15207         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
15208         the temporary buffer used to invoke __gethostbyname2_r,
15209         __gethostbyaddr_r and gethostbyname4_r to make room for struct
15210         host_data / struct gaih_addrtuple.
15211         * resolv/nss_dns/dns-host.c (global scope): Move definition of
15212         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
15213         header file nss/nsswitch.h.
15214         * nss/nsswitch.h (global scope): Add definition of implementation
15215         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
15216         resolv/nss_dns/dns-host.c).
15217
15218 2012-07-11  Andreas Jaeger  <aj@suse.de>
15219
15220         * po/fr.po: Update from translation team.
15221
15222         * po/sv.po: Update from translation team
15223         * po/fr.po: Another update from translation team.
15224
15225 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15226
15227         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
15228         for subnormals or multiply small sinh result by itself.
15229         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
15230         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
15231
15232 2012-07-11  David S. Miller  <davem@davemloft.net>
15233
15234         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15235
15236 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
15237
15238         [BZ #14347]
15239         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
15240         (INTERNAL_MARK): Shift it here.
15241
15242 2012-07-10  Marek Polacek  <polacek@redhat.com>
15243
15244         [BZ #14151]
15245         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
15246         libc_cv_asm_global_directive with .globl.
15247         * configure: Regenerated.
15248         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
15249         with .globl.
15250         * sysdeps/i386/configure: Regenerated.
15251         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
15252         with .globl.
15253         * sysdeps/x86_64/configure: Regenerated.
15254         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
15255         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
15256         * elf/tst-unique2mod2.c: Likewise.
15257         * elf/tst-unique2mod1.c: Likewise.
15258         * elf/tst-unique1mod2.c: Likewise.
15259         * elf/tst-unique1mod1.c: Likewise.
15260         * sysdeps/s390/s390-32/sysdep.h: Likewise.
15261         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
15262         * sysdeps/s390/s390-64/sysdep.h: Likewise.
15263         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
15264         * sysdeps/mach/sysdep.h: Likewise.
15265         * sysdeps/i386/sysdep.h: Likewise.
15266         * sysdeps/i386/i386-mcount.S: Likewise.
15267         * sysdeps/x86_64/_mcount.S: Likewise.
15268         * sysdeps/x86_64/sysdep.h: Likewise.
15269         * sysdeps/sh/_mcount.S: Likewise.
15270         * sysdeps/sh/sysdep.h: Likewise.
15271         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
15272         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
15273         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
15274         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
15275         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
15276         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
15277         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
15278         * locale/localeinfo.h: Likewise.
15279         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
15280         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
15281
15282 2012-07-09  Roland McGrath  <roland@hack.frob.com>
15283
15284         [BZ #14336]
15285         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
15286         system".
15287         * manual/message.texi (The Uniforum approach): Likewise.
15288         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
15289         (glibc iconv Implementation): Likewise.
15290
15291 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
15292
15293         [BZ #14337]
15294         * math/s_clog.c (__clog): Avoid scaling a value down where that
15295         could result in underflow.
15296         * math/s_clog10.c (__clog10): Likewise.
15297         * math/s_clog10f.c (__clog10f): Likewise.
15298         * math/s_clog10l.c (__clog10l): Likewise.
15299         * math/s_clogf.c (__clogf): Likewise.
15300         * math/s_clogl.c (__clogl): Likewise.
15301         * math/libm-test.inc (clog_test): Add more tests.
15302         (clog10_test): Likewise.
15303         * sysdeps/i386/fpu/libm-test-ulps: Update.
15304         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15305
15306 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
15307
15308         [BZ #14283]
15309         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
15310         by 7 not 8 to examine high bit of fractional part.
15311
15312         [BZ #14042]
15313         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
15314         for call to __mcount_internal.
15315         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
15316         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
15317         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
15318
15319 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
15320
15321         [BZ #14154]
15322         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
15323         approximation for values within 0x1p-13f of an odd multiple of
15324         pi/4.
15325         * math/libm-test.inc (tan_test): Do not allow spurious underflow
15326         exception.  Add more tests.
15327         * sysdeps/i386/fpu/libm-test-ulps: Update.
15328
15329         [BZ #6778]
15330         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
15331         inputs and return -1 for them.  Do not check for +Inf in case not
15332         reachable for +Inf.
15333         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
15334         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
15335         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
15336         and return -1 for them.  Do not check for +Inf in case not
15337         reachable for +Inf.
15338         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
15339         define.
15340         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
15341         and return -1 for them.  Do not check for +Inf in case not
15342         reachable for +Inf.
15343         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
15344         spurious underflow.
15345         * sysdeps/i386/fpu/libm-test-ulps: Update.
15346         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15347
15348 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
15349
15350         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
15351
15352 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
15353
15354         [BZ #14157]
15355         [BZ #14331]
15356         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
15357         could result in spurious underflow.  Scale down values above
15358         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
15359         * math/s_csqrtf.c (__csqrtf): Likewise.
15360         * math/s_csqrtl.c (__csqrtl): Likewise.
15361         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
15362         spurious underflow.
15363         * sysdeps/i386/fpu/libm-test-ulps: Update.
15364         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15365
15366 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
15367
15368         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
15369         xopen-msg.sed.
15370         * catgets/xopen-msg.awk: New file.
15371         * catgets/xopen-msg.sed: Removed.
15372
15373         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
15374         po2text.sed.
15375         * intl/po2test.awk: New file.
15376         * intl/po2test.sed: Removed.
15377
15378 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
15379
15380         [BZ #14328]
15381         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
15382         or multiply small sinh result by itself.
15383         * math/s_ctanf.c (__ctanf): Likewise.
15384         * math/s_ctanh.c (__ctanh): Likewise.
15385         * math/s_ctanhf.c (__ctanhf): Likewise.
15386         * math/s_ctanhl.c (__ctanhl): Likewise.
15387         * math/s_ctanl.c (__ctanl): Likewise.
15388         * math/libm-test.inc (ctan_test_tonearest): New function.
15389         (ctan_test_towardzero): Likewise.
15390         (ctan_test_downward): Likewise.
15391         (ctan_test_upward): Likewise.
15392         (ctanh_test_tonearest): Likewise.
15393         (ctanh_test_towardzero): Likewise.
15394         (ctanh_test_downward): Likewise.
15395         (ctanh_test_upward): Likewise.
15396         (main): Call these new functions.
15397         * sysdeps/i386/fpu/libm-test-ulps: Update.
15398         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15399
15400 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
15401
15402         * .gitignore: Delete /ports entry.
15403
15404 2012-07-03  Andreas Jaeger  <aj@suse.de>
15405
15406         * po/bg.po: Update from translation team.
15407         * po/cs.po: Likewise.
15408         * po/de.po: Likewise.
15409         * po/hr.po: Likewise.
15410         * po/nl.pl: Likewise.
15411         * po/pl.po: Likewise.
15412         * po/vi.po: Likewise.
15413
15414 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
15415
15416         * Makeconfig [!+link] (+link-before-libc): New variable.
15417         [!+link] (+link-after-libc): Likewise.
15418         [!+link] (+link-tests): Likewise.
15419         [!+link] (+link): Define in terms of $(+link-before-libc) and
15420         $(+link-after-libc).
15421         [!+link-static] (+link-static-before-libc): New variable.
15422         [!+link-static] (+link-static-after-libc): Likewise.
15423         [!+link-static] (+link-static-tests): Likewise.
15424         [!+link-static] (+link-static): Define in terms of
15425         $(+link-static-before-libc) and $(+link-static-after-libc).
15426         [build-shared] (link-libc-before-gnulib): New variable.
15427         [build-shared] (link-libc-tests): Likewise.
15428         [build-shared] (link-libc): Define in terms of
15429         $(link-libc-before-gnulib).
15430         [!build-shared] (link-libc-tests): New variable.
15431         (link-libc-static-tests): New variable.
15432         [!gnulib] (gnulib-arch): New variable.
15433         [!gnulib] (gnulib-tests): Likewise.
15434         [!gnulib] (static-gnulib-arch): Likewise.
15435         [!gnulib] (static-gnulib-tests): Likewise.
15436         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
15437         Define with "=" instead of ":=".
15438         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
15439         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
15440         * Rules (binaries-all-notests): New variable.
15441         (binaries-all-tests): Likewise.
15442         (binaries-static-notests): Likewise.
15443         (binaries-static-tests): Likewise.
15444         (binaries-all): Define using $(binaries-all-notests) and
15445         $(binaries-all-tests).
15446         (binaries-static): Define using $(binaries-static-notests) and
15447         $(binaries-static-tests).
15448         (binaries-shared-tests): New variable.
15449         (binaries-shared-notests): Likewise.
15450         (binaries-shared): Remove variable.
15451         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
15452         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
15453         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
15454         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
15455         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
15456         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
15457         * elf/Makefile (sln-modules): New variable.
15458         (extra-objs): Add $(sln-modules:=.o).
15459         (ldconfig-modules): Add static-stubs.
15460         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
15461         * elf/static-stubs.c: New file.
15462
15463         [BZ #14283]
15464         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
15465         by 7 not 8 to examine high bit of fractional part.  Use volatile
15466         variables when splitting into final array of floats if
15467         __FLT_EVAL_METHOD__ != 0.
15468         * math/libm-test.inc (cos_test): Add another test.
15469         (sin_test): Likewise.
15470         * sysdeps/i386/fpu/libm-test-ulps: Update.
15471
15472         [BZ #14273]
15473         * math/libm-test.inc (cosh_test): Add more tests.
15474
15475         * version.h (RELEASE): Set to "development".
15476         (VERSION): Set to "2.16.90".
15477
15478 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
15479
15480         * NEWS: Update copyright. Remove last-updated date.
15481         Mention math library bug fixes and timezone data changes.
15482         * README: Mention GNU/Hurd, x32, and HPPA support status.
15483
15484 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
15485
15486         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
15487
15488 2012-06-27  Andreas Jaeger  <aj@suse.de>
15489
15490         * manual/contrib.texi (Contributors): Add Samuel Thibault.
15491
15492 2012-06-25  Andreas Jaeger  <aj@suse.de>
15493
15494         * sysdeps/s390/fpu/libm-test-ulps: Update.
15495
15496 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
15497             Thomas Schwinge  <thomas@codesourcery.com>
15498
15499         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
15500         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
15501         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
15502         fanotify_mark.
15503
15504 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
15505
15506         * sysdeps/mach/start.c: Remove file.
15507         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
15508         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
15509         * sysdeps/sh/init-first.c: Likewise.
15510
15511         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
15512         registers for frame unwinding purposes, add CFI directives.
15513         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
15514         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
15515         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
15516         Likewise.
15517
15518         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
15519         __fortify_fail returning.
15520         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
15521
15522         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
15523         sysdeps/sh/____longjmp_chk.S.
15524         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
15525         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
15526         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
15527         (gen-as-const-headers): Append sigaltstack-offsets.sym.
15528
15529         * sysdeps/sh/abort-instr.h: New file.
15530         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
15531         process in case exit returns.
15532
15533         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
15534         initialize the GOT register before use.
15535
15536         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
15537         calculation of ARGC > 4.
15538
15539         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
15540         meaningful names to some local labels.
15541
15542 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
15543             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15544
15545         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
15546         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
15547         (__arch_compare_and_exchange_val_16_acq): Likewise.
15548         (__arch_compare_and_exchange_val_32_acq): Likewise.
15549         (atomic_exchange_and_add): Fix gUSA sequence.
15550         (atomic_add): Likewise.
15551         (atomic_add_negative): Likewise.
15552         (atomic_add_zero): Likewise.
15553         (atomic_bit_test_set): Likewise.
15554
15555 2012-06-22  Andreas Schwab  <schwab@redhat.com>
15556
15557         [BZ #13579]
15558         * include/link.h (struct link_map): Add l_free_initfini.
15559         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
15560         l_initfini.
15561         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
15562         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
15563         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
15564         set.
15565
15566 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
15567
15568         * configure.in: Use AC_LANG_SOURCE.
15569         * configure: Regenerate.
15570
15571 2012-06-22  Roland McGrath  <roland@hack.frob.com>
15572
15573         * configure.in (libc_cv_localstatedir): New substituted variable.
15574         * configure: Regenerated.
15575         * config.make.in (localstatedir): New variable, substituted from
15576         libc_cv_localstatedir.
15577         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
15578         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
15579         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
15580         * sysdeps/gnu/configure: Regenerated.
15581
15582 2012-06-21  Jeff Law  <law@redhat.com>
15583
15584         [BZ #14277]
15585         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
15586         free.  Simplify list management for _LIBC case.
15587
15588 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
15589
15590         [BZ #14273]
15591         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
15592         Clear sign bit of 64-bit integer value before comparing against
15593         overflow value.
15594
15595         * sysdeps/mach/configure: Regenerated.
15596
15597 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
15598
15599         [BZ #14278]
15600         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
15601
15602 2012-06-21  Jeff Law  <law@redhat.com>
15603
15604         [BZ #13882]
15605         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
15606         uint16_t for elements in the "seen" array to avoid char overflows.
15607         * elf/dl-fini.c (_dl_sort_fini): Likewise.
15608         * elf/dl-open.c (dl_open_worker): Likewise.
15609
15610 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
15611
15612         * scripts/list-sources.sh: Scan PORTS for translations.
15613         * po/libc.pot: Regenerated.
15614
15615 2012-06-21  Andreas Jaeger  <aj@suse.de>
15616
15617         [BZ #12194]
15618         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
15619         warning.
15620         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
15621         * bits/byteswap-16.h (__bswap_16): Likewise.
15622         * bits/byteswap.h (__bswap_constant_16): Likewise.
15623
15624 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
15625
15626         [BZ #14117]
15627         * sysdeps/i386/fpu_control.h: Removed.
15628         * sysdeps/x86_64/fpu_control.h: Moved to ...
15629         * sysdeps/x86/fpu_control.h: Here.
15630
15631         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
15632         (_FPU_SETCW): Likewise.
15633
15634 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
15635
15636         [BZ #14117]
15637         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
15638         * sysdeps/x86/fpu/bits/mathinline.h: This.
15639         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
15640
15641         [BZ #14050]
15642         [BZ #14117]
15643         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
15644         functions if __x86_64__ is defined.
15645
15646 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
15647
15648         * string/endian.h: Add !__ASSEMBLER__ condition for including
15649         conversion interfaces.
15650
15651 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
15652
15653         [BZ #14241]
15654         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
15655         of ABS(x) in calculating zero to negative powers other than odd
15656         integers.
15657         * math/libm-test.inc (pow_test): Add more tests.
15658
15659 2012-06-15  Andreas Jaeger  <aj@suse.de>
15660
15661         * manual/contrib.texi (Contributors): Update entry of Liubov
15662         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
15663         Machado Filho.
15664
15665 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
15666
15667         * string/string.h: Add __wur to GNU version of strerror_r.
15668
15669 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
15670
15671         [BZ #14229]
15672         * string/Makefile (tests): Add tst-strtok_r.
15673         * string/tst-strtok_r.c: New file.
15674         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
15675         RAX_LP/RDX_LP on SAVE_PTR.
15676
15677 2012-06-14  Roland McGrath  <roland@hack.frob.com>
15678
15679         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
15680
15681 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
15682
15683         * libm_test.inc (csqrt_test): Allow more spurious underflow
15684         exceptions.
15685         (j0_test): Likewise.
15686         (j1_test): Likewise.
15687         (y0_test): Likewise.
15688         (y1_test): Likewise.
15689
15690 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
15691
15692         * po/Makefile (libc.pot): Use UTF-8 charset.
15693
15694 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
15695
15696         [BZ #14210]
15697         Suppress sign-conversion warning from FD_SET.
15698         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
15699         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
15700         not unsigned long int.
15701         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
15702
15703 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
15704
15705         [BZ #14050]
15706         [BZ #14117]
15707         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
15708         __extern_always_inline instead of __extern_inline.
15709         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
15710         (__signbit): Likewise.
15711         (__signbitl): Support C++ namespace.
15712         (lrintf): New inline function.
15713         (lrint): Likewise.
15714         (llrintf): Likewise.
15715         (llrint): Likewise.
15716         (fmaxf): Likewise.
15717         (fmax): Likewise.
15718         (fminf): Likewise.
15719         (fmin): Likewise.
15720         (rint): Likewise.
15721         (rintf): Likewise.
15722         (ceil): Likewise.
15723         (ceilf): Likewise.
15724         (floor): Likewise.
15725         (floorf): Likewise.
15726         (nearbyint): Likewise.
15727         (nearbyintf): Likewise.
15728
15729 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
15730
15731         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
15732         non-default versions.
15733
15734 2012-06-11  Roland McGrath  <roland@hack.frob.com>
15735
15736         [BZ #14218]
15737         * manual/argp.texi (Argp): Reword argp_parse description slightly.
15738
15739 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
15740
15741         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
15742         (FE_UPWARD, FE_DOWNWARD): Don't define.
15743         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
15744         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
15745
15746         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
15747         reading it.
15748         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
15749         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
15750
15751 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
15752
15753         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
15754         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
15755         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
15756         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
15757
15758 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
15759
15760         [BZ #14117]
15761         * sysdeps/i386/fpu/bits/fenv.h: Removed.
15762         * sysdeps/i386/fpu/Implies: New file.
15763         * sysdeps/x86_64/fpu/Implies: Likewise.
15764         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
15765         * sysdeps/x86/fpu/bits/fenv.h: This.
15766
15767         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
15768         __SSE_MATH__.
15769
15770 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
15771
15772         [BZ #14134]
15773         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
15774         character 0xffff that matches the last element of the
15775         conversion table.
15776
15777 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15778
15779         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
15780         fmodl commit.
15781
15782 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15783
15784         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
15785         values higher than 25.6283.
15786
15787 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15788
15789         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
15790         subnormal exponent extraction and add some __builtin_expect.
15791         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
15792         Fix for subnormal mantissa calculation.
15793
15794 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
15795
15796         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
15797         cpu2 is -1 and errno is not ENOSYS.
15798
15799 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
15800
15801         [BZ #14117]
15802         * sysdeps/i386/i486/bits/string.h: Renamed to ...
15803         * sysdeps/x86/bits/string.h: This.
15804         * sysdeps/x86_64/bits/string.h: Removed.
15805
15806         * sysdeps/i386/i486/bits/string.h: Define inline functions only
15807         if not compiling for x86-64, but compiling for >= i486.
15808
15809         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
15810         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
15811
15812         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
15813         New macro from Linux kernel 3.4.0.
15814         (FP_XSTATE_MAGIC2): Likewise.
15815         (FP_XSTATE_MAGIC2_SIZE): Likewise.
15816         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
15817         (struct _fpx_sw_bytes): New struct.
15818         (struct _xsave_hdr): Likewise.
15819         (struct _ymmh_state): Likewise.
15820         (struct _xstate): Likewise.
15821
15822         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
15823         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
15824         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
15825         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
15826         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
15827         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
15828
15829         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
15830         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
15831         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
15832         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
15833         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
15834         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
15835
15836 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15837
15838         [BZ #13743]
15839         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
15840         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
15841         (sysdep_headers): Include sys/platform/ppc.h.
15842         * sysdeps/powerpc/test-gettimebase.c: Test for
15843         __ppc_get_timebase() to catch future ISA opcode/insn changes.
15844         * manual/Makefile (appendices): Include platform.texi.
15845         * manual/contrib.texi (Contributors): Update @node pointers.
15846         * manual/maint.texi (Maintenance): Likewise.
15847         (Platform): New node.
15848         * manual/platform.texi: New file.  Document the new features.
15849
15850 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
15851             Jakub Jelinek  <jakub@redhat.com>
15852
15853         [BZ #14188]
15854         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
15855         where __builtin_expect is unavailable.
15856
15857 2012-06-03  David S. Miller  <davem@davemloft.net>
15858
15859         * stdlib/longlong.h: Updated from GCC.
15860
15861 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
15862
15863         [BZ #14042]
15864         * sysdeps/powerpc/powerpc32/mcount.c: New file.
15865         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
15866         __mcount_internal.
15867         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
15868         (GLIBC_2.16): Likewise.
15869
15870 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
15871
15872         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
15873
15874 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
15875
15876         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
15877         (default-abi): New variable.
15878         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
15879         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
15880         variable.
15881         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
15882         Likewise.
15883         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
15884         Likewise.
15885         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
15886         Likewise.
15887
15888         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
15889         definition.  Document in comment.
15890
15891 2012-06-01  David S. Miller  <davem@davemloft.net>
15892
15893         * stdlib/longlong.h: Updated from GCC.
15894
15895 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
15896
15897         [BZ #14117]
15898         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
15899         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
15900         sys/debugreg.h sys/io.h here.
15901         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
15902         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
15903         sys/io.h.
15904         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
15905         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
15906         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
15907         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
15908         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
15909         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
15910
15911         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
15912         Define only if __x86_64__ is defined.
15913
15914 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
15915
15916         [BZ #14048]
15917         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
15918         Use int64_t for variable i.
15919         * math/libm-test.inc (fmod_test): Add more tests.
15920
15921         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
15922         z computation is not scheduled after fetestexcept.
15923         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
15924         Use math_force_eval instead of asm to ensure calculation scheduled
15925         before exception test.
15926         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
15927         Ensure a1 + u.d computation is not scheduled after fetestexcept.
15928
15929 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
15930
15931         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
15932         computation is not scheduled after fetestexcept.
15933
15934 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
15935
15936         [BZ #14117]
15937         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
15938         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
15939
15940 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
15941
15942         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
15943         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
15944
15945 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
15946
15947         [BZ #14117]
15948         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
15949         <bits/wordsize.h>.
15950         (__WCHAR_MIN): Support __WORDSIZE == 64.
15951         (__WCHAR_MAX): Likewise.
15952
15953         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
15954         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
15955
15956         [BZ #14183]
15957         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
15958         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
15959
15960         [BZ #14117]
15961         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
15962         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
15963
15964         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
15965         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
15966
15967         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
15968         Defined to 1 if __x86_64__ isn't defined.
15969         (_STAT_VER_LINUX_OLD): New.
15970         (st_atime): Remove duplicate.
15971         (st_mtime): Likewise.
15972         (st_ctime): Likewise.
15973
15974 2012-05-31  David S. Miller  <davem@davemloft.net>
15975
15976         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
15977         entries.
15978
15979 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
15980
15981         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
15982         gen-libm-test.pl.
15983
15984         [BZ #14132]
15985         * elf/dl-reloc.c: Include <_itoa.h>.
15986         (_dl_reloc_bad_type): Remove use of INTUSE.
15987         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
15988         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
15989         * stdio-common/psiginfo.c (psiginfo): Likewise.
15990         * stdio-common/psignal.c (psignal): Likewise.
15991         * string/strsignal.c (strsignal): Likewise.
15992         * include/signal.h (_sys_siglist): Declare hidden proto.
15993         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
15994         INTVARDEF with libc_hidden_data_def.
15995         * stdio-common/itoa-udigits.c: Likewise.
15996         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
15997         (_itoa_lower_digits_internal): Remove declaration.
15998         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
15999         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
16000         (_sys_sigabbrev_internal): Remove aliases.
16001         (_sys_siglist): Define hidden alias.
16002
16003 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
16004
16005         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
16006         bits/sysctl.h.
16007
16008 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
16009
16010         [BZ #14117]
16011         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
16012         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
16013
16014         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
16015         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
16016         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
16017         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
16018         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
16019         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
16020
16021         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
16022         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
16023         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
16024
16025         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
16026         with __addr.
16027         (insw): Likewise.
16028         (insl): Likewise.
16029         (outsb): Likewise.
16030         (outsw): Likewise.
16031         (outsl): Likewise.
16032
16033         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
16034         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
16035         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
16036
16037         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
16038         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
16039         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
16040         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
16041         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
16042         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
16043
16044         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
16045         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
16046
16047         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
16048         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
16049
16050         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
16051         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
16052         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
16053
16054         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
16055         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
16056         to ...
16057         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
16058
16059         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
16060         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
16061         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
16062
16063         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
16064         for x86-64.
16065         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
16066
16067 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
16068
16069         * math/math.h (M_El): Use two more decimal places.
16070         (M_LOG2El): Likewise.
16071         (M_LOG10El): Likewise.
16072         (M_LN2l): Likewise.
16073         (M_LN10l): Likewise.
16074         (M_PIl): Likewise.
16075         (M_PI_2l): Likewise.
16076         (M_PI_4l): Likewise.
16077         (M_1_PIl): Likewise.
16078         (M_2_PIl): Likewise.
16079         (M_2_SQRTPIl): Likewise.
16080         (M_SQRT2l): Likewise.
16081         (M_SQRT1_2l): Likewise.
16082
16083 2012-05-31  David S. Miller  <davem@davemloft.net>
16084
16085         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
16086         values between float registers.
16087         * sysdeps/sparc/sparc64/memset.S: Likewise.
16088         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
16089
16090 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
16091
16092         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
16093         -D_FORTIFY_SOURCE=1.
16094         (CPPFLAGS-tst-longjmp_chk.c): Define.
16095         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
16096         (CPPFLAGS-tst-longjmp_chk2.c): Define.
16097         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
16098         CFLAGS-tst-wchar-h.c.
16099
16100 2012-05-31  Marek Polacek  <polacek@redhat.com>
16101
16102         [BZ #14132]
16103         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
16104         __endmntent_internal): Remove declaration.
16105         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
16106         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
16107         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
16108
16109 2012-05-30  David S. Miller  <davem@davemloft.net>
16110
16111         * sysdeps/sparc/sparc32/soft-fp/q_util.c
16112         (___Q_simulate_exceptions): Use real FP ops rather than writing
16113         into the %fsr.
16114         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
16115         Likewise.
16116
16117 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16118
16119         [BZ #14117]
16120         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
16121         * sysdeps/x86/bits/xtitypes.h: This.
16122
16123         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
16124         * sysdeps/x86/bits/wordsize.h: This.
16125
16126         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
16127         * sysdeps/x86/bits/huge_vall.h: This.
16128
16129         * sysdeps/i386/bits/select.h: Removed.
16130         * sysdeps/x86_64/bits/select.h: Renamed to ...
16131         * sysdeps/x86/bits/select.h: This.
16132
16133         * sysdeps/i386/bits/setjmp.h: Removed.
16134         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
16135         * sysdeps/x86/bits/setjmp.h: This.
16136
16137         * sysdeps/i386/bits/mathdef.h: Removed.
16138         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
16139         * sysdeps/x86/bits/mathdef.h: This.
16140
16141 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
16142
16143         [BZ #14132]
16144         * include/sys/socket.h (__connect_internal)
16145         (__libc_sa_len_internal): Remove declaration.
16146         (__connect, __libc_sa_len): Declare hidden_proto.
16147         (SA_LEN): Remove use of INTUSE.
16148         * socket/connect.c: Add libc_hidden_def.
16149         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
16150         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
16151         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
16152         alias.
16153         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
16154         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
16155         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
16156         of adding _internal alias.
16157
16158 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16159
16160         [BZ #14117]
16161         * sysdeps/i386/bits/link.h: Removed.
16162         * sysdeps/i386/bits/linkmap.h: Likewise.
16163         * sysdeps/x86_64/bits/link.h: Renamed to ...
16164         * sysdeps/x86/bits/link.h: This.
16165         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
16166         * sysdeps/x86/bits/linkmap.h: This.
16167
16168         * sysdeps/i386/bits/endian.h: Removed.
16169         * sysdeps/x86_64/bits/endian.h: Renamed to ...
16170         * sysdeps/x86/bits/endian.h: This.
16171
16172         * sysdeps/i386/bits/byteswap.h: Removed.
16173         * sysdeps/i386/bits/byteswap-16.h: Likewise.
16174         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
16175         * sysdeps/x86/bits/byteswap.h: This.
16176         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
16177         * sysdeps/x86/bits/byteswap-16.h: This.
16178         * sysdeps/i386/Implies: Add x86.
16179         * sysdeps/x86_64/Implies: Likewise.
16180
16181 2012-05-30  David S. Miller  <davem@davemloft.net>
16182
16183         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
16184         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
16185         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
16186         (FP_TRAPPING_EXCEPTIONS): Define.
16187         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
16188         (FP_TRAPPING_EXCEPTIONS): Define.
16189         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
16190         subnormals only when inexact has been signalled or underflow
16191         exceptions are enabled.
16192         (_FP_PACK_CANONICAL): Likewise.
16193
16194 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16195
16196         [BZ #14183]
16197         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
16198         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
16199
16200 2012-05-30  Richard Henderson  <rth@twiddle.net>
16201
16202         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
16203         with #ifndef NOT_IN_libc.
16204
16205         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
16206         marked to avoid plt entry.
16207
16208 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
16209
16210         [BZ #14112]
16211         * Makeconfig (default-abi): New macro.
16212         (abi-includes): Likewise.
16213         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
16214         $(abi-$(default-abi)-lib-soname) for soname if defined.
16215         ($(common-objpfx)gnu/lib-names.stmp): Generate from
16216         abi-variants.
16217         * Makefile (installed-stubs): Likewise.
16218         * include/stubs-biarch.h: Removed.
16219         * scripts/lib-names.awk: Only handle one library at a time.
16220         * scripts/soversions.awk: Remove WORDSIZE support.
16221         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
16222         entries.
16223         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
16224         Removed.
16225         (syscall-list-default-condition): Likewise.
16226         (syscall-list-default-condition): Likewise.
16227         (syscall-list-includes): Likewise.
16228         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
16229         syscall-list-* with abi-*.  Handle undefined abi-variants.
16230         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
16231         * sysdeps/unix/sysv/linux/i386/Implies: New file.
16232         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
16233         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
16234         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
16235         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
16236         Removed.
16237         (syscall-list-32-options): Likewise.
16238         (syscall-list-32-condition): Likewise.
16239         (syscall-list-64-options): Likewise.
16240         (syscall-list-64-condition): Likewise.
16241         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
16242         macro.
16243         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
16244         Renamed to ...
16245         (abi-*): This.
16246         (abi-64-ld-soname): New macro.
16247         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
16248         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
16249         Renamed to ...
16250         (abi-*): This.
16251         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
16252         * sysdeps/x86_64/x32/shlib-versions: Likewise.
16253
16254 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
16255
16256         * sysdeps/unix/sysv/linux/kernel-features.h
16257         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
16258         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
16259         include <kernel-features.h>.
16260         [!__NR_ftruncate64]: Remove conditional code.
16261         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16262         [__NR_ftruncate64]: Make code unconditional.
16263         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16264         * sysdeps/unix/sysv/linux/truncate64.c: Do not
16265         include <kernel-features.h>.
16266         [!__NR_ftruncate64]: Remove conditional code.
16267         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16268         [__NR_ftruncate64]: Make code unconditional.
16269         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16270         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
16271         include <kernel-features.h>.
16272         [!__NR_ftruncate64]: Remove conditional code.
16273         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16274         [__NR_ftruncate64]: Make code unconditional.
16275         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16276         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
16277         include <kernel-features.h>.
16278         [!__NR_ftruncate64]: Remove conditional code.
16279         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16280         [__NR_ftruncate64]: Make code unconditional.
16281         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
16282
16283         * configure.in (libc_cv_fpie): Weaken to a compile test using
16284         LIBC_TRY_CC_OPTION.
16285         * configure: Regenerated.
16286
16287 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16288
16289         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
16290         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
16291         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
16292         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
16293         Refreshed.
16294         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
16295         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
16296         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
16297         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
16298         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
16299         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
16300         Refreshed.
16301
16302 2012-05-27  David S. Miller  <davem@davemloft.net>
16303
16304         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
16305         (___Q_zero): New.
16306         (__Q_simulate_exceptions): Return void.  Change to simulate
16307         exceptions by writing into the %fsr.
16308         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
16309         (__Qp_handle_exceptions): Likewise.
16310         (numbers): Delete.
16311         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
16312         __Qp_handle_exceptions.
16313         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
16314         __Qp_handle_exceptions.
16315         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
16316         as unused and give dummy FP_RND_NEAREST initializer.
16317         (FP_INHIBIT_RESULTS): Define.
16318         (___Q_simulate_exceptions): Update declaration.
16319         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
16320         formatting.
16321         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
16322         as unused and give dummy FP_RND_NEAREST initializer.
16323         (__Qp_handle_exceptions): Update declaration.
16324         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
16325         formatting.
16326
16327 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
16328
16329         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
16330         the temporary FPU control word.
16331         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
16332         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
16333         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
16334         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
16335         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
16336         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
16337         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
16338         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
16339         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
16340         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
16341         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
16342
16343 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
16344
16345         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
16346         fields.
16347
16348 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
16349
16350         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
16351         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
16352         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
16353         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
16354         Likewise.
16355         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
16356         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
16357         Likewise.
16358
16359 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
16360
16361         * po/h.po: Update from translation team.
16362
16363 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
16364
16365         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
16366
16367         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
16368         handling of denormals.
16369         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
16370         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
16371         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
16372         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
16373         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
16374         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
16375         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
16376         Likewise.
16377
16378 2012-05-26  Marek Polacek  <polacek@redhat.com>
16379
16380         [BZ #14152]
16381         * math/libm-test.inc (fma_test): Don't always expect underflow
16382         exception.
16383
16384 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
16385
16386         [BZ #12416]
16387         * elf/tst-execstack.c: Include stackinfo.h.
16388         (do_test): Adjust test case to ensure that pthread_getattr_np
16389         behaviour remains the same after marking stack executable.
16390
16391 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
16392
16393         * sysdeps/unix/sysv/linux/kernel-features.h
16394         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
16395         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
16396         kernel-features.h.
16397         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
16398         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
16399         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
16400         kernel-features.h.
16401         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
16402         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
16403
16404 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
16405
16406         * configure.in: Define the default includes to being none.
16407         * configure: Regenerated.
16408
16409 2012-05-25  Roland McGrath  <roland@hack.frob.com>
16410
16411         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
16412         * sysdeps/x86_64/setjmp.S: Likewise.
16413         * sysdeps/i386/bsd-setjmp.S: Likewise.
16414         * sysdeps/i386/bsd-_setjmp.S: Likewise.
16415         * sysdeps/i386/setjmp.S: Likewise.
16416         * sysdeps/i386/__longjmp.S: Likewise.
16417         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
16418         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
16419
16420         * include/stap-probe.h: New file.
16421         * configure.in: Handle --enable-systemtap.
16422         * configure: Regenerated.
16423         * config.h.in (USE_STAP_PROBE): New #undef.
16424         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
16425         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
16426         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
16427
16428 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
16429
16430         [BZ #13717]
16431         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
16432         to 2.4.0 where earlier.
16433         * sysdeps/unix/sysv/linux/configure: Regenerated.
16434         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
16435         <kernel-features.h>.
16436         [__ASSUME_32BITUIDS]: Make code unconditional.
16437         [!__ASSUME_32BITUIDS]: Remove conditional code.
16438         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
16439         <kernel-features.h>.
16440         [__ASSUME_32BITUIDS]: Make code unconditional.
16441         [!__ASSUME_32BITUIDS]: Remove conditional code.
16442         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
16443         [__ASSUME_32BITUIDS]: Make code unconditional.
16444         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
16445         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
16446         <kernel-features.h>.
16447         [__ASSUME_32BITUIDS]: Make code unconditional.
16448         [!__ASSUME_32BITUIDS]: Remove conditional code.
16449         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
16450         <kernel-features.h>.
16451         [__ASSUME_32BITUIDS]: Make code unconditional.
16452         [!__ASSUME_32BITUIDS]: Remove conditional code.
16453         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
16454         <kernel-features.h>.
16455         [__ASSUME_32BITUIDS]: Make code unconditional.
16456         [!__ASSUME_32BITUIDS]: Remove conditional code.
16457         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
16458         <kernel-features.h>.
16459         [__ASSUME_32BITUIDS]: Make code unconditional.
16460         [!__ASSUME_32BITUIDS]: Remove conditional code.
16461         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
16462         <kernel-features.h>.
16463         [__ASSUME_32BITUIDS]: Make code unconditional.
16464         [!__ASSUME_32BITUIDS]: Remove conditional code.
16465         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
16466         <kernel-features.h>.
16467         [__ASSUME_32BITUIDS]: Make code unconditional.
16468         [!__ASSUME_32BITUIDS]: Remove conditional code.
16469         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
16470         <kernel-features.h>.
16471         [__ASSUME_32BITUIDS]: Make code unconditional.
16472         [!__ASSUME_32BITUIDS]: Remove conditional code.
16473         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
16474         <kernel-features.h>.
16475         [__ASSUME_32BITUIDS]: Make code unconditional.
16476         [!__ASSUME_32BITUIDS]: Remove conditional code.
16477         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
16478         <kernel-features.h>.
16479         [__ASSUME_32BITUIDS]: Make code unconditional.
16480         [!__ASSUME_32BITUIDS]: Remove conditional code.
16481         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
16482         <kernel-features.h>.
16483         [__ASSUME_32BITUIDS]: Make code unconditional.
16484         [!__ASSUME_32BITUIDS]: Remove conditional code.
16485         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
16486         <kernel-features.h>.
16487         [__NR_setresgid] (__setresgid): Do not declare.
16488         [__ASSUME_32BITUIDS]: Make code unconditional.
16489         [!__ASSUME_32BITUIDS]: Remove conditional code.
16490         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
16491         <kernel-features.h>.
16492         [__NR_setresuid] (__setresuid): Do not declare.
16493         [__ASSUME_32BITUIDS]: Make code unconditional.
16494         [!__ASSUME_32BITUIDS]: Remove conditional code.
16495         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
16496         <kernel-features.h>.
16497         [__ASSUME_32BITUIDS]: Make code unconditional.
16498         [!__ASSUME_32BITUIDS]: Remove conditional code.
16499         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
16500         <kernel-features.h>.
16501         [__ASSUME_32BITUIDS]: Make code unconditional.
16502         [!__ASSUME_32BITUIDS]: Remove conditional code.
16503         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
16504         <kernel-features.h>.
16505         [__ASSUME_32BITUIDS]: Make code unconditional.
16506         [!__ASSUME_32BITUIDS]: Remove conditional code.
16507         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
16508         <kernel-features.h>.
16509         [__ASSUME_32BITUIDS]: Make code unconditional.
16510         [!__ASSUME_32BITUIDS]: Remove conditional code.
16511         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
16512         <kernel-features.h>.
16513         [__ASSUME_32BITUIDS]: Make code unconditional.
16514         [!__ASSUME_32BITUIDS]: Remove conditional code.
16515         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
16516         <kernel-features.h>.
16517         [__ASSUME_32BITUIDS]: Make code unconditional.
16518         [!__ASSUME_32BITUIDS]: Remove conditional code.
16519         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
16520         <kernel-features.h>.
16521         [__ASSUME_32BITUIDS]: Make code unconditional.
16522         [!__ASSUME_32BITUIDS]: Remove conditional code.
16523         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
16524         <kernel-features.h>.
16525         [__ASSUME_32BITUIDS]: Make code unconditional.
16526         [!__ASSUME_32BITUIDS]: Remove conditional code.
16527         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
16528         <kernel-features.h>.
16529         [__ASSUME_32BITUIDS]: Make code unconditional.
16530         [!__ASSUME_32BITUIDS]: Remove conditional code.
16531         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
16532         <kernel-features.h>.
16533         [__ASSUME_32BITUIDS]: Make code unconditional.
16534         [!__ASSUME_32BITUIDS]: Remove conditional code.
16535         * sysdeps/unix/sysv/linux/kernel-features.h
16536         (__ASSUME_SETRESUID_SYSCALL): Remove.
16537         (__ASSUME_SETRESGID_SYSCALL): Likewise.
16538         (__ASSUME_32BITUIDS): Likewise.
16539         (__ASSUME_LDT_WORKS): Likewise.
16540         (__ASSUME_O_DIRECTORY): Likewise.
16541         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
16542         architecture but not kernel version.
16543         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
16544         (__ASSUME_MMAP2_SYSCALL): Likewise.
16545         (__ASSUME_STAT64_SYSCALL): Likewise.
16546         (__ASSUME_IPC64): Likewise.
16547         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
16548         <kernel-features.h>.
16549         [__ASSUME_32BITUIDS]: Make code unconditional.
16550         [!__ASSUME_32BITUIDS]: Remove conditional code.
16551         * sysdeps/unix/sysv/linux/opendir.c: Do not include
16552         <kernel-features.h>.
16553         [__ASSUME_O_DIRECTORY]: Make code unconditional.
16554         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
16555         132096]: Remove conditional code.
16556         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
16557         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
16558         <kernel-features.h>.
16559         [__ASSUME_32BITUIDS]: Make code unconditional.
16560         [!__ASSUME_32BITUIDS]: Remove conditional code.
16561         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
16562         <kernel-features.h>.
16563         [__ASSUME_32BITUIDS]: Make code unconditional.
16564         [!__ASSUME_32BITUIDS]: Remove conditional code.
16565         * sysdeps/unix/sysv/linux/setegid.c: Do not include
16566         <kernel-features.h>.
16567         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
16568         unconditional.
16569         (__setresgid): Do not declare.
16570         [__ASSUME_32BITUIDS]: Make code unconditional.
16571         [!__ASSUME_32BITUIDS]: Remove conditional code.
16572         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
16573         <kernel-features.h>.
16574         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
16575         unconditional.
16576         (__setresuid): Do not declare.
16577         [__ASSUME_32BITUIDS]: Make code unconditional.
16578         [!__ASSUME_32BITUIDS]: Remove conditional code.
16579         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
16580         <kernel-features.h>.
16581         [__ASSUME_32BITUIDS]: Make code unconditional.
16582         [!__ASSUME_32BITUIDS]: Remove conditional code.
16583         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
16584         <kernel-features.h>.
16585         [__ASSUME_32BITUIDS]: Make code unconditional.
16586         [!__ASSUME_32BITUIDS]: Remove conditional code.
16587
16588 2012-05-25  Richard Henderson  <rth@twiddle.net>
16589
16590         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
16591         dl_hwcap to ifunc resolver.
16592         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
16593         elf_ifunc_invoke.
16594         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
16595         dl_hwcap to ifunc resolver.
16596         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
16597
16598 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
16599
16600         [BZ #14153]
16601         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
16602         for |x| <= 2**-26, not 2**-57.
16603         * math/libm-test.inc (acos_test): Do not allow spurious underflow
16604         exception.
16605
16606 2012-05-24  Jeff Law  <law@redhat.com>
16607
16608         * stdio-common/Makefile (tests): Add bug25.
16609         * stdio-common/bug25.c: New test.
16610
16611 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
16612
16613         [BZ #13576]
16614         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
16615         multiple of MALLOC_ALIGNMENT in size.
16616         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
16617
16618 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
16619
16620         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
16621         Require >= 256.
16622         (FILENAME_MAX): Use macro-int-constant.
16623         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
16624         (_IOFBF): Use macro-int-constant.
16625         (_IOLBF): Likewise.
16626         (_IONBF): Likewise.
16627         (SEEK_CUR): Likewise.
16628         (SEEK_END): Likewise.
16629         (SEEK_SET): Likewise.
16630         (TMP_MAX): Likewise.
16631         (EOF): Use macro-int-constant.  Require < 0.
16632         (NULL): Use macro-constant.  Require == 0.
16633         (stdin): Require type to be FILE *.
16634         (stdout): Likewise.
16635         (stderr): Likewise.
16636         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
16637         macro-int-constant.
16638         (EXIT_SUCCESS): Likewise.
16639         (NULL): Use macro-constant.  Require == 0.
16640         (RAND_MAX): Use macro-int-constant.
16641         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
16642         [C99-based standards] (strtof): Require function.
16643         [C99-based standards] (strtold): Likewise.
16644         [C99-based standards] (strtoll): Likewise.
16645         [C99-based standards] (strtoull): Likewise.
16646         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
16647         [ISO || ISO99 || ISO11] (limits.h): Likewise.
16648         [ISO || ISO99 || ISO11] (math.h): Likewise.
16649         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
16650         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
16651         [ISO || ISO99 || ISO11] (*_t): Do not allow.
16652
16653 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
16654
16655         [BZ #14132]
16656         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
16657         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
16658         * intl/dgettext.c (DCGETTEXT): Likewise.
16659         * intl/gettext.c (DCGETTEXT): Likewise.
16660         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
16661         * posix/regex_internal.h (gettext): Likewise.
16662         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
16663         Remove declaration.
16664         * include/argz.h (__argz_count_internal)
16665         (__argz_stringify_internal): Remove declaration.
16666         (__argz_count, __argz_stringify): Declare hidden proto.
16667         * intl/dcgettext.c: Remove use of INTDEF.
16668         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
16669         * string/argz-stringify.c: Likewise.
16670         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
16671         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
16672         Declare hidden proto.
16673         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
16674         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
16675         Declare hidden proto.
16676         * include/stdio.h (__asprintf_internal): Don't declare.
16677         (__asprintf): Don't define as macro.  Declare hidden proto.
16678         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
16679         (__fsetlocking): Declare hidden proto.
16680         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
16681         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
16682         hidden proto.
16683         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
16684         (_IO_setlinebuf): Remove use of INTUSE.
16685         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
16686         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
16687         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
16688         Remove declaration.
16689         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
16690         (_IO_do_flush): Remove use of INTUSE.
16691         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
16692         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
16693         (_IO_adjust_column, _IO_least_wmarker)
16694         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
16695         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
16696         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
16697         (_IO_default_doallocate, _IO_wdefault_doallocate)
16698         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
16699         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
16700         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
16701         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
16702         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
16703         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
16704         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
16705         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
16706         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
16707         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
16708         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
16709         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
16710         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
16711         proto.
16712         (_IO_flush_all_internal, _IO_adjust_column_internal)
16713         (_IO_default_uflow_internal, _IO_default_finish_internal)
16714         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
16715         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
16716         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
16717         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
16718         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
16719         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
16720         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
16721         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
16722         (_IO_file_close_internal, _IO_file_close_it_internal)
16723         (_IO_file_underflow_internal, _IO_file_overflow_internal)
16724         (_IO_file_init_internal, _IO_file_attach_internal)
16725         (_IO_file_fopen_internal, _IO_file_read_internal)
16726         (_IO_file_sync_internal, _IO_file_seek_internal)
16727         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
16728         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
16729         (_IO_str_underflow_internal, _IO_str_overflow_internal)
16730         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
16731         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
16732         (_IO_list_all_internal, _IO_link_in_internal)
16733         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
16734         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
16735         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
16736         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
16737         (_IO_do_write_internal, _IO_padn_internal)
16738         (_IO_getline_info_internal, _IO_getline_internal)
16739         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
16740         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
16741         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
16742         (_IO_vfscanf_internal, _IO_vfprintf_internal)
16743         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
16744         (_IO_init_internal, _IO_un_link_internal): Don't declare.
16745         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
16746         with libc_hidden_ver, remove use of INTUSE.
16747         * libio/genops.c: Likewise.
16748         * libio/freopen.c: Likewise.
16749         * libio/freopen64.c: Likewise.
16750         * libio/iofclose.c: Likewise.
16751         * libio/iofdopen.c: Likewise.
16752         * libio/iofflush.c: Likewise.
16753         * libio/iofflush_u.c: Likewise.
16754         * libio/iofgets.c: Likewise.
16755         * libio/iofgets_u.c: Likewise.
16756         * libio/iofopen.c: Likewise.
16757         * libio/iofopncook.c: Likewise.
16758         * libio/iofread.c: Likewise.
16759         * libio/iofread_u.c: Likewise.
16760         * libio/ioftell.c: Likewise.
16761         * libio/iofwrite.c: Likewise.
16762         * libio/iogetline.c: Likewise.
16763         * libio/iogets.c: Likewise.
16764         * libio/iogetwline.c: Likewise.
16765         * libio/iopadn.c: Likewise.
16766         * libio/iopopen.c: Likewise.
16767         * libio/ioseekoff.c: Likewise.
16768         * libio/ioseekpos.c: Likewise.
16769         * libio/iosetbuffer.c: Likewise.
16770         * libio/iosetvbuf.c: Likewise.
16771         * libio/ioungetc.c: Likewise.
16772         * libio/ioungetwc.c: Likewise.
16773         * libio/iovdprintf.c: Likewise.
16774         * libio/iovsprintf.c: Likewise.
16775         * libio/iovsscanf.c: Likewise.
16776         * libio/memstream.c: Likewise.
16777         * libio/obprintf.c: Likewise.
16778         * libio/oldfileops.c: Likewise.
16779         * libio/oldiofclose.c: Likewise.
16780         * libio/oldiofdopen.c: Likewise.
16781         * libio/oldiofopen.c: Likewise.
16782         * libio/oldiopopen.c: Likewise.
16783         * libio/oldstdfiles.c: Likewise.
16784         * libio/putc.c: Likewise.
16785         * libio/setbuf.c: Likewise.
16786         * libio/setlinebuf.c: Likewise.
16787         * libio/stdfiles.c: Likewise.
16788         * libio/strops.c: Likewise.
16789         * libio/vasprintf.c: Likewise.
16790         * libio/vscanf.c: Likewise.
16791         * libio/vsnprintf.c: Likewise.
16792         * libio/vswprintf.c: Likewise.
16793         * libio/wfiledoalloc.c: Likewise.
16794         * libio/wfileops.c: Likewise.
16795         * libio/wgenops.c: Likewise.
16796         * libio/wmemstream.c: Likewise.
16797         * libio/wstrops.c: Likewise.
16798         * libio/__fpurge.c: Likewise.
16799         * libio/__fsetlocking.c: Likewise.
16800         * assert/assert.c: Likewise.
16801         * debug/fgets_chk.c: Likewise.
16802         * debug/fgets_u_chk.c: Likewise.
16803         * debug/fread_chk.c: Likewise.
16804         * debug/fread_u_chk.c: Likewise.
16805         * debug/gets_chk.c: Likewise.
16806         * debug/obprintf_chk.c: Likewise.
16807         * debug/vasprintf_chk.c: Likewise.
16808         * debug/vdprintf_chk.c: Likewise.
16809         * debug/vsnprintf_chk.c: Likewise.
16810         * debug/vsprintf_chk.c: Likewise.
16811         * malloc/mtrace.c: Likewise.
16812         * misc/error.c: Likewise.
16813         * misc/syslog.c: Likewise.
16814         * stdio-common/asprintf.c: Likewise.
16815         * stdio-common/fxprintf.c: Likewise.
16816         * stdio-common/getw.c: Likewise.
16817         * stdio-common/isoc99_fscanf.c: Likewise.
16818         * stdio-common/isoc99_scanf.c: Likewise.
16819         * stdio-common/isoc99_vfscanf.c: Likewise.
16820         * stdio-common/isoc99_vscanf.c: Likewise.
16821         * stdio-common/isoc99_vsscanf.c: Likewise.
16822         * stdio-common/printf-prs.c: Likewise.
16823         * stdio-common/printf_fp.c: Likewise.
16824         * stdio-common/printf_fphex.c: Likewise.
16825         * stdio-common/printf_size.c: Likewise.
16826         * stdio-common/putw.c: Likewise.
16827         * stdio-common/scanf.c: Likewise.
16828         * stdio-common/sprintf.c: Likewise.
16829         * stdio-common/tmpfile.c: Likewise.
16830         * stdio-common/vfprintf.c: Likewise.
16831         * stdio-common/vfscanf.c: Likewise.
16832         * stdlib/strfmon_l.c: Likewise.
16833         * sunrpc/openchild.c: Likewise.
16834         * sunrpc/xdr_stdio.c: Likewise.
16835         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
16836         * sysdeps/mach/hurd/tmpfile.c: Likewise.
16837
16838 2012-05-24  Roland McGrath  <roland@hack.frob.com>
16839
16840         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
16841
16842         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
16843         in the third column, to generate for the shared library an IFUNC
16844         that uses _dl_vdso_vsym.
16845         * Makerules (COMPILE.c, compile-stdin.c): New variables.
16846         * Makeconfig (object-suffixes-noshared): New variable.
16847
16848         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
16849         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
16850         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
16851         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
16852
16853         [BZ #14132]
16854         * include/sys/time.h (__gettimeofday): Remove macro.
16855         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
16856         * time/gettimeofday.c (__gettimeofday): Remove #undef.
16857         Remove INTDEF.
16858         (__gettimeofday): Add libc_hidden_def.
16859         (gettimeofday): Add libc_hidden_weak.
16860         * sysdeps/mach/gettimeofday.c: Likewise.
16861         * sysdeps/posix/gettimeofday.c: Likewise.
16862         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
16863         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
16864         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
16865         (__gettimeofday_internal): Remove strong_alias.
16866         (__gettimeofday): Add libc_hidden_def.
16867         (gettimeofday): Add libc_hidden_weak.
16868         * sysdeps/unix/syscalls.list (gettimeofday):
16869         Remove __gettimeofday_internal alias.
16870
16871 2012-05-24  Daniel Jacobowitz  <drow@false.org>
16872             H.J. Lu  <hongjiu.lu@intel.com>
16873
16874         [BZ #12495]
16875         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
16876         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
16877         (largebin_index_32_big): New.
16878         (largebin_index): Use it for 16-byte alignment.
16879         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
16880         correction with front_misalign.
16881
16882 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
16883
16884         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
16885         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
16886         Likewise.
16887         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
16888         Likewise.
16889         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
16890         Likewise.
16891         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
16892         Likewise.
16893         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
16894         Likewise.
16895         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
16896         Likewise.
16897         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
16898         Likewise.
16899         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
16900         Likewise.
16901         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
16902         Likewise.
16903         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
16904         Likewise.
16905         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
16906         Likewise.
16907         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
16908         Likewise.
16909
16910         * scripts/data/c++-types-x32-linux-gnu.data: New file.
16911         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
16912
16913 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
16914
16915         [BZ #10846]
16916         [BZ #14036]
16917         * math/libm-test.inc (exp_test): Add test from bug 14036.
16918         (pow_test): Add test from bug 10846.
16919
16920         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
16921         and other flags.
16922         (special_function): Do not include flags in test name.
16923         (parse_args): Likewise.
16924         * sysdeps/i386/fpu/libm-test-ulps: Update.
16925         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
16926         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
16927         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
16928         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16929
16930         * math/gen-libm-test.pl (%beautify): Add entries for underflow
16931         exceptions.
16932         * math/libm-test.inc ("Philosophy"): Update comment about
16933         exception testing.
16934         (UNDERFLOW_EXCEPTION): New macro.
16935         (UNDERFLOW_EXCEPTION_OK): Likewise.
16936         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
16937         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
16938         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
16939         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
16940         (INVALID_EXCEPTION_OK): Update value.
16941         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
16942         (OVERFLOW_EXCEPTION_OK): Likewise.
16943         (IGNORE_ZERO_INF_SIGN): Likewise.
16944         (test_exceptions): Handle underflow exceptions.
16945         (acos_test): Update for underflow exception expectations.
16946         (cexp_test): Likewise.
16947         (clog_test): Likewise.
16948         (clog10_test): Likewise.
16949         (csqrt_test): Likewise.
16950         (ctan_test): Likewise.
16951         (ctanh_test): Likewise.
16952         (exp_test): Likewise.
16953         (exp10_test): Likewise.
16954         (exp2_test): Likewise.
16955         (expm1_test): Likewise.
16956         (fma_test): Likewise.
16957         (j0_test): Likewise.
16958         (jn_test): Likewise.
16959         (nexttoward_test): Likewise.
16960         (pow_test): Likewise.
16961         (scalbn_test): Likewise.
16962         (scalbln_test): Likewise.
16963         (tan_test): Likewise.
16964         (y1_test): Likewise.
16965         * sysdeps/i386/fpu/libm-test-ulps: Update.
16966         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
16967
16968 2012-05-23  David S. Miller  <davem@davemloft.net>
16969
16970         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
16971         (__libc_sigaction): Remove unused local variables.
16972
16973 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
16974
16975         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
16976
16977 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
16978
16979         mktime: avoid signed integer overflow
16980         * time/mktime.c (__mktime_internal): Do not mishandle the case
16981         where diff == INT_MIN.
16982
16983         mktime: simplify computation of average
16984         * time/mktime.c (ranged_convert): Use new time_t_avg function
16985         instead of rolling our own (probably-slower) code.
16986
16987         mktime: do not assume signed right shift propagates sign bit
16988         * time/mktime.c (isdst_differ): New static function.
16989         (__mktime_internal): No need to normalize tm_isdst now.
16990         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
16991         tm_isdst values.
16992
16993         mktime: merge another wrapv change from gnulib
16994         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
16995         from some compilers.
16996
16997         mktime: remove incorrect attempt at unusual arithmetics
16998         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
16999         The code didn't really work on such machines anyway.
17000         (TYPE_MINIMUM): Assume two's complement.
17001         (twos_complement_arithmetic): Verify that long_int and time_t
17002         are two's complement (or unsigned, in the latter case).
17003
17004         mktime: check signed shifts on long_int and time_t, too
17005         * time/mktime.c (SHR): Check that shifts work as desired
17006         on the types long_int and time_t too, as SHR is used on
17007         such types.
17008
17009         mktime: do not assume 'long' is wide enough
17010         * time/mktime.c (verify): Move decl up.
17011         (long_int): New type.
17012         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
17013         to remove assumption in the code that 'long' is wide enough to
17014         store year values.  This assumption is not true on x32 and on
17015         some non-glibc platforms.
17016
17017         mktime: merge wrapv change from gnulib
17018         * time/mktime.c (WRAPV): New macro.
17019         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
17020         (guess_time_tm, __mktime_internal): Do not assume that signed
17021         integer overflow wraps around; modern compilers generate code
17022         where this assumption is no longer valid.
17023
17024 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
17025
17026         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
17027         Replace "jmp L(pseudo_end)" with "ret".
17028         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
17029         Likewise.
17030
17031 2012-05-23  Andreas Jaeger  <aj@suse.de>
17032
17033         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
17034         * sysdeps/unix/sysv/linux/poll.c: Remove file.
17035
17036 2012-05-23  Andreas Jaeger  <aj@suse.de>
17037             Maximilian Attems  <max@stro.at>
17038
17039         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
17040         New macros.
17041
17042 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
17043
17044         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
17045         code so that pseudo_end is just ret and the stack pointer is
17046         correct also for static library in error case.
17047
17048 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
17049
17050         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
17051         move to syscalls.list.
17052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
17053         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
17054         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
17055         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
17056
17057         * manual/install.texi (Running make install): Do not mention Linux
17058         kernel version for which pt_chown is not needed.
17059         (Linux): Do not mention problems with nscd with 2.0 kernels.
17060         * INSTALL: Regenerated.
17061
17062 2012-05-23  Andreas Jaeger  <aj@suse.de>
17063
17064         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
17065         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
17066         macro.
17067         * sysdeps/unix/sysv/linux/s390/bits/mman.h
17068         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
17069         * sysdeps/unix/sysv/linux/sh/bits/mman.h
17070         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
17071         * sysdeps/unix/sysv/linux/i386/bits/mman.h
17072         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
17073         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
17074         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
17075         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
17076         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
17077         * sysdeps/unix/sysv/linux/bits/in.h
17078         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
17079
17080 2012-05-22  Roland McGrath  <roland@hack.frob.com>
17081
17082         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
17083         (PREPARE_VERSION): Just use assert instead, it will be elided
17084         under [NDEBUG] anyway.
17085
17086 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17087
17088         * sysdeps/unix/sysv/linux/Makefile: Include
17089         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
17090         (sysdep_routines): Remove sysctl.
17091         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
17092         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
17093         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
17094         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
17095         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
17096
17097 2012-05-22  Andreas Jaeger  <aj@suse.de>
17098
17099         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
17100         that pseudo_end is just ret and the stack pointer is correct also
17101         for static library in error case.
17102
17103 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
17104
17105         [BZ #14122]
17106         * nss/nsswitch.c (defconfig_entries): New variable.
17107         (__nss_database_lookup): Don't leak defconfig entries.
17108         (nss_parse_service_list): Don't leak on error paths.
17109         (free_database_entries): New function.
17110         (free_defconfig): New function.
17111         (free_mem): Move common code to free_database_entries.
17112
17113 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17114
17115         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
17116         Add arch_prctl.
17117         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
17118
17119         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
17120         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
17121         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
17122         New macro.
17123         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
17124         (INTERNAL_SYSCALL_TYPES): Likewise.
17125         (LOAD_ARGS_TYPES_[1-6]): Likewise.
17126         (LOAD_REGS_TYPES_[1-6]): Likewise.
17127         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
17128         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
17129
17130 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17131
17132         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
17133         copysignl for GLIBC_2_0.
17134         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
17135         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
17136         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
17137         logbl for GLIBC_2_0.
17138         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
17139         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
17140
17141 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17142
17143         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
17144         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
17145
17146         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
17147         Use "neg %eax".
17148
17149         * time/mktime.c: Update copyright years.
17150
17151 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17152
17153         mktime: merge comment-quoting-style change from gnulib
17154         * time/mktime.c: Quote 'like this' in comments.
17155         The GNU coding standards suggest that we no longer quote `like this',
17156         as "`" and "'" are typically rendered asymmetrically nowadays.
17157         The typical gnulib style is to quote 'like this' when quoting
17158         code, and "like this" when quoting English.
17159
17160         * time/mktime.c (compile-command): Add "-I.".
17161
17162         mktime: merge mktime-internal.h change from gnulib
17163         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
17164
17165         mktime: merge time_r change from gnulib
17166         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
17167
17168         mktime: merge DEBUG change from gnulib
17169         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
17170         case system <time.h> has a #define.
17171
17172         mktime: merge <sys/types.h> change from gnulib
17173         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
17174         since <time.t> is now guaranteed to define time_t.
17175
17176         mktime: merge HAVE_CONFIG_H change from gnulib
17177         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
17178
17179 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17180
17181         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
17182         Use "neg %eax".
17183
17184         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
17185         __rlim_t cast.
17186         (struct rusage): Use anonymous union to pad each field to
17187         __syscall_slong_t.
17188
17189 2012-05-21  David S. Miller  <davem@davemloft.net>
17190
17191         * Makefules (o-iterator): Remove .s cases.
17192         (compile-command.s): Delete.
17193         (COMPILE.s): Delete.
17194         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
17195
17196 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
17197
17198         * configure.in (libc_cv_predef_stack_protector): Only consider
17199         "foobar" and "__stack_chk_fail" lines in libc_undefs.
17200         * configure: Regenerated.
17201
17202 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17203
17204         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
17205         New macro.  Use R*LP on int and pointer.
17206         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
17207         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
17208         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
17209         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
17210
17211         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
17212         [__WORDSIZE_TIME64_COMPAT32] instead of
17213         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
17214         (struct utmp): Likewise.
17215         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
17216         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
17217         Renamed to ...
17218         (__WORDSIZE_TIME64_COMPAT32): This.
17219         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
17220         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
17221         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
17222         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
17223         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
17224         (__WORDSIZE_TIME64_COMPAT32): New macro.
17225
17226 2012-05-21  Andreas Jaeger  <aj@suse.de>
17227
17228         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
17229         only if [SHARED]. Add prototype for __wcschr_ia32.
17230
17231 2012-05-21  Roland McGrath  <roland@hack.frob.com>
17232
17233         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
17234         of %rbp unmolested in the jmp_buf while mangling the low bits.
17235         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
17236         unmolested high bits of %rbp while demangling the low bits.
17237         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
17238
17239 2012-05-21  Andreas Jaeger  <aj@suse.de>
17240
17241         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
17242         * sunrpc/svc_simple.c: Use it for registerrpc.
17243         * sunrpc/xcrypt.c: Use it for passwd2des.
17244
17245         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
17246
17247 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17248
17249         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
17250         Don't define if [__SYSCALL_WORDSIZE != 32].
17251         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
17252         New macro.
17253
17254 2012-05-21  Bruno Haible  <bruno@clisp.org>
17255             Andreas Jaeger  <aj@suse.de>
17256
17257         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
17258         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
17259         inptr and inend for must_buffer_ch.
17260         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
17261         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
17262         * stdio-common/Makefile (tests): Remove bug15.
17263         (bug15-ENV): Remove macro.
17264         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
17265         anymore.
17266
17267 2012-05-19  Andreas Jaeger  <aj@suse.de>
17268             Roland McGrath  <roland@hack.frob.com>
17269
17270         * manual/contrib.texi: Completely rewritten. It contains now an
17271         alphabetical list of contributors and their contributions.
17272
17273 2012-05-21  Richard Henderson  <rth@twiddle.net>
17274
17275         * misc/getauxval.c (__getauxval): Use unsigned long int.
17276         * misc/sys/auxv.h: Include <sys/cdefs.h>.
17277         (getauxval): Use unsigned long int.
17278
17279 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
17280
17281         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
17282
17283 2012-05-21  Roland McGrath  <roland@hack.frob.com>
17284
17285         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
17286         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
17287         __alignof__ (long double).
17288
17289 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17290
17291         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17292
17293 2012-05-20  Richard Henderson  <rth@twiddle.net>
17294
17295         * misc/getauxval.c: New file.
17296         * misc/sys/auxv.h: New file.
17297         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
17298         (routines): Add getauxval.
17299         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
17300         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
17301         * elf/dl-sysdep.c (_dl_auxv): Remove.
17302         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
17303         * elf/dl-support.c (_dl_auxv): New variable.
17304         (_dl_aux_init): Initialize it.
17305         * manual/startup.texi (Auxiliary Vector): New node.
17306         * sysdeps/generic/bits/hwcap.h: New file.
17307         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
17308         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
17309         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
17310         * sysdeps/sparc/sysdep.h: ... here.  Include it.
17311         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
17312         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
17313         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
17314         Update.
17315         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
17316         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
17317         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
17318         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
17319         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
17320         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
17321         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
17322         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
17323
17324 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17325
17326         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
17327
17328 2012-05-19  David S. Miller  <davem@davemloft.net>
17329
17330         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17331
17332 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
17333
17334         [BZ #14123]
17335         * math/s_ccosh.c: Include <float.h>
17336         (__ccosh): Avoid internal overflow calculating sinh and cosh
17337         values before multiplying by sin and cos values.
17338         * math/s_ccoshf.c: Likewise.
17339         * math/s_ccoshl.c: Likewise.
17340         * math/s_csin.c: Likewise.
17341         * math/s_csinf.c: Likewise.
17342         * math/s_csinl.c: Likewise.
17343         * math/s_csinh.c: Likewise.
17344         * math/s_csinhf.c: Likewise.
17345         * math/s_csinhl.c: Likewise.
17346         * math/libm-test.inc (ccos_test): Add more tests.
17347         (ccosh_test): Likewise.
17348         (csin_test): Likewise.
17349         (csinh_test): Likewise.
17350         * sysdeps/i386/fpu/libm-test-ulps: Update.
17351         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17352
17353 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
17354
17355         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
17356         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
17357
17358         * sysdeps/x86_64/x32/_itoa.h: Add comment.
17359
17360 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
17361
17362         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
17363         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
17364         * sysdeps/powerpc/soft-fp/Versions: Likewise.
17365         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
17366         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
17367         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
17368         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
17369         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
17370         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
17371         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
17372         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
17373         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
17374         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
17375         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
17376         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
17377         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
17378         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
17379         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
17380         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
17381         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
17382         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
17383         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
17384         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
17385         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
17386         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
17387         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
17388         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
17389         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
17390         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
17391         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
17392         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
17393
17394 2012-05-18  Andreas Jaeger  <aj@suse.de>
17395
17396         * csu/.gitignore: Delete.
17397
17398 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
17399
17400         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
17401         (timex): Use __syscall_slong_t.
17402
17403 2012-05-18  Andreas Jaeger  <aj@suse.de>
17404             Carlos O'Donell  <carlos_odonell@mentor.com>
17405
17406         * manual/install.texi (Configuring and compiling): Update
17407         description about files modified in the source directory.
17408         * INSTALL: Regenerated.
17409
17410 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
17411
17412         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
17413         value.  Use "or" to set return value to -1.
17414         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
17415         negate return value.
17416
17417 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
17418
17419         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
17420         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
17421         failure if the compiler has Graphite support disabled.
17422         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
17423         Likewise.
17424         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
17425         CFLAGS-memmove.c): Likewise.
17426         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
17427         Likewise.
17428
17429 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
17430
17431         * sysdeps/x86_64/x32/_itoa.h: New file.
17432
17433         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
17434         getdents system call only if kernel and user dirents have the
17435         same d_ino and d_off.
17436
17437         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
17438         LLONG_MAX != LONG_MAX.
17439         (_itoa_word): Use _ITOA_WORD_TYPE on value.
17440         (_fitoa_word): Likewise.
17441
17442         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
17443         years.
17444         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
17445         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
17446         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
17447
17448         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
17449         include <bits/wordsize.h>.  Check __x86_64__ instead of
17450         __WORDSIZE.
17451         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
17452         if __x86_64__ is defined.  Use anonymous union on fpstate.
17453
17454         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
17455         anonymous union.
17456
17457 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
17458
17459         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
17460         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
17461         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
17462         Refer to _rtld_local_ro instead of _rtld_global_ro.
17463         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
17464         Likewise.
17465         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
17466         Likewise.
17467         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
17468         Likewise.
17469         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
17470         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
17471         of _rtld_global, and rtld_progname instead of _dl_argv[0].
17472
17473         * sysdeps/powerpc/powerpc32/dl-machine.c
17474         (__elf_machine_runtime_setup) [PROF]: Don't reference
17475         _dl_prof_resolve.
17476
17477 2012-05-18  Andreas Jaeger  <aj@suse.de>
17478
17479         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
17480         function only available for GCCs before 3.4 since GCC 3.4
17481         introduced a builtin.
17482         (lrint): Likewise.
17483         (llrintf): Likewise.
17484         (llrint): Likewise.
17485         (fmaxf): Likewise.
17486         (fmax): Likewise.
17487         (fminf): Likewise.
17488         (fmin): Likewise.
17489         (rint): Likewise.
17490         (rintf): Likewise.
17491         (nearbyint): Likewise.
17492         (nearbyintf): Likewise.
17493         (ceil): Likewise.
17494         (ceilf): Likewise.
17495         (floor): Likewise.
17496         (floorf): Likewise.
17497
17498 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17499
17500         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
17501         on both fields and cast pointer to __syscall_ulong_t.
17502
17503         * bits/types.h (__fsword_t): New type.
17504         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
17505         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
17506         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
17507         (__FSWORD_T_TYPE): Likewise.
17508         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
17509         (__FSWORD_T_TYPE): Likewise.
17510         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
17511         (__FSWORD_T_TYPE): Likewise.
17512         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
17513         (__FSWORD_T_TYPE): Likewise.
17514         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
17515         __SWORD_TYPE with __fsword_t.
17516         (statfs64): Likewise.
17517
17518 2012-05-17  David S. Miller  <davem@davemloft.net>
17519
17520         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
17521
17522 2012-05-17  Andreas Jaeger  <aj@suse.de>
17523
17524         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
17525         warning.
17526
17527 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17528
17529         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
17530
17531 2012-05-17  Andreas Jaeger  <aj@suse.de>
17532
17533         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
17534         when it is used.
17535
17536 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
17537
17538         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
17539
17540 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17541
17542         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
17543         * sysdeps/x86_64/tst-mallocalign1.c: New file.
17544
17545 2012-05-17  Andreas Jaeger  <aj@suse.de>
17546             Carlos O'Donell  <carlos_odonell@mentor.com>
17547
17548         [BZ #14059]
17549         * sysdeps/x86_64/multiarch/init-arch.h
17550         (bit_YMM_Usable): Rename to...
17551         (bit_AVX_Usable): ... this.
17552         (bit_FMA4_Usable): New macro.
17553         (bit_XMM_state): New macro.
17554         (bit_YMM_state): New macro.
17555         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
17556         [__ASSEMBLER__] (index_AVX_Usable): ... this.
17557         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
17558         (CPUID_OSXSAVE): New macro.
17559         (CPUID_AVX): New macro.
17560         (CPUID_FMA4): New macro.
17561         (index_YMM_Usable): Rename to...
17562         (index_AVX_Usable): ... this.
17563         (HAS_AVX): Use HAS_ARCH_FEATURE.
17564         (HAS_FMA4): Likewise.
17565         (HAS_YMM_USABLE): Remove.
17566         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
17567         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
17568         are present.
17569         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
17570         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
17571         * sysdeps/x86_64/multiarch/Makefile: Likewise.
17572         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
17573         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
17574
17575 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
17576
17577         * math/libm-test.c: Support platforms without multiple rounding modes.
17578         * math/bug-nextafter.c: Support platforms without FP exceptions.
17579         * math/bug-nexttoward.c: Likewise.
17580         * math/test-fenv.c: Likewise.
17581         * math/test-misc.c: Likewise.
17582         * stdlib/bug-getcontext.c: Likewise.
17583
17584 2012-05-17  Andreas Jaeger  <aj@suse.de>
17585
17586         * manual/examples/search.c (critter_cmp): Change signature to
17587         avoid warnings.
17588         * manual/string.texi (Collation Functions): Likewise.
17589
17590 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17591
17592         * bits/types.h: Fold copyright years.
17593         * bits/typesizes.h: Likewise.
17594         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
17595         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
17596         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
17597         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
17598         * time/time.h: Likewise.
17599
17600 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
17601
17602         [BZ #208]
17603         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
17604         in instead of returning them.  Return void.
17605         (__libc_mallinfo): Accumulate over all arenas.
17606         (__malloc_stats): Adjust for change in int_mallinfo interface.
17607
17608 2012-05-16  Roland McGrath  <roland@hack.frob.com>
17609
17610         [BZ #10375]
17611         * configure.in (NM): Add AC_CHECK_TOOL for it.
17612         (libc_extra_cflags): New substituted variable.
17613         Check for -fstack-protector being used implicitly.
17614         * configure: Regenerated.
17615         * config.make.in (config-extra-cflags): New variable,
17616         gets @libc_extra_cflags@.
17617         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
17618
17619         [BZ #10375]
17620         * configure.in: Check for _FORTIFY_SOURCE being predefined.
17621         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
17622         * configure: Regenerated.
17623         * config.make.in (CPPUNDEFS): New substituted variable.
17624         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
17625         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
17626         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
17627
17628 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17629
17630         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
17631         (mq_attr): Use __syscall_slong_t.
17632
17633 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17634
17635         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
17636         Check __x86_64__ instead of __WORDSIZE.
17637         (_STAT_VER_LINUX): Likewise.
17638         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
17639         __syscall_ulong_t and __syscall_slong_t.
17640         (stat64): Likewise.
17641
17642 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17643
17644         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
17645
17646 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17647
17648         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
17649
17650 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17651
17652         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
17653         __syscall_ulong_t.
17654
17655         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
17656         include <bits/wordsize.h>.  Check __x86_64__ instead of
17657         __WORDSIZE.
17658         (greg_t): Use "__extension__ long long int" if __x86_64__ is
17659         defined.
17660         (mcontext_t): Replace "unsigned long" with "unsigned long long".
17661
17662         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
17663         include <bits/wordsize.h>.  Check __x86_64__ instead of
17664         __WORDSIZE.
17665         (user_regs_struct): Use "__extension__ unsigned long long"
17666         instead of "unsigned long" if __x86_64__ is defined.
17667         (user): Likewise.  Pad after pointer field if __ILP32__ is
17668         defined.
17669
17670 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
17671
17672         * configure.in (makeinfo): Require version 4.5 or later.  Allow
17673         versions 5 to 9.
17674         * configure: Regenerated.
17675         * manual/install.texi (texinfo): Increase version requirement to
17676         4.5 or later.
17677         * INSTALL: Regenerated.
17678
17679         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
17680
17681 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
17682
17683         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
17684
17685         * sysdeps/x86_64/x32/ffs.c: New file.
17686
17687         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
17688         __syscall_ulong_t.
17689         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
17690         defined.  Use __syscall_ulong_t.
17691         (shminfo): Use __syscall_ulong_t.
17692         (shm_info): Likewise.
17693
17694         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
17695         __syscall_ulong_t.
17696
17697         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
17698         <bits/wordsize.h>.
17699         (msgqnum_t): Use __syscall_ulong_t.
17700         (msglen_t): Likewise.
17701         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
17702         __syscall_ulong_t.
17703
17704         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
17705         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
17706
17707         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
17708
17709         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
17710         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
17711
17712         * sysvipc/sys/msg.h (msgbuf): Replace long int with
17713         __syscall_slong_t.
17714
17715         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
17716         include <bits/wordsize.h>.  Check __x86_64__ instead of
17717         __WORDSIZE.
17718
17719         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
17720         "unsigned long long int" if __x86_64__ is defined.
17721         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
17722
17723         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
17724         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
17725         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
17726
17727         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
17728         <stdint.h>.
17729         (GET_PC): Cast to uintptr_t first.
17730         (GET_FRAME): Likewise.
17731         (GET_STACK): Likewise.
17732
17733         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
17734         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
17735         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
17736         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
17737         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
17738         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
17739         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
17740         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
17741         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
17742         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
17743         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
17744         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
17745         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
17746         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
17747         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
17748         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
17749         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
17750         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
17751         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
17752         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
17753         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
17754         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
17755         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
17756         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
17757         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
17758         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
17759         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
17760         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
17761         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
17762
17763 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
17764
17765         * Makerules (+depfiles): Also collect depfiles from .oS in
17766         $(extra-objs).
17767         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
17768         .oS, $(libnldbl-routines)).
17769
17770         * Makerules (native-compile-mkdep-flags): Define.
17771         * sunrpc/Makefile (extra-objs): Add $(addprefix
17772         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
17773         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
17774         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
17775         calling $(make-target-directory).
17776
17777 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17778
17779         * bits/types.h (__snseconds_t): Removed.
17780         * time/time.h (struct timespec): Replace __snseconds_t with
17781         __syscall_slong_t.
17782         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
17783         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
17784         Likewise.
17785         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
17786         (__SNSECONDS_T_TYPE): Likewise.
17787         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
17788         (__SNSECONDS_T_TYPE): Likewise.
17789         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
17790         (__SNSECONDS_T_TYPE): Likewise.
17791
17792 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17793
17794         * sysdeps/mach/hurd/bits/typesizes.h
17795         (__SYSCALL_SLONG_TYPE): New macro.
17796         (__SYSCALL_ULONG_TYPE): Likewise.
17797
17798 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17799
17800         * bits/types.h (__syscall_slong_t): New type.
17801         (__syscall_ulong_t): Likewise.
17802
17803         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
17804         (__SYSCALL_ULONG_TYPE): Likewise.
17805         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
17806         (__SYSCALL_SLONG_TYPE): Likewise.
17807         (__SYSCALL_ULONG_TYPE): Likewise.
17808         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
17809         (__SYSCALL_SLONG_TYPE): Likewise.
17810         (__SYSCALL_ULONG_TYPE): Likewise.
17811         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
17812         (__SYSCALL_SLONG_TYPE): Likewise.
17813         (__SYSCALL_ULONG_TYPE): Likewise.
17814
17815 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17816
17817         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
17818         Add sigaltstack-offsets.sym.
17819         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
17820         <sigaltstack-offsets.h>.
17821         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
17822         longjmp_msg pointer.
17823         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
17824         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
17825         signal stack.
17826         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
17827
17828 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
17829
17830         * elf/stackguard-macros.h: Remove file.
17831         * sysdeps/generic/stackguard-macros.h: New file.
17832         * sysdeps/i386/stackguard-macros.h: Likewise.
17833         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
17834         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
17835         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
17836         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
17837         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
17838         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
17839         * sysdeps/x86_64/stackguard-macros.h: Likewise.
17840         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
17841         <elf/stackguard-macros.h>.
17842
17843         [BZ #14109]
17844         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
17845         __aligned__ in attribute.
17846         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
17847         (gregset_t): Likewise.
17848
17849 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17850
17851         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
17852         * sysdeps/x86_64/64/Implies-after: Here.  New file.
17853         * sysdeps/x86_64/x32/Implies-after: New file.
17854
17855 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17856
17857         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
17858         and access return value for _dl_profile_fixup.  Use R10_LP to
17859         load frame size.
17860
17861 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17862
17863         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
17864
17865 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17866
17867         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
17868         * sysdeps/x86_64/x32/sysdep.h: New file.
17869
17870 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17871
17872         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
17873         * sysdeps/x86_64/setjmp.S: Likewise.
17874
17875 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17876
17877         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
17878         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
17879         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
17880         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
17881         remove unused global constant.
17882
17883 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
17884
17885         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
17886         include of <not-cancel.h>.
17887
17888 2012-05-15  Roland McGrath  <roland@hack.frob.com>
17889
17890         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
17891
17892 2012-05-15  Jeff Law  <law@redhat.com>
17893             Andreas Jaeger  <aj@suse.de>
17894
17895         [BZ #13594]
17896         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
17897         out from...
17898         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
17899         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
17900         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
17901         code changing __hst_map_handle.map.
17902
17903 2012-05-15  Roland McGrath  <roland@hack.frob.com>
17904
17905         * configure.in (sysnames): Look for Implies-before and Implies-after
17906         files.
17907         * configure: Regenerated.
17908
17909 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17910
17911         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
17912         8-byte data alignment with LP_SIZE alignment.
17913
17914 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17915
17916         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
17917         into R10_LP.
17918
17919 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17920
17921         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
17922
17923 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17924
17925         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
17926         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
17927         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
17928         Likewise.
17929         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
17930
17931 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17932
17933         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
17934         (stackinfo_sub_sp): Likewise.
17935
17936 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17937
17938         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
17939         RAX_LP.
17940
17941 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17942
17943         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
17944         into R*_LP.
17945
17946 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17947
17948         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
17949         sizes into R*_LP.
17950
17951 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17952
17953         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
17954
17955 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17956
17957         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
17958         into R11_LP and load __x86_64_shared_cache_size_half into
17959         R8_LP.
17960
17961 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17962
17963         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
17964         R8_LP.
17965
17966 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
17967
17968         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
17969         logb for POWER7.
17970         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
17971         logbf for POWER7.
17972         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
17973         logbl for POWER7.
17974         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
17975         powerpc32/power7/fpu/s_logb.c via #include.
17976         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
17977         powerpc32/power7/fpu/s_logbf.c via #include.
17978         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
17979         powerpc32/power7/fpu/s_logbl.c via #include.
17980
17981 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
17982
17983         * README.libm: Remove file.
17984
17985 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
17986
17987         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
17988         count for x32.  Use R*_LP and omit operand-size suffix.
17989
17990 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
17991
17992         * shlib-versions: Move x86_64-.*-linux.* entries to ...
17993         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
17994         * sysdeps/x86_64/x32/shlib-versions: New file.
17995
17996 2012-05-14  Roland McGrath  <roland@hack.frob.com>
17997
17998         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
17999         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
18000         Use _dl_fatal_printf instead.
18001
18002 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
18003
18004         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
18005         set if not set by the user.  Do not allow for being unset.
18006         * sysdeps/unix/sysv/linux/configure: Regenerated.
18007
18008 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18009
18010         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
18011         the `q' suffix from lea and replace .quad with ASM_ADDR.
18012
18013 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18014
18015         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
18016         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
18017         instead of $17.
18018         (PTR_DEMANGLE): Likewise.
18019
18020 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18021
18022         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
18023         (LP_OP): Likewise.
18024         (ASM_ADDR): Likewise.
18025         (RAX_LP): Likewise.
18026         (RBP_LP): Likewise.
18027         (RBX_LP): Likewise.
18028         (RCX_LP): Likewise.
18029         (RDI_LP): Likewise.
18030         (RSI_LP): Likewise.
18031         (RSP_LP): Likewise.
18032         (R8_LP): Likewise.
18033         (R9_LP): Likewise.
18034         (R10_LP): Likewise.
18035         (R10_LP): Likewise.
18036         (R11_LP): Likewise.
18037         (R12_LP): Likewise.
18038         (R13_LP): Likewise.
18039         (R14_LP): Likewise.
18040         (R15_LP): Likewise.
18041
18042 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18043
18044         * sysdeps/x86_64/x32/dl-machine.h: New file.
18045
18046 2012-05-14  Andreas Jaeger  <aj@suse.de>
18047
18048         * manual/Makefile (subdir): Remove export of subdir.
18049         (all): Remove target.
18050         (.PHONY): Remove all from list.
18051         (mkinstalldirs): Remove.
18052         (.PHONY): Remove installdirs from list.
18053         ($(inst_infodir)/libc.info): Use make-target-directory.
18054         (installdirs): Remove.
18055         (subdir_%): Remove.
18056         (glibc-targets): Remove.
18057         (lib): Remove.
18058         (stubs): Remove.
18059         ($(objpfx)stubs ../po/manual.pot): Remove.
18060         ($(objpfx)stamp%): Remove.
18061         (make-target-directory): Remove.
18062         (subdir_install): Remove.
18063         (routines): Remove.
18064         (aux): Remove.
18065         (sources): Remove.
18066         (objects): Remove.
18067         (headers): Remove.
18068
18069         [BZ #13750]
18070         * manual/.gitignore: Remove, it's not needed anymore.
18071         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
18072         all files in it.
18073         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
18074         directory.
18075         (texis): Renamed to $(objpfx)texis.
18076         (texis-path): New, contains path to generated files.
18077         (chapters.%): Use texis-path for complete path, add extra argument
18078         libc-texinfo.sh.
18079         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
18080         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
18081         (summary,texi, stamp-summary): Use complete path of
18082         files. Generate files in build dir.
18083         (dir-add.texi): Build in build dir.
18084         (libm-err.texi,stamp-libm-err): Likewise.
18085         (version.texi, stamp-version): Likewise.
18086         (.%c.texi): Likewise.
18087         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
18088         (mostlyclean): Remove target.
18089         (realclean): Remove target.
18090         (generated): Add new variable with contents from mostlyclean and
18091         realclean, remove entries duplicated in common-mostlyclean, add
18092         stamp-libm-err and stamp-version.
18093         (generated-dirs): Add libc directory.
18094         ($(inst_infodir)/libc.info): Install files from build dir.
18095
18096         * manual/install.texi (Configuring and compiling): Adjust since
18097         the info files are not part of the tar ball anymore.
18098
18099 2012-05-14  Andreas Jaeger  <aj@suse.de>
18100
18101         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
18102         variable.
18103
18104 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
18105
18106         [BZ #13717]
18107         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
18108         to 2.2.0 where earlier.
18109         * sysdeps/unix/sysv/linux/configure: Regenerated.
18110         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
18111         Remove conditional code.
18112         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
18113         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
18114         Remove conditional code.
18115         [!__NR_lchown]: Likewise.
18116         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
18117         [__NR_lchown]: Likewise.
18118         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
18119         comment referencing __ASSUME_LCHOWN_SYSCALL.
18120         * sysdeps/unix/sysv/linux/i386/sigaction.c
18121         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
18122         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
18123         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
18124         Remove conditional code.
18125         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
18126         (__protocol_available): Remove #if 0 code.
18127         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
18128         conditional code.
18129         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
18130         * sysdeps/unix/sysv/linux/kernel-features.h
18131         (__ASSUME_GETCWD_SYSCALL): Don't define.
18132         (__ASSUME_REALTIME_SIGNALS): Likewise.
18133         (__ASSUME_PREAD_SYSCALL): Likewise.
18134         (__ASSUME_PWRITE_SYSCALL): Likewise.
18135         (__ASSUME_POLL_SYSCALL): Likewise.
18136         (__ASSUME_LCHOWN_SYSCALL): Likewise.
18137         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
18138         non-SPARC.
18139         (__ASSUME_SIOCGIFNAME): Don't define.
18140         (__ASSUME_MSG_NOSIGNAL): Likewise.
18141         (__ASSUME_SENDFILE): Define unconditionally.
18142         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
18143         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
18144         conditional code.
18145         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
18146         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
18147         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
18148         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
18149         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
18150         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
18151         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
18152         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
18153         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
18154         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18155         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
18156         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
18157         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18158         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
18159         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
18160         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
18162         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
18163         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18164         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
18165         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
18166         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18167         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
18168         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
18169         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
18171         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
18172         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
18174         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
18175         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18176         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
18177         Remove conditional code.
18178         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18179         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
18180         Remove conditional code.
18181         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18182         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
18183         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
18184         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
18185         Remove conditional code.
18186         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18187         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
18188         Remove conditional code.
18189         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18190         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
18191         Remove conditional code.
18192         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18193         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
18194         Remove conditional code.
18195         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
18196         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
18197         Remove conditional code.
18198         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18199         * sysdeps/unix/sysv/linux/sh/pwrite64.c
18200         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
18201         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
18202         * sysdeps/unix/sysv/linux/sigaction.c
18203         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
18204         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
18205         * sysdeps/unix/sysv/linux/sigpending.c
18206         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
18207         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
18208         * sysdeps/unix/sysv/linux/sigprocmask.c
18209         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
18210         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
18211         * sysdeps/unix/sysv/linux/sigsuspend.c
18212         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
18213         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
18214         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
18215         (__libc_missing_rt_sigs): Remove.
18216         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
18217         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
18218         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
18219         Remove conditional code.
18220         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
18221         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
18222         return 1.
18223         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
18224         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
18225         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
18226         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
18227
18228 2012-05-14  Andreas Jaeger  <aj@suse.de>
18229
18230         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
18231         it's not used in glibc.
18232         (__coshm1): Likewise.
18233         (__acosh1p): Likewise.
18234         (__sgn): Likewise.
18235
18236         * manual/string.texi (Copying and Concatenation): Add missing
18237         variable in concat example.
18238         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
18239
18240 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18241
18242         [BZ #14103]
18243         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
18244         __builtin_clzl with __builtin_clzll.
18245
18246 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
18247
18248         [BZ #14104]
18249         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
18250         libc_freeres_ptr.
18251
18252 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
18253
18254         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
18255         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
18256         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
18257         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
18258
18259 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
18260
18261         * NEWS: Update ia64 info.
18262
18263 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
18264
18265         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
18266         used as bcopy.
18267
18268 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
18269
18270         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
18271         * sysdeps/unix/syscalls.list (dup3): Likewise.
18272         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
18273         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
18274
18275 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
18276
18277         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
18278         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
18279
18280 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
18281
18282         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
18283         thread pointer.
18284         (TLS_IE): Use mov/add instead of movq/addq to load thread
18285         pointer.
18286         (TLS_GD_PREFIX): New.
18287         (TLS_GD): Use it.
18288
18289 2012-05-11  David S. Miller  <davem@davemloft.net>
18290
18291         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
18292         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
18293         (_FPU_SETCW): Likewise.
18294
18295 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
18296
18297         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
18298         is 32-byte aligned.
18299
18300 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
18301
18302         [BZ #11837]
18303         * iconvdata/gb18030.c: Update tables.
18304         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
18305         characters specially.
18306         (BODY for TO_LOOP): Add encoding of missing ranges.
18307
18308 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
18309
18310         [BZ #13673]
18311         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
18312         * sysdeps/mach/hurd/dup3.c: Likewise.
18313         * sysdeps/mach/hurd/readlinkat.c: Likewise.
18314         * sysdeps/powerpc/memmove.c:: Likewise.
18315
18316 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
18317
18318         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
18319         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
18320
18321 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
18322
18323         * elf/elf.h (R_X86_64_RELATIVE64): New.
18324         (R_X86_64_NUM): Updated.
18325         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
18326         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
18327         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
18328         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
18329         tst-quad1pie tst-quad2pie
18330         (modules-names): Add tst-quadmod1 tst-quadmod2.
18331         ($(objpfx)tst-quad1): New dependency.
18332         ($(objpfx)tst-quad2): Likewise.
18333         ($(objpfx)tst-quad1pie): Likewise.
18334         ($(objpfx)tst-quad2pie): Likewise.
18335         * sysdeps/x86_64/tst-quad1.c: New file.
18336         * sysdeps/x86_64/tst-quad1pie.c: New file.
18337         * sysdeps/x86_64/tst-quad2.c: Likewise.
18338         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
18339         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
18340         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
18341         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
18342         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
18343
18344 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18345
18346         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
18347         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
18348         * streams/stropts.h (t_scalar_t): Define type.
18349
18350         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
18351         (_PATH_PRESERVE): Set to "/var/lib".
18352         (_PATH_RWHODIR): Set to "/var/spool/rwho".
18353
18354         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
18355         instead of int.
18356
18357         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
18358         if __dir_mkfile succeeded.
18359
18360         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
18361         checking for _hurd_dtablesize.  Unlock it right after having
18362         finished _hurd_dtable allocation.
18363
18364 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
18365
18366         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
18367         * sysdeps/mach/hurd/configure: Regenerated.
18368         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
18369         special-casing to...
18370         * sysdeps/gnu/configure.in: ... this new file.
18371         * sysdeps/unix/sysv/linux/configure: Regenerated.
18372         * sysdeps/gnu/configure: New generated file.
18373
18374         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
18375         for Linux: use nsec instead of usec, as well as:
18376         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
18377         members of type struct timespec.
18378         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
18379         New macros.
18380         (struct stat64): Likewise.
18381         (_STATBUF_ST_NSEC): New macro.
18382         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
18383
18384         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
18385         __strtoul_internal rather than strtoul.
18386
18387 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
18388
18389         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
18390         and reject them.
18391
18392 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18393
18394         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
18395         which preserves existing values.
18396         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
18397
18398 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
18399
18400         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
18401         TIMEOUT values.  Return EINVAL for NFDS values either negative or
18402         greater than FD_SETSIZE.
18403
18404 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18405
18406         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
18407         allocated, call __vm_protect to finish enabling the existing space, and
18408         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
18409         allocate the remainder.
18410
18411 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
18412
18413         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
18414         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
18415
18416 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18417
18418         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
18419         sysdeps/mach/hurd/readlink.c.
18420
18421         * posix/tst-sysconf.c (posix_options): Only use
18422         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
18423         _POSIX_SYNCHRONIZED_IO when they are defined
18424         * sysdeps/mach/hurd/bits/posix_opt.h:
18425         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
18426         (_XOPEN_REALTIME): Undefine macro.
18427         (_XOPEN_REALTIME_THREADS): Undefine macro.
18428         (_XOPEN_SHM): Undefine macro.
18429         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
18430         macro to -1.
18431         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
18432         macro to -1.
18433         (_POSIX_ASYNC_IO): Undefine macro.
18434         (_POSIX_PRIORITIZED_IO): Undefine macro.
18435         (_POSIX_SPIN_LOCKS): Define macro to -1.
18436
18437         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
18438         SA_NODEFER, SA_RESETHAND.
18439         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
18440         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
18441         F_DUPFD_CLOEXEC.
18442
18443 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
18444
18445         * elf/Makefile (pldd-modules): Define unconditionally.
18446
18447 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
18448
18449         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
18450
18451 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18452
18453         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
18454         Return ENOENT when name is empty.
18455         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
18456
18457 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
18458
18459         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
18460
18461         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
18462
18463 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18464
18465         Fix mlock in all cases except non-readable pages.
18466         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
18467         instead of VM_PROT_ALL as parameter to __vm_wire function.
18468
18469         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
18470         (__mkdir): When path is `/', just fail with EEXIST.
18471         * sysdeps/mach/hurd/mkdirat.c: Likewise.
18472
18473 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
18474
18475         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
18476         <sys/uio.h> (for writev).
18477         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
18478         and <sys/param.h> (for MIN).
18479
18480 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
18481
18482         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
18483         REQUESTED_TIME.  Properly set the remaining time and return EINTR
18484         if interrupted.
18485
18486 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
18487
18488         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
18489         Depend on against $(link-rpcuserlibs).
18490
18491 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18492
18493         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
18494         (__libc_stack_end): Do not use attribute_relro.
18495         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
18496         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
18497         to libthread-provided value.
18498         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
18499         attribute_relro.
18500
18501 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
18502
18503         [BZ #3748]
18504         * bits/libc-lock.h (__libc_once_get): New macro.
18505         * sysdeps/mach/bits/libc-lock.h: Likewise.
18506         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
18507         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
18508         instead of using implementation details.
18509
18510         * libio/fileops.c: Unconditionally include <kernel-features.h>.
18511         * libio/freopen.c: Likewise.
18512         * libio/freopen64.c: Likewise.
18513         * misc/syslog.c: Likewise.
18514         * nscd/connections.c: Likewise.
18515         * nscd/netgroupcache.c: Likewise.
18516         * sysdeps/posix/getcwd.c: Likewise.
18517
18518 2012-05-10  Roland McGrath  <roland@hack.frob.com>
18519
18520         * math/w_ilogbf.c: Add #include <limits.h>.
18521
18522 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18523
18524         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
18525         path instead of returning without unlocking.
18526
18527         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
18528         immediate-write ioctls.
18529         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
18530
18531 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
18532
18533         * sysdeps/mach/hurd/i386/init-first.c (init): Use
18534         __builtin_frame_address instead of making assumptions about the
18535         location of the return address relative to DATA.  Force early load of
18536         the return address.
18537         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
18538         __builtin_frame_address.
18539
18540         dup3 for GNU Hurd.
18541         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
18542         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
18543         implement dup3 and do some further code clean-ups.
18544         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
18545         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
18546
18547 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18548
18549         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
18550
18551         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
18552         HURD_CRITICAL_END around holding _hurd_dtable_lock.
18553         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
18554         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
18555         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
18556         d->port.lock.
18557
18558         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
18559         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
18560         when handler == SIG_ERR, not when handler != SIG_ERR.
18561
18562 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
18563
18564         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
18565         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
18566         definitions.
18567
18568         accept4 for GNU Hurd.
18569         * include/sys/socket.h (__libc_accept4): New prototype.
18570         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
18571         to implement __libc_accept4.
18572         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
18573         __libc_accept4.
18574         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
18575
18576         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
18577         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
18578         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
18579         signal-defines.sym.
18580
18581 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18582
18583         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
18584
18585 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
18586
18587         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
18588         assertion on O_CLOEXEC flag.
18589         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
18590         * hurd/intern-fd.c: Likewise.
18591         * hurd/port2fd.c: Likewise.
18592
18593 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
18594
18595         [BZ #3906]
18596         * bits/in.h (IPV6_PKTINFO): Define new macro.
18597         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
18598
18599 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18600
18601         [BZ #13954]
18602         [BZ #13955]
18603         [BZ #13956]
18604         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
18605         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
18606         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
18607         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
18608         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
18609         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
18610         * math/libm-test.inc (logb_test) : Additional logb tests.
18611
18612 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
18613             Andreas Jaeger  <aj@suse.de>
18614
18615         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
18616         * configure: Regenerated.
18617         * config.h.in (LINK_OBSOLETE_RPC): New macro.
18618         * config.make.in (link-obsolete-rpc): New substituted variable.
18619         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
18620         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
18621         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
18622         (shared-only-routines): Don't set it under [link-obsolete-rpc],
18623         so that libc.a contains the symbols.
18624         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
18625         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
18626         * sunrpc/auth_none.c: Likewise.
18627         * sunrpc/auth_unix.c: Likewise.
18628         * sunrpc/authdes_prot.c: Likewise.
18629         * sunrpc/authuxprot.c: Likewise.
18630         * sunrpc/clnt_gen.c: Likewise.
18631         * sunrpc/clnt_perr.c: Likewise.
18632         * sunrpc/clnt_raw.c: Likewise.
18633         * sunrpc/clnt_simp.c: Likewise.
18634         * sunrpc/clnt_tcp.c: Likewise.
18635         * sunrpc/clnt_udp.c: Likewise.
18636         * sunrpc/clnt_unix.c: Likewise.
18637         * sunrpc/des_crypt.c: Likewise.
18638         * sunrpc/des_soft.c: Likewise.
18639         * sunrpc/get_myaddr.c: Likewise.
18640         * sunrpc/key_call.c: Likewise.
18641         * sunrpc/key_prot.c: Likewise.
18642         * sunrpc/netname.c: Likewise.
18643         * sunrpc/pm_getmaps.c: Likewise.
18644         * sunrpc/pm_getport.c: Likewise.
18645         * sunrpc/pmap_clnt.c: Likewise.
18646         * sunrpc/pmap_prot.c: Likewise.
18647         * sunrpc/pmap_prot2.c: Likewise.
18648         * sunrpc/pmap_rmt.c: Likewise.
18649         * sunrpc/publickey.c: Likewise.
18650         * sunrpc/rpc_cmsg.c: Likewise.
18651         * sunrpc/rpc_common.c: Likewise.
18652         * sunrpc/rpc_dtable.c: Likewise.
18653         * sunrpc/rpc_prot.c: Likewise.
18654         * sunrpc/rpc_thread.c: Likewise.
18655         * sunrpc/rtime.c: Likewise.
18656         * sunrpc/svc.c: Likewise.
18657         * sunrpc/svc_auth.c: Likewise.
18658         * sunrpc/svc_raw.c: Likewise.
18659         * sunrpc/svc_run.c: Likewise.
18660         * sunrpc/svc_tcp.c: Likewise.
18661         * sunrpc/svc_udp.c: Likewise.
18662         * sunrpc/svc_unix.c: Likewise.
18663         * sunrpc/svcauth_des.c: Likewise.
18664         * sunrpc/xcrypt.c: Likewise.
18665         * sunrpc/xdr.c: Likewise.
18666         * sunrpc/xdr_array.c: Likewise.
18667         * sunrpc/xdr_float.c: Likewise.
18668         * sunrpc/xdr_intXX_t.c: Likewise.
18669         * sunrpc/xdr_mem.c: Likewise.
18670         * sunrpc/xdr_rec.c: Likewise.
18671         * sunrpc/xdr_ref.c: Likewise.
18672         * sunrpc/xdr_sizeof.c: Likewise.
18673         * sunrpc/xdr_stdio.c: Likewise.
18674
18675 2012-05-10  Roland McGrath  <roland@hack.frob.com>
18676
18677         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
18678         change.  Update copyright years.
18679
18680 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
18681
18682         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
18683
18684 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
18685             Joseph Myers  <joseph@codesourcery.com>
18686             Paul Pluzhnikov  <ppluzhnikov@google.com>
18687
18688         [BZ #14012]
18689         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
18690         requiring rpcgen.
18691         [cross-compiling] (extra-libs): Likewise.
18692         [cross-compiling] (extra-libs-others): Likewise.
18693         [cross-compiling] (librpcsvc-routines): Likewise.
18694         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
18695         [cross-compiling] (omit-deps): Likewise.
18696         (sunrpc-CPPFLAGS): New variable.
18697         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
18698         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
18699         (cross-rpcgen-objs): New variable.
18700         (extra-objs): Append $(cross-rpcgen-objs).
18701         ($(cross-rpcgen-objs)): New rule.
18702         ($(objpfx)cross-rpcgen): Likewise.
18703         (rpcgen-cmd): Define to use $(built-program-file).  Expand
18704         comment.
18705         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
18706         ($(objpfx)x%.stmp): Likewise.
18707         * sunrpc/proto.h [IS_IN_build] (_): Define.
18708         [IS_IN_build] (_libc_intl_domainname): Likewise.
18709
18710 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
18711
18712         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
18713         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
18714         and R_X86_64_TPOFF64.
18715
18716 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
18717
18718         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
18719         sysdeps/unix/sysv/syscalls.list.
18720         (stime): Likewise.
18721         (utime): Likewise.
18722         * sysdeps/unix/sysv/syscalls.list: Remove file.
18723
18724 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
18725
18726         [BZ #3440]
18727         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
18728         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
18729         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
18730         (__LC_IDENTIFICATION): Make these macros useful in #if
18731         expressions, as required by C99.
18732
18733 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
18734
18735         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
18736         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
18737         after this.
18738
18739 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
18740
18741         * stdlib/longlong.h: Updated from GCC.
18742
18743 2012-05-09  Andreas Jaeger  <aj@suse.de>
18744
18745         * nscd/nscd.c (run_modes): Make named enum, reorder so that
18746         default is first entry.
18747         (run_mode): Set type.
18748         (main): Remove informal message about syslog.
18749         (options): Fix typo.
18750
18751         [BZ #14053]
18752         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
18753         to asm.
18754         (lrint): Likewise.
18755         (llrintf): Likewise.
18756         (llrint): Likewise.
18757         (rint): Likewise.
18758         (rintf): Likewise.
18759         (nearbyint): Likewise.
18760         (nearbyintf): Likewise.
18761
18762 2012-05-09  Andreas Jaeger  <aj@suse.de>
18763             Pedro Alves  <palves@redhat.com>
18764
18765         * nscd/nscd.c (run_mode): Use enum.
18766         (main): Cleanup coding style issue.
18767
18768 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
18769             Andreas Jaeger  <aj@suse.de>
18770
18771         * nscd/nscd.c (go_background): Replaced with...
18772         (run_mode): ... this.
18773         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
18774         (options): Add -F --foreground.
18775         (main): Implement it.
18776         (parse_opt): Parse it.
18777
18778 2012-05-09  Andreas Jaeger  <aj@suse.de>
18779
18780         [BZ #14083]
18781         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
18782         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
18783         -Wconversion warning.
18784         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
18785         Likewise.
18786
18787 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
18788
18789         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
18790         == 0.
18791         (LC_ALL): Use macro-int-constant.
18792         (LC_COLLATE): Likewise.
18793         (LC_CTYPE): Likewise.
18794         (LC_MESSAGES): Likewise.
18795         (LC_MONETARY): Likewise.
18796         (LC_NUMERIC): Likewise.
18797         (LC_TIME): Likewise.
18798         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
18799         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
18800         [ISO || ISO99 || ISO11] (*_t): Do not allow.
18801         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
18802         Specify type.
18803         [C99-based standards] (float_t): Expect type.
18804         [C99-based standards] (double_t): Expect type.
18805         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
18806         type.
18807         [C99-based standards] (HUGE_VALL): Likewise.
18808         [C99-based standards] (INFINITY): Likewise.
18809         [C99-based standards] (NAN): Likewise.
18810         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
18811         [C99-based standards] (FP_NAN): Likewise.
18812         [C99-based standards] (FP_NORMAL): Likewise.
18813         [C99-based standards] (FP_SUBNORMAL): Likewise.
18814         [C99-based standards] (FP_ZERO): Likewise.
18815         [C99-based standards] (FP_FAST_FMA): Use
18816         optional-macro-int-constant.  Specify type.  Require == 1.
18817         [C99-based standards] (FP_FAST_FMAF): Likewise.
18818         [C99-based standards] (FP_FAST_FMAL): Likewise.
18819         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
18820         [C99-based standards] (FP_ILOGBNAN): Likewise.
18821         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
18822         Specify type.
18823         [C99-based standards] (MATH_ERREXCEPT): Likewise.
18824         [C99-based standards] (math_errhandling): Specify type.
18825         [ISO99 || ISO11] (signgam): Do not allow.
18826         [non-C99-based standards] (copysignf): Do not allow.
18827         [non-C99-based standards] (exp2f): Likewise.
18828         [non-C99-based standards] (log2f): Likewise.
18829         [non-C99-based standards] (modff): Allow.
18830         [non-C99-based standards] (erff): Do not allow.
18831         [non-C99-based standards] (erfcf): Likewise.
18832         [non-C99-based standards] (gammaf): Likewise.
18833         [non-C99-based standards] (hypotf): Likewise.
18834         [non-C99-based standards] (j0f): Likewise.
18835         [non-C99-based standards] (j1f): Likewise.
18836         [non-C99-based standards] (jnf): Likewise.
18837         [non-C99-based standards] (lgammaf): Likewise.
18838         [non-C99-based standards] (tgammaf): Likewise.
18839         [non-C99-based standards] (y0f): Likewise.
18840         [non-C99-based standards] (y1f): Likewise.
18841         [non-C99-based standards] (ynf): Likewise.
18842         [non-C99-based standards] (isnanf): Likewise.
18843         [non-C99-based standards] (acoshf): Likewise.
18844         [non-C99-based standards] (asinhf): Likewise.
18845         [non-C99-based standards] (atanhf): Likewise.
18846         [non-C99-based standards] (cbrtf): Likewise.
18847         [non-C99-based standards] (expm1f): Likewise.
18848         [non-C99-based standards] (ilogbf): Likewise.
18849         [non-C99-based standards] (log1pf): Likewise.
18850         [non-C99-based standards] (logbf): Likewise.
18851         [non-C99-based standards] (nextafterf): Likewise.
18852         [non-C99-based standards] (remainderf): Likewise.
18853         [non-C99-based standards] (rintf): Likewise.
18854         [non-C99-based standards] (scalbf): Likewise.
18855         [non-C99-based standards] (copysignl): Likewise.
18856         [non-C99-based standards] (exp2l): Likewise.
18857         [non-C99-based standards] (log2l): Likewise.
18858         [non-C99-based standards] (modfl): Allow.
18859         [non-C99-based standards] (erfl): Do not allow.
18860         [non-C99-based standards] (erfcl): Likewise.
18861         [non-C99-based standards] (gammal): Likewise.
18862         [non-C99-based standards] (hypotl): Likewise.
18863         [non-C99-based standards] (j0l): Likewise.
18864         [non-C99-based standards] (j1l): Likewise.
18865         [non-C99-based standards] (jnl): Likewise.
18866         [non-C99-based standards] (lgammal): Likewise.
18867         [non-C99-based standards] (tgammal): Likewise.
18868         [non-C99-based standards] (y0l): Likewise.
18869         [non-C99-based standards] (y1l): Likewise.
18870         [non-C99-based standards] (ynl): Likewise.
18871         [non-C99-based standards] (isnanl): Likewise.
18872         [non-C99-based standards] (acoshl): Likewise.
18873         [non-C99-based standards] (asinhl): Likewise.
18874         [non-C99-based standards] (atanhl): Likewise.
18875         [non-C99-based standards] (cbrtl): Likewise.
18876         [non-C99-based standards] (expm1l): Likewise.
18877         [non-C99-based standards] (ilogbl): Likewise.
18878         [non-C99-based standards] (log1pl): Likewise.
18879         [non-C99-based standards] (logbl): Likewise.
18880         [non-C99-based standards] (nextafterl): Likewise.
18881         [non-C99-based standards] (remainderl): Likewise.
18882         [non-C99-based standards] (rintl): Likewise.
18883         [non-C99-based standards] (scalbl): Likewise.
18884         [ISO || ISO99 || ISO11] (*_t): Do not allow.
18885         [non-C99-based standards] (FP_*): Do not allow.
18886         [C99-based standards] (FP_*): Change to
18887         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
18888         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
18889         allow.
18890         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
18891         (SIG_ERR): Likewise.
18892         [X/Open-based standards] (SIG_HOLD): Likewise.
18893         (SIG_IGN): Likewise.
18894         (SIGABRT): Use macro-int-constant.  Specify type.  Require
18895         positive value.
18896         (SIGFPE): Likewise.
18897         (SIGILL): Likewise.
18898         (SIGINT): Likewise.
18899         (SIGSEGV): Likewise.
18900         (SIGTER): Likewise.
18901         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
18902         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
18903         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
18904         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
18905         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
18906         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
18907         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
18908         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
18909         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
18910         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
18911         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
18912         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
18913         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
18914         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
18915         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
18916         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
18917         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
18918         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
18919         [X/Open-based standards] (SIGTRAP): Likewise.
18920         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
18921         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
18922         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
18923         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
18924         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
18925         allow.
18926
18927 2012-05-08  Ian Wienand  <ianw@vmware.com>
18928
18929         [BZ #14080]
18930         * time/tzset.c (__tzset_parse_tz): Update default rules for
18931         daylight time changes in the Energy Policy Act of 2005.
18932
18933 2012-05-09  Andreas Jaeger  <aj@suse.de>
18934
18935         [BZ #13983]
18936         * elf/ldconfig.c (parse_conf): Change string to make clear that
18937         ldconfig only issued a warning if ld.so.conf does not exist.
18938
18939 2012-05-08  David S. Miller  <davem@davemloft.net>
18940
18941         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
18942         movxtod instead of popping the value on the stack.
18943
18944         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18945
18946 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
18947
18948         * config.h.in: Add HAVE_ARM_PCS_VFP.
18949
18950 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
18951
18952         [BZ #13979]
18953         * include/features.h: Warn if user requests __FORTIFY_SOURCE
18954         checking but the checks are disabled for any reason.
18955
18956 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
18957
18958         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
18959         and ELF64_R_TYPE with ELFW(R_TYPE).
18960
18961 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
18962
18963         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
18964         (ulimit): Likewise.
18965
18966         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
18967         (settimeofday): Likewise.
18968
18969 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
18970
18971         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
18972         a struct th_u2 inside the union, and move tu_block/tu_code into
18973         a new th_u3 union of tu_block/tu_code inside of that.  Move
18974         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
18975         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
18976         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
18977         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
18978         (th_stuff): Change to th_u1.tu_stuff.
18979         (th_data): Define.
18980         (th_msg): Change to th_u1.th_u2.tu_data.
18981
18982 2012-05-07  David S. Miller  <davem@davemloft.net>
18983
18984         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18985
18986         [BZ #14074]
18987         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
18988         (SETUP_PIC_REG): Use it.
18989         (SETUP_PIC_REG_LEAF): Use it.
18990
18991 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
18992
18993         [BZ #13885]
18994         [BZ #13923]
18995         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
18996         USE_AS_EXPM1L.
18997         (EXPL_FINITE): Likewise.
18998         (FLDLOG): Likewise.
18999         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
19000         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
19001         e_expl.S.
19002         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
19003         USE_AS_EXPM1L.
19004         (EXPL_FINITE): Likewise.
19005         (FLDLOG): Likewise.
19006         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
19007         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
19008         e_expl.S.
19009         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
19010         test of -max_value argument for long double.
19011         * sysdeps/i386/fpu/libm-test-ulps: Update.
19012         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19013
19014 2012-05-06  David S. Miller  <davem@davemloft.net>
19015
19016         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
19017         quad soft-float symbols whose references which are compiler
19018         generated.
19019         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
19020
19021 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
19022
19023         [BZ #13884]
19024         [BZ #13914]
19025         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
19026         USE_AS_EXP10L.
19027         (EXPL_FINITE): Likewise.
19028         (FLDLOG): Likewise.
19029         (c0): Likewise.
19030         (c1): Likewise.
19031         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
19032         Adjust comments for base varying.
19033         (__expl_finite): Change alias to EXPL_FINITE.
19034         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
19035         e_expl.S.
19036         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
19037         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
19038         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
19039         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
19040         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
19041         USE_AS_EXP10L.
19042         (EXPL_FINITE): Likewise.
19043         (FLDLOG): Likewise.
19044         (c0): Likewise.
19045         (c1): Likewise.
19046         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
19047         Adjust comments for base varying.
19048         (__expl_finite): Change alias to EXPL_FINITE.
19049         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
19050         tests for bugs.
19051         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19052
19053         [BZ #14064]
19054         * math/libm-test.inc (check_float_internal): Correct ulp
19055         calculation for subnormal expected results.
19056
19057 2012-05-06  Andreas Jaeger  <aj@suse.de>
19058
19059         * Makeconfig (+math-flags): New, set to -frounding-math.
19060         (+cflags): Add +math-flags so that all of glibc gets compiled with
19061         it.
19062
19063         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
19064
19065 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
19066
19067         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
19068         Disable one test.
19069
19070         [BZ #13787]
19071         [BZ #13922]
19072         [BZ #14036]
19073         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
19074         (__ieee754_expl): Allow for and saturate large arguments.
19075         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
19076         (u_threshold): Likewise.
19077         (__exp): Call __ieee754_exp before checking for overflow and
19078         underflow.
19079         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
19080         (u_threshold): Likewise.
19081         (__expf): Call __ieee754_expf before checking for overflow and
19082         underflow.
19083         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
19084         (u_threshold): Likewise.
19085         (__expl): Call __ieee754_expl before checking for overflow and
19086         underflow.
19087         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
19088         (__ieee754_expl): Allow for and saturate large arguments.
19089         * math/libm-test.inc (exp_test): Add another test.  Do not allow
19090         missing overflow exception on overflow.
19091         (expm1_test): Do not allow missing overflow exception on overflow.
19092
19093         * sysdeps/i386/fpu/e_expl.c: Move to ...
19094         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
19095         rather than using inline asm.
19096         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
19097         * sysdeps/x86_64/fpu/e_expl.S: Copy from
19098         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
19099
19100         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
19101         (nice): Likewise.
19102         (poll): Likewise.
19103         (signal): Likewise.
19104         (time): Likewise.
19105         (times): Likewise.
19106
19107 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
19108
19109         * sysdeps/unix/syscalls.list (adjtime): Add entry from
19110         sysdeps/unix/common/syscalls.list.
19111         (fchmod): Likewise.
19112         (fchown): Likewise.
19113         (ftruncate): Likewise.
19114         (getrusage): Likewise.
19115         (gettimeofday): Likewise.
19116         (setpgid): Likewise.
19117         (setregid): Likewise.
19118         (setreuid): Likewise.
19119         (sigaction): Likewise.
19120         (truncate): Likewise.
19121         (vhangup): Likewise.
19122         * sysdeps/unix/common/syscalls.list: Remove file.
19123         * sysdeps/unix/bsd/Implies: Don't include unix/common.
19124         * sysdeps/unix/sysv/linux/Implies: Likewise.
19125
19126 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
19127
19128         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
19129         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
19130         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
19131         Moved to ...
19132         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
19133         Here.
19134         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
19135         to ...
19136         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
19137         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
19138         to ...
19139         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
19140         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
19141         to ...
19142         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
19143         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
19144         to ...
19145         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
19146         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
19147         to ...
19148         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
19149         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
19150         to ...
19151         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
19152         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
19153         to ...
19154         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
19155         Here.
19156         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
19157         to ...
19158         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
19159         Here.
19160         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
19161         to ...
19162         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
19163         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
19164         Moved to ...
19165         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
19166         Here.
19167         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
19168         to ...
19169         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
19170
19171 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
19172
19173         * sysdeps/unix/common/bits/dirent.h: Remove file.
19174         * sysdeps/unix/common/bits/fcntl.h: Likewise.
19175
19176         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
19177         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
19178         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
19179         * sysdeps/unix/bsd/isatty.c: Likewise.
19180         * sysdeps/unix/bsd/tcdrain.c: Likewise.
19181         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
19182         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
19183
19184 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19185
19186         [BZ #13563]
19187         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
19188         long double comparison inaccuracies.
19189         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
19190         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
19191
19192 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
19193
19194         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
19195         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
19196
19197 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
19198
19199         [BZ #14049]
19200         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
19201         nonzero digits before rounding a hex value.
19202         * stdlib/tst-strtod.c (tests): Add another test.
19203
19204 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19205
19206         * sysdeps/s390/fpu/libm-test-ulps: Update.
19207
19208 2012-05-03  Andreas Jaeger  <aj@suse.de>
19209
19210         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
19211         does not get optimized out.
19212         (malloc_opt_barrier): New.
19213
19214 2012-05-03  Andreas Jaeger  <aj@suse.de>
19215             Roland McGrath  <roland@hack.frob.com>
19216
19217         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
19218         intermediate file deletion.
19219         (generated): Add .symlist files.
19220
19221 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
19222
19223         [BZ #13775]
19224         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
19225         Redirect under this condition.
19226         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
19227         [__USE_GNU] (__dprintf_chk): Not under this condition.
19228         [__USE_GNU] (__vdprintf_chk): Likewise.
19229         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
19230         under this condition.
19231         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
19232         [__USE_XOPEN2K8] (dprintf): Define under this condition.
19233         [__USE_XOPEN2K8] (vdprintf): Likewise.
19234         [__USE_GNU] (__dprintf_chk): Not under this condition.
19235         [__USE_GNU] (__vdprintf_chk): Likewise.
19236         [__USE_GNU] (dprintf): Likewise.
19237         [__USE_GNU] (vdprintf): Likewise.
19238
19239 2012-05-03  Roland McGrath  <roland@hack.frob.com>
19240
19241         * elf/Makefile (common-generated): Set this instead of generated for
19242         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
19243         $(all-built-dso)-derived lists.
19244
19245 2012-05-03  Andreas Jaeger  <aj@suse.de>
19246
19247         * sysdeps/i386/fpu/libm-test-ulps: Update.
19248
19249         * FAQ: Removed.
19250         * FAQ.in: Likewise.
19251         * scripts/gen-FAQ.pl: Likewise.
19252         * manual/install.texi (Installation): Point to online location of
19253         FAQ.
19254         * Makefile (files-for-dist): Remove FAQ.
19255         (FAQ): Remove.
19256
19257 2012-05-02  Allan McRae  <allan@archlinux.org>
19258
19259         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
19260         (LDFLAGS-reldepmod5.so): Likewise.
19261         (LDFLAGS-reldep6mod1.so): Likewise.
19262         (LDFLAGS-reldep6mod4.so): Likewise.
19263         (LDFLAGS-reldep8mod3.so): Likewise.
19264         (LDFLAGS-unload4mod1.so): Likewise.
19265         (LDFLAGS-unload4mod2.so): Likewise.
19266         (LDFLAGS-tst-initorder): Likewise.
19267         (LDFLAGS-tst-initordera2.so): Likewise.
19268         (LDFLAGS-tst-initordera3.so): Likewise.
19269         (LDFLAGS-tst-initordera4.so): Likewise.
19270         (LDFLAGS-tst-initorderb2.so): Likewise.
19271         (LDFLAGS-noload): Likewise.
19272         (LDFLAGS-next): Likewise.
19273         (LDFLAGS-order2mod1.so): Likewise.
19274         (LDFLAGS-order2mod2.so): Likewise.
19275         (LDFLAGS-tst-initorder2): Likewise.
19276         (LDFLAGS-tst-initorder2a.so): Likewise.
19277         (LDFLAGS-tst-initorder2b.so): Likewise.
19278         (LDFLAGS-tst-initorder2c.so): Likewise.
19279         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
19280
19281 2012-05-02  David S. Miller  <davem@davemloft.net>
19282
19283         * sysdeps/sparc/fpu/libm-test-ulps: Update.
19284
19285 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
19286
19287         [BZ #14055]
19288         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
19289
19290 2012-05-02  Andreas Jaeger  <aj@suse.de>
19291
19292         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
19293         since we manipulate rounding mode.
19294         (CPPFLAGS-test-idouble.c): Likewise.
19295         (CPPFLAGS-test-ifloat.c): Likewise.
19296         (CFLAGS-test-ldouble.c): Likewise.
19297         (CFLAGS-test-double.c): Likewise.
19298         (CFLAGS-test-float.c): Likewise.
19299         (CFLAGS-test-misc.c): Likewise.
19300         (CFLAGS-test-test-fenv.c): Likewise.
19301
19302 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19303
19304         [BZ #2550]
19305         [BZ #2570]
19306         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
19307         comparisons to determine direction to adjust input.
19308
19309 2012-05-01  Roland McGrath  <roland@hack.frob.com>
19310
19311         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
19312         output to the target.
19313
19314         * scripts/localplt.awk: New file.
19315         * elf/Makefile ($(objpfx)check-localplt): Target removed.
19316         (check-localplt-CFLAGS): Variable removed.
19317         ($(all-built-dso:=.jmprel)): New static pattern rule.
19318         (generated): Add those targets.
19319         (localplt-built-dso): New variable.
19320         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
19321
19322         * elf/check-localplt.c: File removed.
19323
19324         * scripts/check-execstack.awk: New file.
19325         * elf/Makefile ($(objpfx)check-execstack): Target removed.
19326         (check-execstack-CFLAGS): Variable removed.
19327         ($(objpfx)check-execstack.h): Target removed.
19328         ($(objpfx)execstack-default): New target.
19329         (generated): Add that instead of check-execstack.h.
19330         ($(all-built-dso:=.phdr)): New static pattern rule.
19331         (generated): Add those targets.
19332         * elf/check-execstack.c: File removed.
19333
19334         * scripts/check-textrel.awk: New file.
19335         * elf/Makefile ($(objpfx)check-textrel): Target removed.
19336         (check-textrel-CFLAGS): Variable removed.
19337         (all-built-dso): Use := to define.o
19338         ($(all-built-dso:=.dyn)): New static pattern rule.
19339         (generated): Add those targets.
19340         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
19341         * config.make.in (READELF): New substituted variable.
19342         * elf/check-textrel.c: File removed.
19343
19344 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
19345
19346         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
19347         allow.
19348         * conform/data/ctype.h-data [C99-based standards] (isblank):
19349         Expect function.
19350         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
19351         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
19352         [ISO || ISO99 || ISO11] (*_t): Do not allow.
19353         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
19354         Specify type.  Require positive value.
19355         (EILSEQ): Likewise.
19356         (ERANGE): Likewise.
19357         [ISO || POSIX] (EILSEQ): Do not expect.
19358         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
19359         Specify type.  Require positive value.
19360         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
19361         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
19362         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
19363         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
19364         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
19365         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
19366         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
19367         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
19368         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
19369         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
19370         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
19371         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
19372         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
19373         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
19374         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
19375         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
19376         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
19377         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
19378         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
19379         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
19380         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
19381         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
19382         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
19383         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
19384         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
19385         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
19386         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
19387         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
19388         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
19389         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
19390         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
19391         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
19392         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
19393         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
19394         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
19395         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
19396         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
19397         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
19398         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
19399         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
19400         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
19401         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
19402         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
19403         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
19404         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
19405         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
19406         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
19407         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
19408         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
19409         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
19410         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
19411         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
19412         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
19413         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
19414         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
19415         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
19416         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
19417         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
19418         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
19419         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
19420         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
19421         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
19422         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
19423         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
19424         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
19425         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
19426         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
19427         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
19428         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
19429         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
19430         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
19431         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
19432         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
19433         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
19434         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
19435         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
19436         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
19437         Require >= 2.
19438         (FLT_ROUNDS): Expect as macro, not constant.
19439         (FLT_MANT_DIG): Use macro-int-constant.
19440         (DBL_MANT_DIG): Likewise.
19441         (LDBL_MANT_DIG): Likewise.
19442         (FLT_DIG): Likewise.
19443         (DBL_DIG): Likewise.
19444         (LDBL_DIG): Likewise.
19445         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
19446         (DBL_MIN_EXP): Likewise.
19447         (LDBL_MIN_EXP): Likewise.
19448         (FLT_MAX_EXP): Use macro-int-constant.
19449         (DBL_MAX_EXP): Likewise.
19450         (LDBL_MAX_EXP): Likewise.
19451         (FLT_MAX_10_EXP): Likewise.
19452         (DBL_MAX_10_EXP): Likewise.
19453         (LDBL_MAX_10_EXP): Likewise.
19454         (FLT_MAX): Use macro-constant.
19455         (DBL_MAX): Likewise.
19456         (LDBL_MAX): Likewise.
19457         (FLT_EPSILON): Use macro-constant.  Give upper bound.
19458         (DBL_EPSILON): Likewise.
19459         (LDBL_EPSILON): Likewise.
19460         (FLT_MIN): Likewise.
19461         (DBL_MIN): Likewise.
19462         (LDBL_MIN): Likewise.
19463         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
19464         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
19465         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
19466         [ISO11] (FLT_HAS_SUBNORM): Likewise.
19467         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
19468         [ISO11] (DBL_DECIMAL_DIG): Likewise.
19469         [ISO11] (FLT_DECIMAL_DIG): Likewise.
19470         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
19471         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
19472         [ISO11] (FLT_TRUE_MIN): Likewise.
19473         [ISO11] (LDBL_TRUE_MIN): Likewise.
19474         [ISO || ISO99 || ISO11] (*_t): Do not allow.
19475         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
19476         (SCHAR_MIN): Use macro-int-constant.  Specify type.
19477         (SCHAR_MAX): Likewise.
19478         (UCHAR_MAX): Likewise.
19479         (CHAR_MIN): Likewise.
19480         (CHAR_MAX): Likewise.
19481         (MB_LEN_MAX): Use macro-int-constant.
19482         (SHRT_MIN): Use macro-int-constant.  Specify type.
19483         (SHRT_MAX): Likewise.
19484         (USHRT_MAX): Likewise.
19485         (INT_MAX): Likewise.
19486         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
19487         bound negative.
19488         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
19489         bound with "U".
19490         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
19491         bound with "L".
19492         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
19493         bound negative.  Suffix upper bound with "L".
19494         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
19495         bound with "UL".
19496         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
19497         Specify type.
19498         [C99-based standards] (LLONG_MAX): Likewise.
19499         [C99-based standards] (ULLONG_MAX): Likewise.
19500         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
19501         == 0.
19502         [ISO11] (max_align_t): Require type.
19503         [ISO || ISO99 || ISO11] (*_t): Do not allow.
19504
19505         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
19506         from $CFLAGS, without defining away __attribute__ calls.
19507         (checknamespace): Use $CFLAGS_namespace.
19508
19509         * conform/conformtest.pl (@keywords): Only include C99 keywords
19510         for standards based on C99 or C11.
19511
19512         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
19513         Disable tests.
19514         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
19515         UNIX98]: Likewise.
19516
19517         * conform/conformtest.pl: Handle "macro-int-constant" and test for
19518         usability of symbols in #if.
19519
19520         * conform/conformtest.pl: If macro or constant types start
19521         "promoted:", expect the symbol to be of the following type
19522         promoted by the integer promotions.
19523
19524         * conform/conformtest.pl: Parse all "constant" and "macro" lines
19525         in one place.  Also handle "macro-constant".
19526
19527         * conform/conformtest.pl: Only accept expected macro values with
19528         "==".  Parse all "macro" lines in one place.
19529         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
19530
19531         * conform/conformtest.pl: Handle braced types on "constant" lines
19532         instead of handling "typed-constant".
19533         * conform/data/signal.h-data: Use "constant" instead of
19534         "typed-constant".
19535
19536         * conform/conformtest.pl: Handle "optional-" at start of lines in
19537         one place rather than duplicating several cases.  Handle each
19538         format of "macro" line with initial "optional-".
19539
19540         * conform/conformtest.pl: Only accept expected constant or
19541         optional-constant values with "==".  Parse all "constant" lines in
19542         one place.  Parse all "optional-constant" lines in one place.
19543         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
19544         * conform/data/fmtmsg.h-data: Likewise.
19545         * conform/data/netinet/in.h-data: Likewise.
19546         * conform/data/tar.h-data: Likewise.
19547         * conform/data/limits.h-data: Use "==" form on "constant" and
19548         "optional-constant" lines.
19549
19550         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
19551         Use -std=c99 for XOPEN2K.
19552         (@knownproblems): Remove.
19553         (newtoken): Don't check %isknown.
19554
19555         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
19556         Do not expect macro.
19557         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
19558         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
19559         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
19560         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
19561         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
19562         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
19563         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
19564         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
19565         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
19566         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
19567         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
19568         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
19569         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
19570         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
19571         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
19572         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
19573         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
19574         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
19575         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
19576         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
19577         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
19578         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
19579         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
19580         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
19581         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
19582         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
19583         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
19584         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
19585         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
19586         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
19587         [XPG3] (acosh): Likewise.
19588         [XPG3] (asinh): Likewise.
19589         [XPG3] (atanh): Likewise.
19590         [XPG3] (cbrt): Likewise.
19591         [XPG3] (expm1): Likewise.
19592         [XPG3] (ilogb): Likewise.
19593         [XPG3] (log1p): Likewise.
19594         [XPG3] (logb): Likewise.
19595         [XPG3] (nextafter): Likewise.
19596         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
19597         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
19598         [XPG3] (remainder): Likewise.
19599         [XPG3] (rint): Likewise.
19600         [XPG3 || XPG4 || UNIX98] (round): Likewise.
19601         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
19602         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
19603         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
19604         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
19605         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
19606         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
19607         [UNIX98 || XOPEN2K] (scalb): Expect.
19608         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
19609         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
19610         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
19611         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
19612         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
19613         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
19614         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
19615         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
19616         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
19617         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
19618         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
19619         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
19620         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
19621         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
19622         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
19623         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
19624         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
19625         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
19626         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
19627         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
19628         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
19629         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
19630         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
19631         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
19632         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
19633         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
19634         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
19635         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
19636         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
19637         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
19638         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
19639         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
19640         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
19641         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
19642         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
19643         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
19644         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
19645         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
19646         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
19647         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
19648         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
19649         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
19650         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
19651         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
19652         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
19653         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
19654         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
19655         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
19656         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
19657         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
19658         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
19659         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
19660         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
19661         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
19662         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
19663         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
19664         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
19665         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
19666         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
19667         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
19668         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
19669         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
19670         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
19671         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
19672         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
19673         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
19674         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
19675         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
19676         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
19677         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
19678         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
19679         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
19680         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
19681         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
19682         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
19683         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
19684         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
19685         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
19686         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
19687         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
19688         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
19689         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
19690         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
19691         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
19692         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
19693         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
19694         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
19695         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
19696         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
19697         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
19698         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
19699         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
19700         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
19701         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
19702         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
19703         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
19704         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
19705         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
19706         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
19707         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
19708         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
19709         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
19710         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
19711         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
19712         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
19713         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
19714         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
19715         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
19716         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
19717         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
19718         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
19719         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
19720         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
19721         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
19722         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
19723         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
19724         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
19725         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
19726         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
19727         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
19728         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
19729         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
19730         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
19731         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
19732         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
19733         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
19734         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
19735         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
19736         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
19737         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
19738         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
19739         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
19740         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
19741         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
19742         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
19743         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
19744         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
19745
19746         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
19747         _XOPEN_SOURCE_EXTENDED for XPG4.
19748
19749         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
19750
19751         * Makeconfig (localtime): Remove variable.
19752         (inst_localtime-file): Likewise.
19753
19754 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
19755
19756         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
19757         Update.
19758         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
19759         Update.
19760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
19761         Update.
19762         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
19763         Update.
19764         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
19765         Update.
19766         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
19767         Update.
19768         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
19769         Update.
19770         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
19771         Update.
19772         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
19773         Update.
19774
19775 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
19776
19777         [BZ #2550]
19778         [BZ #2570]
19779         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
19780         comparisons to determine direction to adjust input.
19781         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
19782         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
19783         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
19784         Likewise.
19785         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
19786         Likewise.
19787         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
19788         Likewise.
19789         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
19790         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
19791         Likewise.
19792         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
19793         Likewise.
19794         * math/libm-test.inc (nexttoward_test): Add more tests.
19795
19796 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
19797
19798         [BZ #14040]
19799         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
19800         in version GLIBC_2.1, not GLIBC_2.0.
19801         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
19802         Likewise.
19803
19804 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
19805
19806         [BZ #13942]
19807         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
19808         (1 - x) * (1 + x).
19809         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
19810         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
19811         * math/libm-test.inc (acos_test): Add more tests.
19812         (asin_test): Likewise.
19813         * sysdeps/i386/fpu/libm-test-ulps: Update.
19814         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
19815
19816         [BZ #14034]
19817         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
19818         of square root.
19819         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
19820         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
19821         * math/libm-test.inc (acos_test_tonearest): New function.
19822         (acos_test_towardzero): Likewise.
19823         (acos_test_downward): Likewise.
19824         (acos_test_upward): Likewise.
19825         (asin_test_tonearest): Likewise.
19826         (asin_test_towardzero): Likewise.
19827         (asin_test_downward): Likewise.
19828         (asin_test_upward): Likewise.
19829         (main): Call the new functions.
19830         * sysdeps/i386/fpu/libm-test-ulps: Update.
19831         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
19832
19833         [BZ #13884]
19834         [BZ #13924]
19835         * math/e_exp10.c: Include <float.h>.
19836         (__ieee754_exp10): Handle underflow here rather than multiplying
19837         large negative argument by M_LN10.
19838         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
19839         of __ieee754_expf.
19840         * math/e_exp10l.c: Include <float.h>.
19841         (__ieee754_exp10l): Handle underflow here rather than multiplying
19842         large negative argument by M_LN10l.
19843         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
19844         spurious overflow exception on underflow.
19845
19846 2012-04-29  Marek Polacek  <polacek@redhat.com>
19847
19848         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
19849         (__fortify_function): New macro.
19850         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
19851         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
19852         __extern_always_inline.
19853         * libio/bits/stdio2.h: Likewise.
19854         * libio/bits/stdio.h: Likewise.
19855         * string/string.h: Likewise.
19856         * string/bits/string3.h: Likewise.
19857         * include/stdio.h: Likewise.
19858         * stdlib/bits/stdlib.h: Likewise.
19859         * stdlib/stdlib.h: Likewise.
19860         * rt/bits/mqueue2.h: Likewise.
19861         * rt/mqueue.h: Likewise.
19862         * posix/bits/unistd.h: Likewise.
19863         * posix/unistd.h: Likewise.
19864         * io/bits/poll2.h: Likewise.
19865         * io/bits/fcntl2.h: Likewise.
19866         * io/fcntl.h: Likewise.
19867         * io/sys/poll.h: Likewise.
19868         * misc/bits/syslog.h: Likewise.
19869         * misc/bits/syslog-ldbl.h: Likewise.
19870         * misc/sys/syslog.h: Likewise.
19871         * socket/bits/socket2.h: Likewise.
19872         * socket/sys/socket.h: Likewise.
19873         * debug/tst-chk1.c: Likewise.
19874         * wcsmbs/bits/wchar2.h: Likewise.
19875         * wcsmbs/bits/wchar-ldbl.h: Likewise.
19876         * wcsmbs/wchar.h: Likewise.
19877
19878 2012-04-29  Andreas Jaeger  <aj@suse.de>
19879
19880         * Makerules (tests): Remove enable-check-abi protection.
19881         (check-abi-warn): Remove.
19882         (check-abi-%): Remove check-abi-warn usage.
19883
19884         * configure.in: Remove check-abi configure option.
19885         * configure: Regenerated.
19886         * config.make.in (enable-check-abi): Remove.
19887
19888 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
19889
19890         [BZ #14033]
19891         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
19892         double functions to double *_finite functions.
19893
19894         [BZ #13941]
19895         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
19896         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
19897         LDBL_MIN_EXP.
19898         * stdio-common/Makefile (tests): Add tst-sprintf3.
19899         * stdio-common/tst-sprintf3.c: New file.
19900
19901         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
19902         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
19903
19904 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
19905
19906         * conform/conformtest.pl: Remove duplicate typed-constant
19907         handling.
19908
19909 2012-04-28  David S. Miller  <davem@davemloft.net>
19910
19911         * Makerules (%.abilist): Add vpath on sysdep_dirs.
19912         (check-abi-%): Remove AWK script prerequisite and explicit
19913         abilist directory.
19914         (check-abi): Rewrite to just diff the symlist with the abilist.
19915         (config-tls, config-abi-config): Delete, no longer used.
19916         (update-abi-%): Remove AWK script and explicit abilist directory.
19917         (update-abi): Rewrite to simply compare and conditionally copy the
19918         symlist and the sysdep abilist file.  Remove update-abi-config
19919         checks.
19920         * abilist/ld.abilist: Remove.
19921         * abilist/libBrokenLocale.abilist: Remove.
19922         * abilist/libanl.abilist: Remove.
19923         * abilist/libcrypt.abilist: Remove.
19924         * abilist/libdl.abilist: Remove.
19925         * abilist/librt.abilist: Remove.
19926         * abilist/libthread_db.abilist: Remove.
19927         * abilist/libutil.abilist: Remove.
19928         * scripts/extract-abilist.awk: Remove.
19929         * scripts/merge-abilist.awk: Remove.
19930         * sysdeps/generic/libcidn.abilist: New file.
19931         * sysdeps/generic/libnss_compat.abilist: New file.
19932         * sysdeps/generic/libnss_db.abilist: New file.
19933         * sysdeps/generic/libnss_dns.abilist: New file.
19934         * sysdeps/generic/libnss_files.abilist: New file.
19935         * sysdeps/generic/libnss_hesiod.abilist: New file.
19936         * sysdeps/generic/libnss_nis.abilist: New file.
19937         * sysdeps/generic/libnss_nisplus.abilist: New file.
19938         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
19939         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
19940         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
19941         file.
19942         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
19943         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
19944         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
19945         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
19946         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
19947         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
19948         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
19949         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
19950         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
19951         file.
19952         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
19953         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
19954         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
19955         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
19956         file.
19957         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
19958         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
19959         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
19960         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
19961         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
19962         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
19963         file.
19964         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
19965         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
19966         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
19967         file.
19968         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
19969         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
19970         New file.
19971         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
19972         New file.
19973         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
19974         New file.
19975         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
19976         New file.
19977         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
19978         New file.
19979         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
19980         New file.
19981         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
19982         New file.
19983         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
19984         New file.
19985         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
19986         New file.
19987         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
19988         New file.
19989         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
19990         New file.
19991         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
19992         New file.
19993         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
19994         New file.
19995         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
19996         file.
19997         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
19998         New file.
19999         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
20000         New file.
20001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
20002         file.
20003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
20004         New file.
20005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
20006         New file.
20007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
20008         file.
20009         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
20010         New file.
20011         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
20012         New file.
20013         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
20014         New file.
20015         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
20016         New file.
20017         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
20018         New file.
20019         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
20020         New file.
20021         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
20022         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
20023         file.
20024         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
20025         New file.
20026         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
20027         file.
20028         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
20029         file.
20030         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
20031         file.
20032         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
20033         file.
20034         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
20035         file.
20036         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
20037         New file.
20038         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
20039         file.
20040         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
20041         file.
20042         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
20043         New file.
20044         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
20045         file.
20046         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
20047         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
20048         file.
20049         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
20050         New file.
20051         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
20052         file.
20053         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
20054         file.
20055         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
20056         file.
20057         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
20058         file.
20059         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
20060         file.
20061         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
20062         New file.
20063         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
20064         file.
20065         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
20066         file.
20067         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
20068         New file.
20069         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
20070         file.
20071         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
20072         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
20073         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
20074         file.
20075         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
20076         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
20077         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
20078         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
20079         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
20080         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
20081         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
20082         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
20083         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
20084         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
20085         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
20086         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
20087         file.
20088         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
20089         New file.
20090         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
20091         file.
20092         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
20093         file.
20094         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
20095         file.
20096         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
20097         file.
20098         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
20099         file.
20100         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
20101         New file.
20102         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
20103         New file.
20104         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
20105         file.
20106         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
20107         New file.
20108         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
20109         file.
20110         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
20111         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
20112         file.
20113         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
20114         New file.
20115         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
20116         file.
20117         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
20118         file.
20119         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
20120         file.
20121         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
20122         file.
20123         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
20124         file.
20125         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
20126         New file.
20127         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
20128         New file.
20129         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
20130         file.
20131         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
20132         New file.
20133         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
20134         file.
20135
20136 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
20137
20138         * conform/conformtest.pl: Fix typo in handling typed-constant from
20139         allow-header.
20140
20141 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
20142
20143         * README: Cut down references to pre-2.6 Linux kernels and
20144         Linuxthreads.  Update lists of configurations in libc and ports
20145         and sort alphabetically.  Say "or newer" with Linux kernel version
20146         requirements.
20147
20148         * config.h.in [IS_IN_build]: Allow compiling without optimization.
20149
20150 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
20151
20152         [BZ #887]
20153         * math/libm-test.inc (logb_test_downward): New test to expose
20154         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
20155         rounding mode.
20156
20157 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
20158
20159         [BZ #14027]
20160         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
20161         to be done.
20162         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
20163         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
20164
20165 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
20166
20167         * sysdeps/unix/i386/brk.S: Remove file.
20168         * sysdeps/unix/i386/dl-brk.S: Likewise.
20169         * sysdeps/unix/i386/pipe.S: Likewise.
20170         * sysdeps/unix/i386/sigreturn.S: Likewise.
20171         * sysdeps/unix/i386/syscall.S: Likewise.
20172         * sysdeps/unix/i386/vfork.S: Likewise.
20173         * sysdeps/unix/i386/wait.S: Likewise.
20174
20175         * sysdeps/unix/common/tcsendbrk.c: Move to ...
20176         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
20177
20178         * configure.in (arm*-none*): Do not allow without
20179         --enable-hacker-mode.
20180         (netbsd*): Remove case setting base_os.
20181         (386bsd*): Likewise.
20182         (freebsd*): Likewise.
20183         (bsdi*): Likewise.
20184         (osf*): Likewise.
20185         (sunos*): Likewise.
20186         (ultrix*): Likewise.
20187         (newsos*): Likewise.
20188         (dynix*): Likewise.
20189         (*bsd*): Likewise.
20190         (sysv*): Likewise.
20191         (isc*): Likewise.
20192         (esix*): Likewise.
20193         (sco*): Likewise.
20194         (minix*): Likewise.
20195         (irix4*): Likewise.
20196         (irix6*): Likewise.
20197         (solaris[2-9]*): Likewise.
20198         (none): Likewise.
20199         * configure: Regenerated.
20200
20201 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20202
20203         [BZ #11521]
20204         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
20205         overflow or cancellation in calculating denominator.
20206         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
20207         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
20208         down expression to avoid unexpected rounding in newer GCCs.
20209         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
20210
20211 2012-04-26  David S. Miller  <davem@davemloft.net>
20212
20213         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
20214         long-double compat symbols.
20215         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
20216         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
20217         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
20218         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
20219         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
20220         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
20221         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
20222         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
20223         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
20224         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
20225         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
20226         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
20227         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
20228
20229 2012-04-25  David S. Miller  <davem@davemloft.net>
20230
20231         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
20232         HWCAP_* values only after the memory barriers have been defined.
20233         (atomic_full_barrier): Define.
20234         (atomic_read_barrier): Define.
20235         (atomic_write_barrier): Define.
20236
20237 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
20238
20239         * shlib-versions: Add libgcc_s version information.
20240         * sysdeps/generic/libgcc_s.h: Remove.
20241         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
20242         libgcc_s.h.
20243         * sysdeps/gnu/unwind-resume.c: Likewise.
20244         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
20245
20246 2012-04-25  David S. Miller  <davem@davemloft.net>
20247
20248         * sysdeps/unix/sparc/brk.S: Delete.
20249         * sysdeps/unix/sparc/dl-brk.S: Delete.
20250         * sysdeps/unix/sparc/pipe.S: Delete.
20251         * sysdeps/unix/sparc/sysdep.S: Delete.
20252         * sysdeps/unix/sparc/sysdep.h: Delete.
20253         * sysdeps/unix/sparc/vfork.S: Delete.
20254         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
20255         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
20256         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
20257         ret_ERRVAL, r0, r1, MOVE): Define.
20258         (JUMPTARGET): Remove.
20259         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
20260         sysdeps/unix/sparc/sysdep.h
20261         (ENTRY, END): Remove.
20262         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
20263
20264 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
20265
20266         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
20267         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
20268         -DIS_IN_build.
20269
20270         * timezone/README: Update upstream location and email address for
20271         tzcode and tzdata.
20272         * timezone/zdump.c: Update from tzcode 2012b.
20273         * timezone/zic.c: Likewise.
20274
20275         * configure.in (libc_cv_as_needed): Remove test.
20276         * configure: Regenerated.
20277         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
20278         conditional definition.
20279         [$(have-as-needed) != yes] (no-as-needed): Likewise.
20280         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
20281         * config.make.in (have-as-needed): Remove variable.
20282
20283 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
20284             Paul Pluzhnikov  <ppluzhnikov@google.com>
20285
20286         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
20287         strings correctly.
20288
20289 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
20290
20291         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
20292         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
20293         * sysdeps/sh/strlen.S: Likewise.
20294
20295 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
20296
20297         * sysdeps/unix/fork.S: Remove file.
20298         * sysdeps/unix/i386/fork.S: Likewise.
20299         * sysdeps/unix/sparc/fork.S: Likewise.
20300
20301         * sysdeps/unix/system.c: Remove file.
20302         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
20303
20304         * sysdeps/unix/getegid.S: Remove file.
20305         * sysdeps/unix/geteuid.S: Likewise.
20306
20307 2012-04-24  Roland McGrath  <roland@hack.frob.com>
20308
20309         * scripts/check-localplt.awk: New file.
20310         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
20311         of diff.
20312         * scripts/data/localplt-generic.data: Add a comment.
20313
20314         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
20315         NODE when __dir_mkfile failed.
20316         * sysdeps/mach/hurd/symlinkat.c: Likewise.
20317         Reported by Ludovic Courtès <ludo@gnu.org>.
20318
20319 2012-04-24  Andreas Jaeger  <aj@suse.de>
20320
20321         * Makerules (common-clean): Also remove gen-as-const-headers
20322         files.
20323
20324 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
20325
20326         * Makerules (native-compile): Do not change working directory for
20327         build.  Use $(OUTPUT_OPTION) in command.
20328         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
20329
20330 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20331
20332         [BZ #13886]
20333         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
20334         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
20335         * math/libm-test.inc (floor_test): Add more tests.
20336         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
20337
20338 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
20339
20340         * sysdeps/unix/getdents.c: Remove file.
20341         * sysdeps/unix/sysv/getdents.c: Likewise.
20342         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
20343
20344         * sysdeps/unix/syscalls.list (madvise): Add syscall from
20345         sysdeps/unix/mman/syscalls.list.
20346         (mmap): Likewise.
20347         (mprotect): Likewise.
20348         (msync): Likewise.
20349         (munmap): Likewise.
20350         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
20351         * sysdeps/unix/mman/syscalls.list: Remove.
20352         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
20353
20354         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
20355         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
20356         * configure: Regenerated.
20357         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
20358         $(libgcc_s_suffix).
20359         * config.make.in (libgcc_s_suffix): Remove variable.
20360
20361 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
20362
20363         * sysdeps/unix/sysv/gethostname.c: Move to ...
20364         * sysdeps/posix/gethostname.c: ... here.
20365
20366         * sysdeps/unix/execve.S: Remove file.
20367
20368         * sysdeps/unix/_exit.S: Remove file.
20369
20370 2012-04-23  Andreas Jaeger  <aj@suse.de>
20371
20372         [BZ #13739]
20373         * manual/Makefile: Remove make dist support, there's no
20374         need for a stand-alone documentation tar ball.
20375         (TEXI2DVI): Define always, it's not in Makeconfig.
20376         (dist): Removed.
20377         (tar-it): Removed.
20378         (edition): Removed.
20379         (glibc-doc-$(edition).tar): Removed
20380         (%.Z): Removed.
20381         (%.gz): Removed.
20382         (%.uu): Removed.
20383         (ETAGS): Remove, it's in Makeconfig.
20384         (move-if-change): Remove, it's in Makeconfig.
20385
20386 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
20387
20388         [BZ #13970]
20389         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
20390         (strtod, strtof, strtold, strtol, strtoul, strtoq)
20391         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
20392         (strtod_l, strtof_l, strtold_l): Remove __wur.
20393         It is not necessarily an error to ignore strtol's return value.
20394         One can reliably look at the stored endptr to decide whether
20395         the number had valid syntax.
20396
20397 2012-04-21  Andreas Jaeger  <aj@suse.de>
20398
20399         [BZ #13739]
20400         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
20401
20402 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
20403
20404         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
20405         * sysdeps/unix/sysv/Versions: Remove file.
20406
20407 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
20408
20409         [BZ #13927]
20410         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20411
20412 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
20413
20414         [BZ #7064]
20415         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
20416         version from __vm86.
20417
20418 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
20419
20420         * sysdeps/unix/common/lxstat.c: Remove file.
20421         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
20422
20423         * sysdeps/unix/sysv/Makefile: Remove file.
20424
20425         * sysdeps/unix/sysv/direct.h: Remove file.
20426
20427         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
20428         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
20429         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
20430         * sysdeps/unix/sysv/bits/signum.h: Likewise.
20431         * sysdeps/unix/sysv/bits/stat.h: Likewise.
20432         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
20433         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
20434
20435         * sysdeps/unix/sysv/setrlimit.c: Remove file.
20436
20437         * sysdeps/unix/xmknod.c: Remove file.
20438         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
20439
20440         * sysdeps/unix/sysv/settimeofday.c: Remove file.
20441
20442         * sysdeps/unix/sysv/i386/time.S: Remove file.
20443
20444         * sysdeps/unix/fxstat.c: Remove file.
20445         * sysdeps/unix/xstat.c: Likewise.
20446         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
20447
20448         * sysdeps/unix/sysv/sigaction.c: Remove file.
20449
20450         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
20451         (sysdep_headers): Remove variable.
20452         [termio.h not in sysdep_headers] (generated): Likewise.
20453         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
20454         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
20455         * sysdeps/unix/sysv/tcdrain.c: Likewise.
20456         * sysdeps/unix/sysv/tcflow.c: Likewise.
20457         * sysdeps/unix/sysv/tcflush.c: Likewise.
20458         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
20459         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
20460         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
20461         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
20462         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
20463
20464         * sysdeps/unix/siglist.c: Remove file.
20465
20466         * sysdeps/unix/getppid.S: Remove file.
20467
20468         * sysdeps/unix/mkdir.c: Remove file.
20469         * sysdeps/unix/rmdir.c: Likewise.
20470
20471 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
20472
20473         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
20474         ERR_MAX value.
20475         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
20476         errlist-compat value.
20477
20478 2012-04-18  David S. Miller  <davem@davemloft.net>
20479
20480         * sysdeps/generic/memcopy.h (reg_char): Delete.
20481         * debug/strcat_chk.c: Use char, not reg_char.
20482         * debug/strcpy_chk.c: Likewise.
20483         * debug/strncat_chk.c: Likewise.
20484         * debug/strncpy_chk.c: Likewise.
20485         * string/memchr.c: Likewise.
20486         * string/memrchr.c: Likewise.
20487         * string/rawmemchr.c: Likewise.
20488         * string/strcat.c: Likewise.
20489         * string/strchr.c: Likewise.
20490         * string/strchrnul.c: Likewise.
20491         * string/strcmp.c: Likewise.
20492         * string/strcpy.c: Likewise.
20493         * string/strncat.c: Likewise.
20494         * string/strncmp.c: Likewise.
20495         * string/strncpy.c: Likewise.
20496
20497 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
20498
20499         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
20500         __builtin_memcopy is called when src and dest ranges are known to not
20501         overlap.
20502
20503 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
20504
20505         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
20506         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
20507         fwd_align_merge macro call.
20508         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
20509         bwd_align_merge macro call.
20510         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
20511
20512 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
20513
20514         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
20515         bwd_align_merge macros.
20516         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
20517         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
20518         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
20519
20520 2012-04-18  David S. Miller  <davem@davemloft.net>
20521
20522         * sysdeps/sparc/sparc64/memcopy.h: Delete.
20523
20524 2012-04-18  Andreas Jaeger  <aj@suse.de>
20525
20526         [BZ# 6794]
20527         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
20528         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
20529         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
20530
20531         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
20532         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
20533         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
20534
20535         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
20536         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
20537         Adjust for changed ldbl-128 files.
20538
20539         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
20540         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
20541         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
20542
20543 2012-04-17  David S. Miller  <davem@davemloft.net>
20544
20545         * sysdeps/sparc/sparc32/memcopy.h: Delete.
20546
20547 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
20548
20549         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
20550         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
20551         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
20552         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
20553         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
20554         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
20555
20556 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20557
20558         [BZ #6794]
20559         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
20560         * math/libm-test.inc: Add ilogb errno and exception tests.
20561         * math/w_ilogb.c: New file: ilogb wrapper.
20562         * math/w_ilogbf.c: New file: ilogbf wrapper.
20563         * math/w_ilogbl.c: New file: ilogbl wrapper.
20564         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
20565         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
20566         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
20567         exception being thrown with 0.0 as argument.
20568         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
20569         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
20570         exception being thrown with 0.0 as argument.
20571         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
20572         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
20573         exception being thrown with 0.0 as argument.
20574         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
20575         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
20576         exception being thrown with 0.0 as argument.
20577         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
20578         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
20579         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
20580         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
20581         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
20582         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
20583         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
20584         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
20585         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
20586
20587 2012-04-17  Petr Baudis  <pasky@ucw.cz>
20588
20589         * include/sys/uio.h: Change __vector to __iovec to avoid clash
20590         with altivec.
20591
20592 2012-04-16  Marek Polacek  <polacek@redhat.com>
20593
20594         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
20595
20596 2012-04-16  Marek Polacek  <polacek@redhat.com>
20597
20598         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
20599         operands of fdivp instruction.
20600
20601 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
20602
20603         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
20604         * elf/tst-auditmod3b.c: Likewise.
20605         * elf/tst-auditmod4b.c: Likewise.
20606         * elf/tst-auditmod5b.c: Likewise.
20607         * elf/tst-auditmod6b.c: Likewise.
20608         * elf/tst-auditmod6c.c: Likewise.
20609         * elf/tst-auditmod7b.c: Likewise.
20610         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
20611         * sysdeps/x86_64/preconfigure.in: Likewise.
20612         * sysdeps/x86_64/preconfigure: Regenerated.
20613
20614 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
20615
20616         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
20617         __ILP32__.
20618
20619 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
20620
20621         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
20622         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
20623
20624 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
20625
20626         [BZ #13973]
20627         * locale/iso-639.def: Fix gl language name. Spotted by
20628         Yaron Shahrabani.
20629
20630 2012-04-12  Roland McGrath  <roland@hack.frob.com>
20631
20632         [BZ #2074]
20633         * libio/libio.h (__io_write_fn): Update comment.
20634
20635 2012-04-12  Petr Baudis  <pasky@ucw.cz>
20636
20637         [BZ #2074]
20638         * stdio.texi (Hook Functions): The user provided writer function
20639         is not allowed to return -1.
20640
20641 2012-04-11  David S. Miller  <davem@davemloft.net>
20642
20643         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20644
20645 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
20646
20647         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
20648         Add a leading slash to rtkaio.
20649
20650 2012-04-11  Jim Meyering  <meyering@redhat.com>
20651
20652         [BZ #11959]
20653         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
20654         It is not necessarily an error to ignore fwrite's return
20655         value.  One can reliably use ferror to test for errors after
20656         the fact.
20657
20658 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
20659
20660         * bits/types.h (__snseconds_t): New type.
20661         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
20662
20663         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
20664         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20665         (__SNSECONDS_T_TYPE): Likewise.
20666         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
20667         (__SNSECONDS_T_TYPE): Likewise.
20668         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20669         (__SNSECONDS_T_TYPE): Likewise.
20670
20671 2012-04-10  Andreas Jaeger  <aj@suse.de>
20672
20673         [BZ #2636]
20674         * manual/time.texi (Processor Time): Return type of times is
20675         elapsed real time since an arbitrary point in the past.
20676         (CPU Time): Move CLK_TCK from here...
20677         (Processor Time): ...to here.  Correct description.
20678         * manual/conf.texi (Constants for Sysconf): Correct description of
20679         _SC_CLK_TCK.
20680
20681 2012-04-10  David S. Miller  <davem@davemloft.net>
20682
20683         [BZ #13967]
20684         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
20685         where the is a gap between DT_REL(A) and DT_JMPREL.
20686
20687 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
20688
20689         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
20690         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
20691         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
20692
20693 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
20694
20695         * elf/dl-support.c (_dl_inhibit_cache): New variable.
20696         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
20697         (dl_main): Handle --inhibit-cache.
20698         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
20699         _dl_inhibit_cache.
20700         * elf/dl-load.c (_dl_map_object): Use it.
20701         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
20702
20703 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
20704
20705         [BZ #13872]
20706         * sysdeps/i386/fpu/e_powl.S (p78): New object.
20707         (__ieee754_powl): Saturate large exponents rather than testing for
20708         overflow of y*log2(x).
20709         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
20710         * math/libm-test.inc (pow_test): Do not permit spurious overflow
20711         exceptions.
20712
20713         [BZ #11521]
20714         * math/s_ctan.c: Include <float.h>.
20715         (__ctan): Avoid internal overflow or cancellation in calculating
20716         denominator.
20717         * math/s_ctanf.c: Likewise.
20718         * math/s_ctanl.c: Likewise.
20719         * math/s_ctanh.c: Likewise.
20720         * math/s_ctanhf.c: Likewise.
20721         * math/s_ctanhl.c: Likewise.
20722         * math/libm-test.inc (ctan_test): Add more tests.
20723         (ctanh_test): Likewise.
20724         * sysdeps/i386/fpu/libm-test-ulps: Update.
20725         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20726
20727 2012-04-09  Andreas Jaeger  <aj@suse.de>
20728
20729         [BZ #6894]
20730         * manual/filesys.texi (Directory Entries): Mention that d_namlen
20731         is an optional BSD extension.
20732
20733         [BZ #10254]
20734         * manual/stdio.texi (Opening Streams): Document additional fopen
20735         parameters.
20736
20737 2012-04-09  Roland McGrath  <roland@hack.frob.com>
20738
20739         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
20740         %eax without telling the compiler.
20741
20742 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
20743
20744         [BZ # 13963]
20745         * manual/install.texi: Use sourceware.org.
20746
20747 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
20748
20749         [BZ #13873]
20750         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
20751         (__ieee754_pow): Generate overflow and underflow using huge*huge
20752         and tiny*tiny rather than just returning constant infinity or zero
20753         for large exponents.
20754         * math/libm-test.inc (pow_test): Require overflow exceptions for
20755         applicable cases of large exponents.
20756
20757         [BZ #706]
20758         * sysdeps/i386/fpu/e_pow.S (p10): New object.
20759         (__ieee754_pow): Use iterative multiplication algorithm only for
20760         integer exponents with absolute value below 1024.  Check for odd
20761         integer exponents when using algorithm for real exponents.
20762         * math/libm-test.inc (pow_test): Add more tests.
20763         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
20764
20765 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
20766
20767         [BZ #13705]
20768         * math/libm-test.inc (exp_test): Do not allow overflow exception
20769         on underflow test.
20770
20771 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
20772
20773         [BZ #13705]
20774         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
20775         instead of __kernel_standard_f.
20776
20777 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
20778
20779         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
20780         * sysdeps/x86_64/memset_chk.S: Likewise.
20781
20782 2012-04-08  Andreas Jaeger  <aj@suse.de>
20783
20784         [BZ #10153]
20785         * manual/startup.texi (Environment Access): Describe return value
20786         for putenv and setenv.
20787
20788         [BZ #6895]
20789         * manual/filesys.texi (Directory Entries): Add description for
20790         DT_LNK.
20791
20792         [BZ #6890]
20793         * manual/filesys.texi (Directory Entries): Clarify that it's file
20794         system not operating system in the description of DT_UNKNOWN.
20795
20796         [BZ #6578]
20797         * manual/syslog.texi (closelog): Fix reference, it's openlog.
20798
20799 2012-04-08  Stephen Compall  <s11@member.fsf.org>
20800
20801         [BZ #6649]
20802         * manual/llio.texi (Opening and Closing Files): Add cross
20803         reference to explain mode argument.
20804
20805 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
20806
20807         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
20808         * sysdeps/x86_64/memset_chk.S: Likewise.
20809
20810 2012-04-07  David S. Miller  <davem@davemloft.net>
20811
20812         * elf/elf.h (R_SPARC_WDISP10): Define.
20813         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
20814         R_SPARC_SIZE32.
20815         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
20816         R_SPARC_SIZE64 and R_SPARC_H34.
20817
20818 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
20819
20820         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
20821         conditions and remove no longer applicable assertion.
20822
20823 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
20824
20825         * bits/byteswap.h: Include <features.h>.
20826         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
20827         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
20828
20829 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
20830
20831         * bits/byteswap.h (__bswap_16): Removed.
20832         Include <bits/byteswap-16.h> to get __bswap_16.
20833         * sysdeps/i386/bits/byteswap.h: Likewise.
20834         * sysdeps/s390/bits/byteswap.h: Likewise.
20835         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20836         * bits/byteswap-16.h: New file.
20837         * sysdeps/i386/bits/byteswap-16.h: Likewise.
20838         * sysdeps/s390/bits/byteswap-16.h: Likewise.
20839         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
20840         * string/Makefile (headers): Add bits/byteswap-16.h.
20841
20842 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
20843
20844         [BZ #13895]
20845         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
20846         extra indirection.
20847         * nss/Makefile (tests-static, tests): Add tst-nss-static.
20848         * nss/tst-nss-static.c: New.
20849
20850 2012-04-06  Robert Millan  <rmh@gnu.org>
20851
20852         [BZ #6486]
20853         * manual/llio.texi (File Position Primitive): lseek
20854         refers to WHENCE when it really means OFFSET.
20855
20856 2012-04-06  Andreas Jaeger  <aj@suse.de>
20857
20858         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
20859         strncmp declarations.
20860
20861         * abilist/libc.abilist: Add __poll and __ppoll.
20862
20863 2012-04-05  David S. Miller  <davem@davemloft.net>
20864
20865         * scripts/check-local-headers.sh: Accept a host triplet in the
20866         path matched by the exclude regexp.
20867
20868         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
20869         definition.
20870         * sysdeps/powerpc/powerpc32/dl-machine.h
20871         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
20872         * sysdeps/s390/s390-32/dl-machine.h
20873         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
20874         * sysdeps/sparc/sparc32/dl-machine.h
20875         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
20876         * sysdeps/sparc/sparc64/dl-machine.h
20877         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
20878
20879         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
20880         lazy binding.
20881         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
20882         undefined symbol errors.
20883
20884         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
20885         DT_NEEDED entries.
20886
20887 2012-04-05  Michael Matz  <matz@suse.de>
20888
20889         [BZ #13592]
20890         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
20891
20892 2012-04-05  Andreas Jaeger  <aj@suse.de>
20893
20894         [BZ #13908]
20895         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
20896         comment.
20897
20898 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20899
20900         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
20901         which ROUND is no valid rounding mode.
20902
20903 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20904
20905         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
20906         read again.
20907         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
20908
20909 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20910
20911         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
20912         an exception using FPU order intentionally.
20913
20914 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
20915
20916         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
20917         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
20918         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
20919         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
20920
20921 2012-04-05  Simon Josefsson  <simon@josefsson.org>
20922
20923         [BZ #12340]
20924         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
20925         EINVAL when BUFLEN is too smal.
20926
20927 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
20928
20929         [BZ #13553]
20930         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
20931         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
20932
20933 2012-04-03  Andreas Jaeger  <aj@suse.de>
20934
20935         [BZ #13938]
20936         * manual/setjmp.texi (System V contexts): Fix sentence.
20937
20938         [BZ #13926]
20939         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
20940         New macro for this case.
20941         [!__GNUC__] (__bswap_64): New inline function for this case.
20942         * sysdeps/x86_64/bits/byteswap.h: Likewise.
20943         * bits/byteswap.h: Likewise.
20944         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
20945         ull, guard with __GLIBC_HAVE_LONG_LONG.
20946
20947         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
20948         __GLIBC_HAVE_LONG_LONG.
20949
20950         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
20951         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
20952
20953 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
20954
20955         [BZ #13691]
20956         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
20957         inptr and inend, rather than using last_ch.
20958
20959 2012-04-02  David S. Miller  <davem@davemloft.net>
20960
20961         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
20962         * stdio-common/printf-parse.h (read_int): Change return type to
20963         'int', return -1 on INT_MAX overflow.
20964         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
20965         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
20966         overflows INT_MAX.  Check for overflow of in-format-string precision
20967         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
20968         SIZE_MAX not INT_MAX for integer overflow test.
20969         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
20970         skip the construct in the format string but do not record anything.
20971         * stdio-common/bug22.c: Adjust to test both width/prevision
20972         INT_MAX overflow as well as total length INT_MAX overflow.  Check
20973         explicitly for proper errno values.
20974
20975 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
20976
20977         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
20978         CHAR_MAX.
20979         * string/test-strcmp.c [! WIDE]: Likewise.
20980         * time/tst-mktime2.c: Likewise for INT_MAX.
20981         * string/test-string.h: #include <sys/param.h> for MIN.
20982
20983         * csu/init-first.c (__libc_init_first): Call __ctype_init.
20984         * sysdeps/i386/init-first.c (init): Likewise.
20985         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
20986         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
20987         * sysdeps/sh/init-first.c (init): Likewise.
20988
20989 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
20990
20991         * po/ru.po: Update from translation team.
20992         * po/vi.po: Likewise.
20993
20994 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
20995
20996         * resolv/nss_dns/dns-host.c: Merge copyright years.
20997
20998 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
20999
21000         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
21001         Optimize memcpy with prefetch if
21002         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
21003         src, dst pointers have unequal 16 byte alignments.
21004
21005 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
21006
21007         [BZ #13928]
21008         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
21009         from a CNAME entry and return the minimum ttl for the query.
21010         (gaih_getanswer_slice): Likewise.
21011
21012 2012-03-30  Jeff Law  <law@redhat.com>
21013
21014         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
21015         due to long keys.
21016         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
21017         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
21018
21019         * resolv/nss_dns/dns-host.c: Update copyright year.
21020
21021 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
21022
21023         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
21024         requests to save a system call.  Fix check that all bytes are sent.
21025
21026         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
21027         comments for sendmmsg.
21028
21029 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
21030
21031         [BZ #13691]
21032         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
21033         with only 1 character between 0x0041 and 0x01b0.
21034         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
21035         * wcsmbs/tst-mbsnrtowcs.c: New file.
21036
21037 2012-03-29  David S. Miller  <davem@davemloft.net>
21038
21039         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
21040         small copies by hand.
21041
21042 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
21043
21044         [BZ #13761]
21045         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
21046         _nss_compat_initgroups_dyn): Fall back to malloc/free
21047         for large group memberships.
21048
21049 2012-03-28  David S. Miller  <davem@davemloft.net>
21050
21051         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
21052         that branches into memcpy.
21053         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
21054         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
21055         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
21056         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
21057         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
21058         bits.
21059         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
21060         implementation too.
21061         * sysdeps/sparc/mempcpy.S: New file.
21062
21063         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
21064         the IFUNC routine in the libc case.
21065         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
21066
21067         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
21068         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
21069         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
21070         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
21071         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
21072         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
21073         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
21074         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
21075
21076         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
21077         loop to 256 bytes instead of 64 bytes and fix test signedness.
21078
21079         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
21080         * sysdeps/sparc/sparc32/Makefile: rather than here...
21081         * sysdeps/sparc/sparc64/Makefile: and here.
21082
21083 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
21084
21085         * malloc/mallocbug.c: Avoid warnings about unused variables.
21086
21087 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
21088
21089         [BZ #13760]
21090         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
21091         in the right place. Discard and retry query if response is
21092         larger than input buffer size.
21093
21094 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
21095
21096         [BZ #369]
21097         [BZ #2678]
21098         [BZ #3866]
21099         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
21100         x for large integer exponent.
21101         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
21102         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
21103         sign of result as needed afterwards.
21104         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
21105         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
21106         result for underflowing pow the same as for overflow.
21107         (__kernel_standard_l): Handle powl overflow and underflow here
21108         rather than calling __kernel_standard.
21109         * math/libm-test.inc (pow_test): Add more tests.
21110
21111         [BZ #3868]
21112         [BZ #13879]
21113         [BZ #13910]
21114         [BZ #13911]
21115         [BZ #13912]
21116         [BZ #13913]
21117         [BZ #13915]
21118         [BZ #13916]
21119         [BZ #13917]
21120         [BZ #13918]
21121         [BZ #13919]
21122         [BZ #13920]
21123         [BZ #13921]
21124         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
21125         * sysdeps/ieee754/k_standard.c: Include <float.h>.
21126         (__kernel_standard_l): New function.
21127         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
21128         __kernel_standard.
21129         * math/w_acosl.c (__acosl): Likewise.
21130         * math/w_asinl.c (__asinl): Likewise.
21131         * math/w_atan2l.c (__atan2l): Likewise.
21132         * math/w_atanhl.c (__atanhl): Likewise.
21133         * math/w_coshl.c (__coshl): Likewise.
21134         * math/w_exp10l.c (__exp10l): Likewise.
21135         * math/w_exp2l.c (__exp2l): Likewise.
21136         * math/w_fmodl.c (__fmodl): Likewise.
21137         * math/w_hypotl.c (__hypotl): Likewise.
21138         * math/w_j0l.c (__j0l, __y0l): Likewise.
21139         * math/w_j1l.c (__j1l, __y1l): Likewise.
21140         * math/w_jnl.c (__jnl, __ynl): Likewise.
21141         * math/w_lgammal.c (__lgammal): Likewise.
21142         * math/w_log10l.c (__log10l): Likewise.
21143         * math/w_log2l.c (__log2l): Likewise.
21144         * math/w_logl.c (__logl): Likewise.
21145         * math/w_powl.c (__powl): Likewise.
21146         * math/w_remainderl.c (__remainderl): Likewise.
21147         * math/w_scalbl.c (sysv_scalbl): Likewise.
21148         * math/w_sinhl.c (__sinhl): Likewise.
21149         * math/w_sqrtl.c (__sqrtl): Likewise.
21150         * math/w_tgammal.c (__tgammal): Likewise.
21151         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
21152         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
21153         * math/libm-test.inc (acos_test): Add more tests.
21154         (acosh_test): Likewise.
21155         (asin_test): Likewise.
21156         (atanh_test): Likewise.
21157         (exp_test): Likewise.
21158         (exp10_test): Likewise.
21159         (exp2_test): Likewise.
21160         (expm1_test): Likewise.
21161         (lgamma_test): Likewise.
21162         (log_test): Likewise.
21163         (log10_test): Likewise.
21164         (log1p_test): Likewise.
21165         (log2_test): Likewise.
21166         (pow_test): Do not allow some spurious overflow exceptions.
21167         (sqrt_test): Add more tests.
21168         (tgamma_test): Likewise.
21169         (y0_test): Likewise.
21170         (y1_test): Likewise.
21171         (yn_test): Likewise.
21172
21173 2012-03-27  Anton Blanchard  <anton@samba.org>
21174
21175         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
21176         MAP_HUGETLB.
21177         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
21178         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
21179         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
21180
21181 2012-03-27  David S. Miller  <davem@davemloft.net>
21182
21183         * conform/Makefile: Run run-conformtest.sh using $(BASH).
21184
21185         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
21186         have-as-vis3 check.
21187
21188 2012-03-27  Andreas Jaeger  <aj@suse.de>
21189
21190         * sysdeps/x86_64/elf/configure.in: Moved to ...
21191         * sysdeps/x86_64/configure.in: ... here.
21192         * sysdeps/x86_64/elf/start.S: Moved to ...
21193         * sysdeps/x86_64/start.S: ... here.
21194         * sysdeps/x86_64/elf/configure: Delete.
21195
21196         * sysdeps/x86_64/configure.in: Merge contents from
21197         sysdeps/i386/configure.in (without i686 check).
21198
21199         * sysdeps/i386/elf/Versions: Merge into ...
21200         * sysdeps/i386/Versions: ... this.
21201         * sysdeps/i386/elf/Versions: Delete file.
21202         * sysdeps/i386/elf/start.S: Moved to ...
21203         * sysdeps/i386/start.S: ...here.
21204         * sysdeps/i386/elf/configure.in: Merge into...
21205         * sysdeps/i386/configure.in: ...here.
21206         * sysdeps/i386/elf/configure.in: Delete file.
21207         * sysdeps/i386/elf/configure: Delete file.
21208
21209         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
21210         * debug/backtracesyms.c: ... here.
21211         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
21212         * debug/backtracesymsfd.c: ... here.
21213         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
21214         * sysdeps/generic/ifunc-sel.h: ... here.
21215
21216         * sysdeps/unix/i386/start.c: Delete file.
21217         * sysdeps/unix/sparc/start.c: Delete file.
21218         * sysdeps/unix/start.c: Delete file.
21219
21220         * sysdeps/sh/elf/configure.in: Moved to ...
21221         * sysdeps/sh/configure.in: ... here.
21222         * sysdeps/sh/elf/start.S: Moved to ...
21223         * sysdeps/sh/start.S: ... here.
21224         * sysdeps/sh/elf/configure: Delete file.
21225
21226         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
21227         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
21228         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
21229         * sysdeps/powerpc/powerpc64/entry.h: ... here.
21230         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
21231         * sysdeps/powerpc/powerpc64/start.S: here.
21232         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
21233         * sysdeps/powerpc/powerpc64/Makefile: ... this.
21234         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
21235         * sysdeps/powerpc/powerpc64/configure.in: ... this.
21236         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
21237
21238         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
21239         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
21240         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
21241         * sysdeps/powerpc/powerpc32/start.S: ... here.
21242         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
21243         * sysdeps/powerpc/powerpc32/configure.in: ... this.
21244         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
21245
21246         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
21247         * sysdeps/powerpc/ifunc-sel.h: ... here.
21248         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
21249         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
21250
21251         * sysdeps/sparc/elf/configure.in: Moved to ...
21252         * sysdeps/sparc/configure.in: ... here.
21253         * sysdeps/sparc/elf/configure: Delete file.
21254         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
21255         * sysdeps/sparc/sparc32/start.S: ... here.
21256         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
21257         * sysdeps/sparc/sparc64/start.S: ... here.
21258         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
21259         * sysdeps/sparc/sparc32/Makefile: ... this.
21260         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
21261         * sysdeps/sparc/sparc64/Makefile: ... this.
21262
21263         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
21264         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
21265         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
21266         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
21267         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
21268         * sysdeps/s390/s390-32/setjmp.S: ... here.
21269         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
21270         * sysdeps/s390/s390-32/configure.in: ... here.
21271         * sysdeps/s390/s390-32/elf/configure: Delete file.
21272         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
21273         * sysdeps/s390/s390-32/start.S: ... here.
21274
21275         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
21276         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
21277         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
21278         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
21279         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
21280         * sysdeps/s390/s390-64/setjmp.S: ... here.
21281         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
21282         * sysdeps/s390/s390-64/configure.in: ... here
21283         * sysdeps/s390/s390-64/elf/configure: Delete file.
21284         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
21285         * sysdeps/s390/s390-64/start.S: ... here.
21286         * sysdeps/s390/s390-64/elf/configure: Delete.
21287
21288         * configure.in: Remove support for elf directories in sysdeps.
21289
21290         * configure: Regenerated.
21291         * sysdeps/i386/configure: Regenerated.
21292         * sysdeps/powerpc/powerpc32/configure: Regenerated.
21293         * sysdeps/powerpc/powerpc64/configure: Regenerated.
21294         * sysdeps/s390/s390-32/configure: Regenerated.
21295         * sysdeps/s390/s390-64/configure: Regenerated.
21296         * sysdeps/sh/configure: Regenerated.
21297         * sysdeps/sparc/configure: Regenerated.
21298         * sysdeps/x86_64/configure: Regenerated.
21299
21300 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
21301
21302         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21303
21304         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
21305         denormal result into account.
21306
21307 2012-03-25  Roland McGrath  <roland@hack.frob.com>
21308
21309         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
21310         Reported by Allan McRae <allan@archlinux.org>.
21311
21312 2012-03-23  Jeff Law  <law@redhat.com>
21313
21314         * nss/getnssent.c (__nss_getent): Fix typo.
21315
21316 2012-03-23  David S. Miller  <davem@davemloft.net>
21317
21318         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21319
21320 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
21321
21322         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
21323         to pad to uint64_t for each field.
21324         (dl_tls_index): Replace unsigned long with uint64_t.
21325
21326 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
21327         Paul Pluzhnikov  <ppluzhnikov@google.com>
21328
21329         [BZ #6528]
21330         * grp/Makefile (otherlibs): Don't set it.
21331         * inet/Makefile (otherlibs): Likewise.
21332         * login/Makefile (otherlibs): Likewise.
21333         * nscd/Makefile (otherlibs): Likewise.
21334         * posix/Makefile (otherlibs): Likewise.
21335         * pwd/Makefile (otherlibs): Likewise.
21336         * rt/Makefile (otherlibs): Likewise.
21337         * sunrpc/Makefile (otherlibs): Likewise.
21338         * nss/Makefile (otherlibs): Likewise.
21339         Add libnss_files to routines and static-only-routines.
21340         ($(objpfx)getent): Remove rule.
21341         * resolv/Makefile: Add libnss_dns and libresolv to routines and
21342         static-only-routines.
21343
21344 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
21345
21346         [BZ #13892]
21347         * math/s_cexp.c: Include <float.h>.
21348         (__cexp): Handle exp result overflowing not necessarily
21349         overflowing both real and imaginary parts of result.
21350         * math/s_cexpf.c: Likewise.
21351         * math/s_cexpl.c: Likewise.
21352         * math/libm-test.inc (cexp_test): Add more tests.
21353         * sysdeps/i386/fpu/libm-test-ulps: Update.
21354         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21355
21356 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
21357
21358         * include/link.h (ELFW): New macro.
21359         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
21360         Replace ELF64_R_TYPE with ELFW(R_TYPE).
21361
21362 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
21363
21364         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
21365         with uint64_t.
21366
21367 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
21368
21369         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
21370         declaration.
21371         (struct La_x32_retval): Likewise.
21372
21373 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
21374
21375         * sysdeps/x86_64/preconfigure.in: New file.
21376         * sysdeps/x86_64/preconfigure: New generated file.
21377
21378 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
21379
21380         [BZ #13824]
21381         * math/e_exp2l.c: Include <float.h>.
21382         (__ieee754_exp2l): Handle overflow and underflow cases
21383         separately.  Only pass fractional part of argument to
21384         __ieee754_expl.
21385         * math/libm-test.inc (exp2_test): Add more tests.
21386
21387         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
21388         negating x to take absolute value.
21389         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
21390         Likewise.
21391         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
21392         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
21393         Likewise.
21394         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
21395         computing low part if x was negated.
21396         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
21397
21398 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
21399
21400         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
21401         la_x32_gnu_pltexit.
21402         (pltexit): Cast int_retval to ptrdiff_t.
21403         * elf/tst-auditmod3b.c: Likewise.
21404         * elf/tst-auditmod4b.c: Likewise.
21405         * elf/tst-auditmod5b.c: Likewise.
21406         * elf/tst-auditmod6b.c: Likewise.
21407         * elf/tst-auditmod6c.c: Likewise.
21408         * elf/tst-auditmod7b.c: Likewise.
21409
21410         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
21411         and x32_gnu_pltexit.
21412
21413         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
21414         __ELF_NATIVE_CLASS.
21415         (La_x32_regs): New macro.
21416         (La_x32_retval): Likewise.
21417         (la_x32_gnu_pltenter): New function prototype.
21418         (la_x32_gnu_pltexit): Likewise.
21419
21420 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
21421
21422         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
21423         exponent.
21424
21425         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21426
21427         * configure.in (libc_cv_cc_nofma): Check for option to disable
21428         generation of FMA instructions.
21429         * configure: Regenerate.
21430         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
21431         * sysdeps/ieee754/dbl-64/Makefile: New file.
21432         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
21433         Remove brandred-fma4.
21434         (CFLAGS-brandred-fma4.c): Remove.
21435         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
21436         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
21437         define.
21438         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
21439         define.
21440
21441 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
21442
21443         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
21444         LLONG_MAX != LONG_MAX.
21445         (_itoa_word): Use _ITOA_WORD_TYPE on value.
21446         (_fitoa_word): Likewise.
21447         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
21448         LLONG_MAX != LONG_MAX.
21449         * stdio-common/_itowa.h: Include <_itoa.h>.
21450         (_itowa_word): Use _ITOA_WORD_TYPE on value.
21451         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
21452         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
21453         only if not defined.
21454         (_ITOA_WORD_TYPE): Likewise.
21455         (_itoa_word): Use _ITOA_WORD_TYPE on value.
21456         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
21457
21458 2012-03-21  David S. Miller  <davem@davemloft.net>
21459
21460         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21461
21462 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
21463
21464         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
21465         of x86_64 when setting libc_cv_slibdir, libdir and
21466         libc_cv_localedir.
21467         * sysdeps/unix/sysv/linux/configure: Regenerated.
21468
21469 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
21470
21471         * manual/lang.texi (Old Varargs): Remove section.
21472         (How Variadic): Update menu.
21473         (va_start): Do not mention varargs.h.
21474
21475 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
21476             Joseph Myers  <joseph@codesourcery.com>
21477
21478         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
21479         link test.
21480         * configure: Regenerated.
21481
21482 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
21483
21484         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
21485         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
21486         conformtest.pl
21487
21488 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
21489
21490         * NOTES: Remove.
21491         * Makefile (files-for-dist): Remove NOTES.
21492         (NOTES): Remove rule.
21493         * README: Don't refer to NOTES.
21494         * manual/creature.texi: Don't include macros.texi.
21495         * manual/intro.texi (creature.texi): Remove comment referring to
21496         NOTES.
21497
21498         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
21499         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
21500         * configure: Regenerated.
21501         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
21502         LIBC_TRY_CC_OPTION.
21503         (libc_cv_as_i686): Likewise.
21504         (libc_cv_cc_avx): Likewise.
21505         (libc_cv_cc_sse2avx): Likewise.
21506         (libc_cv_cc_fma4): Likewise.
21507         (libc_cv_cc_novzeroupper): Likewise.
21508         * sysdeps/i386/configure: Regenerated.
21509
21510         [BZ #13883]
21511         * sysdeps/i386/fpu/s_cexp.S: Remove.
21512         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
21513         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
21514         * math/libm-test.inc (cexp_test): Add more tests.
21515         * sysdeps/i386/fpu/libm-test-ulps: Update.
21516         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21517
21518 2012-03-21  Allan McRae  <allan@archlinux.org>
21519
21520         * timezone/Makefile: Do not install iso3166.tab and zone.tab
21521
21522 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
21523
21524         [BZ #13871]
21525         * math/w_exp2.c: Do not include <float.h>.
21526         (o_threshold, u_threshold): Remove.
21527         (__exp2): Calculate result before checking finiteness and calling
21528         __kernel_standard.
21529         * math/w_exp2f.c: Likewise.
21530         * math/w_exp2l.c: Likewise.
21531         * math/libm-test.inc (exp2_test): Require overflow exception for
21532         1e6 input.
21533
21534         [BZ #3866]
21535         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
21536         range of signed 64-bit integers before using fistpll.  Remove
21537         checks for whether integers fit in mantissa bits.
21538         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
21539         the range of signed 32-bit integers before using fistpl.  Remove
21540         checks for whether integers fit in mantissa bits.
21541         * sysdeps/i386/fpu/e_powl.S (p64): New object.
21542         (__ieee754_powl): Test for y outside the range of signed 64-bit
21543         integers before using fistpll.  Reduce 64-bit values to 63-bit
21544         ones as needed.
21545         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
21546         divide-by-zero is raised for zero to large negative powers.
21547         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
21548         (__ieee754_powl): Test for y outside the range of signed 64-bit
21549         integers before using fistpll.  Reduce 64-bit values to 63-bit
21550         ones as needed.
21551         * math/libm-test.inc (pow_test): Add more tests.
21552
21553 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
21554
21555         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
21556         <stdio-common/_itoa.h>.
21557         * debug/segfault.c: Likewise.
21558         * elf/dl-cache.c: Likewise.
21559         * elf/dl-minimal.c: Likewise.
21560         * elf/dl-misc.c: Likewise.
21561         * elf/dl-sysdep.c: Likewise.
21562         * elf/dl-version.c: Likewise.
21563         * elf/rtld.c: Likewise.
21564         * hurd/hurdsock.c: Likewise.
21565         * hurd/lookup-retry.c: Likewise.
21566         * malloc/malloc.c: Likewise.
21567         * malloc/mtrace.c: Likewise.
21568         * nscd/nscd_getgr_r.c: Likewise.
21569         * nscd/nscd_getpw_r.c: Likewise.
21570         * nscd/nscd_getserv_r.c: Likewise.
21571         * posix/getopt_init.c: Likewise.
21572         * posix/wordexp.c: Likewise.
21573         * stdio-common/_itoa.c: Likewise.
21574         * stdio-common/printf_fphex.c: Likewise.
21575         * stdio-common/vfprintf.c: Likewise.
21576         * string/_strerror.c: Likewise.
21577         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
21578         * sysdeps/i386/i686/hp-timing.h: Likewise.
21579         * sysdeps/mach/_strerror.c: Likewise.
21580         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
21581         * sysdeps/mach/hurd/sethostid.c: Likewise.
21582         * sysdeps/mach/hurd/xmknodat.c: Likewise.
21583         * sysdeps/mach/xpg-strerror.c: Likewise.
21584         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
21585         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
21586         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
21587         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
21588         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
21589         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
21590         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
21591         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
21592         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
21593         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
21594         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
21595         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
21596         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
21597         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
21598         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
21599         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
21600         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
21601         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
21602         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
21603         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
21604         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
21605
21606         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
21607
21608         * stdio-common/_itoa.h: Moved to ...
21609         * sysdeps/generic/_itoa.h: Here.
21610
21611         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
21612
21613         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
21614         instead of "_itoa.h" and "_itowa.h".
21615         * stdio-common/vfprintf.: Likewise.
21616
21617 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
21618
21619         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
21620         <bits/wordsize.h>.
21621         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
21622         (__signbit): Likwise.
21623         (llrintf): Likwise.
21624         (llrint): Likwise.
21625
21626 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
21627
21628         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
21629         __WORDSIZE != 64.
21630
21631 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
21632
21633         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
21634         OVERFLOW_EXCEPTION_OK.
21635         * math/libm-test.inc ("Philosophy"): Update comment about
21636         exception testing.
21637         (OVERFLOW_EXCEPTION): Define.
21638         (OVERFLOW_EXCEPTION_OK): Likewise.
21639         (INVALID_EXCEPTION_OK): Renumber.
21640         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
21641         (IGNORE_ZERO_INF_SIGN): Likewise.
21642         (test_exceptions): Handle FE_OVERFLOW.
21643         (exp10_test): Expect overflow exceptions.
21644         (exp2_test): Likewise.
21645         (expm1_test): Likewise.
21646         (nextafter_test): Likewise.
21647         (pow_test): Likewise.
21648         (scalbn_test): Likewise.
21649         (scalbln_test): Likewise.
21650
21651 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
21652
21653         * sysdeps/x86_64/bits/atomic.h
21654         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
21655         64bit integer.
21656         (atomic_exchange_acq): Likewise.
21657         (__arch_exchange_and_add_body): Likewise.
21658         (__arch_add_body): Likewise.
21659         (atomic_add_negative): Likewise.
21660         (atomic_add_zero): Likewise.
21661
21662 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
21663
21664         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
21665         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
21666
21667 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
21668
21669         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
21670         Check __x86_64__ instead of __WORDSIZE.
21671
21672 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
21673
21674         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
21675
21676 2012-03-19  David S. Miller  <davem@davemloft.net>
21677
21678         * sysdeps/sparc/fpu/libm-test-ulps: Update.
21679
21680         * sysdeps/sparc/fpu/fenv_private.h: New file.
21681         * sysdeps/sparc/fpu/math_private.h: Use it.
21682         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
21683         Remove.
21684         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
21685         (libc_feholdexcept_setroundl): Remove.
21686         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
21687         Remove.
21688         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
21689         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
21690
21691 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
21692
21693         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
21694         int64_t instead of long int.
21695         (INSERT_WORDS64): Likwise.
21696
21697 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
21698
21699         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
21700         _Unwind_GetCFA return to _Unwind_Ptr first.
21701
21702 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
21703
21704         [BZ #13629]
21705         * math/s_clog.c: Include <float.h>.
21706         (__clog): Scale large or subnormal inputs.
21707         * math/s_clogf.c: Likewise.
21708         * math/s_clogl.c: Likewise.
21709         * math/s_clog10.c: Include <float.h>.
21710         (M_LOG10_2): Define.
21711         (__clog10): Scale large or subnormal inputs.
21712         * math/s_clog10f.c: Likewise.
21713         * math/s_clog10l.c: Likewise.
21714         * math/libm-test.inc (clog_test): Add more tests.
21715         (clog10_test): Likewise.
21716         * sysdeps/i386/fpu/libm-test-ulps: Update.
21717         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21718
21719         [BZ #11451]
21720         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
21721         x and y.
21722         * math/libm-test.inc (atan2_test): Add another test.
21723
21724         * Makerules (common-objdir-compile): Remove.
21725         * sysdeps/unix/Makefile (config-generated): Do not add
21726         $(unix-generated) to variable.
21727         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
21728         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
21729         Remove rule.
21730         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
21731         Likewise.
21732         [generic bits/local_lim.h] (before-compile): Do not append to
21733         variable.
21734         [generic bits/local_lim.h] (common-generated): Likewise.
21735         [generic sys/param.h] (before-compile): Do not append to variable.
21736         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
21737         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
21738         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
21739         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
21740         include.
21741         [generic sys/param.h] (sys/param.h-includes): Remove variable.
21742         [generic sys/param.h] (sys/param.h-includes): Remove rule.
21743         [generic sys/param.h] ($(addprefix
21744         $(common-objpfx),$(sys/param.h-includes))): Likewise.
21745         [generic sys/param.h] (common-generated): Do not append to
21746         variable.
21747         [generic sys/param.h] (sysdep_headers): Likewise.
21748         [generic bits/errno.h] (before-compile): Do not append to
21749         variable.
21750         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
21751         rule.
21752         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
21753         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
21754         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
21755         [generic bits/errno.h] (common-generated): Do not append to
21756         variable.
21757         [generic bits/ioctls.h] (before-compile): Do not append to
21758         variable.
21759         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
21760         rule.
21761         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
21762         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
21763         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
21764         rule.
21765         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
21766         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
21767         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
21768         [generic bits/ioctls.h] (common-generated): Do not append to
21769         variable.
21770         [generic sys/syscall.h] (syscall.h): Remove variable.
21771         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
21772         rule.
21773         [generic sys/syscall.h] (before-compile): Do not append to
21774         variable.
21775         [generic sys/syscall.h] (common-generated): Likewise.
21776         * sysdeps/unix/errnos-tmpl.c: Remove file.
21777         * sysdeps/unix/errnos.awk: Likewise.
21778         * sysdeps/unix/ioctls-tmpl.c: Likewise.
21779         * sysdeps/unix/ioctls.awk: Likewise.
21780         * sysdeps/unix/mk-local_lim.c: Likewise.
21781         * sysdeps/unix/snarf-ioctls: Likewise.
21782
21783 2012-03-19  Richard Henderson  <rth@twiddle.net>
21784
21785         * sysdeps/i386/fpu/fenv_private.h: New file.
21786         * sysdeps/i386/fpu/math_private.h: Use it.
21787         (math_opt_barrier, math_force_eval): Remove.
21788         (libc_feholdexcept_setround_53bit): Remove.
21789         (libc_feupdateenv_53bit): Remove.
21790         * sysdeps/x86_64/fpu/math_private.h: Likewise.
21791         (math_opt_barrier, math_force_eval): Remove.
21792         (libc_feholdexcept): Remove.
21793         (libc_feholdexcept_setround): Remove.
21794         (libc_fetestexcept, libc_fesetenv): Remove.
21795         (libc_feupdateenv_test): Remove.
21796         (libc_feupdateenv, libc_feholdsetround): Remove.
21797         (libc_feresetround): Remove.
21798
21799         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
21800         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
21801
21802         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
21803         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
21804         (libc_feupdateenv_testl): New.
21805         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
21806         (libc_feupdateenv_testf): New.
21807         (libc_feupdateenv): Use libc_feupdateenv_test.
21808         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
21809         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
21810
21811         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
21812         (libc_feholdsetroundf, libc_feholdsetroundl): New.
21813         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
21814         (libc_feresetround_noex): New.
21815         (libc_feresetround_noexf): New.
21816         (libc_feresetround_noexl): New.
21817         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
21818         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
21819         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
21820         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
21821         SET_RESTORE_ROUND.
21822         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
21823         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
21824         (__cos): Likewise.
21825         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
21826         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
21827         SET_RESTORE_ROUND_NOEX.
21828         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
21829         SET_RESTORE_ROUND_NOEXF.
21830         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
21831         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
21832         (libc_feholdsetroundf): New.
21833         (libc_feresetround, libc_feresetroundf): New.
21834
21835         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
21836         (libc_feholdexcept_setround_53bit): Convert from macro to function.
21837         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
21838
21839         * sysdeps/generic/math_private.h: Include <fenv.h>.
21840         (default_libc_feholdexcept): New.
21841         (default_libc_feholdexcept_setround): New.
21842         (default_libc_fesetenv, default_libc_feupdateenv): New.
21843         (libc_feholdexcept): Only define if undefined.
21844         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
21845         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
21846         (libc_feholdexcept_setroundl): Likewise.
21847         (libc_feholdexcept_setround_53bit): Likewise.
21848         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
21849         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
21850         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
21851         (libc_feupdateenv_53bit): Likewise.
21852         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
21853         (libc_feholdexcept): Convert from macro to inline function.
21854         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
21855         (libc_fesetenv, libc_feupdateenv): Likewise.
21856
21857         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
21858         not previously defined.
21859         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
21860         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
21861         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
21862         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
21863         * sysdeps/ieee754/flt-32/math_private.h: New file.
21864         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
21865         math_private.h below SET_FLOAT_WORD.
21866         (__isnan, __isinf_ns, __finite): Remove.
21867         (__isnanf, __isinf_nsf, __finitef): Remove.
21868
21869 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
21870
21871         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
21872
21873 2012-03-17  David S. Miller  <davem@davemloft.net>
21874
21875         [BZ #6471]
21876         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
21877         for 2.16.
21878
21879 2012-03-16  David S. Miller  <davem@davemloft.net>
21880
21881         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
21882         warnings.
21883
21884         [BZ #6471]
21885         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
21886         properly.
21887         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
21888         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
21889         sysdep_routines when subdir is sysvipc.
21890         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
21891         __getshmlba helper.
21892
21893         * sysdeps/sparc/fpu/libm-test/ulps: Update.
21894
21895 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
21896
21897         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
21898         [__LP64__].
21899
21900 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
21901
21902         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
21903         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
21904         (__lround): Renamed to ...
21905         (__llround): This.  Replace long int with long long int.
21906         Define lround functions as aliases of llround functions.
21907         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
21908
21909 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
21910
21911         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
21912         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
21913         adresses to uintptr_t.  Replace "long int" and "unsigned long
21914         int" with "greg_t" on va_arg.
21915
21916 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
21917
21918         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
21919         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
21920
21921         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
21922         Move e_machine check before EI_CLASS check.  Handle x32
21923         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
21924         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
21925         SKIP_EM_IA_64 and include
21926         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
21927
21928         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
21929         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
21930         (add_system_dir): New macro.
21931
21932         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
21933         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
21934
21935 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
21936
21937         [BZ #2551]
21938         [BZ #2552]
21939         [BZ #2553]
21940         [BZ #2554]
21941         [BZ #2562]
21942         [BZ #2563]
21943         [BZ #2565]
21944         [BZ #2566]
21945         [BZ #2576]
21946         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
21947         (y0): Likewise.
21948         * math/w_j0f.c (j0f): Likewise.
21949         (y0f): Likewise.
21950         * math/w_j0l.c (__j0l): Likewise.
21951         (__y0l): Likewise.
21952         * math/w_j1.c (j1): Likewise.
21953         (y1): Likewise.
21954         * math/w_j1f.c (j1f): Likewise.
21955         (y1f): Likewise.
21956         * math/w_j1l.c (__j1l): Likewise.
21957         (__y1l): Likewise.
21958         * math/w_jn.c (jn): Likewise.
21959         (yn): Likewise.
21960         * math/w_jnf.c (jnf): Likewise.
21961         (ynf): Likewise.
21962         * math/w_jnl.c (__jnl): Likewise.
21963         (__ynl): Likewise.
21964         * math/libm-test.inc (j0_test): Add more tests.
21965         (j1_test): Likewise.
21966         (jn_test): Likewise.  Add trailing semicolon to existing test.
21967         (y0_test): Likewise.
21968         (y1_test): Likewise.
21969         * sysdeps/i386/fpu/libm-test-ulps: Update.
21970         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21971
21972         [BZ #13851]
21973         [BZ #13854]
21974         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
21975         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
21976         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
21977         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
21978         (__tanl): Set errno for infinite argument.
21979         * sysdeps/i386/fpu/mptan.c: Remove.
21980         * sysdeps/i386/fpu/s_tan.S: Likewise.
21981         * sysdeps/i386/fpu/s_tanl.S: Likewise.
21982         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
21983         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
21984         * math/libm-test.inc (tan_test): Add more tests and enable more
21985         tests for double and long double.
21986         * sysdeps/i386/fpu/libm-test-ulps: Update.
21987         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
21988
21989 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
21990
21991         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
21992         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
21993
21994 2012-03-16  Roland McGrath  <roland@hack.frob.com>
21995
21996         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
21997         * configure.in: Use it for both main tree and add-ons.
21998         * configure: Regenerated.
21999
22000 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
22001
22002         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
22003
22004 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
22005
22006         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
22007         in comment.
22008
22009         [BZ #13851]
22010         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
22011         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
22012         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
22013         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
22014         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
22015         infinite argument.
22016         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
22017         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
22018         != 0 for prec == 2.
22019         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
22020         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
22021         * sysdeps/i386/fpu/s_cosl.S: Likewise.
22022         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
22023         * sysdeps/i386/fpu/s_sinl.S: Likewise.
22024         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
22025         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
22026         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
22027         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
22028         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
22029         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
22030         * math/libm-test.inc (cos_test): Add more tests and enable more
22031         tests for long double.
22032         (sin_test): Likewise.
22033         (sincos_test): Likewise.
22034         * sysdeps/i386/fpu/libm-test-ulps: Update.
22035         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22036
22037 2012-03-16  David S. Miller  <davem@davemloft.net>
22038
22039         * sysdeps/sparc/fpu/math_private.h: New file.
22040
22041 2012-03-15  David S. Miller  <davem@davemloft.net>
22042
22043         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
22044         file.
22045         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
22046         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
22047         file.
22048         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
22049         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
22050         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
22051         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
22052         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
22053         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
22054         sysdep routines.
22055         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
22056
22057         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
22058         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
22059
22060         * sysdeps/sparc/sparc-ifunc.h: New file.
22061         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
22062         sparc-ifunc.h
22063         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
22064         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
22065         Likewise.
22066         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
22067         Likewise.
22068         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
22069         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
22070         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
22071         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
22072         Likewise.
22073         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
22074         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
22075         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
22076         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
22077         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
22078         Likewise.
22079         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
22080         Likewise.
22081         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
22082         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
22083         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
22084         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
22085         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
22086         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
22087         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
22088         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
22089         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
22090         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
22091         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
22092         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
22093         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
22094         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
22095         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
22096         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
22097         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
22098         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
22099         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
22100         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
22101         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
22102         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
22103         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
22104         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
22105
22106 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
22107
22108         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
22109         scaling.
22110         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22111
22112 2012-03-15  Andreas Jaeger  <aj@suse.de>
22113
22114         [BZ #13852]
22115         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
22116         ieee754/flt-32 implementation for sin, cos and sincos.
22117         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
22118         * sysdeps/i386/fpu/s_cosf.S: Likewise.
22119         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
22120         * sysdeps/i386/fpu/s_sinf.S: Likewise.
22121         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
22122         ieee754/flt-32 implementation for tan.
22123
22124         * math/libm-test.inc (cos_test): Enable some large input tests for
22125         float as well
22126         (sin_test): Likewise.
22127         (sincos_test): Likewise.
22128         (tan_test): Add tests for large input.
22129
22130         * sysdeps/i386/fpu/libm-test-ulps: Update.
22131
22132 2012-03-15  Andreas Jaeger  <aj@suse.de>
22133
22134         [BZ #13658]
22135         * math/libm-test.inc (cos_test): Add more test cases.
22136         (sin_test): Likewise.
22137         (sincos_test): Likewise.
22138
22139 2012-03-15  Andreas Jaeger  <aj@suse.de>
22140
22141         [BZ #13837]
22142         * math/libm-test.inc (cos_test): Add a test case for large input
22143         value.
22144         (sin_test): Likewise.
22145         (sincos_test): Likewise.
22146
22147 2012-03-15  Andreas Jaeger  <aj@suse.de>,
22148         Joseph Myers  <joseph@codesourcery.com>
22149
22150         [BZ #13658]
22151         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
22152         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
22153         * sysdeps/i386/fpu/branred.c: Likewise.
22154         * sysdeps/i386/fpu/dosincos.c: Likewise.
22155         * sysdeps/i386/fpu/mpa.c: Likewise.
22156         * sysdeps/i386/fpu/s_cos.S: Likewise.
22157         * sysdeps/i386/fpu/s_sin.S: Likewise.
22158         * sysdeps/i386/fpu/s_sincos.S: Likewise.
22159         * sysdeps/i386/fpu/sincos32.c: Likewise.
22160
22161         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
22162         Define.
22163         (libc_feupdateenv_53bit): Define.
22164         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
22165         Define.
22166         (libc_feupdateenv_53bit): Define.
22167
22168         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
22169         53 bit (without extend i386 double precision).
22170
22171         * math/libm-test.inc (sincos_test): Add tests for large input.
22172         (sin): Likewise.
22173         (cos): Likewise.
22174
22175         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
22176
22177 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
22178
22179         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22180
22181 2012-03-15  David S. Miller  <davem@davemloft.net>
22182
22183         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
22184         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
22185         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
22186         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
22187         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
22188         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
22189         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
22190         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
22191         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
22192         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
22193         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
22194         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
22195         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
22196         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
22197         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
22198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
22199         file.
22200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
22201         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
22202         file.
22203         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
22204         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
22205         file.
22206         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
22207         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
22208         file.
22209         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
22210         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
22211         fmin/fmax sysdep routines.
22212         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
22213
22214 2012-03-14  David S. Miller  <davem@davemloft.net>
22215
22216         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
22217         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
22218         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
22219         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
22220         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
22221         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
22222         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
22223         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
22224         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
22225         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
22226         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
22227         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
22228         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
22229         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
22230         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
22231         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
22232         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
22233         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
22234         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
22235         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
22236         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
22237         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
22238         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
22239         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
22240         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
22241         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
22242         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
22243         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
22244         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
22245         routines.
22246         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
22247         file.
22248         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
22249         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
22250         file.
22251         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
22252         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
22253         file.
22254         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
22255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
22256         file.
22257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
22258         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
22259         file.
22260         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
22261         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
22262         file.
22263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
22264         file.
22265         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
22266         file.
22267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
22268         file.
22269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
22270         New file.
22271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
22272         file.
22273         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
22274         file.
22275         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
22276         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
22277         file.
22278         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
22279         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
22280         file.
22281         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
22282         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
22283         file.
22284         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
22285         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
22286         VIS3 routines.
22287
22288         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
22289         New file.
22290
22291         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22292
22293         * sysdeps/sparc/configure.in: New file.
22294         * sysdeps/sparc/configure: Generate.
22295         * configure.in (libc_cv_sparc_as_vis3): Substitute.
22296         * configure: Regenerate.
22297         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
22298         * config.make.in (have-as-vis3): New.
22299         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
22300         available use -Av9d instead of -Av9a.
22301         * sysdeps/sparc/sparc64/Makefile: Likewise.
22302         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
22303         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
22304         New file.
22305         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
22306         file.
22307         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
22308         New file.
22309         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
22310         file.
22311         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
22312         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
22313         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
22314         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
22315         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
22316
22317         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
22318         fzeros/fnegs to load 0x80000000 into a float register instead of
22319         using the stack.
22320         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
22321
22322 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
22323
22324         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22325         bits/syscall.h.
22326         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
22327         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
22328         ($(inst_includedir)/bits/syscall.h): Remove rule.
22329         ($(objpfx)bits/syscall.d): Include instead of
22330         $(objpfx)syscall-list.d.
22331         (generated): Change syscall-list.h and syscall-list.d to
22332         bits/syscall.h and bits/syscall.d.
22333
22334 2012-03-14  Roland McGrath  <roland@hack.frob.com>
22335
22336         [BZ #13846]
22337         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
22338
22339 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
22340
22341         [BZ #13841]
22342         * math/s_csqrt.c: Include <float.h>.
22343         (__csqrt): Scale large or subnormal inputs.
22344         * math/s_csqrtf.c: Likewise.
22345         * math/s_csqrtl.c: Likewise.
22346         * math/libm-test.inc (csqrt_test): Add more tests.
22347         * sysdeps/i386/fpu/libm-test-ulps: Update.
22348         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22349
22350         [BZ #13840]
22351         * math/libm-test.inc (hypot_test): Add more tests.
22352
22353 2012-03-13  David S. Miller  <davem@davemloft.net>
22354
22355         [BZ #13840]
22356         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
22357         double-precision for the calculation instead of scaling.
22358
22359 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
22360
22361         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
22362         manipulate bits before adding and subtracting TWO52[sx].
22363         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
22364         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
22365         Likewise.
22366         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
22367
22368 2012-03-13  David S. Miller  <davem@davemloft.net>
22369
22370         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
22371         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
22372         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
22373         rtld-global-offsets.h
22374         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
22375
22376         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
22377         large parameters.
22378
22379         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
22380
22381         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
22382         'err' in the ifdef scope in which it is actually used.
22383
22384         * nss/nss_db/db-init.c: Include string.h
22385
22386 2012-03-12  David S. Miller  <davem@davemloft.net>
22387
22388         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
22389         masking out of the most significant byte of random value used.
22390         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
22391         Fix coding style in previous change.
22392
22393         * sysdeps/unix/sysv/linux/kernel-features.h
22394         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
22395         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
22396         expression.
22397         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
22398         later.
22399
22400 2012-03-11  David S. Miller  <davem@davemloft.net>
22401
22402         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
22403         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
22404         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
22405         for 'resultvar' otherwise things get truncated on 64-bit.
22406
22407         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
22408         Fix masking out of the most significant byte of random value used.
22409
22410         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22411
22412 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
22413
22414         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22415
22416 2012-03-09  David S. Miller  <davem@davemloft.net>
22417
22418         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
22419         variables with appropriate CPP guards.
22420         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
22421         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
22422         on resulting framesize and the management of the outregs buffer for pltexit.
22423         Preserve floating point return values across _dl_call_pltexit call.
22424         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
22425         framesize and the management of the outregs buffer for pltexit.
22426         Preserve floating point return values across _dl_call_pltexit
22427         call.
22428         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
22429         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
22430         (print_exit): Fix format string for return register value.
22431
22432 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
22433
22434         * sunrpc/Makefile (others): Add rpcgen.
22435         ($(objpfx)rpcgen): Remove special build rule and dependency on
22436         libc.
22437         * sunrpc/rpcgen.c: New file.
22438
22439 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
22440
22441         [BZ #13673]
22442         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
22443         * stdio-common/bug-vfprintf-nargs.c: Likewise.
22444         * sysdeps/i386/crti.S: Likewise.
22445         * sysdeps/i386/crtn.S: Likewise.
22446         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
22447         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
22448         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
22449         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
22450         * sysdeps/sh/crti.S: Likewise.
22451         * sysdeps/sh/crtn.S: Likewise.
22452         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
22453
22454         [BZ #13673]
22455         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
22456         with URL.
22457         * locale/programs/locfile-kw.gperf: Likewise.
22458         * locale/programs/charmap-kw.h: Regenerated.
22459         * locale/programs/locfile-kw.h: Likewise.
22460
22461         [BZ #13673]
22462         * intl/plural.y: Replace FSF snail mail address with URL.
22463         * intl/plural.c: Regenerated.
22464
22465 2012-03-09  Richard Henderson  <rth@twiddle.net>
22466
22467         * include/math_private.h: Remove file.
22468         * math/math_private.h: Move file ...
22469         * sysdeps/generic/math_private.h: ... here.
22470
22471         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
22472         * sysdeps/powerpc/fpu/math_private.h: Likewise.
22473         * sysdeps/x86_64/fpu/math_private.h: Likewise.
22474
22475         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
22476         and <math_private.h>.
22477         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
22478         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
22479         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
22480         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
22481         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
22482         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
22483         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
22484         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
22485         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
22486         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
22487         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
22488         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
22489         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
22490         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
22491         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
22492         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
22493         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
22494         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
22495         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
22496         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
22497         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
22498         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
22499         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
22500         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
22501         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
22502         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
22503         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
22504         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
22505         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
22506         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
22507         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
22508         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
22509         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
22510         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
22511         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
22512         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
22513         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
22514         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
22515         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
22516         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
22517         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
22518         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
22519         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
22520         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
22521         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
22522         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
22523         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
22524         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
22525         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
22526         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
22527         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
22528         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
22529         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
22530         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
22531         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
22532         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
22533         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
22534         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
22535         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
22536         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
22537         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
22538         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
22539         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
22540         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
22541         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
22542         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
22543         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
22544         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
22545         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
22546         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
22547         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
22548         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
22549         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
22550         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
22551         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
22552         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
22553         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
22554         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
22555         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
22556         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
22557         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
22558         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
22559         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
22560         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
22561         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
22562         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
22563         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
22564         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
22565         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
22566         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
22567         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
22568         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
22569         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
22570         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
22571         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
22572         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
22573         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
22574         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
22575         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
22576         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
22577         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
22578         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
22579         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
22580         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
22581         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
22582         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
22583         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
22584         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
22585         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
22586         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
22587         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
22588         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
22589         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
22590         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
22591         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
22592         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
22593         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
22594         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
22595         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
22596         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
22597         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
22598         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
22599         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
22600         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
22601         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
22602         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
22603         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
22604         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
22605         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
22606         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
22607         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
22608         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
22609         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
22610         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
22611         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
22612         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
22613         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
22614         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
22615         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
22616         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
22617         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
22618         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
22619         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
22620         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
22621         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
22622         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
22623         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
22624         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
22625         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
22626         * sysdeps/ieee754/k_standard.c: Likewise.
22627         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
22628         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
22629         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
22630         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
22631         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
22632         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
22633         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
22634         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
22635         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
22636         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
22637         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
22638         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
22639         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
22640         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
22641         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
22642         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
22643         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
22644         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
22645         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
22646         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
22647         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
22648         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
22649         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
22650         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
22651         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
22652         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
22653         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
22654         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
22655         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
22656         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
22657         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
22658         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
22659         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
22660         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
22661         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
22662         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
22663         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
22664         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
22665         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
22666         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
22667         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
22668         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
22669         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
22670         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
22671         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
22672         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
22673         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
22674         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
22675         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
22676         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
22677         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
22678         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
22679         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
22680         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
22681         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
22682         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
22683         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
22684         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
22685         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
22686         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
22687         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
22688         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
22689         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
22690         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
22691         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
22692         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
22693         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
22694         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
22695         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
22696         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
22697         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
22698         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
22699         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
22700         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
22701         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
22702         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
22703         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
22704         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
22705         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
22706         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
22707         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
22708         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
22709         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
22710         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
22711         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
22712         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
22713         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
22714         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
22715         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
22716         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
22717         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
22718         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
22719         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
22720         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
22721         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
22722         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
22723         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
22724         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
22725         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
22726         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
22727         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
22728         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
22729         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
22730         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
22731         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
22732         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
22733         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
22734         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
22735         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
22736         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
22737         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
22738         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
22739         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
22740         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
22741         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
22742         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
22743         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
22744         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
22745         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
22746         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
22747         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
22748         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
22749         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
22750         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
22751         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
22752         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
22753         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
22754         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
22755         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
22756         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
22757         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
22758         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
22759         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
22760         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
22761         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
22762         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
22763         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
22764         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
22765         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
22766         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
22767         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
22768         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
22769         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
22770         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
22771         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
22772         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
22773         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
22774         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
22775         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
22776         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
22777         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
22778         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
22779         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
22780         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
22781         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
22782         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
22783         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
22784         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
22785         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
22786         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
22787         * sysdeps/ieee754/s_lib_version.c: Likewise.
22788         * sysdeps/ieee754/s_matherr.c: Likewise.
22789         * sysdeps/ieee754/s_signgam.c: Likewise.
22790         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
22791         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
22792         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
22793         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
22794         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
22795         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
22796         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
22797         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
22798         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
22799         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
22800         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
22801         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
22802         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
22803         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
22804         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
22805         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
22806         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
22807         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
22808         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
22809         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
22810         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
22811
22812 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
22813
22814         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
22815         * sunrpc/rpc_main.c: Likewise.
22816         * sunrpc/rpc_svcout.c: Likewise.
22817
22818 2012-03-09  David S. Miller  <davem@davemloft.net>
22819
22820         * include/math_private.h: New file.
22821
22822 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
22823
22824         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
22825         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
22826         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
22827         from <bits/socket_type.h>.
22828         (enum __socket_type): Don't define here.
22829         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
22830         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
22831         bits/socket_type.h.
22832
22833         [BZ #13566]
22834         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
22835         checking __USE_GNU.
22836
22837         * Makerules ($(inst_includedir)/%.h): New rule.
22838         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
22839         (install-others): Remove variable setting.
22840         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
22841
22842 2012-03-08  Richard Henderson  <rth@twiddle.net>
22843
22844         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
22845         from macro to inline function; merge with the
22846         !__LIBC_INTERNAL_MATH_INLINES version.
22847         (__ieee754_sqrtf): Likewise.
22848
22849         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
22850         to inline function.
22851         (__rintf, __floor, __floorf): Likewise.
22852
22853         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
22854         macro to inline function.
22855         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
22856
22857         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
22858         not <math/math_private.h>.
22859
22860 2012-03-08  David S. Miller  <davem@davemloft.net>
22861
22862         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
22863         copyright year.
22864         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
22865
22866 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
22867
22868         * resolv/gai_misc.c (handle_requests): Fix struct timespec
22869         normalization.
22870         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
22871         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
22872
22873 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
22874
22875         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
22876         be defined individually, they must be defined as a block.  Define
22877         S for printing a string instead of hidint the different by using a
22878         macro for adding the 'l'.
22879         * stdio-common/tst-fphex-wide.c: Adjust.
22880
22881 2012-03-07  Marek Polacek  <polacek@redhat.com>
22882
22883         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
22884
22885 2012-03-08  Marek Polacek  <polacek@redhat.com>
22886
22887         [BZ #13806]
22888         * stdio-common/Makefile (tests): Add tst-fphex-wide.
22889         * stdio-common/tst-fphex.c: Define a few macros to make the
22890         test reusable.  Use them.
22891         * stdio-common/tst-fphex-wide.c: New file.
22892
22893 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
22894
22895         [BZ #6911]
22896         * manual/macros.texi (gnusystems): New macro.
22897         (nongnusystems): Likewise.
22898         (gnulinuxhurdsystems): Likewise.
22899         (gnuhurdsystems): Likewise..
22900         (gnulinuxsystems): Likewise.
22901         * manual/charset.texi: Use new macros or @theglibc{} to refer to
22902         variants of the GNU system, not "GNU system".
22903         * manual/conf.texi: Likewise.
22904         * manual/errno.texi: Likewise.  Update example of errno macro
22905         expansion.
22906         * manual/filesys.texi: Likewise.
22907         (getumask): Document as specific to GNU/Hurd.
22908         * manual/install.texi: Likewise.  Reword some references to
22909         GNU/Linux.
22910         * manual/intro.texi: Likewise.
22911         * manual/io.texi: Likewise.
22912         (File Name Portability): Detail which constraints are inapplicable
22913         to all GNU systems and which are only inapplicable to GNU/Hurd.
22914         * manual/job.texi: Likewise.
22915         * manual/llio.texi: Likewise.
22916         (O_NOCTTY): Document as present on GNU/Linux.
22917         * manual/maint.texi: Likewise.
22918         * manual/memory.texi: Likewise.
22919         * manual/pattern.texi: Likewise.
22920         * manual/pipe.texi: Likewise.
22921         * manual/process.texi: Likewise.
22922         * manual/resource.texi: Likewise.
22923         (RUSAGE_CHILDREN): Remove statement about specifying a particular
22924         child on GNU/Hurd.
22925         * manual/setjmp.texi: Likewise.
22926         * manual/signal.texi: Likewise.
22927         * manual/startup.texi: Likewise.
22928         * manual/stdio.texi: Likewise.
22929         * manual/terminal.texi: Likewise.
22930         (ONLCR): Document as POSIX.
22931         (OXTABS): Document availability on GNU/Linux as XTABS.
22932         (ONOEOT): Document availability separately from other bits.
22933         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
22934         * manual/time.texi: Likewise.
22935         * manual/users.texi: Likewise.
22936         * INSTALL: Regenerated.
22937         * sysdeps/gnu/errlist.c: Regenerated.
22938
22939         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
22940         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
22941         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
22942         puts.
22943         * configure: Regenerated.
22944
22945 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
22946
22947         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
22948         default includes instead of AC_HEADER_CHECK.
22949         * sysdeps/i386/configure: Regenerated.
22950
22951         [BZ #10716]
22952         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
22953         * math/s_cacoshf.c (__cacoshf): Likewise.
22954         * math/s_cacoshl.c (__cacoshl): Likewise.
22955         * math/s_casinh.c (__casinh): Set signs of result from argument.
22956         * math/s_casinhf.c (__casinhf): Likewise.
22957         * math/s_casinhl.c (__casinhl): Likewise.
22958         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
22959         (casinh_test): Add more tests.
22960         * sysdeps/i386/fpu/libm-test-ulps: Update.
22961         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22962
22963 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
22964
22965         * po/zh_TW.po: Update from translation team.
22966
22967         * login/Makefile (distribute): Remove variable.
22968         * catgets/Makefile: Likewise.
22969         * mach/Makefile: Likewise.
22970         * malloc/Makefile: Likewise.
22971         * misc/Makefile: Likewise.
22972         * iconv/Makefile: Likewise.
22973         * nscd/Makefile: Likewise.
22974         * hurd/Makefile: Likewise.
22975         * manual/Makefile: Likewise.
22976         * locale/Makefile: Likewise.
22977         * intl/Makefile: Likewise.
22978         * conform/Makefile: Likewise.
22979         * nss/Makefile: Likewise.
22980         * time/Makefile: Likewise.
22981         * soft-fp/Makefile: Likewise.
22982         * dirent/Makefile: Likewise.
22983         * gmon/Makefile: Likewise.
22984         * po/Makefile: Likewise.
22985         * rt/Makefile: Likewise.
22986         * socket/Makefile: Likewise.
22987         * math/Makefile: Likewise.
22988         * signal/Makefile: Likewise.
22989         * debug/Makefile: Likewise.
22990         * elf/Makefile: Likewise.
22991         * timezone/Makefile: Likewise.
22992         * stdlib/Makefile: Likewise.
22993         * iconvdata/Makefile: Likewise.
22994         * sunrpc/Makefile: Likewise.
22995         * io/Makefile: Likewise.
22996         * argp/Makefile: Likewise.
22997         * inet/Makefile: Likewise.
22998         * hesiod/Makefile: Likewise.
22999         * grp/Makefile: Likewise.
23000         * csu/Makefile: Likewise.
23001         * wctype/Makefile: Likewise.
23002         * crypt/Makefile: Likewise.
23003         * libio/Makefile: Likewise.
23004         * string/Makefile: Likewise.
23005         * nis/Makefile: Likewise.
23006         * resolv/Makefile: Likewise.
23007         * stdio-common/Makefile: Likewise.
23008         * wcsmbs/Makefile: Likewise.
23009         * dlfcn/Makefile: Likewise.
23010         * posix/Makefile: Likewise.
23011
23012         [BZ #6959]
23013         * timezone/Makefile: Don't install timezone files, just the programs
23014         and scripts.
23015
23016 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
23017
23018         * nss/databases.def: Add missing gshadow entry.
23019
23020         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
23021
23022 2012-03-06  Marek Polacek  <polacek@redhat.com>
23023
23024         [BZ #13726]
23025         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
23026         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
23027         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
23028         * stdio-common/tst-long-dbl-fphex.c: New file.
23029
23030 2012-03-06  David S. Miller  <davem@davemloft.net>
23031
23032         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
23033         (set_obp_int): New function.
23034         (get_obp_int): New function.
23035         (__get_clockfreq_via_dev_openprom): Likewise.
23036         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
23037         Avoid unused variable warnings on 'val' and use builtin_expect.
23038         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
23039         __builtin_expect.
23040         (INLINE_CLONE_SYSCALL): Likewise.
23041
23042 2012-03-05  David S. Miller  <davem@davemloft.net>
23043
23044         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23045
23046 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
23047
23048         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23049
23050         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
23051         only for |x| >= 40.
23052         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
23053
23054 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
23055
23056         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
23057         Replace gettimeofday with __vdso_gettimeofday.
23058
23059         * sysdeps/unix/sysv/linux/x86_64/init-first.c
23060         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
23061         __vdso_clock_gettime and __vdso_getcpu.
23062
23063         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
23064         time with __vdso_time.
23065
23066 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
23067
23068         * manual/lang.texi (size_t): Note types to which size_t may be
23069         equivalent with the GNU C Library, but do not describe when
23070         differences between them are significant.
23071
23072 2012-03-05  Andreas Jaeger  <aj@suse.de>
23073
23074         * sysdeps/i386/fpu/libm-test-ulps: Update.
23075
23076 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
23077
23078         [BZ #3976]
23079         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
23080         (__ieee754_pow): Save and restore rounding mode and use
23081         round-to-nearest for main computations.
23082         * math/libm-test.inc (pow_test_tonearest): New function.
23083         (pow_test_towardzero): Likewise.
23084         (pow_test_downward): Likewise.
23085         (pow_test_upward): Likewise.
23086         (main): Call the new functions.
23087         * sysdeps/i386/fpu/libm-test-ulps: Update.
23088         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23089
23090         [BZ #3976]
23091         * math/libm-test.inc (cosh_test_tonearest): New function.
23092         (cosh_test_towardzero): Likewise.
23093         (cosh_test_downward): Likewise.
23094         (cosh_test_upward): Likewise.
23095         (sinh_test_tonearest): Likewise.
23096         (sinh_test_towardzero): Likewise.
23097         (sinh_test_downward): Likewise.
23098         (sinh_test_upward): Likewise.
23099         (main): Call the new functions.
23100         * sysdeps/i386/fpu/libm-test-ulps: Update.
23101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23102
23103 2012-03-05  Tom de Vries  <tom@codesourcery.com>
23104
23105         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
23106         default stack guard is set in last bytes.
23107         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
23108
23109 2012-03-05  Kees Cook  <keescook@chromium.org>
23110
23111         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
23112
23113         [BZ #13656]
23114         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
23115         possibly allocate from heap instead of stack.
23116         * stdio-common/bug-vfprintf-nargs.c: New file.
23117         * stdio-common/Makefile (tests): Add nargs overflow test.
23118
23119 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
23120
23121         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
23122
23123 2012-03-03  Marek Polacek  <polacek@redhat.com>
23124
23125         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
23126         * math/math_private.h: Likewise.
23127         * stdlib/tst-strtod.c: Likewise.
23128         * sysdeps/i386/i486/bits/atomic.h: Likewise.
23129         * sysdeps/x86_64/bits/atomic.h: Likewise.
23130
23131 2012-03-02  David S. Miller  <davem@davemloft.net>
23132
23133         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
23134         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
23135         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
23136         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
23137         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
23138         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
23139         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
23140         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
23141
23142 2012-03-02  Roland McGrath  <roland@hack.frob.com>
23143
23144         [BZ #13792]
23145         * manual/examples/README: New file, says the example source files
23146         can be used under GPL>=2.
23147         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
23148         line containing just "*/".
23149         * manual/examples/add.c: Add copyright header (GPL>=2).
23150         * manual/examples/argp-ex1.c: Likewise.
23151         * manual/examples/argp-ex2.c: Likewise.
23152         * manual/examples/argp-ex3.c: Likewise.
23153         * manual/examples/argp-ex4.c: Likewise.
23154         * manual/examples/atexit.c: Likewise.
23155         * manual/examples/db.c: Likewise.
23156         * manual/examples/dir.c: Likewise.
23157         * manual/examples/dir2.c: Likewise.
23158         * manual/examples/execinfo.c: Likewise.
23159         * manual/examples/filecli.c: Likewise.
23160         * manual/examples/filesrv.c: Likewise.
23161         * manual/examples/fmtmsgexpl.c: Likewise.
23162         * manual/examples/genpass.c: Likewise.
23163         * manual/examples/inetcli.c: Likewise.
23164         * manual/examples/inetsrv.c: Likewise.
23165         * manual/examples/isockad.c: Likewise.
23166         * manual/examples/longopt.c: Likewise.
23167         * manual/examples/memopen.c: Likewise.
23168         * manual/examples/memstrm.c: Likewise.
23169         * manual/examples/mkfsock.c: Likewise.
23170         * manual/examples/mkisock.c: Likewise.
23171         * manual/examples/mygetpass.c: Likewise.
23172         * manual/examples/pipe.c: Likewise.
23173         * manual/examples/popen.c: Likewise.
23174         * manual/examples/rprintf.c: Likewise.
23175         * manual/examples/search.c: Likewise.
23176         * manual/examples/select.c: Likewise.
23177         * manual/examples/setjmp.c: Likewise.
23178         * manual/examples/sigh1.c: Likewise.
23179         * manual/examples/sigusr.c: Likewise.
23180         * manual/examples/stpcpy.c: Likewise.
23181         * manual/examples/strdupa.c: Likewise.
23182         * manual/examples/strftim.c: Likewise.
23183         * manual/examples/strncat.c: Likewise.
23184         * manual/examples/subopt.c: Likewise.
23185         * manual/examples/swapcontext.c: Likewise.
23186         * manual/examples/termios.c: Likewise.
23187         * manual/examples/testopt.c: Likewise.
23188         * manual/examples/testpass.c: Likewise.
23189         * manual/examples/timeval_subtract.c: Likewise.
23190
23191         [BZ #13792]
23192         * manual/time.texi (Elapsed Time): Move timeval_subtract example
23193         function to ...
23194         * manual/timeval_subtract.c.texi: ... here, new file.
23195
23196 2012-03-02  David S. Miller  <davem@davemloft.net>
23197
23198         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
23199
23200 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
23201
23202         [BZ #3976]
23203         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
23204         (__sin): Save and restore rounding mode and use round-to-nearest
23205         for all computations.
23206         (__cos): Save and restore rounding mode and use round-to-nearest
23207         for all computations.
23208         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
23209         <fenv.h>.
23210         (tan): Save and restore rounding mode and use round-to-nearest for
23211         all computations.
23212         * math/libm-test.inc (cos_test_tonearest): New function.
23213         (cos_test_towardzero): Likewise.
23214         (cos_test_downward): Likewise.
23215         (cos_test_upward): Likewise.
23216         (sin_test_tonearest): Likewise.
23217         (sin_test_towardzero): Likewise.
23218         (sin_test_downward): Likewise.
23219         (sin_test_upward): Likewise.
23220         (tan_test_tonearest): Likewise.
23221         (tan_test_towardzero): Likewise.
23222         (tan_test_downward): Likewise.
23223         (tan_test_upward): Likewise.
23224         (main): Call the new functions.
23225         * sysdeps/i386/fpu/libm-test-ulps: Update.
23226         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23227
23228         [BZ #10135]
23229         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
23230         small n, then large n, before computing and testing k+n.
23231         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
23232         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
23233         Likewise.
23234         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
23235         Likewise.
23236         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
23237         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
23238         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
23239         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
23240         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
23241         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
23242         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
23243         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
23244         * math/libm-test.inc (scalbn_test): Add more tests.
23245         (scalbln_test): Likewise.
23246
23247         * manual/filesys.texi (mode_t): Describe constraints on size and
23248         signedness, not exact equivalence to a particular type.
23249         (ino_t): Likewise.
23250         (ino64_t): Likewise.
23251         (dev_t): Likewise.
23252         (nlink_t): Likewise.
23253         (blkcnt_t): Likewise.
23254         (blkcnt64_t): Likewise.
23255         * manual/llio.texi (off_t): Likewise.
23256
23257         [BZ #3976]
23258         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
23259         (__ieee754_exp): Save and restore rounding mode and use
23260         round-to-nearest for all computations.
23261         * math/libm-test.inc (exp_test_tonearest): New function.
23262         (exp_test_towardzero): Likewise.
23263         (exp_test_downward): Likewise.
23264         (exp_test_upward): Likewise.
23265         (main): Call the new functions.
23266         * sysdeps/i386/fpu/libm-test-ulps: Update.
23267         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23268
23269 2012-03-01  Chris Demetriou  <cgd@google.com>
23270
23271         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
23272         have predictable order.
23273
23274 2012-03-01  David S. Miller  <davem@davemloft.net>
23275
23276         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
23277
23278         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
23279         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
23280         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
23281         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
23282
23283         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
23284         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
23285         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
23286         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
23287         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
23288         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
23289         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
23290         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
23291         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
23292
23293         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23294
23295         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
23296         * sysdeps/sparc/fpu/libm-test-ulps: to here.
23297         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
23298
23299         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
23300         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
23301         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
23302         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
23303         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
23304         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
23305         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
23306         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
23307         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
23308         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
23309         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
23310         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
23311         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
23312         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
23313         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
23314         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23315         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
23316         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
23317         * sysdeps/sparc/elf/configure: Regenerated.
23318
23319 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
23320
23321         * configure.in (AS, LD): Require binutils 2.20 or later.
23322         * configure: Regenerated.
23323         * manual/install.texi (Tools for Compilation): Give binutils 2.20
23324         as required minimum version.
23325         * INSTALL: Regenerated.
23326
23327         [BZ #2541]
23328         [BZ #4108]
23329         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
23330         before squaring exponent.
23331         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
23332         bottom long double and 27 bits of top long double before squaring
23333         exponent.
23334         * math/libm-test.inc (erfc_test): Add more tests.
23335         * sysdeps/i386/fpu/libm-test-ulps: Update.
23336         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
23337         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23338
23339 2012-03-01  Kai Tietz  <ktietz@redhat.com>
23340
23341         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
23342         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
23343         containing bit-fields.
23344         * soft-fp/extended.h (_FP_UNION_E): Likewise.
23345         * soft-fp/single.h (_FP_UNION_S): Likewise.
23346         * soft-fp/double.h (_FP_UNION_D): Likewise.
23347
23348 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
23349
23350         [BZ #13786]
23351         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
23352         not include ../strcmp.S.
23353         [USE_AS_STRNCASECMP_L]: Likewise.
23354         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
23355         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
23356         * sysdeps/i386/i686/multiarch/strncase_l-c.c
23357         (__strncasecmp_l_ia32): Define as alias to
23358         __strncasecmp_l_nonascii.
23359
23360         [BZ #5794]
23361         * math/libm-test.inc (expm1_test): Add test for bug 5794.
23362         * sysdeps/i386/fpu/libm-test-ulps: Update.
23363         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23364
23365         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
23366         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23367
23368 2012-02-29  Jeff Law  <law@redhat.com>
23369
23370         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
23371         out of bounds read.
23372
23373 2012-02-29  Marek Polacek  <polacek@redhat.com>
23374
23375         [BZ #13706]
23376         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
23377         * elf/Makefile: Add rules to run tst-unused-dep.out.
23378
23379 2012-02-28  David S. Miller  <davem@davemloft.net>
23380
23381         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
23382         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
23383         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
23384         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
23385         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
23386         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
23387
23388 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
23389
23390         * math/libm-test.inc (llround_test): Move one test from
23391         lround_test.  Use TEST_f_L in moved test.
23392         (lround_test): Move misplaced test to llround_test.  Add testcase
23393         from bug 2561.
23394
23395 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
23396
23397         * sysdeps/x86_64/fpu/e_expf.S: New file.
23398         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
23399
23400 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
23401
23402         [BZ #13637]
23403         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
23404         of remain_len that may cause incomplete multi-byte character and
23405         false match.
23406         * posix/bug-regex33.c: New file.
23407         * posix/Makefile (tests): Add bug-regex33.
23408
23409 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
23410
23411         * manual/macros.texi: New file.
23412         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
23413         * manual/libc.texinfo: Include macros.texi.
23414         * manual/creatute.texi: Likewise.
23415         * manual/install.texi: Likewise.
23416         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
23417         @glibcadj{} in references to the GNU C Library.
23418         * manual/charset.texi: Likewise.
23419         * manual/conf.texi: Likewise.
23420         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
23421         when not using those macros.
23422         * manual/creature.texi: Likewise.
23423         * manual/crypt.texi: Likewise.
23424         * manual/errno.texi: Likewise.
23425         * manual/filesys.texi: Likewise.
23426         * manual/header.texi: Likewise.
23427         * manual/install.texi: Likewise.
23428         * manual/intro.texi: Likewise.
23429         * manual/io.texi: Likewise.
23430         * manual/job.texi: Likewise.
23431         * manual/lang.texi: Likewise.
23432         * manual/libc.texiinfo: Likewise.
23433         * manual/llio.texi: Likewise.
23434         * manual/locale.texi: Likewise.
23435         * manual/maint.texi: Likewise.
23436         * manual/math.texi: Likewise.
23437         * manual/memory.texi: Likewise.
23438         * manual/message.texi: Likewise.
23439         * manual/nss.texi: Likewise.
23440         * manual/pattern.texi: Likewise.
23441         * manual/process.texi: Likewise.
23442         * manual/resource.texi: Likewise.
23443         * manual/search.texi: Likewise.
23444         * manual/setjmp.texi: Likewise.
23445         * manual/signal.texi: Likewise.
23446         * manual/socket.texi: Likewise.
23447         * manual/startup.texi: Likewise.
23448         * manual/stdio.texi: Likewise.
23449         * manual/string.texi: Likewise.
23450         * manual/sysinfo.texi: Likewise.
23451         * manual/syslog.texi: Likewise.
23452         * manual/terminal.texi: Likewise.
23453         * manual/time.texi: Likewise.
23454         * manual/users.texi: Likewise.
23455         * INSTALL: Regenerated.
23456         * NOTES: Regenerated.
23457         * sysdeps/gnu/errlist.c: Regenerated.
23458
23459 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
23460
23461         * include/dirent.h: Include <dirstream.h> before
23462         <dirent/dirent.h>.
23463
23464 2012-02-28  David S. Miller  <davem@davemloft.net>
23465
23466         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
23467         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
23468         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
23469         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
23470
23471 2012-02-27  David S. Miller  <davem@davemloft.net>
23472
23473         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
23474         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
23475         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
23476         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
23477
23478         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
23479         frame pointer instead of stack pointer relative arg slot.
23480         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
23481         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
23482         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
23483
23484 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
23485
23486         [BZ #3992]
23487         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
23488
23489 2012-02-27  David S. Miller  <davem@davemloft.net>
23490
23491         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
23492         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
23493         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
23494         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
23495         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
23496         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
23497         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
23498         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
23499
23500 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
23501
23502         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
23503         later.  Allow versions 5-9.
23504         * configure: Regenerated.
23505         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
23506         required minimum version and 4.6 as recommended version.  Do not
23507         mention bugs in GCC 2.7 and 2.8.
23508         * INSTALL: Regenerated.
23509
23510 2012-02-27  David S. Miller  <davem@davemloft.net>
23511
23512         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
23513         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
23514         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
23515         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
23516         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
23517         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
23518         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
23519         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
23520
23521         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
23522         manipulate bits before adding and subtracting TWO112[sx].
23523         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
23524
23525 2012-02-27  Roland McGrath  <roland@hack.frob.com>
23526
23527         [BZ #13775]
23528         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
23529         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
23530         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
23531         being in POSIX, because they are in 1003.1-2008.
23532
23533         * rt/tst-aio.c: Include <fcntl.h>.
23534         * rt/tst-aio7.c: Likewise.
23535         * rt/tst-aio64.c: Likewise.
23536
23537         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
23538
23539 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
23540
23541         * manual/install.texi (--with-headers): Describe headers as
23542         interface headers, not private headers.
23543         (Specific advice for GNU/Linux systems): Describe use of headers
23544         from "make headers_install", not private headers from older
23545         kernels.
23546         * INSTALL: Regenerated.
23547         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
23548         Change to 2.6.19.
23549         * sysdeps/unix/sysv/linux/configure: Regenerated.
23550
23551         * manual/llio.texi (fclean): Remove documentation.
23552
23553         * manual/Makefile (libc-texi-generated): New variable.  Include
23554         version.texi.
23555         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
23556         $(libc-texi-generated), not duplicated list of files.
23557         (version.texi, stamp-version): New rules.
23558         (realclean): Remove $(libc-texi-generated), not individual files
23559         from that list.  Do not remove dir-add.texinfo.
23560         * manual/libc.texinfo: Comment out uses of edition numbers and
23561         references to printed manual.  Remove last-updated dates.
23562         (EDITION): Comment out.
23563         (ISBN): Likewise.
23564         (VERSION, UPDATED): Remove.
23565         (version.texi): Include.
23566
23567 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
23568
23569         * sysdeps/posix/spawni.c: Include <signal.h>.
23570         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
23571         * sysdeps/pthread/aio_fsync.c: Likewise.
23572
23573 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
23574
23575         * conform/Makefile (tests): Run only when not cross-compiling and
23576         when fast-check is not defined.
23577
23578         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
23579         * conform/data/limits.h-data: Fixes for POSIX2008.
23580         * conform/run-conformtest.sh: Run all tests.
23581         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
23582         headers.
23583         * include/bits/dlfcn.h: Likewise.
23584         * include/langinfo.h: Likewise.
23585         * include/monetary.h: Likewise.
23586         * include/sys/poll.h: Likewise.
23587
23588         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
23589         for __USE_GNU.
23590         * posix/spawn.h: Define __need_sigset_t.
23591         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
23592         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
23593         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
23594         to get sigevent_t only.
23595         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
23596         only for __USE_GNU.
23597         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
23598         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
23599         process_vm_writev only for __USE_GNU.
23600         * termios/termios.h: Declare tcgetsid also for POSIX2008.
23601
23602         * conform/Makefile: For now ignore errors from run-conformtest.
23603         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
23604         POSIX to avoid namespace pollution.  Don't prepend headers.
23605         * conform/data/aio.h-data: Fixes for POSIX testing.
23606         * conform/data/fcntl.h-data: Likewise.
23607         * conform/data/glob.h-data: Likewise.
23608         * conform/data/grp.h-data: Likewise.
23609         * conform/data/pthread.h-data: Likewise.
23610         * conform/data/pwd.h-data: Likewise.
23611         * conform/data/signal.h-data: Likewise.
23612         * conform/data/spawn.h-data: Likewise.
23613         * conform/data/stdio.h-data: Likewise.
23614         * conform/data/stdlib.h-data: Likewise.
23615         * conform/data/stropts.h-data: Likewise.
23616         * conform/data/sys/mman.h-data: Likewise.
23617         * conform/data/sys/stat.h-data: Likewise.
23618         * conform/data/sys/types.h-data: Likewise.
23619         * conform/data/sys/wait.h-data: Likewise.
23620         * conform/data/time.h-data: Likewise.
23621         * conform/data/unistd.h-data: Likewise.
23622         * conform/data/utime.h-data: Likewise.
23623
23624         * io/sys/stat.h: fchmod was always in POSIX.
23625         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
23626         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
23627         * rt/aio.h: Define __need_timespec before including <time.h>.
23628         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
23629         struct.  Add forward declaration of pthread_attr_t and use it in
23630         sigevent.
23631         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
23632         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
23633         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
23634         always remove CLK_TCK definition.
23635
23636 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
23637
23638         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
23639
23640 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
23641
23642         * conform/run-conformtest.sh: New file.
23643         * conform/Makefile: Run run-conformtest for tests.
23644         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
23645         support.
23646
23647         * conform/data/uchar.h-data: New file.
23648         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
23649         * conform/data/arpa/inet.h-data: Likewise.
23650         * conform/data/assert.h-data: Likewise.
23651         * conform/data/complex.h-data: Likewise.
23652         * conform/data/cpio.h-data: Likewise.
23653         * conform/data/ctype.h-data: Likewise.
23654         * conform/data/dirent.h-data: Likewise.
23655         * conform/data/dlfcn.h-data: Likewise.
23656         * conform/data/errno.h-data: Likewise.
23657         * conform/data/fcntl.h-data: Likewise.
23658         * conform/data/float.h-data: Likewise.
23659         * conform/data/fmtmsg.h-data: Likewise.
23660         * conform/data/fnmatch.h-data: Likewise.
23661         * conform/data/ftw.h-data: Likewise.
23662         * conform/data/glob.h-data: Likewise.
23663         * conform/data/grp.h-data: Likewise.
23664         * conform/data/iconv.h-data: Likewise.
23665         * conform/data/inttypes.h-data: Likewise.
23666         * conform/data/langinfo.h-data: Likewise.
23667         * conform/data/libgen.h-data: Likewise.
23668         * conform/data/limits.h-data: Likewise.
23669         * conform/data/locale.h-data: Likewise.
23670         * conform/data/math.h-data: Likewise.
23671         * conform/data/monetary.h-data: Likewise.
23672         * conform/data/mqueue.h-data: Likewise.
23673         * conform/data/ndbm.h-data: Likewise.
23674         * conform/data/net/if.h-data: Likewise.
23675         * conform/data/netdb.h-data: Likewise.
23676         * conform/data/netinet/in.h-data: Likewise.
23677         * conform/data/nl_types.h-data: Likewise.
23678         * conform/data/poll.h-data: Likewise.
23679         * conform/data/pthread.h-data: Likewise.
23680         * conform/data/pwd.h-data: Likewise.
23681         * conform/data/regex.h-data: Likewise.
23682         * conform/data/sched.h-data: Likewise.
23683         * conform/data/search.h-data: Likewise.
23684         * conform/data/semaphore.h-data: Likewise.
23685         * conform/data/setjmp.h-data: Likewise.
23686         * conform/data/signal.h-data: Likewise.
23687         * conform/data/spawn.h-data: Likewise.
23688         * conform/data/stdarg.h-data: Likewise.
23689         * conform/data/stdio.h-data: Likewise.
23690         * conform/data/stdlib.h-data: Likewise.
23691         * conform/data/string.h-data: Likewise.
23692         * conform/data/strings.h-data: Likewise.
23693         * conform/data/stropts.h-data: Likewise.
23694         * conform/data/sys/ipc.h-data: Likewise.
23695         * conform/data/sys/mman.h-data: Likewise.
23696         * conform/data/sys/msg.h-data: Likewise.
23697         * conform/data/sys/resource.h-data: Likewise.
23698         * conform/data/sys/select.h-data: Likewise.
23699         * conform/data/sys/sem.h-data: Likewise.
23700         * conform/data/sys/shm.h-data: Likewise.
23701         * conform/data/sys/socket.h-data: Likewise.
23702         * conform/data/sys/stat.h-data: Likewise.
23703         * conform/data/sys/statvfs.h-data: Likewise.
23704         * conform/data/sys/time.h-data: Likewise.
23705         * conform/data/sys/timeb.h-data: Likewise.
23706         * conform/data/sys/times.h-data: Likewise.
23707         * conform/data/sys/types.h-data: Likewise.
23708         * conform/data/sys/uio.h-data: Likewise.
23709         * conform/data/sys/un.h-data: Likewise.
23710         * conform/data/sys/utsname.h-data: Likewise.
23711         * conform/data/sys/wait.h-data: Likewise.
23712         * conform/data/syslog.h-data: Likewise.
23713         * conform/data/tar.h-data: Likewise.
23714         * conform/data/termios.h-data: Likewise.
23715         * conform/data/utime.h-data: Likewise.
23716         * conform/data/utmpx.h-data: Likewise.
23717         * conform/data/varargs.h-data: Likewise.
23718         * conform/data/wchar.h-data: Likewise.
23719         * conform/data/wctype.h-data: Likewise.
23720         * conform/data/wordexp.h-data: Likewise.
23721
23722         * include/stropts.h: New file.
23723         * include/uchar.h: New file.
23724         * include/aio.h: Changes to allow conformtest.pl to use the headers.
23725         * include/assert.h: Likewise.
23726         * include/ctype.h: Likewise.
23727         * include/dirent.h: Likewise.
23728         * include/dlfcn.h: Likewise.
23729         * include/fcntl.h: Likewise.
23730         * include/fnmatch.h: Likewise.
23731         * include/glob.h: Likewise.
23732         * include/grp.h: Likewise.
23733         * include/libio.h: Likewise.
23734         * include/locale.h: Likewise.
23735         * include/math.h: Likewise.
23736         * include/net/if.h: Likewise.
23737         * include/netdb.h: Likewise.
23738         * include/netinet/in.h: Likewise.
23739         * include/pthread.h: Likewise.
23740         * include/pwd.h: Likewise.
23741         * include/regex.h: Likewise.
23742         * include/sched.h: Likewise.
23743         * include/search.h: Likewise.
23744         * include/setjmp.h: Likewise.
23745         * include/signal.h: Likewise.
23746         * include/stdio.h: Likewise.
23747         * include/stdlib.h: Likewise.
23748         * include/string.h: Likewise.
23749         * include/sys/cdefs.h: Likewise.
23750         * include/sys/mman.h: Likewise.
23751         * include/sys/msg.h: Likewise.
23752         * include/sys/resource.h: Likewise.
23753         * include/sys/select.h: Likewise.
23754         * include/sys/socket.h: Likewise.
23755         * include/sys/stat.h: Likewise.
23756         * include/sys/statvfs.h: Likewise.
23757         * include/sys/time.h: Likewise.
23758         * include/sys/times.h: Likewise.
23759         * include/sys/uio.h: Likewise.
23760         * include/sys/utsname.h: Likewise.
23761         * include/sys/wait.h: Likewise.
23762         * include/termios.h: Likewise.
23763         * include/time.h: Likewise.
23764         * include/ulimit.h: Likewise.
23765         * include/unistd.h: Likewise.
23766         * include/utime.h: Likewise.
23767         * include/wchar.h: Likewise.
23768         * include/wctype.h: Likewise.
23769         * include/wordexp.h: Likewise.
23770
23771         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
23772
23773         * time/time.h: TIME_UTC must be a macro.
23774         Make timespec_get available for ISO C11 only as well.
23775
23776 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
23777
23778         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
23779         Reported by Peng Haitao <penght@cn.fujitsu.com>.
23780
23781 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
23782
23783         * configure.in: Use -o not -a in test for unsupported multi-arch.
23784
23785 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
23786
23787         * manual/texinfo.tex: Update to version 2012-01-19.16.
23788
23789 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
23790
23791         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
23792
23793 2012-02-24  Roland McGrath  <roland@hack.frob.com>
23794
23795         [BZ #13738]
23796         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
23797         * manual/fdl-1.3.texi: New file.
23798         * manual/fdl-1.1.texi: File removed.
23799
23800         [BZ #13738]
23801         * manual/libc.texinfo (FDL_VERSION): New @set.
23802         Use it for mention of FDL in cover text.
23803         (Documentation License): Use it in @include file name.
23804
23805 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
23806             Roland McGrath  <roland@hack.frob.com>
23807
23808         [BZ #5461]
23809         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
23810         not LONG_LONG_MAX and LONG_LONG_MIN.
23811         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
23812         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
23813         name.
23814         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
23815
23816 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
23817
23818         [BZ #2547]
23819         [BZ #11365]
23820         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
23821         manipulate bits before adding and subtracting TWO23[sx].
23822         * math/libm-test.inc (nearbyint_test): Add more tests.
23823
23824 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
23825
23826         [BZ #2548]
23827         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
23828         bits before adding and subtracting TWO23[sx].
23829         * math/libm-test.inc (rint_test): Add more tests.
23830         (rint_test_tonearest): Likewise.
23831         (rint_test_towardzero): Likewise.
23832         (rint_test_downward): Likewise.
23833         (rint_test_upward: Likewise.
23834
23835 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
23836
23837         [BZ #10110]
23838         * include/stdc-predef.h: New file.  Extracted from features.h.
23839         * include/features.h: Include stdc-predef.h.
23840         * Makefile (headers): Add stdc-predef.h.
23841         * CONFORMANCE (Compiler limitations): Update.
23842
23843 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
23844
23845         * manual/libc.texinfo (VERSION, UPDATED): Revert.
23846
23847 2012-02-21  David S. Miller  <davem@davemloft.net>
23848
23849         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
23850         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
23851
23852 2012-02-20  David S. Miller  <davem@davemloft.net>
23853
23854         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
23855         using a normal save/restore sequence, rather than allocating a
23856         dummy stack frame just to store a frame pointer and restore.
23857         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
23858
23859 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
23860
23861         * manual/install.texi: Fix stray word in line-wrapped comment.
23862
23863 2012-02-20  David S. Miller  <davem@davemloft.net>
23864
23865         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
23866         both binutils and gcc support GOTDATA.
23867
23868         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
23869         "rd %pc" in the PIC register setup sequences.
23870
23871         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
23872         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
23873         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
23874         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
23875         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
23876         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
23877         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
23878         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
23879         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
23880         (SYSCALL_ERROR_HANDLER): Likewise.
23881         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
23882         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
23883         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
23884         (SYSCALL_ERROR_HANDLER): Likewise.
23885
23886         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
23887         (HAVE_GCC_GOTDATA): New.
23888         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
23889         relocation support in both binutils and gcc.
23890         * sysdeps/sparc/elf/configure: Regenerate.
23891
23892         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
23893         * sysdeps/sparc/sparc32/elf/configure: Delete.
23894         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
23895         * sysdeps/sparc/sparc64/elf/configure: Delete.
23896         * sysdeps/sparc/elf/configure.in: New file.
23897         * sysdeps/sparc/elf/configure: Generate.
23898
23899         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
23900         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
23901         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
23902         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
23903         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
23904
23905 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
23906
23907         * manual/install.texi: Do not mention specific glibc version
23908         numbers.
23909         * manual/libc.texinfo (VERSION, UPDATED): Update.
23910         (@copying): Use @copyright{} and range of years.
23911
23912 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
23913
23914         [BZ #13695]
23915         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
23916         [crti.S not in sysdirs] (generated): Do not append.
23917         [crti.S not in sysdirs] (omit-deps): Likewise.
23918         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
23919         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
23920         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
23921         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
23922         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
23923         Likewise.
23924         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
23925         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
23926         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
23927         * csu/defs.awk: Remove file.
23928         * sysdeps/generic/initfini.c: Likewise.
23929         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
23930         variable.
23931         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
23932         Likewise.
23933
23934 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
23935
23936         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
23937         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
23938         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
23939         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
23940         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
23941         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
23942         <bits/epoll.h>.
23943         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
23944         (__EPOLL_PACKED): Define to empty if not defined by
23945         <bits/epoll.h>.
23946         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
23947         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23948         bits/epoll.h.
23949
23950 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
23951
23952         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
23953         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
23954         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
23955         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
23956         <bits/timerfd.h>.
23957         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
23958         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
23959         bits/timerfd.h.
23960
23961 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
23962
23963         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
23964         in C locale.
23965         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
23966         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
23967         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
23968         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23969
23970 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
23971
23972         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
23973         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
23974
23975 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
23976
23977         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
23978         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
23979         defined.
23980         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
23981         Likewise.
23982         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
23983         entry for 2.16.
23984
23985 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
23986
23987         * math/w_acos.c: Use non-signaling floating-point comparisons.
23988         * math/w_acosf.c: Likewise.
23989         * math/w_acosh.c: Likewise.
23990         * math/w_acoshf.c: Likewise.
23991         * math/w_acoshl.c: Likewise.
23992         * math/w_acosl.c: Likewise.
23993         * math/w_asin.c: Likewise.
23994         * math/w_asinf.c: Likewise.
23995         * math/w_asinl.c: Likewise.
23996         * math/w_atanh.c: Likewise.
23997         * math/w_atanhf.c: Likewise.
23998         * math/w_atanhl.c: Likewise.
23999         * math/w_exp2.c: Likewise.
24000         * math/w_exp2f.c: Likewise.
24001         * math/w_exp2l.c: Likewise.
24002         * math/w_j0.c: Likewise.
24003         * math/w_j0f.c: Likewise.
24004         * math/w_j0l.c: Likewise.
24005         * math/w_j1.c: Likewise.
24006         * math/w_j1f.c: Likewise.
24007         * math/w_j1l.c: Likewise.
24008         * math/w_jn.c: Likewise.
24009         * math/w_jnf.c: Likewise.
24010         * math/w_log.c: Likewise.
24011         * math/w_log10.c: Likewise.
24012         * math/w_log10f.c: Likewise.
24013         * math/w_log10l.c: Likewise.
24014         * math/w_log2.c: Likewise.
24015         * math/w_log2f.c: Likewise.
24016         * math/w_log2l.c: Likewise.
24017         * math/w_logf.c: Likewise.
24018         * math/w_logl.c: Likewise.
24019         * math/w_sqrt.c: Likewise.
24020         * math/w_sqrtf.c: Likewise.
24021         * math/w_sqrtl.c: Likewise.
24022         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
24023         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
24024         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
24025         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
24026         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
24027
24028 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
24029
24030         [BZ #9739]
24031         * manual/string.texi (strnlen): Use correct parameter name in
24032         equivalent expression.
24033
24034 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
24035
24036         [BZ #11174]
24037         * manual/users.texi (seteuid): Consistently use neweuid for
24038         argument name.
24039
24040 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
24041
24042         [BZ #13704]
24043         * manual/nss.texi (Services in the NSS configuration): Correct
24044         list of services in example configuration file.
24045
24046 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
24047
24048         [BZ #11322]
24049         * manual/arith.texi: Remove statements about negative zero
24050         behaving identically to zero.
24051
24052 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
24053
24054         [BZ #5993]
24055         * manual/install.texi: Do not document upgrading from libc5.
24056
24057 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
24058
24059         [BZ #4596]
24060         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
24061
24062 2012-02-18  David S. Miller  <davem@davemloft.net>
24063
24064         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
24065         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
24066         %o7 across the call.
24067         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
24068         instead.
24069         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
24070         SETUP_PIC_REG_LEAF.
24071         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
24072         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
24073         * sysdeps/sparc/crtn.S: Likewise.
24074
24075 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
24076
24077         * aout/Makefile: Remove.
24078
24079 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
24080
24081         [BZ #13058]
24082         * manual/examples/argp-ex1.c (main): Format definition in GNU
24083         style.
24084         * manual/examples/argp-ex2.c (main): Likewise.
24085         * manual/examples/argp-ex3.c (main): Likewise.
24086         * manual/examples/argp-ex4.c (main): Likewise.
24087         * manual/examples/longopt.c (main): Use new-style prototype
24088         definition.
24089         * manual/examples/strncat.c (main): Specify return type and use
24090         (void) for arguments.
24091         * manual/examples/subopt.c (main): Use char **argv argument.
24092
24093 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
24094
24095         [BZ #5077]
24096         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
24097         rounding modes.
24098
24099 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
24100
24101         [BZ #6907]
24102         * manual/string.texi (strchr): Change when strchrnul is
24103         recommended.
24104
24105 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
24106
24107         [BZ #174]
24108         * manual/locale.texi (setlocale): Document LOCPATH.
24109
24110 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
24111
24112         [BZ #10210]
24113         * manual/process.texi (execle): Move @dots{} before last argument.
24114
24115 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
24116
24117         [BZ #12047]
24118         * manual/charset.texi (Generic Charset Conversion): Fix typo
24119         (LC_TYPE -> LC_CTYPE).
24120
24121 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
24122
24123         [BZ #5805]
24124         * manual/arith.texi (scalbn): Use @var{} on parameter names.
24125         (scalbnf): Likewise.
24126         (scalbnl): Likewise.
24127         (scalbln): Likewise.
24128         (scalblnf): Likewise.
24129         (scalblnl): Likewise.
24130         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
24131         (vwarnx): Likewise.
24132         (verr): Likewise.
24133         (verrx): Likewise.
24134         * manual/filesys.texi (telldir): Use braces around return type.
24135         * manual/llio.texi (mmap): Add space after comma.
24136         (mmap64): Likewise.
24137         * manual/math.texi (jn): Use @var{} on parameter names.
24138         (jnf): Likewise.
24139         (jnl): Likewise.
24140         (yn): Likewise.
24141         (ynf): Likewise.
24142         (ynl): Likewise.
24143         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
24144         line.
24145         * manual/resource.texi (ulimit): Use @dots{} instead of literal
24146         "...".
24147         (sched_get_priority_min): Remove semicolon on @deftypefun line.
24148         (sched_get_priority_max): Likewise.
24149         * manual/signal.texi (sigvec): Add space after comma.
24150         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
24151         names.
24152         (if_indextoname): Likewise.
24153         (if_freenameindex): Likewise.
24154         (sendto): Use ',' instead of '.' in prototype.
24155         * manual/startup.texi (syscall): Use @dots{} instead of literal
24156         "...".
24157         * manual/stdio.texi (__fpending): Separate initial words of
24158         paragraph from @deftypefun line.
24159         * manual/syslog.texi (syslog): Use @dots{} instead of literal
24160         "...".
24161         (vsyslog): Use @var{} on parameter names.
24162         * manual/terminal.texi (stty): Use @var{} on parameter names.
24163         * manual/users.texi (getutmp): Use @var{} on parameter names.
24164         (getutmpx): Likewise.
24165
24166 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
24167
24168         [BZ #6884]
24169         * manual/stdio.texi (fopen): Fix typos in description of
24170         ",ccs=STRING".
24171
24172 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
24173
24174         [BZ #4026]
24175         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
24176         get clock_id definition.
24177
24178 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
24179
24180         [BZ #4822]
24181         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
24182         (madvise): Cast every argument to void on its own.
24183
24184 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
24185
24186         [BZ #9902]
24187         * manual/startup.texi (Exit Status): Fix typo.
24188
24189 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
24190
24191         [BZ #10140]
24192         * manual/examples/argp-ex1.c: Include <stdlib.h>.
24193         * manual/examples/argp-ex2.c: Likewise.
24194         * manual/examples/argp-ex3.c: Likewise.
24195
24196 2012-02-16  Richard Henderson  <rth@redhat.com>
24197
24198         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
24199         * sysdeps/s390/s390-32/initfini.c: Remove.
24200         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
24201         * sysdeps/s390/s390-64/initfini.c: Remove.
24202
24203 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
24204
24205         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
24206         compiler output for sysdeps/generic/initfini.c.
24207         * sysdeps/sh/elf/initfini.c: Remove file.
24208
24209 2012-02-16  David S. Miller  <davem@davemloft.net>
24210
24211         [BZ #11494]
24212         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
24213
24214         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
24215         * sysdeps/sparc/crti.S: New file.
24216         * sysdeps/sparc/crtn.S: New file.
24217         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
24218         * sysdeps/sparc/sparc64/Makefile: Likewise.
24219
24220 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
24221
24222         [BZ #3335]
24223         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
24224
24225 2012-02-15  Roland McGrath  <roland@hack.frob.com>
24226
24227         [BZ #4822]
24228         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
24229
24230         * mach/devstream.c (cookie_io_functions_t): Macro removed.
24231         (write, read, close): Likewise.
24232         Patch by Aurelien Jarno <aurelien@aurel32.net>.
24233
24234 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
24235
24236         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
24237         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
24238         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
24239         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
24240         <bits/signalfd.h>.
24241         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
24242         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24243         bits/signalfd.h.
24244
24245 2012-02-14  Marek Polacek  <polacek@redhat.com>
24246
24247         * sysdeps/x86_64/crti.S: New file.
24248         * sysdeps/x86_64/crtn.S: New file.
24249         * sysdeps/x86_64/elf/initfini.c: Remove file.
24250
24251 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
24252
24253         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
24254         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
24255         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
24256         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
24257         <bits/inotify.h>.
24258         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
24259         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24260         bits/inotify.h.
24261
24262 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
24263
24264         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
24265         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
24266         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
24267         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
24268         <bits/eventfd.h>.
24269         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
24270         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
24271         bits/eventfd.h.
24272
24273 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
24274
24275         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
24276         __feraiseexcept instead of feraiseexcept.
24277
24278         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
24279         nanosleep invocations.
24280         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
24281         strings, and add error checking for a nanosleep invocations.
24282
24283 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
24284
24285         Replace FSF snail mail address with URLs, as per GNU coding standards.
24286         Most of the snail mail addresses were wrong anyway, and omitting
24287         them makes the source code easier to maintain.  Almost all of the
24288         changes are to license notices and to locale LC_IDENTIFICATION
24289         addresses, except for this one:
24290         * manual/libc.texinfo: In "Published by", give the FSF's URL,
24291         not its snail mail address.
24292
24293 2012-02-09  Richard Henderson  <rth@twiddle.net>
24294
24295         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
24296         of kernel-features.h.
24297
24298         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
24299
24300 2012-02-08  Marek Polacek  <polacek@redhat.com>
24301
24302         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
24303         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
24304         * sysdeps/gnu/_G_config.h: Likewise.
24305         * sysdeps/generic/_G_config.h: Likewise.
24306
24307 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
24308
24309         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
24310         tests.
24311         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24312
24313         * sysdeps/powerpc/powerpc32/crti.S: New file.
24314         * sysdeps/powerpc/powerpc32/crtn.S: New file.
24315         * sysdeps/powerpc/powerpc64/crti.S: New file.
24316         * sysdeps/powerpc/powerpc64/crtn.S: New file.
24317
24318         * Makeconfig (have-initfini): Don't set.
24319         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
24320         * configure.in (nopic_initfini): Don't substitute.
24321         * config.h.in (HAVE_INITFINI): Don't #undef.
24322         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
24323         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
24324
24325 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
24326
24327         Support crti.S and crtn.S provided directly by architectures.
24328         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
24329         [crti.S in sysdirs] (omit-deps): Likewise.
24330         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
24331         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
24332         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
24333         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
24334         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
24335         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
24336         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
24337         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
24338         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
24339         compiler output for sysdeps/generic/initfini.c.
24340         * sysdeps/i386/elf/Makefile: Remove file.
24341         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
24342
24343 2012-02-07  Marek Polacek  <polacek@redhat.com>
24344
24345         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
24346         * sysdeps/gnu/_G_config.h: Likewise.
24347         * sysdeps/mach/hurd/_G_config.h: Likewise.
24348
24349 2012-02-07  Marek Polacek  <polacek@redhat.com>
24350
24351         * math/Makefile (tests): Add tst-CMPLX2.
24352         * math/tst-CMPLX2.c: New file.
24353
24354 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
24355
24356         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
24357
24358         * math/libm-test.inc (jn_test): Add missing L suffix.
24359
24360 2012-02-06  Marek Polacek  <polacek@redhat.com>
24361
24362         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
24363         * sysdeps/i386/fpu/e_powf.S: Likewise.
24364         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
24365         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
24366         * sysdeps/i386/fpu/e_acosh.S: Likewise.
24367         * sysdeps/i386/fpu/e_pow.S: Likewise.
24368         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
24369         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
24370         * sysdeps/i386/fpu/s_expm1.S: Likewise.
24371         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
24372         * sysdeps/i386/fpu/e_log2.S: Likewise.
24373         * sysdeps/i386/fpu/e_log2l.S: Likewise.
24374         * sysdeps/i386/fpu/e_scalb.S: Likewise.
24375         * sysdeps/i386/fpu/e_powl.S: Likewise.
24376         * sysdeps/i386/fpu/s_log1p.S: Likewise.
24377         * sysdeps/i386/fpu/e_log10f.S: Likewise.
24378         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
24379         * sysdeps/i386/fpu/e_logl.S: Likewise.
24380         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
24381         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
24382         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
24383         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
24384         * sysdeps/i386/fpu/e_log2f.S: Likewise.
24385         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
24386         * sysdeps/i386/fpu/e_log.S: Likewise.
24387         * sysdeps/i386/fpu/s_cexp.S: Likewise.
24388         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
24389         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
24390         * sysdeps/i386/fpu/e_logf.S: Likewise.
24391         * sysdeps/i386/fpu/e_log10l.S: Likewise.
24392         * sysdeps/i386/fpu/e_atanh.S: Likewise.
24393         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
24394         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
24395         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
24396         * sysdeps/i386/fpu/e_log10.S: Likewise.
24397         * sysdeps/i386/fpu/s_frexp.S: Likewise.
24398         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
24399         * sysdeps/i386/fpu/s_asinh.S: Likewise.
24400         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
24401         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
24402         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
24403         * sysdeps/i386/asm-syntax.h: Likewise.
24404         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
24405         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
24406         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
24407         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
24408         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
24409         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
24410         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
24411         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
24412         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
24413         * sysdeps/powerpc/sysdep.h: Likewise.
24414         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
24415         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
24416
24417 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
24418
24419         [BZ #411]
24420         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
24421
24422 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
24423
24424         * sysdeps/i386/sysdep.h: Include <features.h>.
24425         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
24426         version.
24427
24428 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
24429
24430         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
24431         Define.
24432         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
24433         LOAD_PIC_REG_STR.
24434
24435 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
24436
24437         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
24438         (SETUP_PIC_REG): Use GET_PC_THUNK.
24439         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
24440         macro.
24441
24442 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
24443
24444         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
24445         for non-PIC compilation.
24446         (SETUP_PIC_REG): Add .p2align directive.
24447         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
24448         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
24449         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
24450         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
24451         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
24452         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
24453         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
24454         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
24455         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
24456         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
24457         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
24458         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
24459         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
24460         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
24461         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
24462         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
24463         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
24464         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
24465         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
24466         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
24467         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
24468         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
24469         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
24470         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
24471         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
24472         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
24473         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
24474         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
24475         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
24476         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
24477         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
24478         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
24479         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
24480         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
24481         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
24482         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
24483         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
24484         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
24485         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
24486         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
24487         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
24488
24489 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
24490
24491         * math/tst-CMPLX.c: Include <stdio.h>.
24492
24493 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
24494
24495         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
24496         float.
24497         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
24498         * sysdeps/sparc/bits/mathdef.h: Likewise.
24499
24500 2012-01-31  Marek Polacek  <polacek@redhat.com>
24501
24502         * libio/libio.h: Don't define _PARAMS.
24503         * locale/programs/config.h: Don't define PARAMS.
24504         * stdlib/strtol_l.c: Likewise.
24505         (__strtol_l): Remove PARAMS from the prototype.
24506
24507 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
24508
24509         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
24510         names.  Just use the correct names.  Remove unnecessary wrapper
24511         functions.
24512         * malloc/arena.c: Likewise.
24513         * malloc/hooks.c: Likewise.
24514
24515         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
24516         ARENA_TEST says not to.  Simplify test for creation of a new arena.
24517         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
24518
24519 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
24520
24521         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
24522         into tail calls.
24523         (update_get_addr): New function.
24524         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
24525         GET_ADDR_MODULE parameter.
24526
24527 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
24528
24529         * crypt/cert.c: Remove __STDC__ conditionals.
24530         * crypt/crypt-entry.c: Likewise.
24531         * crypt/crypt_util.c: Likewise.
24532         * libio/filedoalloc.c: Likewise.
24533         * libio/fileops.c: Likewise.
24534         * libio/genops.c: Likewise.
24535         * libio/iofclose.c: Likewise.
24536         * libio/iofdopen.c: Likewise.
24537         * libio/iofopen.c: Likewise.
24538         * libio/iofopen64.c: Likewise.
24539         * libio/iogetdelim.c: Likewise.
24540         * libio/iopopen.c: Likewise.
24541         * libio/obprintf.c: Likewise.
24542         * libio/oldfileops.c: Likewise.
24543         * libio/oldiofclose.c: Likewise.
24544         * libio/oldiofdopen.c: Likewise.
24545         * libio/oldiofopen.c: Likewise.
24546         * libio/oldiopopen.c: Likewise.
24547         * libio/wfiledoalloc.c: Likewise.
24548         * libio/wgenops.c: Likewise.
24549         * locale/programs/xmalloc.c: Likewise.
24550         * misc/syslog.c: Likewise.
24551         * stdio-common/xbug.c: Likewise.
24552         * string/memchr.c: Likewise.
24553         * string/memcmp.c: Likewise.
24554         * string/memrchr.c: Likewise.
24555         * string/rawmemchr.c: Likewise.
24556         * sysdeps/posix/getcwd.c: Likewise.
24557         * time/strftime_l.c: Likewise.
24558
24559 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
24560
24561         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
24562         * config.make.in (config-cflags-sse2avx): Define.
24563         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
24564         Fix typo.
24565
24566 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
24567
24568         * scripts/config.guess: Update from upstream config git repository.
24569         * scripts/config.sub: Likewise.
24570
24571 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
24572
24573         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
24574         (EM_NUM): Update.
24575         (R_TILEPRO_*, R_TILEGX_*): New macros.
24576
24577         * scripts/firstversions.awk: Fix bug in version range handling.
24578
24579         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
24580
24581         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
24582
24583         * include/sys/epoll.h: New file.
24584         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
24585         libc_hidden_def.
24586
24587 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
24588
24589         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
24590         Avoid unnecessary __WORDSIZE == 64 test.
24591         (fmaxf): Use VEX format if possible.
24592         (fmax): Likewise.
24593         (fminf): Likewise.
24594         (fmin): Likewise.
24595
24596         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
24597         * math/math_private.h: Remove libc_fegetround* and
24598         libc_fesetround*.
24599         * sysdeps/i386/configure.in: Check for -msse2avx.
24600         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
24601         also if SSE2AVX is defined.
24602         Remove libc_fegetround* and libc_fesetround*.
24603         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
24604         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
24605         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
24606         of HAS_YMM_USABLE.
24607         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
24608         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
24609         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
24610         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
24611         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
24612
24613         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
24614
24615 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
24616
24617         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
24618         size is not set.
24619         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
24620
24621 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
24622
24623         [BZ #13618]
24624         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
24625         relocation.
24626         * Makeconfig (libm): Define.
24627         * elf/Makefile: Add rules to build and run tst-relsort1.
24628         * elf/tst-relsort1.c: New file.
24629         * elf/tst-relsort1mod1.c: New file.
24630         * elf/tst-relsort1mod2.c: New file.
24631
24632 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
24633
24634         * math/s_ldexp.c: Remove __STDC__ conditionals.
24635         * math/s_ldexpf.c: Likewise.
24636         * math/s_ldexpl.c: Likewise.
24637         * math/s_nextafter.c: Likewise.
24638         * math/s_nexttowardf.c: Likewise.
24639         * math/s_significand.c: Likewise.
24640         * math/s_significandf.c: Likewise.
24641         * math/s_significandl.c: Likewise.
24642         * math/w_jnl.c: Likewise.
24643         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
24644         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
24645         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
24646         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
24647         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
24648         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
24649         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
24650         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
24651         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
24652         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
24653         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
24654         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
24655         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
24656         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
24657         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
24658         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
24659         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
24660         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
24661         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
24662         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
24663         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
24664         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
24665         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
24666         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
24667         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
24668         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
24669         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
24670         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
24671         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
24672         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
24673         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
24674         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
24675         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
24676         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
24677         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
24678         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
24679         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
24680         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
24681         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
24682         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
24683         * sysdeps/ieee754/k_standard.c: Likewise.
24684         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
24685         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
24686         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
24687         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
24688         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
24689         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
24690         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
24691         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
24692         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
24693         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
24694         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
24695         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
24696         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
24697         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
24698         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
24699         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
24700         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
24701         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
24702         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
24703         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
24704         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
24705         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
24706         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
24707         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
24708         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
24709         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
24710         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
24711         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
24712         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
24713         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
24714         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
24715         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
24716         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
24717         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
24718         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
24719         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
24720         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
24721         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
24722         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
24723         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
24724         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
24725         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
24726         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
24727         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
24728         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
24729         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
24730         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
24731         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
24732         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
24733         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
24734         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
24735         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
24736         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
24737         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
24738         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
24739         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
24740         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
24741         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
24742         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
24743         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
24744         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
24745         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
24746         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
24747         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
24748         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
24749         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
24750         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
24751         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
24752         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
24753         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
24754         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
24755         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
24756         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
24757         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
24758         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
24759         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
24760         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
24761         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
24762         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
24763         * sysdeps/ieee754/s_matherr.c: Likewise.
24764         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
24765         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
24766         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
24767         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
24768
24769 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
24770
24771         * crypt/md5.h: Remove __STDC__ conditionals.
24772         * libio/libioP.h: Likewise.
24773         * locale/programs/config.h: Likewise.
24774         * sysdeps/generic/sysdep.h: Likewise.
24775         * sysdeps/i386/asm-syntax.h: Likewise.
24776         * sysdeps/s390/asm-syntax.h: Likewise.
24777         * sysdeps/unix/sysdep.h: Likewise.
24778         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
24779         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
24780
24781 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
24782
24783         * libio/libio.h: Remove __STDC__ conditionals.
24784         * malloc/obstack.h: Likewise.
24785         * math/complex.h: Likewise.
24786         * math/math.h: Likewise.
24787         * sysdeps/generic/_G_config.h: Likewise.
24788         * sysdeps/gnu/_G_config.h: Likewise.
24789         * sysdeps/mach/hurd/_G_config.h: Likewise.
24790         * sysdeps/powerpc/bits/mathdef.h: Likewise.
24791         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
24792         * sysdeps/sparc/bits/mathdef.h: Likewise.
24793
24794 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
24795
24796         [BZ #13583]
24797         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
24798         Clean up HAS_* macros.
24799         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
24800         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
24801         possible.
24802         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
24803         HAS_AVX.
24804         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
24805         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
24806         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
24807         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
24808         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
24809
24810 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
24811
24812         * elf/tst-unique3.cc (gets): Remove declaration.
24813         * elf/tst-unique3lib.cc (gets): Likewise.
24814         * elf/tst-unique3lib2.cc (gets): Likewise.
24815         * elf/tst-unique4.cc (gets): Likewise.
24816
24817 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
24818
24819         * include/stdio.h: Add C++ protection.  Add gets declarations and
24820         definitions.
24821         * debug/tst-chk1.c: Don't declare gets here.
24822         * stdio-common/tst-gets.c: Likewise.
24823
24824 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
24825
24826         * posix/glob: Remove directory.
24827
24828 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
24829
24830         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
24831
24832 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
24833
24834         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
24835         of the non-standard EPFNOSUPPORT.
24836
24837 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
24838
24839         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
24840         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
24841         ANYWHERE set to 1 only on KERN_NO_SPACE error.
24842
24843 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
24844
24845         * wcsmbs/uchar.h: Test __STDC_VERSION__.
24846
24847 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
24848
24849         * nscd/aicache.c (addhstaiX): Do not cache negative results of
24850         transient errors.
24851         * nscd/grpcache.c (cache_addgr): Likewise.
24852         * nscd/hstcache.c (cache_addhst): Likewise.
24853         * nscd/initgrcache.c (addinitgroupsX): Likewise.
24854         * nscd/pwdcache.c (cache_addpw): Likewise.
24855         * nscd/servicescache.c (cache_addserv): Likewise.
24856
24857 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
24858
24859         * malloc/malloc.c: Various cleanups.
24860         * malloc/hooks.c: Likewise.
24861
24862         * stdlib/Makefile (tests): Add bug-fmtmsg1.
24863         * stdlib/bug-fmtmsg1.c: New file.
24864
24865         * stdlib/fmtmsg.c (init): Add missing unlock.
24866         Patch by Peng Haitao <penght@cn.fujitsu.com>.
24867
24868 2012-01-12  Marek Polacek  <polacek@redhat.com>
24869
24870         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
24871         and _GNU_SOURCE.
24872
24873 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
24874
24875         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
24876         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
24877         macro to ensure uniqueness of label name.
24878         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
24879         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
24880
24881 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
24882
24883         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
24884
24885         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
24886         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
24887         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
24888         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
24889
24890 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
24891
24892         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
24893
24894         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
24895         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
24896         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
24897
24898         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
24899
24900         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
24901         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
24902         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
24903         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
24904
24905         * math/bits/math-finite.h: Add ldexp support.
24906
24907 2012-01-10  Marek Polacek  <polacek@redhat.com>
24908
24909         * locale/programs/localedef.h (show_archive_content): Add noreturn
24910         attribute.
24911
24912 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
24913
24914         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
24915
24916 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
24917
24918         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
24919
24920         * io/Makefile (headers): Add bits/poll2.h.
24921
24922 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
24923
24924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
24925         typo #include statement.
24926
24927 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
24928
24929         * include/sys/cdefs.h: Define __attribute_alloc_size.
24930         * catgets/gencat.c: Add alloc_size attribute and apply consistently
24931         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
24932         * elf/pldd.c: Likewise.
24933         * iconv/iconv_charmap.c: Likewise.
24934         * iconv/iconvconfig.c: Likewise.
24935         * iconv/strtab.c: Likewise.
24936         * locale/programs/locale.c: Likewise.
24937         * locale/programs/localedef.h: Likewise.
24938         * locale/programs/simple-hash.c: Likewise.
24939         * nscd/nscd.h: Likewise.
24940         * nss/makedb.c: Likewise.
24941         * sysdeps/generic/ldconfig.h: Likewise.
24942         * locale/programs/localedef.c: Remove xmalloc prototype.
24943         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
24944
24945 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
24946
24947         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
24948         appropriate.
24949
24950 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
24951
24952         * math/Makefile (tests): Add tst-CMPLX.
24953         * math/tst-CMPLX.c: New file.
24954
24955         * math/complex.h (CMPLXL): Fix typo.
24956
24957         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
24958         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
24959         GLIBC_2.16.
24960         * debug/tst-chk1.c: Add poll and ppoll tests.
24961         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
24962         * include/sys/poll.h: Add hidden proto for ppoll.
24963         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
24964         * sysdeps/mach/hurd/ppoll.c: Likewise.
24965         * io/ppoll.c: Likewise.
24966         * debug/poll_chk.c: New file.
24967         * debug/ppoll_chk.c: New file.
24968         * include/bits/poll2.h: New file.
24969         * io/bits/poll2.h: New file.
24970
24971         [BZ #1350]
24972         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
24973
24974         * configure.in: static is always set to yes.  Remove.
24975         * config.make.in: Don't set build-static.
24976         * Makeconfig: Remove use of build-static.
24977         * dlfcn/Makefile: Likewise.
24978         * elf/Makefile: Likewise.
24979         * math/Makefile: Likewise.
24980         * misc/Makefile: Likewise.
24981         * nptl/Makefile: Likewise.
24982         * sysdeps/mach/hurd/Makefile: Likewise.
24983
24984         * configure.in: PWD_P is not used anymore.
24985         * config.make.in: Remove PWD_P entry.
24986
24987         * configure.in: Remove last remnants of RANLIB.
24988         No need to check for signed size_t anymore.
24989         Don't set libc_commonpagesize and libc_relro_required here for Alpha
24990         and IA-64.
24991         Remove __builtin_expect test because we require at least gcc 3.4.
24992         * aclocal.m4: Likewise.
24993
24994         * wcsmbs/mbrtoc16.c: Implement using towc function.
24995         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
24996         * wcsmbs/wcsmbsload.c: Likewise.
24997         * iconv/gconv_simple.c: Likewise.
24998         * iconv/gconv_int.h: Likewise.
24999         * iconv/gconv_builtin.h: Likewise.
25000         * iconv/iconv_prog.c: Remove CHAR16 handling.
25001
25002         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
25003
25004         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
25005
25006         * configure.in: Remove --with-elf and --enable-bounded options.
25007         Dont set base_machine for ia64.  More non-ELF conditions removed.
25008         Remove testing and setting of leading underscore information.
25009         * config.make.in (build-bounded): Set to no.
25010         * config.h.in: Remove NO_UNDERSCORES entry.
25011         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
25012         them.
25013         * csu/start.c: Remove !NO_UNDERSCORE code.
25014         * locale/localeinfo.h: Likewise.
25015         * sysdeps/generic/machine-gmon.h: Likewise.
25016         * sysdeps/generic/sysdep.h: Likewise.
25017         * sysdeps/i386/sysdep.h: Likewise.
25018         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
25019         * sysdeps/mach/sysdep.h: Likewise.
25020         * sysdeps/s390/s390-32/sysdep.h: Likewise.
25021         * sysdeps/s390/s390-64/sysdep.h: Likewise.
25022         * sysdeps/sh/sysdep.h: Likewise.
25023         * sysdeps/sparc/sparc32/alloca.S: Likewise.
25024         * sysdeps/unix/i386/sysdep.S: Likewise.
25025         * sysdeps/unix/sparc/start.c: Likewise.
25026         * sysdeps/unix/sparc/sysdep.S: Likewise.
25027         * sysdeps/unix/sparc/sysdep.h: Likewise.
25028         * sysdeps/unix/start.c: Likewise.
25029         * sysdeps/unix/x86_64/sysdep.S: Likewise.
25030         * sysdeps/x86_64/sysdep.h: Likewise.
25031
25032 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
25033
25034         [BZ #13553]
25035         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
25036         for non-gcc.
25037         * argp/argp-fmtstream.h: Use const instead __const.
25038         * argp/argp.h: Likewise.
25039         * assert/assert.h: Likewise.
25040         * bits/fenv.h: Likewise.
25041         * bits/sched.h: Likewise.
25042         * bits/sigset.h: Likewise.
25043         * bits/sigthread.h: Likewise.
25044         * catgets/nl_types.h: Likewise.
25045         * conform/data/pthread.h-data: Likewise.
25046         * crypt/crypt-private.h: Likewise.
25047         * crypt/crypt.h: Likewise.
25048         * crypt/crypt_util.c: Likewise.
25049         * ctype/ctype.h: Likewise.
25050         * debug/execinfo.h: Likewise.
25051         * debug/mbsnrtowcs_chk.c: Likewise.
25052         * debug/mbsrtowcs_chk.c: Likewise.
25053         * debug/wcsnrtombs_chk.c: Likewise.
25054         * debug/wcsrtombs_chk.c: Likewise.
25055         * debug/wcstombs_chk.c: Likewise.
25056         * dirent/dirent.h: Likewise.
25057         * dlfcn/dlfcn.h: Likewise.
25058         * elf/neededtest4.c: Likewise.
25059         * grp/grp.h: Likewise.
25060         * gshadow/gshadow.h: Likewise.
25061         * iconv/gconv.h: Likewise.
25062         * iconv/gconv_int.h: Likewise.
25063         * iconv/gconv_simple.c: Likewise.
25064         * iconv/iconv.h: Likewise.
25065         * iconv/loop.c: Likewise.
25066         * iconv/skeleton.c: Likewise.
25067         * include/aio.h: Likewise.
25068         * include/aliases.h: Likewise.
25069         * include/argz.h: Likewise.
25070         * include/arpa/inet.h: Likewise.
25071         * include/assert.h: Likewise.
25072         * include/dirent.h: Likewise.
25073         * include/dlfcn.h: Likewise.
25074         * include/execinfo.h: Likewise.
25075         * include/fcntl.h: Likewise.
25076         * include/fenv.h: Likewise.
25077         * include/glob.h: Likewise.
25078         * include/grp.h: Likewise.
25079         * include/libintl.h: Likewise.
25080         * include/mntent.h: Likewise.
25081         * include/netdb.h: Likewise.
25082         * include/pwd.h: Likewise.
25083         * include/rpc/netdb.h: Likewise.
25084         * include/sched.h: Likewise.
25085         * include/search.h: Likewise.
25086         * include/shadow.h: Likewise.
25087         * include/signal.h: Likewise.
25088         * include/stdio.h: Likewise.
25089         * include/stdlib.h: Likewise.
25090         * include/string.h: Likewise.
25091         * include/sys/socket.h: Likewise.
25092         * include/sys/stat.h: Likewise.
25093         * include/sys/statfs.h: Likewise.
25094         * include/sys/statvfs.h: Likewise.
25095         * include/sys/syslog.h: Likewise.
25096         * include/sys/time.h: Likewise.
25097         * include/sys/uio.h: Likewise.
25098         * include/time.h: Likewise.
25099         * include/unistd.h: Likewise.
25100         * include/utmp.h: Likewise.
25101         * include/wchar.h: Likewise.
25102         * include/wctype.h: Likewise.
25103         * inet/aliases.h: Likewise.
25104         * inet/arpa/inet.h: Likewise.
25105         * inet/netinet/ether.h: Likewise.
25106         * inet/netinet/in.h: Likewise.
25107         * intl/libintl.h: Likewise.
25108         * io/bits/fcntl2.h: Likewise.
25109         * io/fcntl.h: Likewise.
25110         * io/ftw.h: Likewise.
25111         * io/sys/poll.h: Likewise.
25112         * io/sys/stat.h: Likewise.
25113         * io/sys/statfs.h: Likewise.
25114         * io/sys/statvfs.h: Likewise.
25115         * io/utime.h: Likewise.
25116         * libio/bits/stdio.h: Likewise.
25117         * libio/bits/stdio2.h: Likewise.
25118         * libio/libio.h: Likewise.
25119         * libio/libioP.h: Likewise.
25120         * libio/stdio.h: Likewise.
25121         * locale/lc-ctype.c: Likewise.
25122         * locale/locale.h: Likewise.
25123         * login/utmp.h: Likewise.
25124         * malloc/arena.c: Likewise.
25125         * malloc/malloc.c: Likewise.
25126         * malloc/malloc.h: Likewise.
25127         * malloc/mcheck.c: Likewise.
25128         * malloc/mtrace.c: Likewise.
25129         * math/bits/mathcalls.h: Likewise.
25130         * math/fenv.h: Likewise.
25131         * math/math_private.h: Likewise.
25132         * misc/bits/error.h: Likewise.
25133         * misc/bits/syslog.h: Likewise.
25134         * misc/err.h: Likewise.
25135         * misc/error.h: Likewise.
25136         * misc/fstab.h: Likewise.
25137         * misc/mntent.h: Likewise.
25138         * misc/regexp.h: Likewise.
25139         * misc/search.h: Likewise.
25140         * misc/sgtty.h: Likewise.
25141         * misc/sys/mman.h: Likewise.
25142         * misc/sys/syslog.h: Likewise.
25143         * misc/sys/uio.h: Likewise.
25144         * misc/sys/xattr.h: Likewise.
25145         * misc/ttyent.h: Likewise.
25146         * nis/rpcsvc/ypclnt.h: Likewise.
25147         * nss/nss.h: Likewise.
25148         * posix/bits/unistd.h: Likewise.
25149         * posix/fnmatch.h: Likewise.
25150         * posix/glob.h: Likewise.
25151         * posix/sched.h: Likewise.
25152         * posix/spawn.h: Likewise.
25153         * posix/sys/wait.h: Likewise.
25154         * posix/unistd.h: Likewise.
25155         * posix/wordexp.h: Likewise.
25156         * pwd/pwd.h: Likewise.
25157         * resolv/netdb.h: Likewise.
25158         * resource/sys/resource.h: Likewise.
25159         * rt/aio.h: Likewise.
25160         * rt/bits/mqueue2.h: Likewise.
25161         * rt/mqueue.h: Likewise.
25162         * shadow/shadow.h: Likewise.
25163         * signal/signal.h: Likewise.
25164         * socket/send.c: Likewise.
25165         * socket/sendto.c: Likewise.
25166         * socket/sys/socket.h: Likewise.
25167         * stdio-common/printf.h: Likewise.
25168         * stdlib/bits/stdlib.h: Likewise.
25169         * stdlib/fmtmsg.h: Likewise.
25170         * stdlib/monetary.h: Likewise.
25171         * stdlib/stdlib.h: Likewise.
25172         * stdlib/ucontext.h: Likewise.
25173         * streams/stropts.h: Likewise.
25174         * string/argz.h: Likewise.
25175         * string/bits/string2.h: Likewise.
25176         * string/string.h: Likewise.
25177         * string/strings.h: Likewise.
25178         * sunrpc/rpc/auth.h: Likewise.
25179         * sunrpc/rpc/auth_des.h: Likewise.
25180         * sunrpc/rpc/clnt.h: Likewise.
25181         * sunrpc/rpc/netdb.h: Likewise.
25182         * sunrpc/rpc/pmap_clnt.h: Likewise.
25183         * sunrpc/rpc/xdr.h: Likewise.
25184         * sysdeps/generic/inttypes.h: Likewise.
25185         * sysdeps/generic/net/if.h: Likewise.
25186         * sysdeps/generic/sys/swap.h: Likewise.
25187         * sysdeps/gnu/net/if.h: Likewise.
25188         * sysdeps/gnu/utmpx.h: Likewise.
25189         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
25190         * sysdeps/i386/i486/bits/string.h: Likewise.
25191         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
25192         * sysdeps/s390/bits/string.h: Likewise.
25193         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
25194         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
25195         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
25196         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
25197         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
25198         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
25199         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
25200         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
25201         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
25202         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
25203         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
25204         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
25205         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
25206         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
25207         * sysdeps/unix/sysv/linux/readv.c: Likewise.
25208         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
25209         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
25210         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
25211         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
25212         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
25213         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
25214         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
25215         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
25216         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
25217         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
25218         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
25219         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
25220         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
25221         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
25222         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
25223         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
25224         * sysvipc/sys/ipc.h: Likewise.
25225         * sysvipc/sys/msg.h: Likewise.
25226         * sysvipc/sys/sem.h: Likewise.
25227         * sysvipc/sys/shm.h: Likewise.
25228         * termios/termios.h: Likewise.
25229         * time/sys/time.h: Likewise.
25230         * time/time.h: Likewise.
25231         * wcsmbs/bits/wchar2.h: Likewise.
25232         * wcsmbs/uchar.h: Likewise.
25233         * wcsmbs/wchar.h: Likewise.
25234         * wctype/wctype.h: Likewise.
25235
25236         [BZ #13551]
25237         * Makeconfig: Remove all but ELF support including AIX support.
25238         * Makerules: Likewise.
25239         * config.h.in: Likewise.
25240         * config.make.in: Likewise.
25241         * configure: Likewise.
25242         * configure.in: Likewise.
25243         * csu/Makefile: Likewise.
25244         * csu/version.c: Likewise.
25245         * debug/Makefile: Likewise.
25246         * dlfcn/Makefile: Likewise.
25247         * elf/Makefile: Likewise.
25248         * extra-lib.mk: Likewise.
25249         * iconv/Makefile: Likewise.
25250         * include/libc-symbols.h: Likewise.
25251         * include/shlib-compat.h: Likewise.
25252         * resolv/Makefile: Likewise.
25253         * resolv/res_libc.c: Likewise.
25254         * rt/Makefile: Likewise.
25255         * sysdeps/i386/asm-syntax.h: Likewise.
25256         * sysdeps/i386/sysdep.h: Likewise.
25257         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
25258         * sysdeps/mach/sysdep.h: Likewise.
25259         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
25260         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
25261         * sysdeps/s390/asm-syntax.h: Likewise.
25262         * sysdeps/s390/s390-32/sysdep.h: Likewise.
25263         * sysdeps/s390/s390-64/sysdep.h: Likewise.
25264         * sysdeps/sh/sysdep.h: Likewise.
25265         * sysdeps/unix/sparc/sysdep.h: Likewise.
25266         * sysdeps/wordsize-32/divdi3.c: Likewise.
25267         * sysdeps/x86_64/sysdep.h: Likewise.
25268
25269         * argp/Versions: Remove _argp_unlock_xxx.
25270
25271         [BZ #13559]
25272         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
25273         * abilist/libBrokenLocale.abilist: Likewise.
25274         * abilist/libanl.abilist: Likewise.
25275         * abilist/libc.abilist: Likewise.
25276         * abilist/libcrypt.abilist: Likewise.
25277         * abilist/libdl.abilist: Likewise.
25278         * abilist/libm.abilist: Likewise.
25279         * abilist/libnsl.abilist: Likewise.
25280         * abilist/libpthread.abilist: Likewise.
25281         * abilist/libresolv.abilist: Likewise.
25282         * abilist/librt.abilist: Likewise.
25283         * abilist/libthread_db.abilist: Likewise.
25284         * abilist/libutil.abilist: Likewise.
25285         * abilist/libnss_db.abilist: New file.
25286
25287         * scripts/abilist.awk: Add support for indirect functions.
25288
25289         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
25290
25291         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
25292
25293         * shlib-versions: Remove entries for ports architectures.
25294
25295         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
25296         files in ports.
25297         * elf/stackguard-macros.h: Remove support for IA-64.
25298         * elf/tst-auditmod1.c: Likewise.
25299         * sysdeps/generic/ldsodefs.h: Likewise.
25300
25301         * sysdeps/unix/sysv/linux/configure.in: Ports should define
25302         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
25303         configure files.
25304
25305         [BZ #13552]
25306         * configure.in: Remove --enable-omitfp support.
25307         * FAQ.in: Adjust.
25308         * config.make.in: Likewise.
25309         * Makeconfig: Likewise.
25310         * manual/install.texi: Likewise.
25311
25312         In case anyone cares, the IA-64 architecture could move to ports.
25313         * sysdeps/ia64/*: Removed.
25314         * sysdeps/unix/sysv/linux/ia64/*: Removed.
25315         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
25316
25317         [BZ #13555]
25318         * configure.in: Remove entries for unsupported architectures.
25319
25320         [BZ #13533]
25321         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
25322         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
25323         routines.
25324         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
25325         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
25326         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
25327         fall back to using wcrtomb.
25328         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
25329         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
25330         renaming.
25331         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
25332         * wcsmbs/tst-c16c32-1.c: New file.
25333
25334         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
25335         local variable.
25336
25337         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
25338
25339         * elf/tst-unique3.cc: Add explicit declaration of gets.
25340         * elf/tst-unique3lib.cc: Likewise.
25341         * elf/tst-unique3lib2.cc: Likewise.
25342         * elf/tst-unique4.cc: Likewise.
25343
25344         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
25345
25346 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
25347
25348         [BZ #13566]
25349         * assert/assert.h (static_assert): Don't define for C++.
25350         * libio/stdio.h (gets): Do declare for C++ <= C++11.
25351         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
25352
25353 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
25354
25355         * iconv/loop.c (single loop): Fix assertion in storing of
25356         remaining bytes.
25357
25358         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
25359
25360 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
25361
25362         * posix/getconf.c: Update copyright year.
25363         * nss/getent.c: Likewise.
25364         * nss/makedb.c: Likewise.
25365         * iconv/iconvconfig.c: Likewise.
25366         * iconv/iconv_prog.c: Likewise.
25367         * elf/ldconfig.c: Likewise.
25368         * elf/pldd.c: Likewise.
25369         * elf/sotruss.ksh: Likewise.
25370         * catgets/gencat.c: Likewise.
25371         * csu/version.c: Likewise.
25372         * elf/ldd.bash.in: Likewise.
25373         * elf/sprof.c (print_version): Likewise.
25374         * locale/programs/locale.c: Likewise.
25375         * locale/programs/localedef.c: Likewise.
25376         * login/programs/pt_chown.c: Likewise.
25377         * nscd/nscd.c (print_version): Likewise.
25378         * debug/xtrace.sh: Likewise.
25379         * malloc/memusage.sh: Likewise.
25380         * malloc/mtrace.pl: Likewise.
25381         * debug/catchsegv.sh: Likewise.
25382
25383 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
25384
25385         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
25386         pure attribute.
25387
25388 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
25389
25390         [BZ #13533]
25391         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
25392         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
25393         transformations.
25394         * iconv/gconv_int.h: Likewise.
25395         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
25396         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
25397         from libc for GLIBC_2.16.
25398         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
25399         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
25400         * wcsmbs/uchar.h: Really define mbstate_t.
25401         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
25402         * wcsmbs/c16rtomb.c: New file.
25403         * wcsmbs/mbrtoc16.c: New file.
25404         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
25405         for C/POSIX locale.
25406         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
25407         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
25408
25409         * wcsmbs/wchar.h: Add missing __restrict.
25410
25411 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
25412
25413         [BZ #13532]
25414         * time/Makefile (routines): Add timespec_get.
25415         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
25416         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
25417         timespec for ISO C11.
25418         * time/timespec_get.c: New file.
25419         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
25420         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
25421
25422         [BZ #13531]
25423         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
25424         * stdlib/stdlib.h: Declare aligned_alloc.
25425         * Versions.def: Add GLIBC_2.16 for libc.
25426         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
25427
25428         [BZ 13527]
25429         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
25430         ISO C11.
25431
25432         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
25433         code.
25434
25435         [BZ #13528]
25436         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
25437
25438         [BZ #13529]
25439         * assert/assert.h (static_assert): Define.
25440
25441         * version.h: Update for 2.16 development version.
25442
25443         [BZ #13526]
25444         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
25445         _ISOC11_SOURCE.
25446
25447         * version.h (RELEASE): Bump for 2.15 release.
25448         * include/features.h (__GLIBC_MINOR__): Bump to 15.
25449
25450         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
25451         Patch by Marek Polacek <mpolacek@redhat.com>.
25452
25453         * bits/byteswap.h: Protect long long constants with __extension__.
25454         * sysdeps/i386/bits/byteswap.h: Likewise.
25455         * sysdeps/ia64/bits/byteswap.h: Likewise.
25456         * sysdeps/s390/bits/byteswap.h: Likewise.
25457         * sysdeps/x86_64/bits/byteswap.h: Likewise.
25458
25459 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25460
25461         [BZ #13540]
25462         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
25463         destination buffer.
25464         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
25465
25466 2011-12-23  Marek Polacek  <polacek@redhat.com>
25467
25468         * elf/dl-addr.c (determine_info): Add inline keyword.
25469         * elf/tst-auditmod4b.c (check_avx): Likewise.
25470         * elf/tst-auditmod6b.c (check_avx): Likewise.
25471         * elf/tst-auditmod6c.c (check_avx): Likewise.
25472         * elf/tst-auditmod7b.c (check_avx): Likewise.
25473
25474 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
25475
25476         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
25477         !__SSE_MATH__.
25478
25479 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25480
25481         [BZ #13540]
25482         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
25483         processing for last bytes.
25484
25485 2011-08-06  Bruno Haible  <bruno@clisp.org>
25486
25487         [BZ #13061]
25488         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
25489         U+0385, not to U+1FEE.
25490
25491         [BZ #13062]
25492         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
25493         entry for U+00A5 U+0301.
25494
25495 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
25496
25497         [BZ #13166]
25498         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
25499         buffer for the output is too small.
25500
25501         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
25502         optimization.
25503
25504         [BZ #13185]
25505         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
25506         SSE flags if possible.
25507
25508 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25509
25510         [BZ #13540]
25511         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
25512         processing for last bytes.
25513
25514 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
25515
25516         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
25517         (syscall-list-default-options, syscall-list-default-condition)
25518         (syscall-list-includes): Define.
25519         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
25520         list of ABIs and options and #if conditions for each ABI.  Do not
25521         handle common syscalls between ABIs specially.
25522         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
25523         Remove.
25524         (syscall-list-variants, syscall-list-32bit-options)
25525         (syscall-list-32bit-condition, syscall-list-64bit-options)
25526         (syscall-list-64bit-condition): Define.
25527         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
25528         (syscall-list-variants, syscall-list-32bit-options)
25529         (syscall-list-32bit-condition, syscall-list-64bit-options)
25530         (syscall-list-64bit-condition): Define.
25531         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
25532         Remove.
25533         (syscall-list-variants, syscall-list-32bit-options)
25534         (syscall-list-32bit-condition, syscall-list-64bit-options)
25535         (syscall-list-64bit-condition): Define.
25536         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
25537         Remove.
25538         (syscall-list-variants, syscall-list-32bit-options)
25539         (syscall-list-32bit-condition, syscall-list-64bit-options)
25540         (syscall-list-64bit-condition): Define.
25541
25542 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
25543
25544         * locale/iso-639.def: Add brx entry.
25545
25546         [BZ #13328]
25547         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
25548         Proposed by Mariusz_Cukr <marcukr@op.pl>.
25549
25550         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
25551         __feraiseexcept_renamed.
25552
25553 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
25554
25555         [BZ #13538]
25556         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
25557         EPOLLET with unsigned values.
25558         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
25559         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
25560
25561         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
25562         to large cancellation.
25563         * math/s_cacoshf.c: Likewise.
25564         * math/s_cacoshl.c: Likewise.
25565
25566 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
25567
25568         [BZ #13305]
25569         [BZ #12786]
25570         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
25571         * math/s_cacoshf.c: Likewise.
25572         * math/s_cacoshl.c: Likewise.
25573
25574 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
25575
25576         [BZ #13439]
25577         * iconv/gconv.h: Define __GCONV_SWAP.
25578         * iconvdata/unicode.c: The swap bit must be stored in __flags.
25579         * iconvdata/utf-16.c: Likewise.
25580         * iconvdata/utf-32.c: Likewise.
25581
25582 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
25583
25584         [BZ #13524]
25585         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
25586         numerator after shifting it by one limb.
25587
25588 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
25589
25590         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
25591         under [__USE_EXTERN_INLINES].
25592
25593 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
25594
25595         [BZ #13446]
25596         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
25597
25598 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25599
25600         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
25601         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
25602         optimized code.
25603         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
25604         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
25605         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
25606         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
25607         for strncasecmp/strncasecmp_l compilation.
25608         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
25609         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
25610
25611 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
25612
25613         [BZ #13484]
25614         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
25615         of __asm__.
25616
25617 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
25618
25619         [BZ #13506]
25620         * time/tzfile.c (__tzfile_read): Check values from file header.
25621
25622 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
25623
25624         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
25625         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
25626         * powerpc/powerpc32/dl-start.S: Likewise.
25627         * powerpc/powerpc32/elf/start.S: Likewise.
25628         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
25629         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
25630         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
25631         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
25632         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
25633         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
25634         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
25635         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
25636         * powerpc/powerpc32/fpu/s_round.S: Likewise.
25637         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
25638         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
25639         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
25640         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
25641         * powerpc/powerpc32/memset.S: Likewise.
25642         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
25643         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
25644         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
25645         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
25646         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
25647         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
25648         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
25649         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
25650         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
25651         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
25652         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
25653         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
25654         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
25655
25656 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25657
25658         * math/libm-test.inc: Added more nearbyint tests.
25659         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
25660         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
25661         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
25662         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
25663
25664 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
25665
25666         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
25667         FD_CLOEXEC.
25668
25669 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25670
25671         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
25672         Add wcscpy-ssse3 wcscpy-c.
25673         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
25674         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
25675         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
25676         * sysdeps/x86_64/wcschr.S: New file.
25677         * sysdeps/x86_64/wcsrchr.S: New file.
25678         * string/test-strcmp.c: Remove checking of wcscmp function for
25679         wrong alignments.
25680         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
25681         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
25682         wcsrchr-sse2 wcsrchr-c.
25683         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
25684         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
25685         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
25686         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
25687         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
25688         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
25689         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
25690         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
25691         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
25692         * wcsmbc/wcschr.c (WCSCHR): New macro.
25693
25694 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
25695
25696         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
25697         * wcsmbs/test-wcsrchr.c: New file.
25698         * string/test-strrchr.c: Add wcsrchr support.
25699         (WIDE): New macro.
25700         * wcsmbs/test-wcscpy.c: New file.
25701         * string/test-strcpy.c: Add wcscpy support.
25702         (WIDE): New macro.
25703
25704 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
25705
25706         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
25707         the inner loop.
25708
25709 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
25710
25711         [BZ #13472]
25712         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
25713
25714 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
25715
25716         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
25717         Minor optimizations.
25718
25719         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
25720         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
25721         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
25722
25723 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
25724
25725         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
25726         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
25727         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
25728         for gcc to avoid warnings.
25729         * inet/Makefile (tests): Add tst-checks.
25730         * inet/tst-checks.c: New file.
25731
25732         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
25733         warning.
25734
25735         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
25736         __wmemcmp_sse2.
25737
25738         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
25739         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
25740
25741         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
25742
25743 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
25744
25745         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
25746         problem.
25747
25748         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
25749
25750 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
25751
25752         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
25753         conditional on GCC version.
25754         (__arch_compare_and_exchange_val_8_acq)
25755         (__arch_compare_and_exchange_val_16_acq)
25756         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
25757         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
25758         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
25759
25760 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
25761
25762         * sysdeps/sh/backtrace.c: New file.
25763
25764 2011-12-02  Andreas Schwab  <schwab@redhat.com>
25765
25766         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
25767         parenthesis.
25768
25769 2011-12-01  Andreas Schwab  <schwab@redhat.com>
25770
25771         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
25772         falling back to utime.
25773
25774 2011-11-30  Andreas Schwab  <schwab@redhat.com>
25775
25776         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
25777         expectations for float.
25778
25779 2011-11-29  Andreas Schwab  <schwab@redhat.com>
25780
25781         * locale/weight.h (findidx): Add parameter len.
25782         * locale/weightwc.h (findidx): Likewise.
25783         * posix/fnmatch_loop.c (FCT): Adjust caller.
25784         * posix/regcomp.c (build_equiv_class): Likewise.
25785         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
25786         * posix/regexec.c (check_node_accept_bytes): Likewise.
25787         * string/strcoll_l.c (STRCOLL): Likewise.
25788         * string/strxfrm_l.c (STRXFRM): Likewise.
25789
25790 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
25791
25792         * Makefile.in: Remove CVSOPT handling.
25793         * configure.in: Remove use of AC_REVISION.
25794         * iconvdata/Makefile (distribute): No need to filter out CVS.
25795         * scripts/list-sources.sh: Remove CVS, subversion and monotone
25796         handling.
25797
25798 2011-11-16  Andreas Schwab  <schwab@redhat.com>
25799
25800         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
25801         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
25802         [USE_AS_STRNCASECMP_L]: Likewise.
25803         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
25804         NO_TLS_DIRECT_SEG_REFS.
25805         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
25806         Fix argument offsets for non-PIC.
25807         [USE_AS_STRNCASECMP_L]: Likewise.
25808         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
25809         NO_TLS_DIRECT_SEG_REFS.
25810
25811 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
25812
25813         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
25814         O_CLOEXEC.
25815         * locale/loadlocale.c (_nl_load_locale): Likewise.
25816
25817 2011-11-15  Andreas Schwab  <schwab@redhat.com>
25818
25819         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
25820         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
25821         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
25822         (SYSCALL_GETTIME): Set errno on error.
25823
25824         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
25825         count references to noai6ai_cached.
25826
25827 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
25828
25829         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
25830
25831         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
25832         FD_CLOEXEC for /proc/self/maps.
25833
25834         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
25835         FD_CLOEXEC for /proc/meminfo.
25836
25837         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
25838         gai.conf.
25839
25840         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
25841         FD_CLOEXEC for given file.
25842
25843         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
25844
25845         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
25846         FD_CLOEXEC for /etc/hosts.
25847         (_gethtent): Likewise.
25848
25849         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
25850
25851         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
25852         cancellation and set FD_CLOEXEC for /etc/netgroup.
25853
25854         * nss/nss_files/files-key.c (search): Don't allow cancellation when
25855         reading /etc/publickey.
25856
25857         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
25858         allow cancellation when reading /etc/group.
25859
25860         * nss/nss_files/files-alias.c (internal_setent): Don't allow
25861         cancellation.
25862         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
25863
25864         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
25865         when using data file.
25866
25867         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
25868
25869         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
25870         (write_nis_obj): Use "c" and "e" in fopen.
25871
25872         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
25873
25874         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
25875
25876         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
25877
25878         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
25879
25880         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
25881         locale.alias.
25882
25883         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
25884
25885         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
25886
25887         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
25888
25889         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
25890         file parsing and set FD_CLOEXEC.
25891
25892 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
25893
25894         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
25895
25896 2011-11-14  Andreas Schwab  <schwab@redhat.com>
25897
25898         * malloc/arena.c (arena_get2): Don't call reused_arena when
25899         _int_new_arena failed.
25900
25901 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
25902
25903         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
25904         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
25905         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
25906         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
25907         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
25908         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
25909         to compile strcasecmp and strncasecmp.
25910         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
25911         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
25912
25913         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
25914
25915 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
25916
25917         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
25918         locale-defines.sym to gen-as-const-headers.
25919         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
25920         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
25921         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
25922         to compile strcasecmp and strncasecmp.
25923         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
25924         strcasecmp_l and strncasecmp_l.
25925         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
25926         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
25927         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
25928         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
25929         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
25930         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
25931         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
25932         * sysdeps/i386/i686/multiarch/strncase.S: New file.
25933         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
25934         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
25935         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
25936
25937 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
25938
25939         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
25940         result of SYSDEP_GETTIME_CPU to retval.
25941         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
25942         parameter list to macro.  Remove trailing semicolon.  Adjust users.
25943
25944         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
25945         variable.
25946
25947         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
25948         mantissa words.
25949         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
25950
25951         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
25952         from unused variable.
25953
25954         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
25955         DWARF definitions.
25956         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
25957         for assembling.
25958
25959         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
25960         over namespaces.
25961
25962         * sunrpc/rpc_prot.c (rejected): Fix case value.
25963
25964         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
25965         unsigned long long int to avoid warnings in shift.
25966
25967         * posix/regex_internal.c (re_string_reconstruct): Actually use result
25968         of use of trans.
25969         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
25970         variable tmp.
25971
25972         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
25973         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
25974         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
25975
25976         * nis/nis_table.c (nis_list): Use variable of correct type for
25977         result of __follow_path call.
25978
25979 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
25980
25981         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
25982         of math functions ceil, trunc, floor, round, and sqrt, when
25983         avaliable on the platform.
25984         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
25985         name clash.
25986         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
25987         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
25988         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
25989
25990 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
25991
25992         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
25993         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
25994
25995 2011-11-11  Roland McGrath  <roland@hack.frob.com>
25996
25997         * include/unistd.h: Fix __readlink return type.
25998         Reported by Chris Metcalf <cmetcalf@tilera.com>.
25999
26000 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
26001
26002         * stdlib/ucontext.h: Undo last change for makecontext.
26003
26004 2011-11-11  Andreas Schwab  <schwab@redhat.com>
26005
26006         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
26007
26008         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
26009         * setjmp/setjmp.h: Mark functions as non-leaf.
26010         * setjmp/bits/setjmp2.h: Likewise.
26011         * stdlib/ucontext.h: Likewise.
26012
26013 2011-11-10  Andreas Schwab  <schwab@redhat.com>
26014
26015         * malloc/arena.c (_int_new_arena): Don't increment narenas.
26016         (reused_arena): Don't check arena limit.
26017         (arena_get2): Atomically check arena limit.
26018
26019 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
26020
26021         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
26022         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
26023
26024         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
26025         instructions.
26026
26027 2011-11-07  Andreas Schwab  <schwab@redhat.com>
26028
26029         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
26030         handler when locking.
26031
26032         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
26033         Fix size of allocated buffer.
26034
26035 2011-11-04  Andreas Schwab  <schwab@redhat.com>
26036
26037         [BZ #10103]
26038         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
26039         declarations for long double functions.
26040         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
26041
26042         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
26043
26044 2011-11-03  Andreas Schwab  <schwab@redhat.com>
26045
26046         * nscd/nscd.c (main): Don't start AVC thread until credentials are
26047         installed.
26048
26049         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
26050         is disabled.
26051
26052 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
26053
26054         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
26055
26056 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
26057
26058         * include/alloca.h (stackinfo_alloca_round): Define.
26059         (extend_alloca): Use it.
26060         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
26061         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
26062         here.
26063
26064         * scripts/check-local-headers.sh: Ignore libaudit.h.
26065
26066         * nscd/Makefile (extra-objs): Make recursively expanded.
26067
26068 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
26069
26070         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
26071         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
26072
26073         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
26074         * posix/tst-rfc3484-2.c: Likewise.
26075         * posix/tst-rfc3484-3.c: Likewise.
26076
26077         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
26078         process_vm_writev.
26079         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
26080         process_vm_writev.
26081         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
26082         process_vm_writev from libc using GLIBC_2.15 version.
26083
26084         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
26085
26086 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
26087
26088         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
26089         stack usage.
26090
26091 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
26092
26093         [BZ #13367]
26094         * nss/getent.c (initgroups_keys): Show error message in case no group
26095         names are given.
26096
26097         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
26098         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
26099         __bump_nl_timestamp.
26100         * nscd/connections (nscd_init): When host database is served open
26101         netlink socket and request notification about configuration changes.
26102         (main_loop_poll): Track netlink file descriptor and bump timestamp
26103         in case data becomes available.
26104         (main_loop_epoll): Likewise.
26105         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
26106         (database_pers_head): Add extra_data fileds.
26107         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
26108         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
26109         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
26110         Adjust caller.
26111         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
26112         in6ai data, call __free_in6ai.
26113         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
26114         Add -DHAVE_NETLINK.
26115         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
26116         interface information.  Reuse previous data if netlink timestamp
26117         is not changed.
26118         (__bump_nl_timestamp): New function.
26119         (__free_in6ai): New function.
26120
26121 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
26122
26123         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
26124         close_not_cancel_no_status here.
26125         (__check_pf): Reorganize code a bit to not call close twice if OOM.
26126
26127 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
26128
26129         [BZ #13276]
26130         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
26131         return value.
26132
26133         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
26134         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
26135         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
26136
26137 2011-07-03  Andreas Jaeger  <aj@suse.de>
26138
26139         [BZ #10709]
26140         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
26141         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
26142         * math/libm-test.inc (sin_test): Add test case.
26143
26144 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
26145
26146         [BZ #13337]
26147         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
26148         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
26149
26150         * elf/chroot_canon.c (chroot_canon): Cleanups.
26151
26152         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
26153
26154         [BZ #13335]
26155         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
26156         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
26157
26158         * string/test-strchr.c: Make usable for strchrnul testing.
26159         * string/test-strchrnul.c: New file.
26160         * string/Makefile (strop-tests): Add strchrnul.
26161
26162         * po/it.po: Update from translation team.
26163         * po/es.po: Likewise.
26164
26165 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
26166
26167         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
26168         the three constants needed as parameters.  Drop the others.
26169         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
26170         __m128i_strloadu_tolower.
26171         Create and initialize variable zero and use it in all the places
26172         where _mm_setzero_si128 was used.
26173
26174         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
26175         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
26176         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
26177         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
26178         anymore.
26179         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
26180         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
26181         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
26182         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
26183         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
26184         __mpranred, __mptan.
26185         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
26186         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
26187         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
26188         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
26189         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
26190         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
26191         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
26192         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
26193         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
26194
26195 2011-10-28  Andreas Schwab  <schwab@redhat.com>
26196
26197         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
26198         redefine if SHARED.
26199         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
26200
26201         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
26202         wide char related routines to wcsmbs subdir.
26203
26204 2011-10-27  Andreas Schwab  <schwab@redhat.com>
26205
26206         [BZ #13344]
26207         * misc/sys/cdefs.h (__THROWNL): Define.
26208         * posix/unistd.h: Use __THREADNL instead of __THREAD
26209         for memory synchronization functions.
26210
26211 2011-10-26  Roland McGrath  <roland@hack.frob.com>
26212
26213         [BZ #13349]
26214         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
26215         doesn't exist.
26216         * manual/stdio.texi (Obstack Streams): Node removed.
26217
26218 2011-10-26  Andreas Schwab  <schwab@redhat.com>
26219
26220         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
26221         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
26222         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
26223
26224         * math/math_private.h (math_force_eval): Allow non-addressable
26225         arguments.
26226         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
26227
26228 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
26229
26230         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
26231         file is not needed.
26232
26233         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
26234         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
26235         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
26236         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
26237         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
26238         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
26239         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
26240         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
26241         Add AVX variants.
26242         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
26243         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
26244         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
26245         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
26246         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
26247         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
26248         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
26249         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
26250         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
26251         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
26252         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
26253         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
26254         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
26255         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
26256         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
26257         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
26258         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
26259         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
26260         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
26261
26262         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
26263         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
26264
26265         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
26266         place.  Use VEX encoding when compiling for AVX.
26267
26268 2011-10-25  Andreas Schwab  <schwab@redhat.com>
26269
26270         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
26271         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
26272
26273         * string/test-strchr.c (do_test): Don't generate NUL bytes.
26274
26275 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
26276
26277         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
26278         useless if() expression.
26279         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
26280         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
26281         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
26282         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
26283         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
26284         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
26285         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
26286         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
26287         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
26288         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
26289         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
26290         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
26291         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
26292         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
26293         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
26294         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
26295         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
26296         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
26297         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
26298
26299         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
26300
26301 2011-10-25  Andreas Schwab  <schwab@redhat.com>
26302
26303         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
26304         condition.
26305         * elf/dl-fini.c (_dl_sort_fini): Likewise.
26306
26307 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
26308
26309         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
26310         .text section.  Avoid duplicate constants.
26311         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
26312         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
26313         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
26314         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
26315         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
26316         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
26317         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
26318         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
26319         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
26320         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
26321         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
26322         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
26323         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
26324         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
26325         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
26326         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
26327         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
26328         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
26329         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
26330         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
26331         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
26332         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
26333         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
26334         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
26335         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
26336         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
26337         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
26338         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
26339         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
26340         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
26341         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
26342         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
26343         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
26344         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
26345         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
26346         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
26347         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
26348         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
26349         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
26350         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
26351         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
26352         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
26353         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
26354         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
26355         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
26356
26357 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
26358
26359         * sysdeps/x86_64/dla.h: Move to ...
26360         * sysdeps/x86_64/fpu/dla.h: ...here.
26361         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
26362         situations.  Use __builtin_fma only for gcc 4.6 and up.
26363
26364         * config.make.in: Add have-mfma4 entry.
26365         * configure.in: Substitute libc_cv_cc_fma4.
26366         * math/Makefile (dbl-only-routines): Add sincostab.
26367         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
26368         Use __sincostab not sincos.
26369         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
26370         name is a macro.
26371         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
26372         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
26373         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
26374         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
26375         using __copysign.
26376         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
26377         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
26378         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
26379         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
26380         and __inv.
26381         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
26382         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
26383         __copysign.
26384         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
26385         define aliases when function name is a macro.
26386         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
26387         sysdeps/ieee754/dbl-64/sincos.tbl.
26388         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
26389         fma4-enabled routines.
26390         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
26391         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
26392         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
26393         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
26394         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
26395         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
26396         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
26397         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
26398         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
26399         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
26400         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
26401         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
26402         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
26403         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
26404         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
26405         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
26406         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
26407         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
26408         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
26409         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
26410         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
26411         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
26412         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
26413         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
26414         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
26415         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
26416         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
26417         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
26418         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
26419         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
26420
26421         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
26422         rename.
26423         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
26424         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
26425         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
26426         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
26427         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
26428         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
26429         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
26430         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
26431
26432 2011-10-24  Andreas Schwab  <schwab@redhat.com>
26433
26434         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
26435
26436 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
26437
26438         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
26439
26440         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
26441         prediction.
26442         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
26443
26444         * string/strnlen.c: Don't define STRNLEN, reverse logic.
26445         Remove unused variable magic_bits.
26446         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
26447
26448         * string/strnlen.c: Define and use STRNLEN macro.
26449         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
26450         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
26451         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
26452         * wcsmbs/wcslen.c: Define and use WCSLEN.
26453         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
26454         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
26455         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
26456         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
26457         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
26458         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
26459         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
26460
26461 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26462
26463         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
26464         strnlen-sse2-no-bsf.
26465         Rename strlen-no-bsf to strlen-sse2-no-bsf.
26466         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
26467         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
26468         Add strnlen support.
26469         (USE_AS_STRNLEN): New macro.
26470         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
26471         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
26472         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
26473         * sysdeps/x86_64/wcslen.S: New file.
26474
26475 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
26476
26477         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
26478         XMM-moves are used for copying on small sizes.
26479
26480 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26481
26482         * wcsmbs/Makefile (strop-tests): Add wcschr.
26483         * wcsmbs/test-wcschr.c: New file.
26484         * string/test-strchr.c: Update.
26485         Add wcschr support.
26486         (WIDE): New macro.
26487
26488 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26489
26490         * wcsmbs/Makefile (strop-tests): Add wcslen.
26491         * wcsmbs/test-wcslen.c: New file.
26492         * string/test-strlen.c: Update.
26493         Add wcslen support.
26494         (WIDE): New macro.
26495
26496 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
26497
26498         * po/it.po: Update from translation team.
26499
26500 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26501
26502         * sysdeps/x86_64/wcscmp.S: Update.
26503         Fix wrong comparison semantics.
26504         wcscmp shall use signed comparison not unsigned.
26505         Don't use substraction to avoid overflow bug.
26506         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
26507         * wcsmbc/wcscmp.c: Likewise.
26508         * string/test-strcmp.c: Likewise.
26509         Add new tests to check cases with negative values.
26510
26511 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
26512
26513         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
26514         * sysdeps/x86_64/dla.h: ...here.  New file.
26515         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
26516         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
26517         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
26518         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
26519         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
26520         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
26521         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
26522         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
26523         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
26524
26525 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
26526
26527         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
26528         __ynl_finite aliases.
26529
26530 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
26531
26532         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
26533
26534         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
26535         define DLA_FMA.
26536         [DLA_FMA] (EMULV): Use DLA_FMA.
26537         [DLA_FMA] (MUL12): Use EMULV.
26538         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
26539         that are not needed.
26540         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
26541         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
26542         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
26543         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
26544         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
26545         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
26546         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
26547
26548 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
26549
26550         * math/s_nan.c: Undef __nan.
26551         * math/s_nanf.c: Undef __nanf.
26552         * math/s_nanl.c: Undef __nanl.
26553         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
26554         "math_private.h".
26555
26556 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
26557
26558         * math/s_catan.c: Add branch predictions.
26559         * math/s_catanf.c: Likewise.
26560         * math/s_catanh.c: Likewise.
26561         * math/s_catanhf.c: Likewise.
26562         * math/s_catanhl.c: Likewise.
26563         * math/s_catanl.c: Likewise.
26564         * math/s_cexp.c: Likewise.
26565         * math/s_cexpf.c: Likewise.
26566         * math/s_cexpl.c: Likewise.
26567         * math/s_clog.c: Likewise.
26568         * math/s_clog10.c: Likewise.
26569         * math/s_clog10f.c: Likewise.
26570         * math/s_clog10l.c: Likewise.
26571         * math/s_clogf.c: Likewise.
26572         * math/s_clogl.c: Likewise.
26573         * math/s_csqrt.c: Likewise.
26574         * math/s_csqrtf.c: Likewise.
26575         * math/s_csqrtl.c: Likewise.
26576         * math/s_ctanf.c: Likewise.
26577         * math/s_ctanh.c: Likewise.
26578         * math/s_ctanhf.c: Likewise.
26579         * math/s_ctanhl.c: Likewise.
26580         * math/s_ctanl.c: Likewise.
26581
26582         * math/math_private.h: Define __nan, __nanf, __nanl.
26583         * math/s_cacosh.c: Include <math_private.h>.
26584         * math/s_cacoshl.c: Likewise.
26585         * math/s_casinh.c: Likewise.
26586         * math/s_casinhf.c: Likewise.
26587         * math/s_casinhl.c: Likewise.
26588         * math/s_ccos.c: Rely entire on ccosh.
26589         * math/s_ccosf.c: Rely entire on ccoshf.
26590         * math/s_ccosl.c: Rely entirely on ccoshl.
26591         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
26592         Remove tests for FE_INVALID.
26593         * math/s_ccoshf.c: Likewise.
26594         * math/s_ccoshl.c: Likewise.
26595         * math/s_csin.c: Likewise.
26596         * math/s_csinf.c: Likewise.
26597         * math/s_csinh.c Likewise.
26598         * math/s_csinhf.c: Likewise.
26599         * math/s_csinhl.c: Likewise.
26600         * math/s_csinl.c: Likewise.
26601         * math/s_ctan.c: Likewise.
26602         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
26603         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
26604         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
26605
26606 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
26607
26608         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
26609         compilation problems.
26610
26611         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
26612         __builtin_expect.
26613
26614 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
26615
26616         * sysdeps/i386/configure.in: Test for -mfma4 option.
26617         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
26618         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
26619         COMMON_CPUID_INDEX_80000001.
26620         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
26621         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
26622         use it if FMA3 is not supported.
26623         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
26624
26625         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
26626         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
26627
26628 2011-10-20  Andreas Schwab  <schwab@redhat.com>
26629
26630         [BZ #12892]
26631         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
26632         it would create a cycle with a link time dependency.
26633
26634 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
26635
26636         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
26637         instruction.
26638         * string/Makefile (strop-tests): Add rawmemchr.
26639         * string/test-rawmemchr.c: New file.
26640
26641         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
26642         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
26643         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
26644         when compiling str{,n}casecmp and when AVX is available.  Hook up
26645         new optimized code in initializers.
26646
26647 2011-10-19  Andreas Schwab  <schwab@redhat.com>
26648
26649         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
26650         __feraiseexcept instead of feraiseexcept.
26651
26652 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
26653
26654         * math/math_private.h: Define defaults for libc_fetestexcept and
26655         libc_feupdateenv.
26656         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
26657         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
26658         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
26659         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
26660         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
26661         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
26662         libc_fetestexcept and libc_feupdateenv.
26663
26664         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
26665         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
26666         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
26667         * sysdeps/x86_64/fpu/math_private.h: Define special version of
26668         libc_feholdexcept_setround.
26669
26670         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
26671         Add s_nearbyint-c and s_nearbyintf-c.
26672         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
26673         nearbyintf inlines.
26674         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
26675         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
26676         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
26677         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
26678
26679         * math/math_private.h: Define defaults for libc_fegetround,
26680         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
26681         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
26682         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
26683         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
26684         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
26685         standard functions.
26686         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
26687         Remove comments and hacks for old compiler versions.
26688         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
26689         libc_fegetround, libc_fesetround, libc_feholdexcept, and
26690         libc_feholdexceptl.
26691
26692 2011-10-18  Andreas Schwab  <schwab@redhat.com>
26693
26694         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
26695         (__feraiseexcept_renamed): Add __NTH.
26696         (feraiseexcept): Add __NTH.  Rename local variables to fix
26697         namespace violations.
26698
26699 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
26700
26701         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
26702
26703         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
26704
26705         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
26706         recently added interfaces.
26707         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
26708
26709         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
26710         about macro parameter expansion.
26711
26712         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
26713         __NO_MATH_INLINES is defined.  Cleanups.
26714
26715         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
26716         and __floorf is target has SSE4.1.
26717         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
26718         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
26719         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
26720         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
26721
26722         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
26723         name.
26724         (floorf): Likewise.
26725
26726         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
26727
26728 2011-10-17  Andreas Schwab  <schwab@redhat.com>
26729
26730         * misc/sys/cdefs.h: Fix last change.
26731
26732         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
26733         database lookup.
26734
26735 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
26736
26737         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
26738
26739         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
26740         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
26741         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
26742         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
26743         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
26744         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
26745         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
26746         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
26747         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
26748         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
26749         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
26750         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
26751         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
26752         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
26753         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
26754         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
26755         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
26756         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
26757         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
26758         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
26759         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
26760         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
26761
26762         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
26763         ceil, ceilf, floor, floorf.
26764
26765         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
26766         Perform IRELATIVE relocations last.
26767
26768         * elf/do-rel.h: Add another parameter nrelative, replacing the
26769         local variable with the same name.  Change name of the function
26770         to end in Rel or Rela (uppercase).
26771         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
26772         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
26773         elf_dynamic_do_##reloc function.
26774
26775 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
26776
26777         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
26778         is sufficient, at least on modern CPUs.
26779
26780         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
26781
26782         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
26783         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
26784
26785         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
26786         __expl_finite.
26787         * math/bits/math-finite.h: Add entries for exp.
26788         * math/e_expl.c: Add __*_finite alias.
26789         * sysdeps/i386/fpu/e_exp.S: Likewise.
26790         * sysdeps/i386/fpu/e_expf.S: Likewise.
26791         * sysdeps/i386/fpu/e_expl.c: Likewise.
26792         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
26793         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
26794         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
26795         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
26796         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
26797         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
26798         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
26799
26800         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
26801         is sufficient, at least on modern CPUs.
26802
26803         * ctype/ctype-info.c (__ctype_init): Define.
26804         * include/ctype.h (__ctype_init): Declare.
26805         (__ctype_b_loc): The variable is always initialized.
26806         (__ctype_toupper_loc): Likewise.
26807         (__ctype_tolower_loc): Likewise.
26808         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
26809         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
26810
26811 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
26812
26813         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
26814
26815         * configure.in: Also look in $cxxmachine/include for C++ system
26816         headers.
26817
26818 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26819
26820         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
26821         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
26822         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
26823         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
26824         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
26825         (USE_AS_WMEMCMP): New macro.
26826         Fixing indents.
26827         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
26828         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
26829         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
26830         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
26831         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26832         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
26833         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
26834         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
26835         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
26836         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
26837         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
26838         (USE_AS_WMEMCMP): New macro.
26839         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
26840         * sysdeps/string/test-memcmp.c: Update.
26841         Fix simple_wmemcmp.
26842         Add new tests.
26843         * wcsmbs/wmemcmp.c: Update.
26844         (WMEMCMP): New macro.
26845         Fix overflow bug.
26846
26847 2011-10-12  Andreas Jaeger  <aj@suse.de>
26848
26849         [BZ #13268]
26850         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
26851
26852 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
26853
26854         * libio/iofwide.c (do_length): Avoid warning.
26855
26856         * ctype/ctype.h (__isctype_f): Add missing __THROW.
26857
26858 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
26859
26860         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
26861
26862         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
26863         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
26864         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
26865         * sysdeps/i386/i686/fpu/e_log.S: New file.
26866         * sysdeps/i386/i686/fpu/e_logf.S: New file.
26867         * sysdeps/i386/i686/fpu/e_logl.S: New file.
26868
26869         * ctype/ctype.h: Add support for inlined isXXX functions when
26870         compiling C++ code.
26871
26872 2011-10-14  Andreas Schwab  <schwab@redhat.com>
26873
26874         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
26875
26876         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
26877
26878 2011-10-13  Roland McGrath  <roland@hack.frob.com>
26879
26880         [BZ #13291]
26881         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
26882
26883 2011-10-13  Andreas Schwab  <schwab@redhat.com>
26884
26885         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
26886         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
26887         feraiseexcept.
26888
26889         * sysdeps/x86_64/memrchr.S: Check for zero size.
26890
26891         * string/stratcliff.c: Add memrchr tests.
26892
26893 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
26894
26895         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
26896         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
26897         rawmemchr-sse2 rawmemchr-sse2-bsf.
26898         * sysdeps/i386/i686/multiarch/memchr.S: New file.
26899         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
26900         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
26901         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
26902         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
26903         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
26904         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
26905         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
26906         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
26907         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
26908         * string/memrchr.c (MEMRCHR): New macro.
26909
26910 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
26911
26912         Add integration with gcc's -ffinite-math-only and optimize wrapper
26913         functions in libm.
26914         * Versions.def: Define GLIBC_2.15 version for libm.
26915         * math/Makefile (headers): Add bits/math-finite.h.
26916         * math/bits/math-finite.h: New file.
26917         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
26918         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
26919         * math/e_acoshl.c: Add __*_finite alias.
26920         * math/e_acosl.c: Likewise.
26921         * math/e_asinl.c: Likewise.
26922         * math/e_atan2l.c: Likewise.
26923         * math/e_atanhl.c: Likewise.
26924         * math/e_coshl.c: Likewise.
26925         * math/e_exp10.c: Likewise.
26926         * math/e_exp10f.c: Likewise.
26927         * math/e_exp10l.c: Likewise.
26928         * math/e_exp2l.c: Likewise.
26929         * math/e_fmodl.c: Likewise.
26930         * math/e_gammal_r.c: Likewise.
26931         * math/e_hypotl.c: Likewise.
26932         * math/e_j0l.c: Likewise.
26933         * math/e_j1l.c: Likewise.
26934         * math/e_jnl.c: Likewise.
26935         * math/e_lgammal_r.c: Likewise.
26936         * math/e_log10l.c: Likewise.
26937         * math/e_log2l.c: Likewise.
26938         * math/e_logl.c: Likewise.
26939         * math/e_powl.c: Likewise.
26940         * math/e_sinhl.c: Likewise.
26941         * math/e_sqrtl.c: Likewise.
26942         * math/e_scalb.c: Completely rewritten and optimized.
26943         * math/e_scalbf.c: Likewise.
26944         * math/e_scalbl.c: Likewise.
26945         * math/w_acos.c: Likewise.
26946         * math/w_acosf.c: Likewise.
26947         * math/w_acosl.c: Likewise.
26948         * math/w_acosh.c: Likewise.
26949         * math/w_acoshf.c: Likewise.
26950         * math/w_acoshl.c: Likewise.
26951         * math/w_asin.c: Likewise.
26952         * math/w_asinf.c: Likewise.
26953         * math/w_asinl.c: Likewise.
26954         * math/w_atan2.c: Likewise.
26955         * math/w_atan2f.c: Likewise.
26956         * math/w_atan2l.c: Likewise.
26957         * math/w_atanh.c: Likewise.
26958         * math/w_atanhf.c: Likewise.
26959         * math/w_atanhl.c: Likewise.
26960         * math/w_exp10.c: Likewise.
26961         * math/w_exp10f.c: Likewise.
26962         * math/w_exp10l.c: Likewise.
26963         * math/w_fmod.c: Likewise.
26964         * math/w_fmodf.c: Likewise.
26965         * math/w_fmodl.c: Likewise.
26966         * math/w_j0.c: Likewise.
26967         * math/w_j0f.c: Likewise.
26968         * math/w_j0l.c: Likewise.
26969         * math/w_j1.c: Likewise.
26970         * math/w_j1f.c: Likewise.
26971         * math/w_j1l.c: Likewise.
26972         * math/w_jn.c: Likewise.
26973         * math/w_jnf.c: Likewise.
26974         * math/w_log.c: Likewise.
26975         * math/w_logf.c: Likewise.
26976         * math/w_logl.c: Likewise.
26977         * math/w_log10.c: Likewise.
26978         * math/w_log10f.c: Likewise.
26979         * math/w_log10l.c: Likewise.
26980         * math/w_log2.c: Likewise.
26981         * math/w_log2f.c: Likewise.
26982         * math/w_log2l.c: Likewise.
26983         * math/w_pow.c: Likewise.
26984         * math/w_powf.c: Likewise.
26985         * math/w_powl.c: Likewise.
26986         * math/w_remainder.c: Likewise.
26987         * math/w_remainderf.c: Likewise.
26988         * math/w_remainderl.c: Likewise.
26989         * math/w_scalb.c: Likewise.
26990         * math/w_scalbf.c: Likewise.
26991         * math/w_scalbl.c: Likewise.
26992         * math/w_sqrt.c: Likewise.
26993         * math/w_sqrtf.c: Likewise.
26994         * math/w_sqrtl.c: Likewise.
26995         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
26996         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
26997         used.
26998         * math/math_private.h: Declare __kernel_standard_f.
26999         * math/w_cosh.c: Remove cruft and optimize a bit.
27000         * math/w_coshf.c: Likewise.
27001         * math/w_coshl.c: Likewise.
27002         * math/w_exp2.c: Likewise.
27003         * math/w_exp2f.c: Likewise.
27004         * math/w_exp2l.c: Likewise.
27005         * math/w_hypot.c: Likewise.
27006         * math/w_hypotf.c: Likewise.
27007         * math/w_hypotl.c: Likewise.
27008         * math/w_lgamma.c: Likewise.
27009         * math/w_lgamma_r.c: Likewise.
27010         * math/w_lgammaf.c: Likewise.
27011         * math/w_lgammaf_r.c: Likewise.
27012         * math/w_lgammal.c: Likewise.
27013         * math/w_lgammal_r.c: Likewise.
27014         * math/w_sinh.c: Likewise.
27015         * math/w_sinhf.c: Likewise.
27016         * math/w_sinhl.c: Likewise.
27017         * math/w_tgamma.c: Likewise.
27018         * math/w_tgammaf.c: Likewise.
27019         * math/w_tgammal.c: Likewise.
27020         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
27021         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
27022         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
27023         Minor optimizations.  Pretty printing.  Remove cruft.
27024         * sysdeps/i386/fpu/e_acosf.S: Likewise.
27025         * sysdeps/i386/fpu/e_acosh.S: Likewise.
27026         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
27027         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
27028         * sysdeps/i386/fpu/e_acosl.c: Likewise.
27029         * sysdeps/i386/fpu/e_asin.S: Likewise.
27030         * sysdeps/i386/fpu/e_asinf.S: Likewise.
27031         * sysdeps/i386/fpu/e_atan2.S: Likewise.
27032         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
27033         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
27034         * sysdeps/i386/fpu/e_atanh.S: Likewise.
27035         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
27036         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
27037         * sysdeps/i386/fpu/e_exp10.S: Likewise.
27038         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
27039         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
27040         * sysdeps/i386/fpu/e_exp2.S: Likewise.
27041         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
27042         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
27043         * sysdeps/i386/fpu/e_fmod.S: Likewise.
27044         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
27045         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
27046         * sysdeps/i386/fpu/e_hypot.S: Likewise.
27047         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
27048         * sysdeps/i386/fpu/e_log.S: Likewise.
27049         * sysdeps/i386/fpu/e_log10.S: Likewise.
27050         * sysdeps/i386/fpu/e_log10f.S: Likewise.
27051         * sysdeps/i386/fpu/e_log10l.S: Likewise.
27052         * sysdeps/i386/fpu/e_log2.S: Likewise.
27053         * sysdeps/i386/fpu/e_log2f.S: Likewise.
27054         * sysdeps/i386/fpu/e_log2l.S: Likewise.
27055         * sysdeps/i386/fpu/e_logf.S: Likewise.
27056         * sysdeps/i386/fpu/e_logl.S: Likewise.
27057         * sysdeps/i386/fpu/e_pow.S: Likewise.
27058         * sysdeps/i386/fpu/e_powf.S: Likewise.
27059         * sysdeps/i386/fpu/e_powl.S: Likewise.
27060         * sysdeps/i386/fpu/e_remainder.S: Likewise.
27061         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
27062         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
27063         * sysdeps/i386/fpu/e_scalb.S: Likewise.
27064         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
27065         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
27066         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
27067         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
27068         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
27069         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
27070         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
27071         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
27072         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
27073         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
27074         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
27075         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
27076         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
27077         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
27078         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
27079         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
27080         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
27081         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
27082         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
27083         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
27084         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
27085         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
27086         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
27087         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
27088         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
27089         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
27090         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
27091         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
27092         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
27093         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
27094         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
27095         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
27096         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
27097         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
27098         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
27099         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
27100         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
27101         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
27102         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
27103         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
27104         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
27105         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
27106         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
27107         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
27108         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
27109         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
27110         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
27111         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
27112         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
27113         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
27114         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
27115         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
27116         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
27117         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
27118         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
27119         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
27120         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
27121         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
27122         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
27123         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
27124         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
27125         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
27126         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
27127         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
27128         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
27129         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
27130         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
27131         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
27132         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
27133         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
27134         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
27135         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
27136         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
27137         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
27138         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
27139         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
27140         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
27141         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
27142         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
27143         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
27144         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
27145         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
27146         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
27147         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
27148         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
27149         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
27150         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
27151         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
27152         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
27153         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
27154         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
27155         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
27156         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
27157         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
27158         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
27159         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
27160         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
27161         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
27162         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
27163         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
27164         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
27165         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
27166         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
27167         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
27168         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
27169         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
27170         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
27171         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
27172         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
27173         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
27174         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
27175         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
27176         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
27177         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
27178         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
27179         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
27180         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
27181         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
27182         (__isnanf): Likewise.
27183         (__isinf_ns): Likewise.
27184         (__isinf_nsf): Likewise.
27185         (__finite): Likewise.
27186         (__finitef): Likewise.
27187         (__ieee754_sqrt): Define as macro.
27188         (__ieee754_sqrtf): Define as macro.
27189         (__ieee754_sqrtl): Define as macro.
27190         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
27191         inlined copy.
27192         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
27193         __FINITE_MATH_ONLY__ consistent.
27194         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
27195
27196 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
27197
27198         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
27199         of rawmemchr.
27200
27201         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
27202
27203 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
27204
27205         * po/ja.po: Update from translation team.
27206
27207 2011-10-08  Roland McGrath  <roland@hack.frob.com>
27208
27209         * locale/programs/locarchive.c (prepare_address_space): New function.
27210         (create_archive, enlarge_archive, open_archive): Use it.
27211
27212         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
27213         inside [SHARED], where it is used.
27214
27215         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
27216
27217         * nss/getent.c (netgroup_keys): Remove unused variable.
27218         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
27219
27220 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
27221
27222         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
27223         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
27224         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
27225         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
27226         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
27227         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
27228         * math/Makefile (libm-calls): Add s_isinf_ns.
27229         * math/divtc3.c: Use __isinf_nsl instead of isinf.
27230         * math/multc3.c: Likewise.
27231         * math/s_casin.c: Likewise.
27232         * math/s_casinf.c: Likewise.
27233         * math/s_casinl.c: Likewise.
27234         * math/s_ccos.c: Likewise.
27235         * math/s_ccosf.c: Likewise.
27236         * math/s_ccosl.c: Likewise.
27237         * math/s_ctan.c: Likewise.
27238         * math/s_ctanf.c: Likewise.
27239         * math/s_ctanh.c: Likewise.
27240         * math/s_ctanhf.c: Likewise.
27241         * math/s_ctanhl.c: Likewise.
27242         * math/s_ctanl.c: Likewise.
27243         * math/w_fmod.c: Likewise.
27244         * math/w_fmodf.c: Likewise.
27245         * math/w_fmodl.c: Likewise.
27246         * math/w_remainder.c: Likewise.
27247         * math/w_remainderf.c: Likewise.
27248         * math/w_remainderl.c: Likewise.
27249         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
27250         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
27251         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
27252         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
27253         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
27254         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
27255         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
27256         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
27257
27258         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
27259         of the number.
27260         * stdio-common/printf_fphex.c: Likewise.
27261         * stdio-common/printf_size.c: Likewise.
27262
27263         * math/e_exp10.c: Include math_private.h using <...> not "...".
27264         * math/e_exp10f.c: Likewise.
27265         * math/e_exp10l.c: Likewise.
27266         * math/e_exp2l.c: Likewise.
27267         * math/e_j0l.c: Likewise.
27268         * math/e_j1l.c: Likewise.
27269         * math/e_jnl.c: Likewise.
27270         * math/e_lgammal_r.c: Likewise.
27271         * math/e_rem_pio2l.c: Likewise.
27272         * math/e_scalb.c: Likewise.
27273         * math/e_scalbf.c: Likewise.
27274         * math/e_scalbl.c: Likewise.
27275         * math/k_cosl.c: Likewise.
27276         * math/k_sinl.c: Likewise.
27277         * math/k_tanl.c: Likewise.
27278         * math/s_cacoshf.c: Likewise.
27279         * math/s_catan.c: Likewise.
27280         * math/s_catanf.c: Likewise.
27281         * math/s_catanh.c: Likewise.
27282         * math/s_catanhf.c: Likewise.
27283         * math/s_catanhl.c: Likewise.
27284         * math/s_catanl.c: Likewise.
27285         * math/s_ccosh.c: Likewise.
27286         * math/s_ccoshf.c: Likewise.
27287         * math/s_ccoshl.c: Likewise.
27288         * math/s_cexp.c: Likewise.
27289         * math/s_cexpf.c: Likewise.
27290         * math/s_cexpl.c: Likewise.
27291         * math/s_clog.c: Likewise.
27292         * math/s_clog10.c: Likewise.
27293         * math/s_clog10f.c: Likewise.
27294         * math/s_clog10l.c: Likewise.
27295         * math/s_clogf.c: Likewise.
27296         * math/s_clogl.c: Likewise.
27297         * math/s_csin.c: Likewise.
27298         * math/s_csinf.c: Likewise.
27299         * math/s_csinh.c: Likewise.
27300         * math/s_csinhf.c: Likewise.
27301         * math/s_csinhl.c: Likewise.
27302         * math/s_csinl.c: Likewise.
27303         * math/s_csqrt.c: Likewise.
27304         * math/s_csqrtf.c: Likewise.
27305         * math/s_csqrtl.c: Likewise.
27306         * math/s_ctan.c: Likewise.
27307         * math/s_ctanf.c: Likewise.
27308         * math/s_ctanh.c: Likewise.
27309         * math/s_ctanhf.c: Likewise.
27310         * math/s_ctanhl.c: Likewise.
27311         * math/s_ctanl.c: Likewise.
27312         * math/s_ldexp.c: Likewise.
27313         * math/s_ldexpf.c: Likewise.
27314         * math/s_ldexpl.c: Likewise.
27315         * math/s_significand.c: Likewise.
27316         * math/s_significandf.c: Likewise.
27317         * math/s_significandl.c: Likewise.
27318         * math/w_acos.c: Likewise.
27319         * math/w_acosf.c: Likewise.
27320         * math/w_acosh.c: Likewise.
27321         * math/w_acoshf.c: Likewise.
27322         * math/w_acoshl.c: Likewise.
27323         * math/w_acosl.c: Likewise.
27324         * math/w_asin.c: Likewise.
27325         * math/w_asinf.c: Likewise.
27326         * math/w_asinl.c: Likewise.
27327         * math/w_atan2.c: Likewise.
27328         * math/w_atan2f.c: Likewise.
27329         * math/w_atan2l.c: Likewise.
27330         * math/w_atanh.c: Likewise.
27331         * math/w_atanhf.c: Likewise.
27332         * math/w_atanhl.c: Likewise.
27333         * math/w_cosh.c: Likewise.
27334         * math/w_coshf.c: Likewise.
27335         * math/w_coshl.c: Likewise.
27336         * math/w_dremf.c: Likewise.
27337         * math/w_exp10.c: Likewise.
27338         * math/w_exp10f.c: Likewise.
27339         * math/w_exp10l.c: Likewise.
27340         * math/w_exp2.c: Likewise.
27341         * math/w_exp2f.c: Likewise.
27342         * math/w_fmod.c: Likewise.
27343         * math/w_fmodf.c: Likewise.
27344         * math/w_fmodl.c: Likewise.
27345         * math/w_hypot.c: Likewise.
27346         * math/w_hypotf.c: Likewise.
27347         * math/w_hypotl.c: Likewise.
27348         * math/w_j0.c: Likewise.
27349         * math/w_j0f.c: Likewise.
27350         * math/w_j0l.c: Likewise.
27351         * math/w_j1.c: Likewise.
27352         * math/w_j1f.c: Likewise.
27353         * math/w_j1l.c: Likewise.
27354         * math/w_jn.c: Likewise.
27355         * math/w_jnf.c: Likewise.
27356         * math/w_jnl.c: Likewise.
27357         * math/w_lgamma.c: Likewise.
27358         * math/w_lgamma_r.c: Likewise.
27359         * math/w_lgammaf.c: Likewise.
27360         * math/w_lgammaf_r.c: Likewise.
27361         * math/w_lgammal.c: Likewise.
27362         * math/w_lgammal_r.c: Likewise.
27363         * math/w_log.c: Likewise.
27364         * math/w_log10.c: Likewise.
27365         * math/w_log10f.c: Likewise.
27366         * math/w_log10l.c: Likewise.
27367         * math/w_log2.c: Likewise.
27368         * math/w_log2f.c: Likewise.
27369         * math/w_log2l.c: Likewise.
27370         * math/w_logf.c: Likewise.
27371         * math/w_logl.c: Likewise.
27372         * math/w_pow.c: Likewise.
27373         * math/w_powf.c: Likewise.
27374         * math/w_powl.c: Likewise.
27375         * math/w_remainder.c: Likewise.
27376         * math/w_remainderf.c: Likewise.
27377         * math/w_remainderl.c: Likewise.
27378         * math/w_scalb.c: Likewise.
27379         * math/w_scalbf.c: Likewise.
27380         * math/w_scalbl.c: Likewise.
27381         * math/w_sinh.c: Likewise.
27382         * math/w_sinhf.c: Likewise.
27383         * math/w_sinhl.c: Likewise.
27384         * math/w_sqrt.c: Likewise.
27385         * math/w_sqrtf.c: Likewise.
27386         * math/w_sqrtl.c: Likewise.
27387         * math/w_tgamma.c: Likewise.
27388         * math/w_tgammaf.c: Likewise.
27389         * math/w_tgammal.c: Likewise.
27390
27391         * po/ja.po: Update from translation team.
27392
27393 2011-09-29  Andreas Jaeger  <aj@suse.de>
27394
27395         [BZ #13179]
27396         * sunrpc/netname.c (netname2host): Fix logic.
27397
27398         [BZ #6779]
27399         [BZ #6783]
27400         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
27401         correctly.
27402         * math/w_remainder.c (__remainder): Likewise.
27403         * math/w_remainderf.c (__remainderf): Likewise.
27404         * math/libm-test.inc (remainder_test): Add test cases.
27405
27406 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
27407
27408         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
27409         sdiv_qrnnd.
27410
27411 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
27412
27413         * string/test-memcmp.c: Avoid unncessary #defines.
27414         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
27415
27416 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27417
27418         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
27419         Use new sse2 version for core i3 - i7 as it's faster
27420         than sse42 version.
27421         (bit_Prefer_PMINUB_for_stringop): New.
27422         * sysdeps/x86_64/rawmemchr.S: Update.
27423         Replace with faster SSE2 version.
27424         * sysdeps/x86_64/memrchr.S: New file.
27425         * sysdeps/x86_64/memchr.S: Update.
27426         Replace with faster SSE2 version.
27427
27428 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
27429
27430         * elf/dl-load.c (lose): Add cast to avoid warning.
27431
27432 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
27433
27434         * po/ca.po: Update from translation team.
27435
27436         * inet/getnetgrent_r.c: Hook up nscd.
27437         * nscd/Makefile (routines): Add nscd_netgroup.
27438         (nscd-modules): Add netgroupcache.
27439         (CFLAGS-netgroupcache.c): Define.
27440         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
27441         (cache_search): Add const to second parameter.
27442         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
27443         INNETGR.
27444         (dbs): Add netgrdb entry.
27445         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
27446         (verify_persistent_db): Handle netgrdb.
27447         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
27448         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
27449         GETFDNETGR.
27450         (netgroup_response_header): Define.
27451         (innetgroup_response_header): Define.
27452         (datahead): Add netgroup_response_header and innetgroup_response_header
27453         elements.
27454         * nscd/nscd.conf: Add entries for netgroup cache.
27455         * nscd/nscd.h (dbtype): Add netgrdb.
27456         (_PATH_NSCD_NETGROUP_DB): Define.
27457         (netgroup_iov_disabled): Declare.
27458         (xmalloc, xcalloc, xrealloc): Move declarations here.
27459         (cache_search): Adjust prototype.
27460         Add netgroup-related prototypes.
27461         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
27462         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
27463         (__nscd_innetgr): Declare.
27464         * nscd/selinux.c (perms): Use access_vector_t as element type and
27465         add netgroup-related initializers.
27466         * nscd/netgroupcache.c: New file.
27467         * nscd/nscd_netgroup.c: New file.
27468         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
27469         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
27470         For four parameters use innetgr.
27471         * nss/nss_files/files-init.c: Add definition and callback for netgr.
27472         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
27473         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
27474         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
27475
27476         * nscd/connections.c (register_traced_file): Don't register file
27477         for disabled databases.
27478
27479 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
27480
27481         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
27482
27483         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
27484         from tree and freeing node.
27485
27486 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
27487
27488         * nss/nsswitch.c (__nss_database_lookup): Handle
27489         nss_parse_service_list out of memory case.
27490
27491 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
27492
27493         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
27494         out of memory case.
27495
27496 2011-10-04  Andreas Schwab  <schwab@redhat.com>
27497
27498         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
27499         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
27500         pass it down.
27501         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
27502         elf_machine_rela, elf_machine_lazy_rel.
27503         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
27504         (ELF_DYNAMIC_DO_REL): Likewise.
27505         (ELF_DYNAMIC_DO_RELA): Likewise.
27506         (ELF_DYNAMIC_RELOCATE): Likewise.
27507         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
27508         to ELF_DYNAMIC_DO_REL.
27509         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
27510         (dl_main): In trace mode always set __RTLD_NOIFUNC.
27511         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
27512         elf_machine_rela.
27513         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
27514         skip_ifunc, don't call ifunc function if non-zero.
27515         (elf_machine_rela): Likewise.
27516         (elf_machine_lazy_rel): Likewise.
27517         (elf_machine_lazy_rela): Likewise.
27518         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
27519         (elf_machine_lazy_rel): Likewise.
27520         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
27521         Likewise.
27522         (elf_machine_lazy_rel): Likewise.
27523         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
27524         Likewise.
27525         (elf_machine_lazy_rel): Likewise.
27526         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
27527         (elf_machine_lazy_rel): Likewise.
27528         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
27529         (elf_machine_lazy_rel): Likewise.
27530         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
27531         (elf_machine_lazy_rel): Likewise.
27532         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
27533         (elf_machine_lazy_rel): Likewise.
27534         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
27535         (elf_machine_lazy_rel): Likewise.
27536         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
27537         (elf_machine_lazy_rel): Likewise.
27538
27539 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
27540
27541         * nss/nss_files/files-init.c (_nss_files_init): Use static
27542         initialization for all the *_traced_file variables.
27543
27544 2011-09-28  Andreas Schwab  <schwab@redhat.com>
27545
27546         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
27547
27548 2011-09-27  Roland McGrath  <roland@hack.frob.com>
27549
27550         [BZ #13226]
27551         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
27552
27553 2011-09-27  Andreas Schwab  <schwab@redhat.com>
27554
27555         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
27556         Reread the line before reparsing it.
27557
27558 2011-09-26  Andreas Schwab  <schwab@redhat.com>
27559
27560         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
27561
27562 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
27563             Maxim Kuvyrkov  <maxim@codesourcery.com>
27564             Joseph Myers  <joseph@codesourcery.com>
27565
27566         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
27567         if needed for __stack_chk_guard.
27568
27569 2011-09-19  Roland McGrath  <roland@hack.frob.com>
27570
27571         * sysdeps/posix/spawni.c (script_execute): Always define it.
27572         It will be optimized away if unused.
27573         (maybe_script_execute): New function.
27574         (__spawni): Call it.
27575
27576         * Makerules: Don't include tls.make.
27577         (config-tls): Always set to thread.
27578         * tls.make.c: File removed.
27579
27580 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
27581
27582         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
27583         * config.make.in (CPPFLAGS-config): New substituted variable.
27584
27585 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
27586
27587         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
27588
27589         [BZ #13192]
27590         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
27591         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
27592
27593 2011-09-15  Roland McGrath  <roland@hack.frob.com>
27594
27595         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
27596         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
27597         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
27598         (CALL_FAIL): Likewise.
27599         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
27600         (CALL_FAIL): Macro removed.
27601         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
27602
27603 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
27604
27605         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
27606         for __FINITE_MATH_ONLY__ == 1.
27607
27608 2011-09-15  Andreas Schwab  <schwab@redhat.com>
27609
27610         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
27611         __ieee754_sqrt instead of sqrt.
27612         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
27613         __ieee754_sqrtf instead of sqrtf.
27614         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
27615         __floorf instead of floorf.
27616         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
27617         __floorf, __truncf instead of floorf, truncf.
27618
27619 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
27620
27621         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
27622
27623         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
27624         __extern_always_inline.
27625         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
27626         32-bit.
27627
27628 2011-09-14  Andreas Schwab  <schwab@redhat.com>
27629
27630         * elf/rtld.c (dl_main): Also relocate in dependency order when
27631         doing symbol dependency testing.
27632
27633 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
27634
27635         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
27636         Always define `refsym'.
27637
27638 2011-09-13  Andreas Schwab  <schwab@redhat.com>
27639
27640         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
27641         (__FD_ELT): Renamed from __FDELT.
27642         * misc/bits/select2.h (__FD_ELT): Likewise.
27643         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
27644         __FD_MASK instead of __FDELT, __FDMASK.
27645         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
27646         Likewise.
27647         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
27648         Likewise.
27649
27650         * elf/Makefile (gen-ldd): Fix pattern.
27651
27652         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
27653         (init_tls): Likewise.
27654
27655 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
27656
27657         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
27658
27659 2011-09-12  Andreas Schwab  <schwab@redhat.com>
27660
27661         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
27662         `struct cmsghdr *' instead of `void *'.
27663         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
27664         Likewise.
27665
27666 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
27667
27668         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
27669         if non-absolute.
27670         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
27671         ldd_rewrite_script.
27672
27673 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
27674
27675         * configure.in: Remove --with-tls option.
27676         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
27677         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
27678         out in case it is missing.
27679         * sysdeps/ia64/elf/configure.in: Likewise.
27680         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
27681         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
27682         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
27683         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
27684         * sysdeps/sh/elf/configure.in: Likewise.
27685         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
27686         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
27687         * sysdeps/x86_64/elf/configure.in: Likewise.
27688         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
27689         * sysdeps/mach/hurd/tls.h: Likewise.
27690
27691         [BZ #13067]
27692         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
27693
27694         [BZ #13090]
27695         * configure.in: Fix use of AC_INIT.
27696
27697         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
27698
27699 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
27700
27701         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
27702         __set_errno.
27703         * malloc/hooks.c: Likewise.
27704
27705         [BZ #11929]
27706         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
27707         variables statically.
27708         (narenas): Initialize.
27709         (list_lock): Initialize.
27710         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
27711         initializtion of main_arena and list_lock.  Small cleanups.
27712         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
27713         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
27714         Add initializers to main_arena and mp_.
27715         (malloc_state): Remove pagesize member.  Change all users to use
27716         GLRO(dl_pagesize).
27717
27718         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
27719         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
27720         is always initialized.
27721
27722         * malloc/malloc.c: Removed unused configurations and dead code.
27723         * malloc/arena.c: Likewise.
27724         * malloc/hooks.c: Likewise.
27725         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
27726
27727         * include/tls.h: Removed.  USE___THREAD must always be defined.
27728         * bits/libc-tsd.h: Don't handle !USE___THREAD.
27729         * elf/dl-libc.c: Likewise.
27730         * elf/dl-tsd.c: Likewise.
27731         * include/errno.h: Likewise.
27732         * include/netdb.h: Likewise.
27733         * include/resolv.h: Likewise.
27734         * inet/herrno-loc.c: Likewise.
27735         * inet/herrno.c: Likewise.
27736         * malloc/arena.c: Likewise.
27737         * malloc/hooks.c: Likewise.
27738         * malloc/malloc.c: Likewise.
27739         * resolv/res-state.c: Likewise.
27740         * resolv/res_libc.c: Likewise.
27741         * sysdeps/i386/dl-machine.h: Likewise.
27742         * sysdeps/ia64/dl-machine.h: Likewise.
27743         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
27744         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
27745         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
27746         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
27747         * sysdeps/sh/dl-machine.h: Likewise.
27748         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
27749         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
27750         * sysdeps/unix/i386/sysdep.S: Likewise.
27751         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
27752         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
27753         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
27754         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
27755         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
27756         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
27757         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
27758         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
27759         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27760         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
27761         * sysdeps/unix/x86_64/sysdep.S: Likewise.
27762         * sysdeps/x86_64/dl-machine.h: Likewise.
27763         * tls.make.c: Likewise.
27764
27765         * configure.in: Remove --with-__thread option.  Make tests for
27766         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
27767         tls_model attribute fail if no support is available.  Remove
27768         USE_IN_LIBIO.
27769         * Makeconfig: Adjust for dropped configure option.  All features are
27770         now mandatory.
27771         * Makerules: Likewise.
27772         * Versions.def: Likewise.
27773         * argp/argp-fmtstream.c: Likewise.
27774         * argp/argp-fmtstream.h: Likewise.
27775         * argp/argp-help.c: Likewise.
27776         * assert/assert.c: Likewise.
27777         * config.h.in: Likewise.
27778         * config.make.in: Likewise.
27779         * configure: Likewise.
27780         * configure.in: Likewise.
27781         * csu/Versions: Likewise.
27782         * csu/init.c: Likewise.
27783         * elf/tst-audit2.c: Likewise.
27784         * elf/tst-tls10.c: Likewise.
27785         * elf/tst-tls10.h: Likewise.
27786         * elf/tst-tls11.c: Likewise.
27787         * elf/tst-tls12.c: Likewise.
27788         * elf/tst-tls14.c: Likewise.
27789         * elf/tst-tlsmod11.c: Likewise.
27790         * elf/tst-tlsmod12.c: Likewise.
27791         * elf/tst-tlsmod13.c: Likewise.
27792         * elf/tst-tlsmod13a.c: Likewise.
27793         * elf/tst-tlsmod14a.c: Likewise.
27794         * elf/tst-tlsmod15b.c: Likewise.
27795         * elf/tst-tlsmod16a.c: Likewise.
27796         * elf/tst-tlsmod16b.c: Likewise.
27797         * elf/tst-tlsmod7.c: Likewise.
27798         * elf/tst-tlsmod8.c: Likewise.
27799         * elf/tst-tlsmod9.c: Likewise.
27800         * gmon/gmon.c: Likewise.
27801         * grp/fgetgrent_r.c: Likewise.
27802         * grp/putgrent.c: Likewise.
27803         * hurd/fopenport.c: Likewise.
27804         * include/libc-symbols.h: Likewise.
27805         * include/tls.h: Likewise.
27806         * intl/gettextP.h: Likewise.
27807         * intl/loadinfo.h: Likewise.
27808         * locale/global-locale.c: Likewise.
27809         * locale/localeinfo.h: Likewise.
27810         * mach/devstream.c: Likewise.
27811         * malloc/arena.c: Likewise.
27812         * malloc/set-freeres.c: Likewise.
27813         * misc/err.c: Likewise.
27814         * misc/getttyent.c: Likewise.
27815         * misc/mntent_r.c: Likewise.
27816         * posix/getopt.c: Likewise.
27817         * posix/wordexp.c: Likewise.
27818         * pwd/fgetpwent_r.c: Likewise.
27819         * resolv/Versions: Likewise.
27820         * resolv/res_hconf.c: Likewise.
27821         * shadow/fgetspent_r.c: Likewise.
27822         * shadow/putspent.c: Likewise.
27823         * stdio-common/printf_fphex.c: Likewise.
27824         * stdio-common/tmpfile.c: Likewise.
27825         * stdlib/abort.c: Likewise.
27826         * stdlib/fmtmsg.c: Likewise.
27827         * sunrpc/auth_unix.c: Likewise.
27828         * sunrpc/clnt_perr.c: Likewise.
27829         * sunrpc/clnt_tcp.c: Likewise.
27830         * sunrpc/clnt_udp.c: Likewise.
27831         * sunrpc/clnt_unix.c: Likewise.
27832         * sunrpc/openchild.c: Likewise.
27833         * sunrpc/svc_simple.c: Likewise.
27834         * sunrpc/svc_tcp.c: Likewise.
27835         * sunrpc/svc_udp.c: Likewise.
27836         * sunrpc/svc_unix.c: Likewise.
27837         * sunrpc/xdr.c: Likewise.
27838         * sunrpc/xdr_array.c: Likewise.
27839         * sunrpc/xdr_rec.c: Likewise.
27840         * sunrpc/xdr_ref.c: Likewise.
27841         * sunrpc/xdr_stdio.c: Likewise.
27842
27843 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
27844
27845         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
27846
27847 2011-07-03  Andreas Jaeger  <aj@suse.de>
27848
27849         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
27850         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
27851         regenerate with gen-libm-tests.pl.
27852
27853 2010-05-12  Petr Baudis  <pasky@suse.cz>
27854
27855         [BZ #11589]
27856         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
27857         around j0() zero points by switching to j1().
27858         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
27859         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
27860         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
27861         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
27862
27863 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
27864
27865         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
27866         instead of 0.
27867         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
27868         instead of 0.
27869         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
27870         Patch in part by Pavel Roskin <proski@gnu.org>.
27871
27872         [BZ #13138]
27873         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
27874         realloc.
27875         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
27876         Free memory block if necessary.
27877
27878         [BZ #12847]
27879         * libio/genops.c (INTDEF): For string streams the _lock pointer can
27880         be NULL.  Don't lock in this case.
27881
27882 2011-09-09  Roland McGrath  <roland@hack.frob.com>
27883
27884         * elf/elf.h (ELFOSABI_GNU): New macro.
27885         (ELFOSABI_LINUX): Define to that.
27886
27887 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
27888
27889         * string/strncat.c (strncat): Undef the symbol in case it has been
27890         defined in bits/string.h.
27891
27892 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
27893
27894         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
27895
27896         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
27897         link map.
27898
27899 2011-08-17  Andreas Jaeger  <aj@suse.de>
27900
27901         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
27902
27903 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
27904             Ian Lance Taylor  <iant@google.com>
27905
27906         * math/libm-test.inc (lround_test): New testcase.
27907         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
27908
27909 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
27910
27911         * Makefile: Remove support for automatic cvs check-ins.
27912         * Makerules: Likewise.
27913         * config.make.in: Likewise.
27914         * configure.in: Likewise.
27915         * intl/Makefile: Likewise.
27916         * locale/Makefile: Likewise.
27917         * po/Makefile: Likewise.
27918         * posix/Makefile: Likewise.
27919         * sysdeps/gnu/Makefile: Likewise.
27920         * sysdeps/mach/hurd/Makefile: Likewise.
27921         * sysdeps/sparc/sparc32/Makefile: Likewise.
27922
27923         [BZ #13118]
27924         * posix/Makefile (bug-regex32-ENV): Define.
27925         Patch by John Stanley <jpsinthemix@verizon.net>.
27926
27927         * misc/Makefile (headers): Add bits/select2.h.
27928         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
27929         * misc/bits/select2.h: New file.
27930         * include/bits/select2.h: New file.
27931         * debug/Makefile (routines): Add fdelt_chk.
27932         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
27933         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
27934         FD_ISSET.
27935         * debug/fdelt_chk.c: New file.
27936
27937         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
27938         * wcsmbs/test-wmemcmp.c: Likewise.
27939         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
27940         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
27941
27942 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
27943
27944         * string/Makefile (strop-tests): Add memcmp.
27945         * string/test-wmemcmp.c: New file.
27946         * string/test-memcmp.c: Add wmemcmp support.
27947
27948 2011-09-08  Roland McGrath  <roland@hack.frob.com>
27949
27950         [BZ #13153]
27951         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
27952         2011-07-19 change.
27953
27954         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
27955         garbage value in a __mach_port_mod_refs call in the cases of the
27956         task-self and thread-self ports.
27957
27958 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
27959
27960         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
27961
27962 2011-09-08  Andreas Schwab  <schwab@redhat.com>
27963
27964         * elf/dl-load.c (lose): Check for non-null L.
27965
27966 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
27967
27968         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
27969
27970         * elf/dl-libc.c (dlerror_run): Pass back error code from
27971         dl_catch_error.
27972
27973         [BZ #13123]
27974         * elf/dl-load.c (lose): Free l_origin if it is valid.
27975
27976         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
27977         names.
27978         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
27979         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
27980         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
27981         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
27982         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
27983         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
27984
27985 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27986
27987         * sysdeps/powerpc/fpu/e_hypot.c: New file.
27988         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
27989         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
27990         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
27991         * sysdeps/powerpc/fpu/k_cosf.c: New file.
27992         * sysdeps/powerpc/fpu/k_sinf.c: New file.
27993         * sysdeps/powerpc/fpu/s_cosf.c: New file.
27994         * sysdeps/powerpc/fpu/s_sinf.c: New file.
27995         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
27996         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
27997
27998 2011-08-15  Alan Modra  <amodra@gmail.com>
27999
28000         [BZ #13092]
28001         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
28002         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
28003         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
28004         ppc_mcount to static-only-routines.
28005         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
28006         __mcount_internal.
28007         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
28008         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
28009
28010 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
28011
28012         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
28013         for finite and infinity parameters.
28014
28015 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
28016
28017         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
28018         and add nop instructions for throughput optimization.
28019         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
28020
28021 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
28022
28023         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
28024         aligned copy for power7 with vector-scalar instructions.
28025         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
28026
28027 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
28028
28029         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
28030         AVX check.
28031
28032 2011-09-07  Andreas Schwab  <schwab@redhat.com>
28033
28034         [BZ #13144]
28035         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
28036         last change.
28037
28038 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
28039
28040         * sysdeps/unix/sysv/linux/x86_64/init-first.c
28041         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
28042         syscall wrapper around clock_gettime in __vdso_clock_gettime.
28043         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
28044         clock_gettime.
28045
28046 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
28047
28048         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
28049         Forgot to demangle the pointer.
28050
28051         * sysdeps/i386/sysdep.h: Define atom_text_section.
28052         * sysdeps/x86_64/sysdep.h: Likewise.
28053         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
28054         section with atom_text_section.
28055         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
28056         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
28057         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
28058         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
28059         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
28060
28061         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
28062         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
28063         already be defined.  Change to take two parameters and don't assign
28064         result to variable.  Adjust all users.
28065         Define INTERNAL_GETTIME if not already defined.
28066         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
28067         call.
28068         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
28069         HAVE_CLOCK_GETTIME_VSYSCALL.
28070         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
28071
28072         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
28073         gettimeofday vsyscall, just use time.
28074
28075 2011-09-06  Andreas Schwab  <schwab@redhat.com>
28076
28077         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
28078         <errno.h>.
28079
28080 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
28081
28082         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
28083         syscall on x86-64.
28084         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
28085         syscall.
28086         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
28087         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
28088         syscall if possible.
28089
28090 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
28091
28092         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
28093         e_ident.  Don't pass to find_mapsXX.
28094         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
28095
28096 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
28097
28098         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28099         strchr-sse2-no-bsf strrchr-sse2-no-bsf
28100         * sysdeps/x86_64/multiarch/strchr.S: Update.
28101         Check bit_slow_BSF bit.
28102         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
28103         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
28104         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
28105
28106 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
28107
28108         [BZ #13134]
28109         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
28110         before glibc 2.15.
28111         (tryshell): Define.
28112         (__spawni): Change last parameter to be flag.  Test
28113         SPAWN_XFLAGS_USE_PATH flag to use path or not.
28114         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
28115         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
28116         * posix/spawni.c: Likewise.
28117         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
28118         * posix/spawnp.c: Likewise.  Change normal version to use
28119         SPAWN_XFLAGS_USE_PATH.
28120         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
28121         SPAWN_XFLAGS_TRY_SHELL.
28122
28123         [BZ #13150]
28124         * posix/glob.h: Remove gcc 1.x support.
28125
28126         [BZ #13068]
28127         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
28128
28129 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
28130
28131         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28132         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
28133         strrchr-sse2-bsf
28134         * sysdeps/i386/i686/multiarch/strchr.S: New file.
28135         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
28136         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
28137         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
28138         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
28139         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
28140
28141 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28142
28143         * sysdeps/x86_64/wcscmp.S: New file.
28144
28145         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
28146         wcscmp-c wcscmp-sse2
28147         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
28148         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
28149         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
28150         * wcsmbs/wcscmp.c: Allow renaming.
28151
28152 2011-09-05  David S. Miller  <davem@davemloft.net>
28153
28154         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
28155         stack slot, rather than the struct return pointer slot.
28156         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
28157         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
28158         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
28159         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
28160
28161 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
28162
28163         * po/ja.po: Update from translation team.
28164
28165         [BZ #13144]
28166         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
28167         kernel in 64-bit binaries.
28168
28169 2011-09-01  David S. Miller  <davem@davemloft.net>
28170
28171         * elf/elf.h (HWCAP_SPARC_*): Move to..
28172         * sysdeps/sparc/sysdep.h: this new file and add new values.
28173         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
28174         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
28175         _DL_HWCAP_COUNT to 24.
28176         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
28177         entries.
28178         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
28179         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
28180         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
28181         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
28182         instead of magic constants.
28183         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
28184
28185 2011-08-31  David S. Miller  <davem@davemloft.net>
28186
28187         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
28188         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
28189         Reimplement to do errno handling inline.
28190         (SYSCALL_ERROR_HANDLER): New macro.
28191         (__SYSCALL_STRING): Do not do errno handling in asm.
28192         (__CLONE_SYSCALL_STRING): Delete.
28193         (__INTERNAL_SYSCALL_STRING): Delete.
28194         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
28195         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
28196         (PSEUDO): Reimplement to do errno handling inline.
28197         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
28198         (SYSCALL_ERROR_HANDLER): New macro.
28199         (__SYSCALL_STRING): Do not do errno handling in asm.
28200         (__CLONE_SYSCALL_STRING): Delete.
28201         (__INTERNAL_SYSCALL_STRING): Delete.
28202         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
28203         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
28204         i386.
28205         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
28206         (inline_syscall*): Add 'err' argument.
28207         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
28208         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
28209         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
28210         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
28211
28212         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
28213         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
28214
28215 2011-08-30  Andreas Schwab  <schwab@redhat.com>
28216
28217         * elf/rtld.c (dl_main): Relocate objects in dependency order.
28218
28219 2011-08-29  Jiri Olsa <jolsa@redhat.com>
28220
28221         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
28222         directive.
28223
28224 2011-08-24  David S. Miller  <davem@davemloft.net>
28225
28226         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
28227
28228 2011-08-24  Andreas Schwab  <schwab@redhat.com>
28229
28230         * elf/Makefile: Add rules to build and run unload8 test.
28231         * elf/unload8.c: New file.
28232         * elf/unload8mod1.c: New file.
28233         * elf/unload8mod1x.c: New file.
28234         * elf/unload8mod2.c: New file.
28235         * elf/unload8mod3.c: New file.
28236
28237         * elf/dl-close.c (_dl_close_worker): Reset private search list if
28238         it wasn't used.
28239
28240 2011-08-23  David S. Miller  <davem@davemloft.net>
28241
28242         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
28243         subtract stack bias.
28244         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
28245         %sp not %fp in calculations.
28246         (_JMPBUF_UNWINDS_ADJ): Likewise.
28247
28248         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
28249         (aio_suspend): Call it to force an exception region around the
28250         AIO_MISC_WAIT() invocation.
28251
28252 2011-08-23  Andreas Schwab  <schwab@redhat.com>
28253
28254         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
28255         backslash.
28256
28257 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
28258
28259         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
28260         protection macro.
28261         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
28262         and <dl-machine.h>.
28263         (Elf64_FuncDesc): Remove.
28264
28265 2011-08-22  David S. Miller  <davem@davemloft.net>
28266
28267         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
28268         sigaltstack check, add missing cfi directives.
28269         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
28270         missing cfi directives, and sigaltstack handling.
28271
28272 2011-08-16  Andreas Schwab  <schwab@redhat.com>
28273
28274         [BZ #11724]
28275         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
28276         object is seen twice.
28277         * elf/dl-fini.c (_dl_sort_fini): Likewise.
28278
28279         * elf/Makefile (distribute): Add tst-initorder2.c.
28280         (tests): Add tst-initorder2.
28281         (modules-names): Add tst-initorder2a tst-initorder2b
28282         tst-initorder2c tst-initorder2d.  Add rules to build them.
28283         ($(objpfx)tst-initorder2.out): New rule.
28284         * elf/tst-initorder2.c: New file.
28285         * elf/tst-initorder2.exp: New file.
28286
28287 2011-08-22  Andreas Schwab  <schwab@redhat.com>
28288
28289         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
28290
28291         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
28292         dependencies back to end of function.
28293
28294         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
28295         $(elfobjdir)/ld.so.
28296
28297 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
28298
28299         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
28300         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
28301         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
28302         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
28303         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
28304         of __vdso_gettimeofday.
28305         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
28306         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
28307         attribute_hidden.
28308         (_libc_vdso_platform_setup): Remove initialization of
28309         __vdso_gettimeofday and __vdso_time.
28310
28311 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
28312
28313         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
28314         and fgetc_unlocked.
28315         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
28316         getc_unlocked.
28317
28318         * elf/dl-open.c (add_to_global): Report additions to the global scope
28319         for LD_DEBUG=scopes.
28320         (dl_open_worker): Also print scope of newly loaded dependencies.
28321         (_dl_show_scope): Indicate if there is no scope.
28322
28323         [BZ #13114]
28324         * stdio-common/Makefile (tests): Add bug24.
28325         * stdio-common/bug24.c: New file.
28326
28327 2011-08-19  Andreas Jaeger  <aj@suse.de>
28328
28329         [BZ #13114]
28330         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
28331         non-existant file when using close-on-exec mode.
28332
28333 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
28334
28335         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
28336         the very first instruction.
28337
28338         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
28339         the CFI state in the end.
28340         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
28341         inclusion of dl-trampoline.h.
28342         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
28343
28344 2011-08-19  Andreas Schwab  <schwab@redhat.com>
28345
28346         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
28347         expectations for long double.
28348
28349         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
28350         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
28351
28352 2011-08-14  David S. Miller  <davem@davemloft.net>
28353
28354         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
28355         artificual limit depends upon the system page size.
28356
28357 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
28358
28359         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
28360         * resolv/Makefile: Define CFLAGS-libresolv.
28361
28362 2011-08-17  Andreas Schwab  <schwab@redhat.com>
28363
28364         * nss/makedb.c (compute_tables): Make variables used in nested
28365         function static.
28366
28367 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
28368
28369         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
28370         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
28371         if buffer was too small.
28372
28373         * elf/pldd.c (main): Attach to all threads in the process.
28374         Rewrite /proc handling to use *at functions.
28375
28376 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
28377
28378         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
28379         specifies first scope to show.
28380         (dl_open_worker): Update callers.  Move printing scope of new
28381         object to before the relocation.
28382         * elf/rtld.c (dl_main): Update _dl_show_scope call.
28383         * sysdeps/generic/ldsodefs.h: Update declaration.
28384
28385         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
28386         string for the scope number.
28387
28388 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
28389
28390         * nscd/servicescache.c (cache_addserv): Make sure written is always
28391         initialized.
28392
28393 2011-08-14  Roland McGrath  <roland@hack.frob.com>
28394
28395         * sysdeps/i386/i486/bits/atomic.h
28396         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
28397         statement expression, so as to suppress "set but not used" warning.
28398         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
28399
28400         * string/strncat.c (STRNCAT): Use prototype definition.
28401
28402         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
28403         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
28404         -Iprograms here.
28405         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
28406         (localedef-modules): Add localedef.
28407         (locale-modules): Add locale.
28408
28409         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
28410         * elf/rtld.c (dl_main): Invert order of assignment in last change,
28411         to avoid a warning.
28412
28413 2011-08-14  David S. Miller  <davem@davemloft.net>
28414
28415         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
28416         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
28417
28418 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
28419
28420         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
28421         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
28422         * elf/rtld.c (dl_main): Set l_name of vDSO.
28423         Call _dl_show_scope when DL_DEBUG_SCOPES.
28424         (process_dl_debug): Recognize scopes flag and also set it for all.
28425         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
28426         Declare _dl_show_scope.
28427
28428         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
28429         (do_dlopen): Pass caller_dlopen to dl_open.
28430         (__libc_dlopen_mode): Initialize caller_dlopen.
28431
28432         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
28433         of libc.  Make tolower call locale-independent.  Optimize a bit by
28434         using isdigit instead of isalnum.
28435         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
28436
28437 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
28438
28439         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
28440         was a dependency or dynamically loaded.
28441
28442 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
28443
28444         * intl/l10nflist.c: Allow architecture-specific pop function.
28445         * sysdeps/x86_64/l10nflist.c: New file.
28446
28447         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
28448         classification.
28449
28450 2011-08-10  Andreas Schwab  <schwab@redhat.com>
28451
28452         * include/dirent.h: Add libc_hidden_proto for scandirat and
28453         scandirat64.  Don't declare __scandirat64.
28454         * dirent/scandirat.c: Add libc_hidden_def.
28455         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
28456         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
28457
28458 2011-08-10  David S. Miller  <davem@davemloft.net>
28459
28460         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
28461         enum.
28462         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
28463         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
28464         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
28465
28466 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
28467
28468         * Versions.def [libc]: Add GLIBC_2.15.
28469         * dirent/Makefile (routines): Add scandirat and scandirat64.
28470         * dirent/Versions [libc]: Export scandirat and scandirat64 for
28471         GLIBC_2.15.
28472         * dirent/dirent.h: Declare scandirat and scandirat64.
28473         * dirent/scandirat.c: New file.
28474         * dirent/scandirat64.c: New file.
28475         * sysdeps/wordsize-64/scandirat.c: New file.
28476         * sysdeps/wordsize-64/scandirat64.c: New file.
28477         * dirent/opendir.c: Define opendirat.
28478         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
28479         using scandirat.
28480         * dirent/scandir64.c: Adjust for scandir.c change.
28481         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
28482         __scandirat64, and __scandir_cancel_handler.
28483         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
28484         additional parameter and use openat instead of open (outside of ld.so).
28485         Add new __opendir as wrapper around __opendirat.
28486         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
28487         here without requiring old scandirat implementation.
28488
28489 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
28490
28491         * dirent/scandir.c (cancel_handler): Renamed to
28492         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
28493         defined.  Adjust users.
28494         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
28495         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
28496
28497 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
28498
28499         * string/test-string.h (IMPL): Use __STRING to expand name and then
28500         stringify it.
28501
28502         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
28503         of cleanups.
28504
28505 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28506
28507         * string/Makefile: Update.
28508         (strop-tests): Append strncat.
28509         * string/test-wcscmp.c: New file.
28510         New comprehensive test for wcscmp.
28511         * string/test-strcmp.c: Update.
28512         (WIDE): New define.
28513
28514 2011-07-22  Andreas Schwab  <schwab@redhat.com>
28515
28516         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
28517         line.
28518
28519 2011-07-26  Andreas Schwab  <schwab@redhat.com>
28520
28521         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
28522         encoding to ACE if AI_IDN.
28523
28524 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
28525
28526         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
28527         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
28528
28529 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
28530
28531         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
28532         Fix overflow bug in strncat.
28533         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
28534
28535         * string/test-strncat.c: Update.
28536         Add new tests for checking overflow bugs.
28537
28538 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
28539
28540         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
28541         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
28542         * sysdeps/i386/i686/multiarch/strcat.S: New file.
28543         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
28544         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
28545         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
28546         * sysdeps/i386/i686/multiarch/strncat.S: New file.
28547         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
28548         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
28549
28550         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
28551         (USE_AS_STRCAT): Define.
28552         Add strcat and strncat support.
28553         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
28554
28555 2011-07-25  Andreas Schwab  <schwab@redhat.com>
28556
28557         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
28558         __n bigger than INT_MAX+1.
28559         (__strncmp_g): Likewise.
28560
28561 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
28562
28563         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
28564         * libio/stido.h: Likewise.
28565
28566         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
28567         (AF_NFC): Define.
28568         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
28569         (AF_NFC): Define.
28570
28571         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
28572         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
28573         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
28574         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
28575         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
28576
28577         [BZ #13021]
28578         * scripts/test-installation.pl: Don't expect libnss_test1 to be
28579         installed.
28580
28581         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
28582         typo.
28583         (_dl_x86_64_save_sse): Likewise.
28584
28585 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
28586
28587         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
28588         OSXSAVE.
28589         (_dl_x86_64_save_sse): Likewise.
28590
28591         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
28592
28593         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
28594
28595 2011-07-21  Andreas Schwab  <schwab@redhat.com>
28596
28597         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
28598         change.
28599         (_dl_x86_64_save_sse): Use correct AVX check.
28600
28601 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28602
28603         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
28604         bug in strncpy/strncat.
28605         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
28606
28607 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
28608
28609         * string/tester.c (test_strcat): Add tests for different alignments
28610         of source and destination.
28611         (test_strncat): Likewise.
28612
28613 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
28614
28615         [BZ #12852]
28616         * posix/glob.c (glob): Check passed in values before using them in
28617         expressions to avoid some overflows.
28618         (glob_in_dir): Likewise.
28619
28620         [BZ #13007]
28621         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
28622         check for AVX enablement so that we don't crash with old kernels and
28623         new hardware.
28624         * elf/tst-audit4.c: Add same checks here.
28625         * elf/tst-audit6.c: Likewise.
28626
28627         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
28628
28629 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
28630
28631         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
28632
28633 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
28634
28635         * po/cs.po: Update from translation team.
28636         * po/bg.po: Likewise.
28637
28638 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
28639
28640         * misc/sys/cdefs.h: Add support for const attribute.
28641         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
28642         to gnu_dev_{major,minor,makedev} functions.
28643
28644 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
28645
28646         * intl/dcigettext.c (get_output_charset): Add missing bracket.
28647
28648 2011-07-20  Andreas Schwab  <schwab@redhat.com>
28649
28650         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
28651         strlen results.
28652
28653 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
28654
28655         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
28656         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
28657         register in order to avoid conflicts with the soft frame pointer
28658         being held in r11 when necessary.
28659         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
28660         (INTERNAL_VSYSCALL_NCS): Likewise.
28661
28662 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
28663
28664         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
28665         * elf/dl-fini.c (_dl_fini): Adjust caller.
28666         * elf/dl-close.c (_dl_close_worker): Likewise.
28667         * sysdeps/generic/ldsodefs.h: Adjust declaration.
28668
28669 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
28670
28671         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
28672         "aux_cache->nlibs < 0".
28673
28674         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
28675         in the reload-count case.
28676
28677 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
28678
28679         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
28680         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
28681         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
28682         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
28683         * sysdeps/x86_64/multiarch/strcat.S: New file.
28684         * sysdeps/x86_64/multiarch/strncat.S: New file.
28685         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
28686         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
28687         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
28688         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
28689         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
28690         (USE_AS_STRCAT): Define.
28691         Add strcat and strncat support.
28692         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
28693         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
28694         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
28695         * string/strncat.c: Update.
28696         (USE_AS_STRNCAT): Define.
28697         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
28698         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
28699         and i7.
28700         * sysdeps/x86_64/multiarch/init-arch.h
28701         (bit_Prefer_PMINUB_for_stringop): New.
28702         (index_Prefer_PMINUB_for_stringop): Likewise.
28703         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
28704         bit_Prefer_PMINUB_for_stringop.
28705
28706 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
28707
28708         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
28709         buffer64.
28710         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
28711         of casting of buffer.
28712         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
28713         buffer32 and buffer64.
28714         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
28715         writes instead of casting of buffer.
28716         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
28717         buffer32.
28718         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
28719         casting of buffer.
28720
28721 2011-07-19  Andreas Schwab  <schwab@redhat.com>
28722
28723         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
28724
28725 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
28726
28727         * nscd/nscd.c (termination_handler): Don't do anything for a database
28728         if it has not yet been initialized.
28729
28730 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
28731
28732         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
28733
28734 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
28735
28736         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
28737
28738 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
28739
28740         * po/nl.po: Update from translation team.
28741         * po/sv.po: Likewise.
28742
28743 2011-07-16  Roland McGrath  <roland@hack.frob.com>
28744
28745         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
28746         now disallowed by GCC.
28747
28748         * configure.in (use-default-link): Default to yes if a test -shared
28749         link meets our qualifications.
28750         * configure: Regenerated.
28751
28752         * config.make.in (output-format): New variable.
28753         * configure.in: Check for ld --print-output-format support.
28754         * configure: Regenerated.
28755         * Makerules ($(common-objpfx)format.lds)
28756         [$(output-format) != unknown]: Just use $(output-format),
28757         instead of the linker-script munging.
28758
28759 2011-07-14  Roland McGrath  <roland@hack.frob.com>
28760
28761         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
28762         of $(common-objpfx)shlib.lds.
28763         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
28764
28765         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
28766         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
28767
28768         * configure.in (-z relro check): Adjust test code to add a large
28769         writable data section after it.
28770         * configure: Regenerated.
28771
28772 2011-07-11  Roland McGrath  <roland@hack.frob.com>
28773
28774         * configure.in (-z relro check): Fix test code to make the variable
28775         truly const.
28776         * configure: Regenerated.
28777
28778 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
28779
28780         * nscd/nscd.h (struct traced_file): Define.
28781         (struct database_dyn): Remove inotify_descr, reset_res, and filename
28782         elements.  Add traced_files.
28783         (inotify_fd): Declare.
28784         (register_traced_file): Declare.
28785         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
28786         (inotify_fd): Export.
28787         (resolv_conf_descr): Remove.
28788         (nscd_init): Move inotify descriptor creation to main.
28789         Don't register files for notification here.
28790         (register_traced_file): New function.
28791         (invalidate_cache): Don't use reset_res to determine whether to call
28792         res_init, go through the list of registered files.
28793         (main_loop_poll): The inotify descriptors are now stored in the
28794         structures for the traced files.
28795         (main_loop_epoll): Likewise
28796         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
28797         to __nss_disable_nscd.
28798         * nscd/cache.c (prune_cache): There is no single inotify descriptor
28799         for a database anymore.  Check the records for all the registered
28800         files instead.
28801         * nss/Makefile (libnss_files-routines): Add files-init.
28802         (libnss_db-routines): Add db-init.
28803         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
28804         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
28805         * nss/nss_db/db-init.c: New file.
28806         * nss/nss_files/files-init.c: New file.
28807         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
28808         __nss_lookup_function.
28809         (__nss_lookup_function): Call nss_load_library.
28810         (nss_load_all_libraries): New function.
28811         (__nss_disable_nscd): Take parameter with callback function for files
28812         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
28813         used for the cached services.
28814         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
28815         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
28816         options for features to all the files in nscd.
28817
28818         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
28819
28820 2011-07-10  Roland McGrath  <roland@hack.frob.com>
28821
28822         * csu/elf-init.c (__libc_csu_init): Comment typo.
28823
28824 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
28825
28826         * po/pl.po: Update from translation team.
28827         * po/ja.po: Likewise.
28828         * po/ru.po: Likewise.
28829         * po/ko.po: Likewise.
28830         * po/fr.po: Likewise.
28831
28832 2011-07-09  Roland McGrath  <roland@hack.frob.com>
28833
28834         * configure.in (.ctors/.dtors header and trailer check):
28835         Use an empirical test on a built program.
28836         * configure: Regenerated.
28837
28838         * configure.in (-z relro check): Use an empirical test on a built DSO.
28839         Detect, but do not require, on ia64.
28840         * configure: Regenerated.
28841
28842         * configure.in (READELF): Find it with AC_CHECK_TOOL.
28843         Update tests that use readelf to use $READELF instead.
28844         * configure: Regenerated.
28845
28846 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
28847
28848         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
28849         if the result is not used.
28850
28851 2011-07-05  Andreas Jaeger  <aj@suse.de>
28852
28853         [BZ#9696]
28854         * stdlib/tst-strtod.c: Add testcase.
28855
28856 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
28857
28858         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
28859         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
28860         The latter has a higher limit.  Take additional parameter to pass to
28861         the new function.
28862         (__pathconf): Pass file to __statfs_link_max.
28863         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
28864         __statfs_link_max.
28865         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
28866         __statfs_link_max.
28867
28868         [BZ #12868]
28869         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
28870         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
28871         Handle Lustre.
28872         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
28873         (__statfs_filesize_max): Likewise.
28874         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
28875
28876 2011-07-05  Andreas Jaeger  <aj@suse.de>
28877
28878         * resolv/res_comp.c (dn_skipname): Remove unused variable.
28879
28880 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
28881
28882         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
28883         `status' variable.
28884         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
28885         Likewise.
28886
28887 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
28888
28889         * Makefile (strop-tests): Add strncat.
28890         * string/test-strncat.c: New file.
28891
28892 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
28893
28894         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
28895
28896 2011-06-21  Andreas Jaeger  <aj@suse.de>
28897
28898         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
28899         Copy rule from iconvdata/Makefile.
28900
28901 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
28902
28903         [BZ #12922]
28904         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
28905         but no long options are defined, just return 'W'.
28906
28907 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
28908
28909         [BZ #9696]
28910         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
28911
28912 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
28913
28914         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
28915         netgroups to read.
28916         (innetgr): Likewise.
28917
28918 2011-07-05  Roland McGrath  <roland@hack.frob.com>
28919
28920         * config.make.in (install_root): Default to $(DESTDIR).
28921
28922 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
28923
28924         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
28925
28926 2011-07-02  Roland McGrath  <roland@hack.frob.com>
28927
28928         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
28929
28930         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
28931         containing directory rather than embedding absolute directory names.
28932
28933         * scripts/check-local-headers.sh: Rewritten using awk.
28934         Match by word, not by line.  Print error messages for matches.
28935         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
28936
28937         * Makerules [shlib-lds-flags empty]:
28938         ($(common-objpfx)libc_pic.opts): New target.
28939         ($(common-objpfx)libc_pic.os.clean): New target.
28940         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
28941
28942         * config.make.in (OBJCOPY): New variable.
28943         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
28944         * configure: Regenerated.
28945
28946         * config.make.in (use-default-link): New variable.
28947         * configure.in (use_default_link): Grok --with-default-link to set it.
28948         * configure: Regenerated.
28949         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
28950         (shlib-lds, shlib-lds-flags): Define to empty.
28951
28952         * Makerules (shlib-lds): New variable.
28953         (shlib-lds-flags): New variable.
28954         (build-shlib, build-moduile, build-module-asneeded): Use it.
28955         ($(common-objpfx)libc.so): Use $(shlib-lds).
28956         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
28957         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
28958
28959         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
28960         DT_FLAGS/DT_FLAGS_1 with zero flags.
28961
28962         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
28963         linker script munging.
28964
28965 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
28966
28967         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
28968         as 128-bit value.
28969         * crypt/sha512.c (sha512_process_block): Perform total addition using
28970         128-bit if possible.
28971         (__sha512_finish_ctx): Likewise.
28972         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
28973         as 64-bit value.
28974         * crypt/sha256.c (SWAP64): Define.
28975         (sha256_process_block): Perform total addition using 64-bit if
28976         possible.
28977         (__sha256_finish_ctx): Likewise.
28978
28979 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
28980
28981         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
28982         * nscd/initgrcache.c (addinitgroupsX): Likewise.
28983         * nscd/hstcache.c (cache_addhst): Likewise.
28984         * nscd/grpcache.c (cache_addgr): Likewise.
28985         * nscd/aicache.c (addhstaiX): Likewise
28986         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
28987
28988 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
28989
28990         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
28991         * nscd/initgrcache.c (addinitgroupsX): Likewise.
28992         * nscd/hstcache.c (cache_addhst): Likewise.
28993         * nscd/grpcache.c (cache_addgr): Likewise.
28994         * nscd/aicache.c (addhstaiX): Likewise
28995
28996 2011-07-01  Andreas Schwab  <schwab@redhat.com>
28997
28998         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
28999         domain only when needed.
29000
29001 2011-06-30  Andreas Schwab  <schwab@redhat.com>
29002
29003         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
29004         is always restored.
29005
29006 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
29007
29008         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
29009         are re-adding the entry.
29010         * nscd/servicescache.c (cache_addserv): Likewise.
29011
29012 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
29013
29014         * sysdeps/generic/dl-irel.h: fix protection against multiple
29015         inclusions.
29016         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
29017
29018 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
29019
29020         [BZ #12935]
29021         * malloc/memusage.sh: Fix quoting in message.
29022         * debug/xtrace.sh: Likewise.
29023
29024         * configure.in: Remove support for --experimental-malloc option, make
29025         it the default.
29026         * config.make.in: Likewise.
29027         * malloc/Makefile: Likewise.
29028
29029 2011-06-27  Andreas Schwab  <schwab@redhat.com>
29030
29031         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
29032         two-byte characters.
29033
29034 2011-06-27  Roland McGrath  <roland@hack.frob.com>
29035
29036         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
29037         AC_CACHE_CHECK invocation.
29038         * configure: Regenerated.
29039
29040         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
29041
29042 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
29043
29044         [BZ #12350]
29045         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
29046         bit from old_res_options.
29047
29048         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
29049
29050         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
29051         value type for setfct.
29052
29053 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
29054
29055         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
29056         __gettimeofday instead of gettimeofday.
29057
29058 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
29059
29060         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
29061
29062 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
29063
29064         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
29065
29066         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
29067         info.
29068
29069 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
29070
29071         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29072         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
29073         strcpy-sse2-unaligned strncpy-sse2-unaligned
29074         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
29075         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
29076         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
29077         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
29078         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
29079         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
29080         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
29081         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
29082         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
29083         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
29084         (STRCPY): Support SSE2 and SSSE3 versions.
29085
29086 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
29087
29088         [BZ #12874]
29089         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
29090         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
29091         kernels which artificially limit size of requests.
29092
29093 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
29094
29095         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
29096         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
29097         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
29098         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
29099         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
29100         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
29101         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
29102         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
29103         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
29104         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
29105         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
29106         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
29107         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
29108         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
29109         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
29110         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29111         Enable unaligned load optimization for Intel Core i3, i5 and i7
29112         processors.
29113         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
29114         Define.
29115         (index_Fast_Unaligned_Load): Define.
29116         (HAS_FAST_UNALIGNED_LOAD): Define.
29117
29118 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
29119
29120         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
29121
29122 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
29123
29124         [BZ #12907]
29125         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
29126         until it is clear that the information is realy needed.
29127         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
29128
29129 2011-06-22  Andreas Schwab  <schwab@redhat.com>
29130
29131         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
29132
29133 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
29134
29135         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
29136         /sys/devices/system/cpu/online if it is usable.
29137
29138         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
29139         reading the information from the /proc filesystem to once a second.
29140
29141 2011-06-21  Andreas Jaeger  <aj@suse.de>
29142
29143         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
29144         NULL after inclusion of kernel headers.
29145
29146 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
29147
29148         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
29149         calls to internal_setent.
29150
29151         [BZ #12885]
29152         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
29153         addresses using gethostbyname4_r ignore IPv4 addresses.
29154
29155         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
29156         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
29157
29158         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
29159
29160 2011-06-20  David S. Miller  <davem@davemloft.net>
29161
29162         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
29163         inclusions.
29164         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
29165
29166         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
29167         (elf_irel): Use it.
29168         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
29169         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
29170         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
29171         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
29172         * sysdeps/x86_64/dl-irel.h: Likewise.
29173
29174         * elf/dl-runtime.c: Use elf_ifunc_invoke.
29175         * elf/dl-sym.c: Likewise.
29176
29177 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
29178
29179         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
29180         need to dereference resplen2.
29181
29182 2011-06-14  Andreas Schwab  <schwab@redhat.com>
29183
29184         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
29185
29186 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
29187
29188         * Makeconfig: Define vardbdir and inst_vardbdir.
29189         * nss/Makefile: Add rules to install db-Makefile.
29190
29191         * nss/nss_db/db-XXX.c: Cleanup.
29192
29193         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
29194         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
29195         GLIBC_PRIVATE.
29196         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
29197         * nss/makedb.c: Implement -g option to specify that value strings
29198         are generated and should not be added to table iterated over for
29199         get*ent calls.
29200         * nss/nss_db/db-initgroups.c: New file.
29201
29202         * nss/getent.c: Add support for initgroups lookups through getgrouplist
29203         interface.
29204
29205         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
29206         (internal_getgrouplist): Adjust to name change.
29207         Update use_initgroups_entry if this is not the first call.
29208         * nss/databases.def: Add initgroups entry.
29209
29210         * nss/makedb.c (compute_tables): Check result of multiple hash table
29211         sizes to minimize maximum chain length.
29212
29213 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
29214
29215         * Versions.def: Add entry for libnss_db.
29216         * shlib-versions: Likewise.
29217         * nss/Makefile: Add rules to build libnss_db.
29218         * nss/Versions: Add libnss_db information.  Organize libnss_files
29219         entries better.
29220         * nss/db-Makefile: Add gshadow support.  Change rules for the new
29221         makedb progra.  Some minor improvements to generate smaller files.
29222         * nss/nss_db/nss_db.h: Move NSS database header data structures to
29223         here from...
29224         * nss/makedb.c: ...here.
29225         Improve database format to be smaller and require less memory at
29226         runtime.
29227         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
29228         db anymore.
29229         * nss/nss_db/db-netgrp.c: Likewise.
29230         * nss/nss_db/db-open.c: Likewise.
29231         * nss/nss_files/flies-XXX.x: Adjust comments.
29232         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
29233         * nss/nss_files/files-grp.c: Likewise.
29234         * nss/nss_files/files-hosts.c: Likewise.
29235         * nss/nss_files/files-network.c: Likewise.
29236         * nss/nss_files/files-proto.c: Likewise.
29237         * nss/nss_files/files-pwd.c: Likewise.
29238         * nss/nss_files/files-rpc.c: Likewise.
29239         * nss/nss_files/files-service.c: Likewise.
29240         * nss/nss_files/files-sgrp.c: Likewise.
29241         * nss/nss_files/files-spwd.c: Likewise.
29242         * nss/nss_db/db-alias.c: Removed.
29243         * nss/nss_db/dummy-db.h: Removed.
29244
29245 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
29246
29247         * nss/makedb.c: Rewritten to not use database library.
29248         * nss/Makefile: Update to build new makedb program.
29249
29250 2011-06-14  Andreas Jaeger  <aj@suse.de>
29251
29252         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
29253         memset declaration.
29254
29255 2011-06-10  Andreas Schwab  <schwab@redhat.com>
29256
29257         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
29258         tmpbuf.
29259
29260 2011-06-10  Roland McGrath  <roland@hack.frob.com>
29261
29262         * Makerules (shlib.lds): Fail if the linker script comes out empty.
29263         * elf/Makefile ($(objpfx)ld.so): Likewise.
29264
29265         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
29266         Don't list ld.so twice in dependencies.
29267
29268         * posix/bug-regex31.c: Include <stdlib.h>.
29269
29270         * nscd/hstcache.c (cache_addhst): Remove unused variable.
29271
29272         * nis/nss_compat/compat-spwd.c
29273         (getspent_next_nss_netgr): Remove unused variable.
29274         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
29275
29276         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
29277         nonmembers" output to use the right array.
29278
29279         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
29280
29281         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
29282
29283         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
29284         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
29285         * catgets/gencat.c (read_input_file): Likewise.
29286         * locale/programs/locarchive.c (enlarge_archive): Likewise.
29287
29288         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
29289         variable definition inside #if's controlling its use.
29290
29291         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
29292
29293         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
29294
29295         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
29296
29297         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
29298         unreachable code.
29299
29300         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
29301
29302         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
29303         * configure: Regenerated.
29304
29305         * Makerules: Revert last change.
29306         * elf/Makefile: Likewise.
29307
29308 2011-06-09  Roland McGrath  <roland@hack.frob.com>
29309
29310         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
29311         * elf/Makefile ($(objpfx)librtld.os): Likewise.
29312         (reloc-link): Likewise.
29313
29314 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
29315
29316         * elf/Makefile: Add rules to build pldd.
29317         * elf/pldd.c: New file.
29318         * elf/pldd-xx.c: New file.
29319
29320 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
29321
29322         * version.h: Update for 2.15 development version.
29323
29324 2011-06-07  David S. Miller  <davem@davemloft.net>
29325
29326         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
29327         ifuncs.
29328         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
29329         elf_machine_lazy_rel): Likewise.
29330         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
29331         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
29332         elf_machine_lazy_rel): Likewise.
29333         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
29334         dl_hwcap via passed in argument.
29335         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
29336         Likewise.
29337
29338 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
29339
29340         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
29341
29342 2011-06-06  Roland McGrath  <roland@hack.frob.com>
29343
29344         [BZ #12849]
29345         * manual/fdl-1.1.texi: New file, verbatim from:
29346         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
29347         * manual/lgpl-2.1.texi: New file, verbatim from:
29348         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
29349         * manual/Makefile (licenses): New variable, list those new file names.
29350         (texis): Use it.
29351         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
29352
29353         * manual/fdl.texi: File removed.
29354         * manual/lesser.texi: File removed.
29355         * manual/libc.texinfo (Copying, Documentation License):
29356         Use new @include file names, put @appendix directive before @include.
29357
29358 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
29359
29360         [BZ #12841]
29361         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
29362         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
29363         (mq_open): Add __NTH.
29364
29365 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
29366
29367         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
29368         Assume Intel Core i3/i5/i7 processor if AVX is available.
29369
29370 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
29371
29372         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
29373         typo.
29374
29375 2011-05-31  Andreas Schwab  <schwab@redhat.com>
29376
29377         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
29378         memory.  Use alloca_account.  Fix memory leak when retrying.
29379
29380 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
29381
29382         * version.h (RELEASE): Bump for 2.14 release.
29383         * include/features.h (__GLIBC_MINOR__): Bump to 14.
29384
29385         * config.make.in (RANLIB): Remove entry.
29386
29387 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
29388
29389         * po/Makefile (po-sed-cmd): Add ksh to extensions.
29390         (libc.pot): Work around missing support for .ksh extension in xgettext.
29391
29392         [BZ #12684]
29393         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
29394         if both request failed.
29395         (send_dg): In case of server errors clear resplen or *resplen2.
29396
29397         [BZ #12454]
29398         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
29399         when there are multiple maps.
29400         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
29401         (_dl_fini): Remove test here.
29402
29403         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
29404
29405 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
29406
29407         [BZ #12350]
29408         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
29409         bit from old_res_options.
29410         (gaih_inet): Likewise.
29411
29412         [BZ #11099]
29413         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
29414         as signed.
29415
29416         * resolv/res_init.c (res_setoptions): Make the code more compact.
29417
29418         [BZ #11558]
29419         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
29420         set RES_USEVC.
29421
29422         [BZ #11634]
29423         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
29424
29425         * malloc/malloc.h: Mark malloc hook variables as deprecated.
29426
29427         [BZ #11781]
29428         * malloc/malloc.h: Declare malloc hook variables as volatile.
29429
29430         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
29431         in last patch.
29432
29433         [BZ #11799]
29434         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
29435         raise in the comment.
29436         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
29437         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
29438         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
29439
29440 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
29441
29442         [BZ #12811]
29443         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
29444         grow the buffers more if it already has to be sufficient.
29445         (build_wcs_upper_buffer): Likewise.
29446         * posix/regexec.c (check_matching): Likewise.
29447         (clean_state_log_if_needed): Likewise.
29448         (extend_buffers): Don't enlarge buffers beyond size of the input
29449         buffer.
29450         Patches mostly by Emil Wojak <emil@wojak.eu>.
29451         * posix/bug-regex32.c: New file.
29452         * posix/Makefile (tests): Add bug-regex32.
29453
29454         * locale/findlocale.c (_nl_find_locale): Return right away if
29455         _nl_explode_name failed.
29456         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
29457
29458         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
29459
29460         * debug/xtrace.sh: Unify messages.
29461         * malloc/memusage.sh: Likewise.
29462
29463         [BZ #12813]
29464         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
29465         time symbol from vDSO.  Substitute with vsyscall if not available.
29466         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
29467         __vdso_time.
29468
29469         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
29470         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
29471         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
29472         Add sendmmsg and internal_sendmmsg.
29473         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
29474         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
29475         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
29476
29477         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
29478         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
29479         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
29480
29481 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
29482
29483         [BZ #12813]
29484         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
29485         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
29486         available.
29487         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
29488         __vdso_getcpu.
29489
29490         [BZ #12814]
29491         * iconvdata/Makefile (tests): Add bug-iconv9.
29492         * iconvdata/bug-iconv9.c: New file.
29493
29494 2011-05-27  Andreas Schwab  <schwab@redhat.com>
29495
29496         [BZ #12814]
29497         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
29498
29499 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
29500
29501         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
29502         (struct user_regs_struct): Change intcs field back to cs.
29503
29504 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
29505
29506         * po/ja.po: Update from translation team.
29507
29508 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
29509
29510         [BZ #12795]
29511         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
29512         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
29513
29514 2011-05-20  Andreas Schwab  <schwab@redhat.com>
29515
29516         * stdlib/longlong.h: Update from GCC.
29517
29518 2011-05-23  Andreas Schwab  <schwab@redhat.com>
29519
29520         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
29521         parameter name.
29522         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
29523         Add parameter name.
29524         (__sysconf): Pass it down.
29525
29526 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
29527
29528         [BZ #12671]
29529         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
29530         some situations.
29531         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
29532         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
29533         add in in __libc_use_alloca calls.  Adjust callers.
29534         (glob): Use malloc in some situations.
29535
29536         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
29537         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
29538         pltexit.
29539
29540 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
29541
29542         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
29543         and CLOCK_BOOTTIME_ALARM.
29544
29545         [BZ #12782]
29546         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
29547         is returned.
29548
29549         * string/_strerror.c (__strerror_r): Print negative errors as signed
29550         numbers.
29551
29552         [BZ #12777]
29553         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
29554         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
29555         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
29556
29557         * configure.in: Fix typo in redirection and correct removal of test
29558         files in two cases.
29559
29560         [BZ #12788]
29561         * locale/setlocale.c (new_composite_name): Fix test to check for
29562         identical name of all categories.
29563
29564         [BZ #12792]
29565         * libio/filedoalloc.c (local_isatty): New function.
29566         (_IO_file_doallocate): Use local_isatty.
29567         * stdio-common/perror.c (perror): In case a new stream is used
29568         forward the stream error.
29569         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
29570         error flag.
29571
29572 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
29573
29574         [BZ #11869]
29575         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
29576         alloca.
29577         * include/alloca.h (extend_alloca_account): Define.
29578
29579         [BZ #11857]
29580         * posix/regex.h: Fix comments with documentation of user-accessible
29581         fields after compilation and describe correct free'ing of pattern
29582         after re_compile_pattern.
29583         Patch by Reuben Thomas <rrt@sc3d.org>.
29584
29585 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
29586
29587         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
29588         and -mno-altivec to prevent the compiler from using Altivec and/or
29589         VSX instructions when the corresponding registers are not available.
29590
29591 2011-05-19  Andreas Schwab  <schwab@redhat.com>
29592
29593         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
29594
29595 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
29596
29597         * libio/freopen.c (freopen): Use __dup2, not dup2.
29598         * libio/freopen64.c (freopen64): Likewise.
29599
29600 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
29601
29602         [BZ #12775]
29603         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
29604         * math/Makefile (tests): Add test-powl.
29605         (CFLAGS-test-powl.c): Define.
29606         * math/test-powl.c: New file.
29607
29608 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
29609
29610         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
29611
29612 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
29613
29614         [BZ #11837]
29615         * iconvdata/gb18030.c: Update to GB18020-2005.
29616
29617 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
29618
29619         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
29620         RE_SYNTAX_POSIX_AWK): Update to match recent development.
29621         Patch by Aharon Robbins <arnold@skeeve.com>.
29622
29623         [BZ #11892]
29624         * stdlib/putenv.c (putenv): Don't always create copy of the variable
29625         on the stack.
29626
29627         [BZ #11895]
29628         * misc/pselect.c (__pselect): Handle timeout value errors hidden
29629         through underflows.
29630
29631         [BZ #12766]
29632         * misc/error.c (error_at_line): Ensure file_name and old_file_name
29633         point to strings before performing equality test for error_one_per_line
29634         mode.
29635
29636         [BZ #11697]
29637         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
29638
29639         [BZ #11820]
29640         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
29641         (struct user_fpregs_struct): Avoid __uint*_t types.
29642
29643         [BZ #6420]
29644         * malloc/mtrace.c (tr_where): Add additional parameter to point to
29645         symbol info.  Use it instead of calling _dl_addr locally.
29646         (lock_and_info): New function.
29647         (tr_freehook): Call lock_and_info and pass symbol info as additional
29648         parameter to tr_where.
29649         (tr_mallochook): Likewise.
29650         (tr_reallochook): Likewise.
29651         (tr_memalignhook): Likewise.
29652
29653         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
29654         used and couldn't be at all thread-safe.
29655
29656 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
29657
29658         * libio/freopen.c (freopen): Don't close old file descriptor
29659         before the new one is opened.  Instead dup the new file descriptor
29660         to the old one after the new stream is created.
29661         * libio/freopen64.c (freopen64): Likewise.
29662         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
29663         * libio/fileops.c (_IO_new_file_close_it): Handle new
29664         _IO_FLAGS2_NOCLOSE flag.
29665         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
29666         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
29667         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
29668         _IO_FLAGS2_NOCLOSE flag.
29669         * include/unistd.h: Add hidden_proto for dup3.
29670         Define __have_dup3.
29671         * io/dup3.c: Define hidden symbol.
29672         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
29673
29674         [BZ #7101]
29675         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
29676         when an incomplete long option is used.
29677         * posix/tst-getopt_long1.c: New file.
29678         * posix/Makefile (tests): Add tst-getopt_long1.
29679
29680         [BZ #10138]
29681         * scripts/config.guess: Update from autoconf-2.68.
29682         * scripts/config.sub: Likewise.
29683
29684         [BZ #10157]
29685         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
29686         tests into ...
29687         (has_cpuclock): ...this.  New function.
29688         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
29689         macro here based on has_cpuclock code.
29690
29691         [BZ #10149]
29692         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
29693         First byte (not low byte) is now always NUL.
29694         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
29695
29696         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
29697         Use non-cancelable interfaces.
29698
29699         [BZ #9809]
29700         * locale/iso-639.def: Add entry for Sorani.
29701
29702         [BZ #11901]
29703         * include/stdlib.h: Move include protection to the right place.
29704         Define abort_msg_s.  Declare __abort_msg with it.
29705         * stdlib/abort.c (__abort_msg): Adjust type.
29706         * assert/assert.c (__assert_fail_base): New function.  Majority
29707         of code from __assert_fail.  Allocate memory for __abort_msg with
29708         mmap.
29709         (__assert_fail): Now call __assert_fail_base.
29710         * assert/assert-perr.c: Remove bulk of implementation.  Use
29711         __assert_fail_base.
29712         * include/assert.hL Declare __assert_fail_base.
29713         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
29714         mmap.
29715         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
29716
29717 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
29718
29719         [BZ #11952]
29720         [BZ #12453]
29721         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
29722         until all modules are registered in the DTV.
29723         * elf/Makefile: Add rules to build and run tst-tls19.
29724         * elf/tst-tls19.c: New file.
29725         * elf/tst-tls19mod1.c: New file.
29726         * elf/tst-tls19mod2.c: New file.
29727         * elf/tst-tls19mod3.c: New file.
29728         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
29729
29730         [BZ #12083]
29731         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
29732         correctly.
29733
29734         [BZ #12601]
29735         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
29736         two-byte sequence errors.
29737         * iconvdata/Makefile (tests): Add bug-iconv8.
29738         * iconvdata/bug-iconv8.c: New file.
29739
29740         [BZ #12626]
29741         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
29742         buf2 definition.
29743
29744         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
29745
29746         [BZ #12432]
29747         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
29748         (dummy_getcfa): New function.
29749         (init): Get _Unwind_GetCFA address, use dummy if not found.
29750         (backtrace_helper): In recursion check, also check whether CFA changes.
29751         (__backtrace): Completely initialize arg.
29752
29753         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
29754         storing incomplete byte sequence in state object.  Avoid testing for
29755         guaranteed too small input if we know there is enough data available.
29756
29757 2011-05-11  Andreas Schwab  <schwab@redhat.com>
29758
29759         * Makeconfig (+link-pie): Indent.
29760         * Rules (binaries-pie): Define if $(have-fpie) and
29761         $(build-shared).
29762         (binaries-shared): Also filter out $(binaries-pie).
29763         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
29764         * nscd/Makefile (others-pie): Add nscd.
29765         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
29766         ($(objpfx)nscd): Remove command override.
29767         * login/Makefile (others-pie): Add pt_chown.
29768         ($(objpfx)pt_chown): Remove command override.
29769         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
29770         remove command overrides.
29771
29772 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
29773
29774         * libio/tst_putwc.c: Fix error messages.
29775
29776         [BZ #12724]
29777         * libio/fileops.c (_IO_new_file_close_it): Always flush when
29778         currently writing and seek to current position when not.
29779         * libio/Makefile (tests): Add bug-fclose1.
29780         * libio/bug-fclose1.c: New file.
29781
29782 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
29783
29784         [BZ #12511]
29785         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
29786         don't set DF_1_NODELETE here.
29787         (do_lookup_x): When entering new entry test for copy relocation
29788         and if necessary set DF_1_NODELETE flag.
29789         * elf/tst-unique4.cc: New file.
29790         * elf/tst-unique4.h: New file.
29791         * elf/tst-unique4lib.cc: New file.
29792         * elf/Makefile: Add rules to build and run tst-unique4.
29793         Patch by Piotr Bury <pbury@goahead.com>.
29794
29795 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
29796
29797         [BZ #12052]
29798         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
29799
29800         [BZ #12625]
29801         * misc/mntent_r.c (addmntent): Flush the stream after the output
29802
29803         [BZ #12393]
29804         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
29805         (is_trusted_path_normalize): Skip initial colon.  Append slash
29806         to empty buffer.  Duplicate is_trusted_path code but allow
29807         constructed patch to be prefix.
29808         (is_dst): Allow $ORIGIN followed by /.
29809         (_dl_dst_substitute): Correct clearing of check_for_trusted.
29810         Correct testing of result of is_trusted_path_normalize
29811         (decompose_rpath): Fix warning.
29812
29813 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
29814
29815         [BZ #11257]
29816         * grp/initgroups.c (internal_getgrouplist): When we found the service
29817         list through the initgroups entry in nsswitch.conf do not always
29818         continue on a successful lookup.  Don't always use the
29819         __nss_group_database value if it is set.
29820         * nss/nsswitch.conf (initgroups): Change action for successful db
29821         lookup to continue for compatibility.
29822
29823 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
29824
29825         [BZ #11532]
29826         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
29827         and CP774 modules.
29828         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
29829         and CP774 modules.
29830         * iconvdata/tst-tables.sh: Likewise.
29831         * iconvdata/cp770.c: New file.
29832         * iconvdata/cp771.c: New file.
29833         * iconvdata/cp772.c: New file.
29834         * iconvdata/cp773.c: New file.
29835         * iconvdata/cp774.c: New file.
29836         * iconvdata/testdata/CP770: New file.
29837         * iconvdata/testdata/CP770..UTF8: New file.
29838         * iconvdata/testdata/CP771: New file.
29839         * iconvdata/testdata/CP771..UTF8: New file.
29840         * iconvdata/testdata/CP772: New file.
29841         * iconvdata/testdata/CP772..UTF8: New file.
29842         * iconvdata/testdata/CP773: New file.
29843         * iconvdata/testdata/CP773..UTF8: New file.
29844         * iconvdata/testdata/CP774: New file.
29845         * iconvdata/testdata/CP774..UTF8: New file.
29846
29847         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
29848         END CHARMAP line.
29849         * iconvdata/gen-8bit-gap.sh: Likewise.
29850         * iconvdata/gen-8bit.sh: Likewise.
29851
29852         * locale/iso-639.def: Add ary entry.
29853
29854         [BZ #11258]
29855         * locale/C-translit.h.in: Add U20A1 transliteration.
29856
29857         [BZ #12178]
29858         * locale/iso-639.def: Add wae entry.
29859         Patch by Kevin Bortis <bortis@translate-wae.ch>.
29860
29861         [BZ #12545]
29862         * locale/programs/localedef.c (construct_output_path): Use ssize_t
29863         for n.
29864
29865         [BZ #12711]
29866         * locale/C-translit.h.in: Add entry for U20B9.
29867         Patch by pravin.d.s@gmail.com.
29868
29869 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
29870
29871         [BZ #12713]
29872         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
29873         ENAMETOOLONG use generic getcwd.
29874         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
29875         in rtld.  Use *stat64.
29876         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
29877         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
29878         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
29879         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
29880         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
29881         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
29882         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
29883         __fstatat64 macros.
29884         * include/dirent.h: Add libc_hidden_proto for rewinddir.
29885         * dirent/rewinddir.c: Add libc_hidden_def.
29886         * sysdeps/mach/hurd/rewinddir.c: Likewise.
29887         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
29888
29889         * include/dirent.h (__alloc_dir): Add flags parameter.
29890         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
29891         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
29892         __alloc_dir.
29893         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
29894         from fdopendir if O_CLOEXEC is already set.
29895
29896 2011-03-15  Alan Modra  <amodra@gmail.com>
29897
29898         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
29899         l_tls_firstbyte_offset non-zero.  Save padding offset in
29900         l_tls_firstbyte_offset for later use.
29901         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
29902         freeing static tls block.
29903
29904 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
29905
29906         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
29907         where #ifdef was intended.  The intent is to prevent ARG_MAX from
29908         being defined by the kernel headers.
29909
29910 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
29911
29912         [BZ #12734]
29913         * resolv/resolv.h: Define RES_NOTLDQUERY.
29914         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
29915         no-tld-query and set RES_NOTLDQUERY.
29916         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
29917         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
29918         modern BIND to search name as TLD unless forbidden.
29919
29920 2011-05-07  Petr Baudis  <pasky@suse.cz>
29921             Ulrich Drepper  <drepper@gmail.com>
29922
29923         [BZ #12393]
29924         * elf/dl-load.c (fillin_rpath): Move trusted path check...
29925         (is_trusted_path): ...to here.
29926         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
29927         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
29928         using is_trusted_path_normalize() in setuid scripts.
29929
29930 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
29931
29932         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
29933         __BEGIN/__END_DECLS.
29934
29935 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
29936
29937         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
29938         NSS_STATUS_NOTFOUND if no record was found.
29939
29940 2011-05-05  Andreas Schwab  <schwab@redhat.com>
29941
29942         * sunrpc/Makefile (headers): Add rpc/netdb.h.
29943         (headers-not-in-tirpc): Remove rpc/netdb.h
29944         * resolv/netdb.h: Revert last change.
29945
29946 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
29947
29948         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
29949         circular dependency between libgcc.a and libc.a.
29950
29951 2011-05-05  Andreas Schwab  <schwab@redhat.com>
29952
29953         * resolv/netdb.h: Don't include <rpc/netdb.h>.
29954         * nis/Makefile: Don't install rpcsvc/*.
29955         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
29956         instead of <rpc/types.h>.
29957         (MAXHOSTNAMELEN): Define.
29958
29959 2011-05-03  Andreas Schwab  <schwab@redhat.com>
29960
29961         * elf/ldconfig.c (add_dir): Don't crash on empty path.
29962
29963 2011-04-28  Maciej Babinski  <mbabinski@google.com>
29964
29965         [BZ #12714]
29966         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
29967         gethostbyname4_r when IPv6 results are possible.
29968
29969 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
29970
29971         [BZ #12723]
29972         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
29973         _PC_PIPE_BUF handling.
29974
29975 2011-04-30  Bruno Haible  <bruno@clisp.org>
29976
29977         [BZ #12717]
29978         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
29979         * resolv/netdb.h (getnameinfo): Change type of flags parameter
29980         to 'int'.
29981         * inet/getnameinfo.c (getnameinfo): Likewise.
29982
29983 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
29984
29985         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
29986         to groups setting in database lookup.
29987         * nss/nsswitch.conf: Add initgroups entry.
29988
29989 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
29990
29991         [BZ #12685]
29992         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
29993         mode string.
29994         Patch by Eric Blake <eblake@redhat.com>.
29995
29996 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
29997
29998         * sunrpc/Makefile (need-export-routines): Add svc_run.
29999         (routines): Remove svc_run.
30000         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
30001         * sunrpc/clnt_perr.c (clnt_perrno): Export.
30002         * sunrpc/svc_run.c (svc_run): Likewise.
30003         * sunrpc/svc_udp.c (svcudp_create): Likewise.
30004
30005 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
30006
30007         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
30008         problem in reallocation in last patch.
30009
30010 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
30011
30012         * sunrpc/Makefile: Move inclusion of Rules.
30013
30014 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
30015
30016         * nss/nss_files/files-initgroups.c: New file.
30017         * nss/Makefile (libnss_files-routines): Add files-initgroups.
30018         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
30019         _nss_files_initgroups_dyn.
30020
30021 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
30022
30023         * elf/elf.h (R_ARM_IRELATIVE): Define.
30024
30025 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
30026
30027         * po/ru.po: Update from translation team.
30028
30029 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
30030
30031         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
30032         dependencies.
30033
30034 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
30035
30036         [BZ #12653]
30037         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
30038         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
30039         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
30040         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
30041         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
30042
30043 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
30044
30045         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
30046         differing bytes.
30047         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
30048         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
30049         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
30050
30051 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
30052
30053         [BZ #12420]
30054         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
30055         storing it.
30056         * stdlib/bug-getcontext.c: New file.
30057         * stdlib/Makefile: Add rules to build and run bug-getcontext.
30058
30059 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30060
30061         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
30062         instructions into .machine "z9-109".
30063         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
30064         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
30065
30066 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30067
30068         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
30069         between environment variables and auxiliary vector.
30070
30071 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
30072
30073         * Makefile: Add rules to build linkobj/libc.so.
30074         * include/libc-symbols.h: Define libc_hidden_nolink.
30075         * include/rpc/auth.h: Mark functions which are to be hidden.
30076         * include/rpc/auth_des.h: Likewise.
30077         * include/rpc/auth_unix.h: Likewise.
30078         * include/rpc/clnt.h: Likewise.
30079         * include/rpc/des_crypt.h: Likewise.
30080         * include/rpc/key_prot.h: Likewise.
30081         * include/rpc/pmap_clnt.h: Likewise.
30082         * include/rpc/pmap_prot.h: Likewise.
30083         * include/rpc/pmap_rmt.h: Likewise.
30084         * include/rpc/rpc_msg.h: Likewise.
30085         * include/rpc/svc.h: Likewise.
30086         * include/rpc/svc_auth.h: Likewise.
30087         * include/rpc/xdr.h: Likewise.
30088         * nis/Makefile: Link all DSOs against linkobj/libc.so.
30089         * nss/Makefile: Likewise.
30090         * sunrpc/Makefile: Don't install headers.  Build library with normal
30091         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
30092         * sunrpc/auth_des.c: Hide exported symbols by default, export some
30093         for the compat linking library.  Remove use of INTDEF/INTUSE.
30094         * sunrpc/auth_none.c: Likewise.
30095         * sunrpc/auth_unix.c: Likewise.
30096         * sunrpc/authdes_prot.c: Likewise.
30097         * sunrpc/authuxprot.c: Likewise.
30098         * sunrpc/clnt_gen.c: Likewise.
30099         * sunrpc/clnt_perr.c: Likewise.
30100         * sunrpc/clnt_raw.c: Likewise.
30101         * sunrpc/clnt_simp.c: Likewise.
30102         * sunrpc/clnt_tcp.c: Likewise.
30103         * sunrpc/clnt_udp.c: Likewise.
30104         * sunrpc/clnt_unix.c: Likewise.
30105         * sunrpc/des_crypt.c: Likewise.
30106         * sunrpc/des_soft.c: Likewise.
30107         * sunrpc/get_myaddr.c: Likewise.
30108         * sunrpc/key_call.c: Likewise.
30109         * sunrpc/key_prot.c: Likewise.
30110         * sunrpc/netname.c: Likewise.
30111         * sunrpc/pm_getmaps.c: Likewise.
30112         * sunrpc/pm_getport.c: Likewise.
30113         * sunrpc/pmap_clnt.c: Likewise.
30114         * sunrpc/pmap_prot.c: Likewise.
30115         * sunrpc/pmap_prot2.c: Likewise.
30116         * sunrpc/pmap_rmt.c: Likewise.
30117         * sunrpc/publickey.c: Likewise.
30118         * sunrpc/rpc_cmsg.c: Likewise.
30119         * sunrpc/rpc_common.c: Likewise.
30120         * sunrpc/rpc_dtable.c: Likewise.
30121         * sunrpc/rpc_prot.c: Likewise.
30122         * sunrpc/rpc_thread.c: Likewise.
30123         * sunrpc/rtime.c: Likewise.
30124         * sunrpc/svc.c: Likewise.
30125         * sunrpc/svc_auth.c: Likewise.
30126         * sunrpc/svc_authux.c: Likewise.
30127         * sunrpc/svc_raw.c: Likewise.
30128         * sunrpc/svc_run.c: Likewise.
30129         * sunrpc/svc_simple.c: Likewise.
30130         * sunrpc/svc_tcp.c: Likewise.
30131         * sunrpc/svc_udp.c: Likewise.
30132         * sunrpc/svc_unix.c: Likewise.
30133         * sunrpc/svcauth_des.c: Likewise.
30134         * sunrpc/xcrypt.c: Likewise.
30135         * sunrpc/xdr.c: Likewise.
30136         * sunrpc/xdr_array.c: Likewise.
30137         * sunrpc/xdr_float.c: Likewise.
30138         * sunrpc/xdr_intXX_t.c: Likewise.
30139         * sunrpc/xdr_mem.c: Likewise.
30140         * sunrpc/xdr_rec.c: Likewise.
30141         * sunrpc/xdr_ref.c: Likewise.
30142         * sunrpc/xdr_sizeof.c: Likewise.
30143         * sunrpc/xdr_stdio.c: Likewise.
30144
30145 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
30146
30147         [BZ #12650]
30148         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
30149         * sysdeps/ia64/dl-tls.h: Likewise.
30150         * sysdeps/powerpc/dl-tls.h: Likewise.
30151         * sysdeps/s390/dl-tls.h: Likewise.
30152         * sysdeps/sh/dl-tls.h: Likewise.
30153         * sysdeps/sparc/dl-tls.h: Likewise.
30154         * sysdeps/x86_64/dl-tls.h: Likewise.
30155         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
30156
30157 2011-03-14  Andreas Schwab  <schwab@redhat.com>
30158
30159         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
30160         rpath element also skip the following colon.
30161         (expand_dynamic_string_token): Add is_path parameter and pass
30162         down to DL_DST_REQUIRED and _dl_dst_substitute.
30163         (decompose_rpath): Call expand_dynamic_string_token with
30164         non-zero is_path.  Ignore empty rpaths.
30165         (_dl_map_object_from_fd): Call expand_dynamic_string_token
30166         with zero is_path.
30167
30168 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
30169
30170         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
30171         Make cancelable.
30172
30173 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
30174
30175         [BZ #12655]
30176         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
30177         Patch by Filipe David Manana <fdmanana@apache.org>.
30178
30179 2011-04-07  Andreas Schwab  <schwab@redhat.com>
30180
30181         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
30182         Maintain aligned stack.
30183         (CHECK_RSP): Remove unused macro.
30184
30185 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
30186
30187         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
30188         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
30189
30190 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
30191
30192         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
30193
30194         * include/features.h: Mention __USE_XOPEN2K8 in comment.
30195
30196 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
30197
30198         [BZ #12518]
30199         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
30200         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
30201         * sysdeps/x86_64/memmove.c: New file.
30202         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
30203         (memcpy): Renamed to ...
30204         (__new_memcpy): This.
30205         (memcpy): Provide GLIBC_2_14 memcpy.
30206         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
30207         (memcpy): Provide GLIBC_2_2_5 memcpy.
30208
30209 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
30210
30211         [BZ #12631]
30212         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
30213
30214 2011-03-30  Andreas Schwab  <schwab@redhat.com>
30215
30216         * misc/syncfs.c: New file.
30217         * misc/Makefile (routines): Add syncfs.
30218         * posix/unistd.h: Declare syncfs.
30219         * sysdeps/unix/syscalls.list: Add syncfs.
30220
30221 2011-04-01  Andreas Schwab  <schwab@redhat.com>
30222
30223         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
30224         open_by_handle_at.
30225         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
30226         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
30227         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
30228         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
30229         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
30230         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
30231         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
30232
30233 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
30234
30235         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
30236         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
30237         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
30238         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
30239         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
30240         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
30241         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
30242
30243         * io/Makefile: Compile fallocate.c, fallocate64.c, and
30244         sync_file_range.c with -fexceptions.
30245         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
30246         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
30247         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
30248         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
30249         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
30250         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
30251         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
30252         sync_file_range as cancellation point
30253         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
30254         now a wrapper around __call_sync_file_range with cancellation handling.
30255         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
30256         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
30257         function name to __call_sync_file_range.
30258         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
30259         Add call_sync_file_range.
30260
30261 2011-04-01  Andreas Schwab  <schwab@redhat.com>
30262
30263         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
30264         bits/timex.h.
30265
30266 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
30267
30268         * iconv/iconv.h: Fix typo in comment.
30269         * io/fcntl.h: Likewise.
30270         * libio/stdio.h: Likewise.
30271         * posix/spawn.h: Likewise.
30272         * posix/unistd.h: Likewise.
30273         * stdlib/stdlib.h: Likewise.
30274         * time/time.h: Likewise.
30275         * wcsmbs/wchar.h: Likewise.
30276
30277         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
30278         open_by_handle): Add.
30279         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
30280         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
30281         Augment a few comments.
30282         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
30283         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
30284         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
30285         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
30286         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
30287         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
30288         open_by_handle.
30289
30290         * io/fcntl.h (AT_EMPTY_PATH): Define.
30291
30292 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
30293
30294         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
30295         * sysdeps/unix/sysv/linux/bits/time.h: New file.
30296         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
30297         to...
30298         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
30299         * Versions.def: Add GLIBC_2.14.
30300         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
30301         Export.
30302
30303 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
30304
30305         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
30306         round counter.
30307         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
30308
30309 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
30310
30311         [BZ #12597]
30312         * string/test-strncmp.c (do_page_test): New function.
30313         (check2): Likewise.
30314         (test_main): Call check2.
30315         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
30316
30317 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
30318
30319         [BZ #12587]
30320         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
30321         Handle cache information in CPU leaf 4.
30322         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
30323
30324 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
30325
30326         [BZ #12583]
30327         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
30328         character representation.
30329         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
30330
30331 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
30332
30333         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
30334         END(__isnan) to END(__isnanf) to match function entry point/label
30335         EALIGN(__isnanf,...).
30336
30337 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
30338
30339         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
30340
30341 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
30342
30343         [BZ #12510]
30344         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
30345         copy from the symbol referenced in the relocation to initialize the
30346         used variable.
30347         Patch by Piotr Bury <pbury@goahead.com>.
30348         * elf/Makefile: Add rules to build and tst-unique3.
30349         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
30350         * elf/tst-unique3.cc: New file.
30351         * elf/tst-unique3.h: New file.
30352         * elf/tst-unique3lib.cc: New file.
30353         * elf/tst-unique3lib2.cc: New file.
30354
30355         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
30356
30357 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
30358
30359         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
30360         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
30361         to _start.
30362
30363 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
30364
30365         * elf/dl-load.c (_dl_map_object): If we are looking for the first
30366         to-be-loaded object along a path to loader is ld.so.
30367
30368 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
30369             Ulrich Drepper  <drepper@gmail.com>
30370
30371         * sysdeps/x86_64/memset.S: After aligning destination, code
30372         branches to different locations depending on the value of
30373         misalignment, when multiarch is enabled. Fix this.
30374
30375 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
30376
30377         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
30378         Set _x86_64_preferred_memory_instruction for AMD processsors.
30379         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30380         Set bit_Prefer_SSE_for_memop for AMD processors.
30381
30382 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
30383
30384         * libio/fmemopen.c (fmemopen): Optimize a bit.
30385
30386 2011-03-03  Andreas Schwab  <schwab@redhat.com>
30387
30388         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
30389
30390 2011-03-03  Roland McGrath  <roland@redhat.com>
30391
30392         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
30393
30394 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
30395
30396         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
30397         __bzero_ultra1 instead of __memset_ultra1.
30398
30399 2011-02-23  Andreas Schwab  <schwab@redhat.com>
30400             Ulrich Drepper  <drepper@gmail.com>
30401
30402         [BZ #12509]
30403         * include/link.h (struct link_map): Add l_orig_initfini.
30404         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
30405         returning unsuccessfully.
30406         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
30407         close of a file loaded at startup, restore the original l_initfini
30408         list.
30409         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
30410         list, store the pointer.
30411         * elf/Makefile ($(objpfx)noload-mem): New rule.
30412         (noload-ENV): Define.
30413         (tests): Add $(objpfx)noload-mem.
30414         * elf/noload.c: Include <memcheck.h>.
30415         (main): Call mtrace.  Close all opened handles.
30416
30417 2011-02-17  Andreas Schwab  <schwab@redhat.com>
30418
30419         [BZ #12454]
30420         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
30421         dependencies are missing.
30422
30423 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30424
30425         Fix __if_freereq crash: Unlike the generic version which uses free,
30426         Hurd needs munmap.
30427         * sysdeps/mach/hurd/ifreq.h: New file.
30428
30429 2011-01-27  Petr Baudis  <pasky@suse.cz>
30430             Ulrich Drepper  <drepper@gmail.com>
30431
30432         [BZ 12445]#
30433         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
30434         to extend_alloca().
30435         * stdio-common/bug23.c: New file.
30436         * stdio-common/Makefile (tests): Add bug23.
30437
30438 2010-09-28  Andreas Schwab  <schwab@redhat.com>
30439             Ulrich Drepper  <drepper@gmail.com>
30440
30441         [BZ #12489]
30442         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
30443         before performing relro protection.  At old place add assertion
30444         to make sure nothing changed.
30445
30446 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
30447             Glauber de Oliveira Costa  <glommer@gmail.com>
30448
30449         * elf/elf.h: Add new ARM TLS relocs.
30450
30451 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
30452
30453         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
30454         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
30455         cast from r3.
30456         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
30457         'tests' variable.
30458         * sysdeps/wordsize-64/tst-writev.c: New file.
30459
30460 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
30461
30462         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
30463         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
30464         insns in _dl_start to prevent a TOC reference before relocs are
30465         resolved.
30466
30467 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
30468
30469         [BZ #12469]
30470         * Makeconfig: Remove RANLIB definition.
30471         * Makerules: Don't use RANLIB.
30472         * aclocal.m4: Remove ranlib test.
30473         * configure.in: No need to check for ranlib.
30474         * elf/rtld-Rules: Don't use RANLIB.
30475
30476 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30477
30478         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
30479         protection macro.
30480         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
30481         inclusion protection macro.
30482
30483         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
30484         SIGRTMIN and SIGRTMAX and print information in that case only when
30485         SIGRTMIN is defined.
30486
30487 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
30488
30489         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
30490         arginfo fn returning -1.
30491
30492         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
30493         and thousands string is zero terminated.
30494
30495 2011-02-03  Andreas Schwab  <schwab@redhat.com>
30496
30497         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
30498         sysdeps/unix/sysv/linux/bits/socket.h.
30499
30500 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
30501
30502         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
30503         (__CPU_COUNT): Remove old macros.
30504         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
30505         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
30506         (__CPU_ALLOC, __CPU_FREE): Add macros.
30507         (__sched_cpualloc, __sched_cpufree): Add declarations.
30508
30509 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
30510
30511         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
30512         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
30513         * nscd/aicache.c (addhstaiX): Return timeout of added value.
30514         (readdhstai): Return value of addhstaiX call.
30515         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
30516         (addgrbyX): Return value returned by cache_addgr.
30517         (readdgrbyname): Return value returned by addgrbyX.
30518         (readdgrbygid): Likewise.
30519         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
30520         (addpwbyX): Return value returned by cache_addpw.
30521         (readdpwbyname): Return value returned by addhstbyX.
30522         (readdpwbyuid): Likewise.
30523         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
30524         (addservbyX): Return value returned by cache_addserv.
30525         (readdservbyname): Return value returned by addservbyX:
30526         (readdservbyport): Likewise.
30527         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
30528         (addhstbyX): Return value returned by cache_addhst.
30529         (readdhstbyname): Return value returned by addhstbyX.
30530         (readdhstbyaddr): Likewise.
30531         (readdhstbynamev6): Likewise.
30532         (readdhstbyaddrv6): Likewise.
30533         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
30534         (readdinitgroups): Return value returned by addinitgroupsX.
30535         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
30536         (prune_cache): Keep track of timeout value of re-added entries.
30537         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
30538         * nscd/nscd.h: Adjust prototypes of readd* functions.
30539
30540 2011-02-04  Roland McGrath  <roland@redhat.com>
30541
30542         * nis/nis_server.c (nis_servstate): Use the right name for 0.
30543         (nis_stats): Likewise.
30544         * nis/nis_modify.c (nis_modify): Likewise.
30545         * nis/nis_remove.c (nis_remove): Likewise.
30546         * nis/nis_add.c (nis_add): Likewise.
30547
30548         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
30549
30550         * posix/fnmatch_loop.c: Add some consts.
30551
30552         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
30553
30554 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
30555
30556         [BZ #12460]
30557         * config.make.in (config-cflags-novzeroupper): Define.
30558         * configure.in: Substitute libc_cv_cc_novzeroupper.
30559         * elf/Makefile (AVX-CFLAGS): Define.
30560         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
30561         (CFLAGS-tst-auditmod4a.c): Likewise.
30562         (CFLAGS-tst-auditmod4b.c): Likewise.
30563         (CFLAGS-tst-auditmod6b.c): Likewise.
30564         (CFLAGS-tst-auditmod6c.c): Likewise.
30565         (CFLAGS-tst-auditmod7b.c): Likewise.
30566         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
30567
30568 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
30569
30570         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
30571         function to the callback.
30572         Patch partly by Jiri Olsa <jolsa@redhat.com>.
30573
30574 2011-02-02  Andreas Schwab  <schwab@redhat.com>
30575
30576         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
30577         of errno.
30578
30579 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
30580
30581         [BZ #11724]
30582         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
30583         of constructors.
30584         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
30585         of destructors.
30586         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
30587
30588         [BZ #11724]
30589         * elf/Makefile: Add rules to build and run new test.
30590         * elf/tst-initorder.c: New file.
30591         * elf/tst-initorder.exp: New file.
30592         * elf/tst-initordera1.c: New file.
30593         * elf/tst-initordera2.c: New file.
30594         * elf/tst-initordera3.c: New file.
30595         * elf/tst-initordera4.c: New file.
30596         * elf/tst-initorderb1.c: New file.
30597         * elf/tst-initorderb2.c: New file.
30598         * elf/tst-order-a1.c: New file.
30599         * elf/tst-order-a2.c: New file.
30600         * elf/tst-order-a3.c: New file.
30601         * elf/tst-order-a4.c: New file.
30602         * elf/tst-order-b1.c: New file.
30603         * elf/tst-order-b2.c: New file.
30604         * elf/tst-order-main.c: New file.
30605         New test case by George Gensure <werkt0@gmail.com>.
30606
30607 2010-10-01  Andreas Schwab  <schwab@redhat.com>
30608
30609         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
30610         decoding ACE if AI_CANONIDN.
30611
30612 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
30613
30614         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
30615
30616 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
30617
30618         * version.h (RELEASE): Bump for 2.13 release.
30619         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
30620
30621         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
30622
30623         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
30624         MADV_NOHUGEPAGE.
30625         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
30626         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
30627         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
30628         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
30629         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
30630         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
30631
30632         * posix/getconf.c: Update copyright year.
30633         * catgets/gencat.c: Likewise.
30634         * csu/version.c: Likewise.
30635         * debug/catchsegv.sh: Likewise.
30636         * debug/xtrace.sh: Likewise.
30637         * elf/ldconfig.c: Likewise.
30638         * elf/ldd.bash.in: Likewise.
30639         * elf/sprof.c (print_version): Likewise.
30640         * iconv/iconv_prog.c: Likewise.
30641         * iconv/iconvconfig.c: Likewise.
30642         * locale/programs/locale.c: Likewise.
30643         * locale/programs/localedef.c: Likewise.
30644         * malloc/memusage.sh: Likewise.
30645         * malloc/mtrace.pl: Likewise.
30646         * nscd/nscd.c (print_version): Likewise.
30647         * nss/getent.c: Likewise.
30648
30649         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
30650         PF_CAIF, and PF_ALG.
30651         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
30652
30653 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
30654
30655         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
30656         (modules-names): Use them.
30657         (ifunc-test-modules, ifunc-pie-tests): Define.
30658         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
30659         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
30660         (test-extras): Likewise.
30661         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
30662         $(compile-command.c).
30663         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
30664         (all-built-dso): Define.
30665         (check-textrel.out, check-execstack.out): Depend on it.
30666
30667         * configure.in: Don't override --enable-multi-arch.
30668
30669 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
30670
30671         [BZ #6812]
30672         * nscd/hstcache.c (tryagain): Define.
30673         (cache_addhst): Return tryagain not notfound for temporary errors.
30674         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
30675         failed.
30676
30677 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
30678
30679         [BZ #10563]
30680         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
30681         to make the syscall.
30682         * sysdeps/unix/sysv/linux/setgroups.c: New file.
30683
30684         [BZ #12378]
30685         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
30686         and fall back to matching as normal character if the string ends before
30687         the matching ']' is found.  This is what POSIX requires.
30688         * posix/testfnm.c: Adjust test result.
30689         * posix/globtest.sh: Adjust test result.  Add new test.
30690         * posix/tst-fnmatch.input: Likewise.
30691         * posix/tst-fnmatch2.c: Add new test.
30692
30693 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
30694
30695         * elf/Makefile (check-execstack): Revert last change.  Depend on
30696         check-execstack.h.
30697         (check-execstack.h): New target.
30698         (generated): Add check-execstack.h.
30699         * elf/check-execstack.c: Include "check-execstack.h".
30700         (main): Revert last change.
30701         (handle_file): Return zero if GNU_STACK is absent and
30702         DEFAULT_STACK_PERMS doesn't include PF_X.
30703
30704 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
30705
30706         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
30707         in child fails because the descriptor is already closed.
30708         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
30709         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
30710         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
30711
30712         [BZ #12397]
30713         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
30714         syscall.
30715
30716         [BZ #10484]
30717         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
30718         temporary buffer used to handle multi lookups locally.
30719         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
30720
30721 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
30722
30723         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
30724         loader is ld.so.
30725
30726 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
30727
30728         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
30729         alignment for SSE2.
30730
30731 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
30732
30733         [BZ #12394]
30734         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
30735         characters.  When rounding increased number of integer digits recompute
30736         number of groups.
30737         * stdio-common/tst-grouping.c: New file.
30738         * stdio-common/Makefile: Add rules to build and run tst-grouping.
30739
30740 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
30741
30742         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
30743         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
30744
30745         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
30746         void.
30747         * bits/select.h: Likewise.
30748
30749 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
30750
30751         * po/ja.po: Update from translation team.
30752
30753 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
30754
30755         [BZ #11155]
30756         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
30757         implementation just like for lxstat, fxstatat, et al.
30758
30759 2010-12-27  Jim Meyering  <meyering@redhat.com>
30760
30761         [BZ #12348]
30762         * posix/regexec.c (build_trtable): Return failure indication upon
30763         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
30764
30765 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
30766
30767         [BZ #12201]
30768         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
30769         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
30770         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
30771         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
30772
30773         [BZ #12207]
30774         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
30775
30776         [BZ #12204]
30777         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
30778         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
30779
30780 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
30781
30782         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
30783         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
30784         script has SORT_BY_INIT_PRIORITY.
30785         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
30786         NO_CTORS_DTORS_SECTIONS is defined.
30787         * elf/soinit.c: Likewise.
30788         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
30789         NO_CTORS_DTORS_SECTIONS is defined.
30790         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
30791         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
30792         * sysdeps/sh/init-first.c: Likewise.
30793         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
30794
30795 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
30796
30797         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
30798         always use the slow path.
30799
30800 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
30801
30802         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
30803         similar rule which adds the sysdep directories to the header search in
30804         order to pick up the correct platform stackinfo.h.
30805         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
30806         perform test if it is, otherwise return successfully without testing.
30807         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
30808         DEFAULT_STACK_PERMS define in stackinfo.h.
30809         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
30810         defined in stackinfo.h.
30811         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
30812         DEFAULT_STACK_PERMS defined in stackinfo.h.
30813         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
30814         * sysdeps/ia64/stackinfo.h: Likewise.
30815         * sysdeps/s390/stackinfo.h: Likewise.
30816         * sysdeps/sh/stackinfo.h: Likewise.
30817         * sysdeps/sparc/stackinfo.h: Likewise.
30818         * sysdeps/x86_64/stackinfo.h: Likewise.
30819         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
30820         PF_X for powerpc64.  Retain PF_X for powerpc32.
30821
30822 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
30823
30824         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
30825         accurately.
30826         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
30827         GETDENTS_64BIT_ALIGNED.
30828
30829 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
30830
30831         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
30832
30833 2010-12-10  Andreas Schwab  <schwab@redhat.com>
30834
30835         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
30836         _GNU_SOURCE.
30837
30838         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
30839         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
30840         Remove __restrict.
30841         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
30842         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
30843
30844 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
30845
30846         [BZ #11655]
30847         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
30848         are initialized.
30849
30850 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
30851
30852         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
30853
30854 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
30855
30856         * po/it.po: Update from translation team.
30857
30858 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
30859
30860         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
30861         unused codes.
30862
30863 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
30864
30865         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
30866
30867 2010-11-24  Andreas Schwab  <schwab@redhat.com>
30868
30869         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
30870         specially.
30871         (gaih_getanswer_slice): Likewise.
30872
30873 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
30874
30875         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
30876
30877 2010-05-31  Petr Baudis  <pasky@suse.cz>
30878
30879         [BZ #11149]
30880         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
30881         silently even in the chroot mode.
30882
30883 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
30884
30885         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
30886         last patch a bit.  Pretty printing
30887
30888 2010-05-31  Petr Baudis <pasky@suse.cz>
30889
30890         [BZ #10085]
30891         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
30892         initialization of skip_initgroups_dyn.
30893
30894 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
30895
30896         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
30897         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
30898
30899 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
30900
30901         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
30902
30903 2010-11-11  Andreas Schwab  <schwab@redhat.com>
30904
30905         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
30906         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
30907         (tst-fnmatch-ENV): Set MALLOC_TRACE.
30908         ($(objpfx)tst-fnmatch-mem): New rule.
30909         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
30910         * posix/tst-fnmatch.c (main): Call mtrace.
30911
30912 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
30913
30914         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30915         Support Intel processor model 6 and model 0x2c.
30916
30917 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
30918
30919         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
30920           signed comparison.
30921
30922 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
30923
30924         [BZ #12205]
30925         * string/test-strncasecmp.c (check_result): New function.
30926         (do_one_test): Use it.
30927         (check1): New function.
30928         (test_main): Use it.
30929         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
30930         Support strcasecmp and strncasecmp.
30931
30932 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
30933
30934         [BZ #12194]
30935         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
30936         * sysdeps/x86_64/bits/byteswap.h: Likewise.
30937
30938 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
30939
30940         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
30941         IFUNC support.
30942         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
30943         memset-x86-64.
30944         * sysdeps/x86_64/multiarch/bzero.S: New file.
30945         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
30946         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
30947         * sysdeps/x86_64/multiarch/memset.S: New file.
30948         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
30949         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
30950         Set bit_Prefer_SSE_for_memop for Intel processors.
30951         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
30952         Define.
30953         (index_Prefer_SSE_for_memop): Define.
30954         (HAS_PREFER_SSE_FOR_MEMOP): Define.
30955
30956 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
30957
30958         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
30959         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
30960
30961 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
30962
30963         [BZ #12191]
30964         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
30965         (__x86_64_raw_data_cache_size_half): Likewise.
30966         (__x86_64_raw_shared_cache_size): Likewise.
30967         (__x86_64_raw_shared_cache_size_half): Likewise.
30968
30969         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
30970         (__x86_64_raw_data_cache_size_half): Likewise.
30971         (__x86_64_raw_shared_cache_size): Likewise.
30972         (__x86_64_raw_shared_cache_size_half): Likewise.
30973         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
30974         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
30975         and __x86_64_raw_shared_cache_size_half.  Round
30976         __x86_64_data_cache_size_half, __x86_64_data_cache_size
30977         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
30978         to multiple of 256 bytes.
30979
30980 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
30981
30982         [BZ #12167]
30983         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
30984         of inacessible symlinks.  Verify result of symlink before returning it.
30985         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
30986         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
30987
30988 2010-10-28  Erich Ritz  <erichritz@gmail.com>
30989
30990         * math/math.h (isinf): Fix typo in comment.
30991
30992 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
30993
30994         * po/da.po: Update from translation team.
30995
30996 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
30997
30998         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
30999         is added to the list.
31000
31001 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31002             Ulrich Drepper  <drepper@gmail.com>
31003
31004         * elf/dl-object.c (_dl_new_object): Don't append the new object to
31005         the global list here.  Move code to...
31006         (_dl_add_to_namespace_list): ...here.  New function.
31007         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
31008         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
31009         * elf/dl-load.c (lose): Don't remove the element from the list.
31010         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
31011         (_dl_map_object): Likewise.
31012
31013 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
31014
31015         [BZ #12159]
31016         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
31017         into all bytes of SSE register.
31018         Patch by Richard Li <richardpku@gmail.com>.
31019
31020 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
31021
31022         [BZ #12140]
31023         * malloc/malloc.c (_int_free): Fill correct number of bytes when
31024         perturbing.
31025
31026 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
31027
31028         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
31029         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
31030         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
31031         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
31032         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
31033         submachine.
31034         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
31035
31036 2010-10-22  Andreas Schwab  <schwab@redhat.com>
31037
31038         * include/dlfcn.h (__RTLD_SECURE): Define.
31039         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
31040         mode & __RTLD_SECURE instead.
31041         (open_path): Rename preloaded parameter to secure.
31042         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
31043         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
31044         * elf/dl-deps.c (openaux): Likewise.
31045         * elf/rtld.c (struct map_args): Remove is_preloaded.
31046         (map_doit): Don't use it.
31047         (dl_main): Likewise.
31048         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
31049         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
31050
31051 2010-09-09  Andreas Schwab  <schwab@redhat.com>
31052
31053         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
31054         (sysd-rules-targets): Remove duplicates.
31055         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
31056         rtld-%.$o dependency.
31057
31058 2010-10-18  Andreas Schwab  <schwab@redhat.com>
31059
31060         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
31061         _dl_map_object do it.
31062
31063 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
31064
31065         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
31066         fast fma builtins, define the macros in the C99 standard.
31067         (FP_FAST_FMAF): Likewise.
31068         (FP_FAST_FMAL): Likewise.
31069         * sysdeps/x86_64/bits/mathdef.h: Likewise.
31070
31071         * bits/mathdef.h: Update copyright year.
31072         * sysdeps/powerpc/bits/mathdef.h: Likewise.
31073
31074 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
31075
31076         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
31077         builtins, define the macros in the C99 standard.
31078         (FP_FAST_FMAF): Likewise.
31079         (FP_FAST_FMAL): Likewise.
31080         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
31081         multiply/add.
31082         (FP_FAST_FMAF): Likewise.
31083
31084 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
31085
31086         [BZ #3268]
31087         * math/libm-test.inc (fma_test): Some new testcases.
31088         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
31089         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
31090         y and infinite z.  Do multiplication by C already in long double.
31091         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
31092         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
31093         y and infinite z.  Do bitwise or of inexact bit into u.d.
31094         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
31095         * sysdeps/i386/fpu/s_fmaf.S: Removed.
31096         * sysdeps/i386/fpu/s_fma.S: Removed.
31097         * sysdeps/i386/fpu/s_fmal.S: Removed.
31098
31099 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
31100
31101         [BZ #3268]
31102         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
31103         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
31104         computation is not scheduled after fetestexcept.  Fix value
31105         of minimum denormal long double.
31106
31107 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
31108
31109         [BZ #3268]
31110         * math/libm-test.inc (fma_test): Add some more tests.
31111         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
31112         correctly.
31113
31114 2010-10-15  Andreas Schwab  <schwab@redhat.com>
31115
31116         * scripts/data/localplt-s390-linux-gnu.data: New file.
31117         * scripts/data/localplt-s390x-linux-gnu.data: New file.
31118
31119 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
31120
31121         [BZ #3268]
31122         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
31123         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
31124         instead of dbl-64.
31125         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
31126         inlines.
31127         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
31128         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
31129         if one of x and y is very large and the other is subnormal.
31130         * sysdeps/s390/fpu/s_fmaf.c: New file.
31131         * sysdeps/s390/fpu/s_fma.c: New file.
31132         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
31133         * sysdeps/powerpc/fpu/s_fma.S: New file.
31134         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
31135         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
31136         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
31137
31138 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
31139
31140         [BZ #3268]
31141         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
31142         fma tests.
31143         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
31144         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
31145         * sysdeps/i386/i686/multiarch/s_fma.c: Include
31146         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
31147         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
31148         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
31149         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
31150
31151 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
31152
31153         [BZ #12078]
31154         * posix/regcomp.c (parse_branch): One more memory leak plugged.
31155         * posix/bug-regex31.input: Add test case.
31156
31157 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
31158
31159         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
31160         * posix/bug-regex31.input: New file.
31161
31162         [BZ #12078]
31163         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
31164         (parse_sub_exp): Fix last change, use postorder.
31165
31166         * posix/bug-regex31.c: New file.
31167         * posix/Makefile: Add rules to build and run bug-regex31.
31168
31169         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
31170
31171         [BZ #12078]
31172         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
31173
31174         [BZ #12108]
31175         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
31176         to have entries in sys_siglist.
31177
31178         [BZ #12093]
31179         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
31180         be NULL.
31181
31182 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
31183
31184         [BZ #3268]
31185         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
31186         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
31187         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
31188         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
31189         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
31190         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
31191         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
31192         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
31193         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
31194         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
31195         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
31196         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
31197         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
31198         * math/ftestexcept.c (fetestexcept): Likewise.
31199         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
31200         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
31201         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
31202         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
31203         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
31204         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
31205         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
31206
31207 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
31208
31209         [BZ #12107]
31210         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
31211         newline.
31212
31213 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
31214
31215         * string/bug-strstr1.c: New file.
31216         * string/Makefile: Add rules to build and run bug-strstr1.
31217
31218 2010-10-05  Eric Blake  <eblake@redhat.com>
31219
31220         [BZ #12092]
31221         * string/str-two-way.h (two_way_long_needle): Always clear memory
31222         when skipping input due to the shift table.
31223
31224 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
31225
31226         [BZ #12005]
31227         * malloc/mcheck.c: Handle large requests.
31228
31229         [BZ #12077]
31230         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
31231         for strncmp and strncasecmp.
31232         * string/stratcliff.c: Add tests for strcmp and strncmp.
31233         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
31234
31235 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
31236
31237         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
31238         __set_fpscr.
31239
31240 2010-09-30  Andreas Jaeger  <aj@suse.de>
31241
31242         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
31243         (CGROUP_SUPER_MAGIC): Define.
31244         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31245         Handle btrfs and cgroup file systems.
31246         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
31247         Likewise.
31248
31249 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
31250
31251         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
31252         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
31253
31254 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31255
31256         [BZ #12067]
31257         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
31258         trying to locate the ELF header.
31259
31260 2010-09-27  Andreas Schwab  <schwab@redhat.com>
31261
31262         [BZ #11611]
31263         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
31264         Mask out sign-bit copies when constructing f_fsid.
31265
31266 2010-09-24  Petr Baudis <pasky@suse.cz>
31267
31268         * debug/stack_chk_fail_local.c: Add missing licence exception.
31269         * debug/warning-nop.c: Likewise.
31270
31271 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
31272
31273         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
31274         implementing getdents64 using getdents syscall, set d_type if
31275         __ASSUME_GETDENTS32_D_TYPE.
31276
31277 2010-09-16  Andreas Schwab  <schwab@redhat.com>
31278
31279         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
31280         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
31281
31282 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
31283
31284         [BZ #12037]
31285         * posix/unistd.h: Undo change of feature selection for ftruncate from
31286         2010-01-11.
31287
31288 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
31289
31290         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
31291         detection.
31292
31293 2010-09-20  Andreas Schwab  <schwab@redhat.com>
31294
31295         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
31296         fanotify_mark.
31297         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
31298
31299 2010-09-14  Andreas Schwab  <schwab@redhat.com>
31300
31301         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
31302         variables after CHECK_SP call.
31303         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
31304
31305 2010-09-13  Andreas Schwab  <schwab@redhat.com>
31306             Ulrich Drepper  <drepper@redhat.com>
31307
31308         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
31309         re-relocationg ld.so.
31310         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
31311         _dl_init_paths call.
31312         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
31313         here anymore.
31314
31315 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
31316
31317         * resolv/res_init.c (__res_vinit): Count the default server we added.
31318
31319 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
31320             Ulrich Drepper  <drepper@redhat.com>
31321
31322         [BZ #11968]
31323         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
31324         (____longjmp_chk): Use %ebx for saving value across system call.
31325         Add unwind info.
31326
31327 2010-09-06  Andreas Schwab  <schwab@redhat.com>
31328
31329         * manual/Makefile: Don't mix pattern rules with normal rules.
31330
31331 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
31332
31333         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
31334         operation.
31335         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
31336         * libio/iofopncook.c (_IO_cookie_init): Likewise.
31337         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
31338         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
31339         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
31340         Likewise.
31341
31342 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
31343
31344         [BZ #11979]
31345         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
31346         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
31347
31348 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
31349
31350         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
31351         * sysdeps/x86_64/addmul_1.S: Likewise.
31352         * sysdeps/x86_64/lshift.S: Likewise.
31353         * sysdeps/x86_64/mul_1.S: Likewise.
31354         * sysdeps/x86_64/rshift.S: Likewise.
31355         * sysdeps/x86_64/sub_n.S: Likewise.
31356         * sysdeps/x86_64/submul_1.S: Likewise.
31357
31358 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31359
31360         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
31361         Define __sched_param instead of SCHED_* and sched_param when
31362         <bits/sched.h> is included with __need_schedparam defined.
31363         * bits/sched.h [__need_schedparam]
31364         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
31365         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
31366         (__defined_schedparam): Define to 1.
31367         (__sched_param): New structure, identical to sched_param.
31368         (__need_schedparam): Undefine.
31369
31370 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
31371
31372         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
31373         (epoll_create1): Declare.
31374
31375         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
31376
31377 2010-08-31  Andreas Schwab  <schwab@redhat.com>
31378
31379         [BZ #7066]
31380         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
31381         shifting retval into place.
31382
31383 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
31384
31385         * nis/rpcsvc/nis.h: Update copyright notice.
31386         * nis/rpcsvc/nis.x: Likewise.
31387         * nis/rpcsvc/nis_callback.h: Likewise.
31388         * nis/rpcsvc/nis_callback.x: Likewise.
31389         * nis/rpcsvc/nis_object.x: Likewise.
31390         * nis/rpcsvc/nis_tags.h: Likewise.
31391         * nis/rpcsvc/yp.h: Likewise.
31392         * nis/rpcsvc/yp.x: Likewise.
31393         * nis/rpcsvc/ypupd.h: Likewise.
31394         * nis/yp_xdr.c: Likewise.
31395         * nis/ypupdate_xdr.c: Likewise.
31396
31397         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
31398         mainly the body of pmap_getport.  Add parameters to specify timeouts.
31399         (pmap_getport): Use __libc_rpc_getport.
31400         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
31401         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
31402         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
31403
31404 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
31405
31406         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
31407         fanotify_mark.
31408
31409 2010-08-27  Roland McGrath  <roland@redhat.com>
31410
31411         * sysdeps/i386/i686/multiarch/Makefile
31412         (CFLAGS-varshift.c): New variable.
31413
31414 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
31415
31416         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
31417         * sysdeps/i386/i686/multiarch/varshift.c: New file.
31418
31419         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
31420
31421         * sysdeps/x86_64/strlen.S: Minimal code improvement.
31422
31423 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
31424
31425         * sysdeps/x86_64/strlen.S: Unroll the loop.
31426         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31427         strlen-sse2 strlen-sse2-bsf.
31428         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
31429         __strlen_no_bsf if bit_Slow_BSF is set.
31430         (__strlen_sse42): Removed.
31431         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
31432         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
31433
31434 2010-08-25  Roland McGrath  <roland@redhat.com>
31435
31436         * sysdeps/x86_64/multiarch/varshift.S: File removed.
31437         * sysdeps/x86_64/multiarch/varshift.c: New file.
31438         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
31439         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
31440         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
31441         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
31442
31443 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
31444
31445         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31446         strlen-sse2 strlen-sse2-bsf.
31447         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
31448         __strlen_sse2_bsf if bit_Slow_BSF is unset.
31449         (__strlen_sse2): Removed.
31450         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
31451         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
31452         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
31453         bit_Slow_BSF for Atom.
31454         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
31455         (index_Slow_BSF): Define.
31456         (HAS_SLOW_BSF): Define.
31457
31458 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
31459
31460         [BZ #10851]
31461         * resolv/res_init.c (__res_vinit): When no server address at all
31462         is given default to loopback.
31463
31464 2010-08-24  Roland McGrath  <roland@redhat.com>
31465
31466         * configure.in: Remove config-name.h generation.
31467         * configure: Regenerated.
31468         * config-name.in: File removed.
31469         * scripts/config-uname.sh: New file.
31470         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
31471         ($(objdir)config-name.h): New target.
31472
31473         * sunrpc/rpc_parse.h: Avoid nested comment.
31474
31475 2010-08-24  Richard Henderson  <rth@redhat.com>
31476             Ulrich Drepper  <drepper@redhat.com>
31477             H.J. Lu  <hongjiu.lu@intel.com>
31478
31479         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
31480         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
31481         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
31482         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
31483         _mm_alignr_epi8 with _mm_loadu_si128.
31484         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
31485         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
31486         (__m128i_shift_right): Removed.
31487         * sysdeps/i386/i686/multiarch/varshift.h: New file.
31488         * sysdeps/i386/i686/multiarch/varshift.S: New file.
31489         * sysdeps/x86_64/multiarch/varshift.h: New file.
31490         * sysdeps/x86_64/multiarch/varshift.S: New file.
31491
31492 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
31493
31494         * configure.in: Move assembler checks to before sysdep dir checking.
31495
31496 2010-08-20  Petr Baudis  <pasky@suse.cz>
31497
31498         * LICENSES: Sync the sunrpc license.
31499
31500 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
31501
31502         * sunrpc/auth_des.c: Update copyright notice once again.
31503         * sunrpc/auth_none.c: Likewise.
31504         * sunrpc/auth_unix.c: Likewise.
31505         * sunrpc/authdes_prot.c: Likewise.
31506         * sunrpc/authuxprot.c: Likewise.
31507         * sunrpc/bindrsvprt.c: Likewise.
31508         * sunrpc/clnt_gen.c: Likewise.
31509         * sunrpc/clnt_perr.c: Likewise.
31510         * sunrpc/clnt_raw.c: Likewise.
31511         * sunrpc/clnt_simp.c: Likewise.
31512         * sunrpc/clnt_tcp.c: Likewise.
31513         * sunrpc/clnt_udp.c: Likewise.
31514         * sunrpc/clnt_unix.c: Likewise.
31515         * sunrpc/des_crypt.c: Likewise.
31516         * sunrpc/des_soft.c: Likewise.
31517         * sunrpc/get_myaddr.c: Likewise.
31518         * sunrpc/getrpcport.c: Likewise.
31519         * sunrpc/key_call.c: Likewise.
31520         * sunrpc/key_prot.c: Likewise.
31521         * sunrpc/openchild.c: Likewise.
31522         * sunrpc/pm_getmaps.c: Likewise.
31523         * sunrpc/pm_getport.c: Likewise.
31524         * sunrpc/pmap_clnt.c: Likewise.
31525         * sunrpc/pmap_prot.c: Likewise.
31526         * sunrpc/pmap_prot2.c: Likewise.
31527         * sunrpc/pmap_rmt.c: Likewise.
31528         * sunrpc/rpc/auth.h: Likewise.
31529         * sunrpc/rpc/auth_unix.h: Likewise.
31530         * sunrpc/rpc/clnt.h: Likewise.
31531         * sunrpc/rpc/des_crypt.h: Likewise.
31532         * sunrpc/rpc/key_prot.h: Likewise.
31533         * sunrpc/rpc/netdb.h: Likewise.
31534         * sunrpc/rpc/pmap_clnt.h: Likewise.
31535         * sunrpc/rpc/pmap_prot.h: Likewise.
31536         * sunrpc/rpc/pmap_rmt.h: Likewise.
31537         * sunrpc/rpc/rpc.h: Likewise.
31538         * sunrpc/rpc/rpc_des.h: Likewise.
31539         * sunrpc/rpc/rpc_msg.h: Likewise.
31540         * sunrpc/rpc/svc.h: Likewise.
31541         * sunrpc/rpc/svc_auth.h: Likewise.
31542         * sunrpc/rpc/types.h: Likewise.
31543         * sunrpc/rpc/xdr.h: Likewise.
31544         * sunrpc/rpc_clntout.c: Likewise.
31545         * sunrpc/rpc_cmsg.c: Likewise.
31546         * sunrpc/rpc_common.c: Likewise.
31547         * sunrpc/rpc_cout.c: Likewise.
31548         * sunrpc/rpc_dtable.c: Likewise.
31549         * sunrpc/rpc_hout.c: Likewise.
31550         * sunrpc/rpc_main.c: Likewise.
31551         * sunrpc/rpc_parse.c: Likewise.
31552         * sunrpc/rpc_parse.h: Likewise.
31553         * sunrpc/rpc_prot.c: Likewise.
31554         * sunrpc/rpc_sample.c: Likewise.
31555         * sunrpc/rpc_scan.c: Likewise.
31556         * sunrpc/rpc_scan.h: Likewise.
31557         * sunrpc/rpc_svcout.c: Likewise.
31558         * sunrpc/rpc_tblout.c: Likewise.
31559         * sunrpc/rpc_util.c: Likewise.
31560         * sunrpc/rpc_util.h: Likewise.
31561         * sunrpc/rpcinfo.c: Likewise.
31562         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
31563         * sunrpc/rpcsvc/key_prot.x: Likewise.
31564         * sunrpc/rpcsvc/klm_prot.x: Likewise.
31565         * sunrpc/rpcsvc/mount.x: Likewise.
31566         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
31567         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
31568         * sunrpc/rpcsvc/rex.x: Likewise.
31569         * sunrpc/rpcsvc/rstat.x: Likewise.
31570         * sunrpc/rpcsvc/rusers.x: Likewise.
31571         * sunrpc/rpcsvc/sm_inter.x: Likewise.
31572         * sunrpc/rpcsvc/spray.x: Likewise.
31573         * sunrpc/rpcsvc/yppasswd.x: Likewise.
31574         * sunrpc/rtime.c: Likewise.
31575         * sunrpc/svc.c: Likewise.
31576         * sunrpc/svc_auth.c: Likewise.
31577         * sunrpc/svc_authux.c: Likewise.
31578         * sunrpc/svc_raw.c: Likewise.
31579         * sunrpc/svc_run.c: Likewise.
31580         * sunrpc/svc_simple.c: Likewise.
31581         * sunrpc/svc_tcp.c: Likewise.
31582         * sunrpc/svc_udp.c: Likewise.
31583         * sunrpc/svc_unix.c: Likewise.
31584         * sunrpc/svcauth_des.c: Likewise.
31585         * sunrpc/xcrypt.c: Likewise.
31586         * sunrpc/xdr.c: Likewise.
31587         * sunrpc/xdr_array.c: Likewise.
31588         * sunrpc/xdr_float.c: Likewise.
31589         * sunrpc/xdr_mem.c: Likewise.
31590         * sunrpc/xdr_rec.c: Likewise.
31591         * sunrpc/xdr_ref.c: Likewise.
31592         * sunrpc/xdr_sizeof.c: Likewise.
31593         * sunrpc/xdr_stdio.c: Likewise.
31594
31595         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
31596         handling.
31597
31598 2010-08-19  Andreas Schwab  <schwab@redhat.com>
31599
31600         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
31601
31602 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
31603
31604         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
31605         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
31606         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
31607         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
31608         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
31609         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
31610         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
31611         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
31612         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
31613         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
31614         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
31615         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
31616         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
31617         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
31618
31619 2010-07-26  Anton Blanchard  <anton@samba.org>
31620
31621         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
31622         * malloc/arena.c (heap_trim): Likewise.
31623
31624 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
31625
31626         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
31627         here.  Not...
31628         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
31629         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
31630
31631 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
31632
31633         * sysdeps/i386/elf/Makefile: New file.
31634
31635 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
31636
31637         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
31638         from fanotify_init.
31639         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
31640         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
31641
31642 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
31643
31644         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
31645         of strncasecmp_l.
31646         * sysdeps/multiarch/strcmp.S: Likewise.
31647
31648 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
31649
31650         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
31651         strncase_l-nonascii.
31652         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
31653         Add strncase_l-ssse3.
31654         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
31655         * sysdeps/x86_64/strcmp.S: Likewise.
31656         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
31657         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
31658         * sysdeps/x86_64/strncase.S: New file.
31659         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
31660         * sysdeps/x86_64/strncase_l.S: New file.
31661         * string/Makefile (strop-tests): Add strncasecmp.
31662         * string/test-strncasecmp.c: New file.
31663
31664         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
31665         warning.
31666
31667         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
31668         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
31669
31670 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
31671
31672         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
31673
31674 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
31675
31676         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
31677         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
31678         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
31679
31680 2010-05-01  Alan Modra  <amodra@gmail.com>
31681
31682         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
31683         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
31684         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
31685         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
31686         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
31687         tidying.  Don't tail-call __sigjmp_save for static lib.
31688         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
31689         save location.
31690         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
31691         (CALL_MCOUNT): Add eh info, and nop after bl.
31692         (TAIL_CALL_SYSCALL_ERROR): New macro.
31693         (PSEUDO_RET): Use it.
31694         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
31695         Correct save location of integer regs and cr.
31696         (_dl_profile_resolve): Correct cr save location.  Delete nops
31697         after bl when SHARED.  Reduce cfi size a little by better
31698         placement of cfi directives.
31699         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
31700         make a stack frame.  Instead use parm save area as a temp.
31701         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
31702         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
31703         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
31704         Don't make a stack frame for parent, use parm save area.
31705         Increase child stack frame to 112 bytes.  Don't save unused reg,
31706         and adjust reg usage.  Set up cfi on error recovery and
31707         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
31708         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
31709         (__makecontext): Add dummy nop after jump to exit.
31710         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
31711         Use correct parm save area and cr save, reduce stack frame.
31712         Correct cfi for possible PSEUDO_RET frame setup.
31713         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
31714         Branch to local label emitted by PSEUDO_RET rather than
31715         __syscall_error.
31716
31717 2010-08-12  Andreas Schwab  <schwab@redhat.com>
31718
31719         [BZ #11904]
31720         * locale/programs/locale.c (print_assignment): New function.
31721         (show_locale_vars): Use it.
31722
31723 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
31724
31725         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
31726         field.
31727         (struct statfs64): Likewise.
31728         (_STATFS_F_FLAGS): Define.
31729         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
31730         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
31731         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
31732         (ST_VALID): Define locally.
31733         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
31734         __statvfs_getflags, use the provided value.
31735         * sysdeps/unix/sysv/linux/kernel-features.h: Define
31736         __ASSUME_STATFS_F_FLAGS.
31737
31738         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
31739
31740         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
31741         Add sys/fanotify.h.
31742         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
31743         fanotify_mask for GLIBC_2.13.
31744         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
31745         fanotify_init and fanotify_mark.
31746         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
31747         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
31748
31749         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
31750         Add prlimit.
31751         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
31752         prlimit64 for GLIBC_2.13.
31753         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
31754         prlimit64.
31755         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
31756         syscall.
31757         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
31758         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
31759         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
31760         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
31761         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
31762         add prlimit alias.
31763         * sysdeps/unix/sysv/linux/prlimit.c: New file.
31764
31765         [BZ #11903]
31766         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
31767         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
31768
31769         * nss/Makefile: Add rules to build and run tst-nss-test1.
31770         * shlib-versions: Add entry for libnss_test1.
31771         * nss/nss_test1.c: New file.
31772         * nss/tst-nss-test1.c: New file.
31773
31774         * nss/nsswitch.c (__nss_database_custom): Define new variable.
31775         (__nss_configure_lookup): Set appropriate entry in
31776         __nss_configure_lookup to true.
31777         * nss/nsswitch.h: Define enum with indeces of databases in
31778         databases and __nss_database_custom arrays.  Declare
31779         __nss_database_custom.
31780         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
31781         to avoid using nscd when custom rules are installed.
31782         * nss/getXXbyYY_r.c: Likewise.
31783         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
31784
31785         * nss/nss_files/files-parse.c: Whitespace fixes.
31786
31787 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
31788
31789         [BZ #11883]
31790         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
31791         * posix/fnmatch_loop.c: Likewise.
31792
31793 2010-07-17  Andi Kleen  <ak@linux.intel.com>
31794
31795         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
31796         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
31797         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
31798         * Versions.def [GLIBC_2.13]: Add.
31799
31800 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
31801
31802         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
31803         Also fail if tpwd after pwuid call is NULL.
31804
31805 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31806
31807         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
31808         when converting to ms.
31809
31810 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31811
31812         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
31813         EOPNOTSUPP errors with ENOTTY.
31814         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
31815         EOPNOTSUPP errors with ENOTTY.
31816
31817 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
31818
31819         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
31820         Add strcasecmp_l-ssse3.
31821         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
31822         strcasecmp.
31823         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
31824         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
31825         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
31826
31827 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
31828
31829         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
31830
31831         * string/Makefile (strop-tests): Add strcasecmp.
31832         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
31833         strcasecmp_l-nonascii.
31834         (gen-as-const-headers): Add locale-defines.sym.
31835         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
31836         * sysdeps/x86_64/strcasecmp.S: New file.
31837         * sysdeps/x86_64/strcasecmp_l.S: New file.
31838         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
31839         * sysdeps/x86_64/locale-defines.sym: New file.
31840         * string/test-strcasecmp.c: New file.
31841
31842         * string/test-strcasestr.c: Test both ends of the range of characters.
31843         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
31844
31845 2010-07-29  Roland McGrath  <roland@redhat.com>
31846
31847         [BZ #11856]
31848         * manual/locale.texi (Yes-or-No Questions): Fix example code.
31849
31850 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
31851
31852         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
31853         for ld.so.
31854
31855 2010-07-27  Andreas Schwab  <schwab@redhat.com>
31856
31857         * manual/memory.texi (Malloc Tunable Parameters): Document
31858         M_PERTURB.
31859
31860 2010-07-26  Roland McGrath  <roland@redhat.com>
31861
31862         [BZ #11840]
31863         * configure.in (-fgnu89-inline check): Set and substitute
31864         gnu89_inline, not libc_cv_gnu89_inline.
31865         * configure: Regenerated.
31866         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
31867
31868 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
31869
31870         * string/test-strnlen.c: New file.
31871         * string/Makefile (strop-tests): Add strnlen.
31872         * string/tester.c (test_strnlen): Add a few more test cases.
31873         * string/tst-strlen.c: Better error reporting.
31874
31875         * sysdeps/x86_64/strnlen.S: New file.
31876
31877 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
31878
31879         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
31880         lower-latency instructions.
31881
31882 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
31883
31884         * string/test-strcasestr.c: New file.
31885         * string/test-strstr.c: New file.
31886         * string/Makefile (strop-tests): Add strstr and strcasestr.
31887         * string/str-two-way.h: Don't undefine MAX.
31888         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
31889
31890 2010-07-21  Andreas Schwab  <schwab@redhat.com>
31891
31892         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31893         strcasestr-nonascii.
31894         (CFLAGS-strcasestr-nonascii.c): Define.
31895         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
31896         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
31897         Remove unused attribute.
31898
31899 2010-07-20  Roland McGrath  <roland@redhat.com>
31900
31901         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
31902         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
31903         ld.so.cache was broken.  With it, there is no way to disable dsocaps
31904         like LD_HWCAP_MASK can disable hwcaps.
31905
31906 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
31907
31908         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
31909
31910 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
31911
31912         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
31913         call in strcasestr.
31914         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
31915         __strcasestr_sse42_nonascii.
31916         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
31917         strcasestr-nonascii.c.
31918         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
31919
31920 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
31921
31922         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
31923         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
31924         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
31925         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
31926
31927 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
31928
31929         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
31930         fcntl.
31931
31932 2010-07-06  Andreas Schwab  <schwab@redhat.com>
31933
31934         [BZ #11577]
31935         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
31936         dl_signal_cerror.
31937
31938 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
31939
31940         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
31941         _PC_PIPE_BUF using F_GETPIPE_SZ.
31942
31943 2010-07-05  Roland McGrath  <roland@redhat.com>
31944
31945         * manual/arith.texi (Rounding Functions): Fix rint description
31946         implicit in round description.
31947
31948 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
31949
31950         * elf/Makefile: Fix linking for a few tests to make recent linker
31951         happy.
31952
31953 2010-06-30  Andreas Schwab  <schwab@redhat.com>
31954
31955         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
31956         $(common-objpfx)libc_nonshared.a.
31957
31958 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
31959
31960         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
31961         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
31962         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
31963         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
31964         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
31965         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
31966         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
31967         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
31968         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
31969         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
31970         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
31971         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
31972         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
31973         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
31974         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
31975         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
31976         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
31977         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
31978         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
31979         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
31980         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
31981         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
31982         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
31983         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
31984         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
31985         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
31986         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
31987         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
31988         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
31989         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
31990         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
31991         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
31992         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
31993         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
31994         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
31995         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
31996         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
31997         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
31998         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
31999         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
32000         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
32001         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
32002         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
32003         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
32004         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
32005         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
32006         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
32007         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
32008
32009 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
32010
32011         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
32012         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
32013         * string/memmove.c (memmove): Renamed to ...
32014         (MEMMOVE): ...this.  Default to memmove.
32015         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
32016         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
32017         (END_CHK): Define.
32018         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32019         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
32020         mempcpy-ssse3-back memmove-ssse3-back.
32021         * sysdeps/x86_64/multiarch/bcopy.S: New file .
32022         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
32023         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
32024         * sysdeps/x86_64/multiarch/memcpy.S: New file.
32025         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
32026         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
32027         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
32028         * sysdeps/x86_64/multiarch/memmove.c: New file.
32029         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
32030         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
32031         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
32032         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
32033         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
32034         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
32035         Define.
32036         (index_Fast_Copy_Backward): Define.
32037         (HAS_ARCH_FEATURE): Define.
32038         (HAS_FAST_REP_STRING): Define.
32039         (HAS_FAST_COPY_BACKWARD): Define.
32040
32041 2010-06-21  Andreas Schwab  <schwab@redhat.com>
32042
32043         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
32044         Restore proper fallback handling.
32045
32046 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
32047
32048         [BZ #11701]
32049         * posix/group_member.c (__group_member): Correct checking loop.
32050
32051         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
32052         OOM in getpwuid_r correctly.  Return error number when the caller
32053         should return, otherwise -1.
32054         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
32055         call returning > 0 value.
32056         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
32057
32058 2010-06-07  Andreas Schwab  <schwab@redhat.com>
32059
32060         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
32061         libc_nonshared.a from targets in modules-names.
32062
32063 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
32064
32065         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
32066         requires it.
32067
32068 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
32069
32070         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
32071         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
32072         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
32073         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
32074
32075 2010-06-02  Andreas Schwab  <schwab@redhat.com>
32076
32077         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
32078
32079 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
32080
32081         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
32082         and F_GETPIPE_SZ.
32083         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
32084         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
32085         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
32086         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
32087         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
32088         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
32089
32090 2010-06-14  Roland McGrath  <roland@redhat.com>
32091
32092         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
32093
32094 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
32095
32096         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
32097         __REDIRECT followed by __THROW.
32098         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
32099         * posix/getopt.h (getopt): Likewise.
32100
32101 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
32102
32103         * hurd/lookup-at.c (__file_name_lookup_at): Accept
32104         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
32105         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
32106         in AT_FLAGS.
32107         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
32108         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
32109
32110 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
32111
32112         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
32113
32114 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
32115
32116         [BZ #11640]
32117         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32118         Properly check family and model.
32119
32120 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
32121
32122         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
32123
32124 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
32125
32126         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
32127
32128 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
32129
32130         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
32131         symbol reference.
32132
32133 2010-05-19  Andreas Schwab  <schwab@redhat.com>
32134
32135         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
32136         symbol reference.
32137
32138 2010-05-21  Andreas Schwab  <schwab@redhat.com>
32139
32140         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
32141         and internal_recvmmsg.
32142         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
32143         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
32144         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
32145         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
32146
32147         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
32148         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
32149         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
32150
32151 2010-05-20  Andreas Schwab  <schwab@redhat.com>
32152
32153         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
32154
32155 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
32156
32157         POWER7 optimizations.
32158         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
32159         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
32160
32161 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
32162
32163         * version.h: Update for 2.13 development version.
32164
32165 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
32166
32167         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
32168         exceptions.  Return 0.
32169
32170 2010-05-07  Roland McGrath  <roland@redhat.com>
32171
32172         * elf/ldconfig.c (main): Add a const.
32173
32174 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
32175
32176         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
32177         (args_options): Add no-idn option.
32178         (ahosts_keys_int): Add idn_flags to ai_flags.
32179         (parse_option): Handle 'i' option to clear idn_flags.
32180
32181         * malloc/malloc.c (_int_free): Possible race in the most recently
32182         added check.  Only act on the data if no current modification
32183         happened.
32184
32185 See ChangeLog.17 for earlier changes.