NEWS: Mention __unused and __block removal.
[platform/upstream/glibc.git] / ChangeLog
1 2013-11-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2
3         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Use
4         __fe_nomask_env_priv instead of __fe_nomask_env to avoid a PLT call.
5         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Likewise.
6         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Likewise.
7         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Rename to
8         __fe_nomask_env_priv and attribute_hidden.
9         * sysdeps/powerpc/fpu/fenv_private.h (libc_fesetenv_ppc): Likewise.
10         (libc_feupdateenv_test_ppc): Likewise.
11         (libc_feresetround_ppc): Likewise.
12         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
13         (__fe_nomask_env): Rename to __fe_nomask_env_priv and adjust
14         compat_symbol macro.
15         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
16         (__fe_nomask_env): Likewise.
17         * sysdeps/powerpc/fpu/fe_nomask.c (__fe_nomask_env): Likewise.
18
19 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
20
21         * string/Makefile: Remove ifunc tests.
22         * string/test-string.h: Define TEST_IFUNC.
23         * string/test-bcopy-ifunc.c: Remove.
24         * string/test-bzero-ifunc.c: Likewise.
25         * string/test-memccpy-ifunc.c: Likewise.
26         * string/test-memchr-ifunc.c: Likewise.
27         * string/test-memcmp-ifunc.c: Likewise.
28         * string/test-memcpy-ifunc.c: Likewise.
29         * string/test-memmem-ifunc.c: Likewise.
30         * string/test-memmove-ifunc.c: Likewise.
31         * string/test-mempcpy-ifunc.c: Likewise.
32         * string/test-memrchr-ifunc.c: Likewise.
33         * string/test-memset-ifunc.c: Likewise.
34         * string/test-rawmemchr-ifunc.c: Likewise.
35         * string/test-stpcpy-ifunc.c: Likewise.
36         * string/test-stpncpy-ifunc.c: Likewise.
37         * string/test-strcasecmp-ifunc.c: Likewise.
38         * string/test-strcasestr-ifunc.c: Likewise.
39         * string/test-strcat-ifunc.c: Likewise.
40         * string/test-strchr-ifunc.c: Likewise.
41         * string/test-strchrnul-ifunc.c: Likewise.
42         * string/test-strcmp-ifunc.c: Likewise.
43         * string/test-strcpy-ifunc.c: Likewise.
44         * string/test-strcspn-ifunc.c: Likewise.
45         * string/test-strlen-ifunc.c: Likewise.
46         * string/test-strncasecmp-ifunc.c: Likewise.
47         * string/test-strncat-ifunc.c: Likewise.
48         * string/test-strncmp-ifunc.c: Likewise.
49         * string/test-strncpy-ifunc.c: Likewise.
50         * string/test-strnlen-ifunc.c: Likewise.
51         * string/test-strpbrk-ifunc.c: Likewise.
52         * string/test-strrchr-ifunc.c: Likewise.
53         * string/test-strspn-ifunc.c: Likewise.
54         * string/test-strstr-ifunc.c: Likewise.
55
56 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
57
58         * benchtests/Makefile: Remove ifunc tests.
59         * benchtests/bench-string.h: Define TEST_IFUNC.
60         * benchtests/bench-bcopy-ifunc.c: Remove.
61         * benchtests/bench-bzero-ifunc.c: Likewise.
62         * benchtests/bench-memccpy-ifunc.c: Likewise.
63         * benchtests/bench-memchr-ifunc.c: Likewise.
64         * benchtests/bench-memcmp-ifunc.c: Likewise.
65         * benchtests/bench-memcpy-ifunc.c: Likewise.
66         * benchtests/bench-memmem-ifunc.c: Likewise.
67         * benchtests/bench-memmove-ifunc.c: Likewise.
68         * benchtests/bench-mempcpy-ifunc.c: Likewise.
69         * benchtests/bench-memrchr-ifunc.c: Likewise.
70         * benchtests/bench-memset-ifunc.c: Likewise.
71         * benchtests/bench-rawmemchr-ifunc.c: Likewise.
72         * benchtests/bench-stpcpy_chk-ifunc.c: Likewise.
73         * benchtests/bench-stpcpy-ifunc.c: Likewise.
74         * benchtests/bench-stpncpy-ifunc.c: Likewise.
75         * benchtests/bench-strcasecmp-ifunc.c: Likewise.
76         * benchtests/bench-strcasestr-ifunc.c: Likewise.
77         * benchtests/bench-strcat-ifunc.c: Likewise.
78         * benchtests/bench-strchr-ifunc.c: Likewise.
79         * benchtests/bench-strchrnul-ifunc.c: Likewise.
80         * benchtests/bench-strcmp-ifunc.c: Likewise.
81         * benchtests/bench-strcpy_chk-ifunc.c: Likewise.
82         * benchtests/bench-strcpy-ifunc.c: Likewise.
83         * benchtests/bench-strcspn-ifunc.c: Likewise.
84         * benchtests/bench-strlen-ifunc.c: Likewise.
85         * benchtests/bench-strncasecmp-ifunc.c: Likewise.
86         * benchtests/bench-strncat-ifunc.c: Likewise.
87         * benchtests/bench-strncmp-ifunc.c: Likewise.
88         * benchtests/bench-strncpy-ifunc.c: Likewise.
89         * benchtests/bench-strnlen-ifunc.c: Likewise.
90         * benchtests/bench-strpbrk-ifunc.c: Likewise.
91         * benchtests/bench-strrchr-ifunc.c: Likewise.
92         * benchtests/bench-strspn-ifunc.c: Likewise.
93         * benchtests/bench-strstr-ifunc.c: Likewise.
94
95 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
96
97         * sysdeps/x86_64/dl-tlsdesc.S (_dl_tlsdesc_resolve_hold): Fix typo.
98
99 2013-11-26  Ondřej Bílka  <neleai@seznam.cz>
100
101         * resolv/netdb.h: Use __glibc_reserved instead __unused.
102         * rt/aio.h: Likewise.
103         * sysdeps/gnu/bits/utmp.h: Likewise.
104         * sysdeps/gnu/bits/utmpx.h: Likewise.
105         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
106         * sysdeps/unix/sysv/linux/bits/ipc.h: Likewise.
107         * sysdeps/unix/sysv/linux/bits/msq.h: Likewise.
108         * sysdeps/unix/sysv/linux/bits/sem.h: Likewise.
109         * sysdeps/unix/sysv/linux/bits/shm.h: Likewise.
110         * sysdeps/unix/sysv/linux/bits/stat.h: Likewise.
111         * sysdeps/unix/sysv/linux/kernel_stat.h: Likewise.
112         * sysdeps/unix/sysv/linux/ntp_gettimex.c: Likewise.
113         * sysdeps/unix/sysv/linux/powerpc/bits/ipc.h: Likewise.
114         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h: Likewise.
115         * sysdeps/unix/sysv/linux/powerpc/bits/sem.h: Likewise.
116         * sysdeps/unix/sysv/linux/powerpc/bits/shm.h: Likewise.
117         * sysdeps/unix/sysv/linux/powerpc/bits/stat.h: Likewise.
118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/kernel_stat.h: Likewise.
119         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
120         * sysdeps/unix/sysv/linux/s390/bits/ipc.h: Likewise.
121         * sysdeps/unix/sysv/linux/s390/bits/msq.h: Likewise.
122         * sysdeps/unix/sysv/linux/s390/bits/sem.h: Likewise.
123         * sysdeps/unix/sysv/linux/s390/bits/shm.h: Likewise.
124         * sysdeps/unix/sysv/linux/s390/bits/stat.h: Likewise.
125         * sysdeps/unix/sysv/linux/s390/bits/utmp.h: Likewise.
126         * sysdeps/unix/sysv/linux/s390/bits/utmpx.h: Likewise.
127         * sysdeps/unix/sysv/linux/s390/s390-32/utmp32.h: Likewise.
128         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
129         * sysdeps/unix/sysv/linux/sh/bits/shm.h: Likewise.
130         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
131         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h: Likewise.
132         * sysdeps/unix/sysv/linux/sparc/bits/msq.h: Likewise.
133         * sysdeps/unix/sysv/linux/sparc/bits/sem.h: Likewise.
134         * sysdeps/unix/sysv/linux/sparc/bits/shm.h: Likewise.
135         * sysdeps/unix/sysv/linux/sparc/bits/stat.h: Likewise.
136         * sysdeps/unix/sysv/linux/sparc/sparc32/kernel_stat.h: Likewise.
137         * sysdeps/unix/sysv/linux/sparc/sparc64/kernel_stat.h: Likewise.
138         * sysdeps/unix/sysv/linux/sparc/sparc64/xstatconv.c: Likewise.
139         * sysdeps/unix/sysv/linux/sparc/sys/procfs.h: Likewise.
140         * sysdeps/unix/sysv/linux/sys/timex.h: Likewise.
141         * sysdeps/unix/sysv/linux/x86/bits/msq.h: Likewise.
142         * sysdeps/unix/sysv/linux/x86/bits/sem.h: Likewise.
143         * sysdeps/unix/sysv/linux/x86/bits/shm.h: Likewise.
144         * sysdeps/unix/sysv/linux/x86/bits/stat.h: Likewise.
145         * sysdeps/unix/sysv/linux/xstatconv.c: Likewise.
146         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
147
148 2013-11-25  Carlos O'Donell  <carlos@redhat.com>
149
150         [BZ #16245]
151         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes):
152         Rename PTRAVE_EVENT_SECCOMP to PTRACE_EVENT_SECCOMP.
153
154 2013-11-25  Joseph Myers  <joseph@codesourcery.com>
155
156         * sysdeps/powerpc/nofpu/fenv_libc.h (__fegetround): New macro.
157         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h (__fegetround):
158         Likewise.
159
160 2013-11-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
161
162         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Use
163         SET_RESTORE_ROUND instead of feholdexcept/fesetround/fesetenv.
164         * sysdeps/powerpc/fpu/fenv_libc.h (__fegetround): Remove define.
165         (__fesetround): Remove define.
166         * sysdeps/powerpc/fpu/fenv_private.h: New file: Inline floating point
167         rounding and exceptions handling.
168         * sysdeps/powerpc/fpu/math_private.h: Include fenv_private.h.
169         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_mask_env): Define as hidden.
170         (__fe_nomask_env): Likewise.
171         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c (__llrintl): Use
172         __fegetround instead of fegetround.
173         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c (__lrintl): Likewise.
174         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c (__rintl): Likewise.
175
176 2013-11-21  Roland McGrath  <roland@hack.frob.com>
177
178         * malloc/malloc.c: Move #include <sys/param.h> to the top; comment why
179         it's there.
180
181         * sysdeps/generic/sys/swap.h (swapon): Add FLAGS argument to prototype.
182
183 2013-11-21  Meador Inge  <meadori@codesourcery.com>
184
185         [BZ #11157]
186         * crypt/crypt.h (encrypt): Use __glibc_block instead of __block.
187         (encrypt_r): Likewise.
188         * malloc/obstack.h (obstack_free): Likewise.
189         * posix/unistd.h (encrypt): Likewise.
190
191 2013-11-21  Guy Martin  <gmsoft@tuxicoman.be>
192
193         * sysdeps/generic/ldsodefs.h: Replace DL_DT_INIT_ADDRESS() and
194         DL_DT_FINI_ADDRESS() macro with DL_CALL_DT_INIT() and
195         DL_CALL_DT_FINI() that call the functions directly.
196         * elf/dl-init.c: Use the new DL_CALL_DT_INIT() macro.
197         * elf/dl-close.c: Use the new DL_CALL_DT_FINI() macro.
198         * elf/dl-fini.c: Likewise.
199
200 2013-11-20  Ondřej Bílka  <neleai@seznam.cz>
201
202         * malloc/hooks.c (memalign_check): Add alignment rounding.
203         * malloc/malloc.c (_mid_memalign): New function.
204         (__libc_valloc, __libc_pvalloc, __libc_memalign, __posix_memalign):
205         Implement by calling _mid_memalign.
206         * manual/probes.texi (Memory Allocation Probes): Remove
207         memory_valloc_retry and memory_pvalloc_retry.
208
209 2013-11-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
210
211         * locale/programs/locarchive.c (open_archive): Add const
212         qualifier to ARCHIVEFNAME and copy default fname to
213         DEFAULT_FNAME.
214
215         [BZ #15601]
216         * libio/tst-widetext.input: Rename Oriya to Odia.
217         * locale/iso-639.def: Likewise.
218
219         * manual/probes.texi (Mathematical Function Probes): Add
220         documentation for sin, cos, asin and acos probes.
221         * sysdeps/ieee754/dbl-64/sincos32.c: Include stap-probe.h.
222         (__sin32): Add slowasin probe.
223         (__cos32): Add slowacos probe.
224         (__mpsin): Add slowsin probe.
225         (__mpcos): Add slowcos probe.
226
227 2013-11-19  Joseph Myers  <joseph@codesourcery.com>
228
229         [BZ #15483]
230         * sysdeps/powerpc/nofpu/sim-full.c (__sim_exceptions): Change to
231         thread-local __sim_exceptions_thread and global
232         __sim_exceptions_global.
233         (__sim_disabled_exceptions): Change to thread-local
234         __sim_disabled_exceptions_thread and global
235         __sim_disabled_exceptions_global.
236         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
237         and global __sim_round_mode_global.
238         (__simulate_exceptions): Use thread-local floating-point state and
239         set global state from it as needed.
240         * sysdeps/powerpc/nofpu/Versions (GLIBC_PRIVATE): Add
241         __sim_exceptions_thread, __sim_disabled_exceptions_thread and
242         __sim_round_mode_thread.
243         * sysdeps/powerpc/nofpu/soft-supp.h: Include <shlib-compat.h>.
244         (__sim_exceptions): Change to thread-local __sim_exceptions_thread
245         and global __sim_exceptions_global.
246         (__sim_disabled_exceptions): Change to thread-local
247         __sim_disabled_exceptions_thread and global
248         __sim_disabled_exceptions_global.
249         (__sim_round_mode): Change to thread-local __sim_round_mode_thread
250         and global __sim_round_mode_global.
251         [SIM_GLOBAL_COMPAT] (SIM_COMPAT_SYMBOL): New macro.
252         (SIM_SET_GLOBAL): Likewise.
253         * sysdeps/powerpc/soft-fp/sfp-machine.h
254         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_ROUNDMODE): Use
255         __sim_round_mode_thread.
256         [!(__NO_FPRS__ && !_SOFT_FLOAT)] (FP_TRAPPING_EXCEPTIONS): Use
257         __sim_disabled_exceptions_thread.
258         (__sim_exceptions): Change to __sim_exceptions_thread.
259         (__sim_disabled_exceptions): Change to
260         __sim_disabled_exceptions_thread.
261         (__sim_round_mode): Change to __sim_round_mode_thread.
262         * sysdeps/powerpc/nofpu/fclrexcpt.c (__feclearexcept): Use
263         thread-local floating-point state and set global state from it as
264         needed.
265         * sysdeps/powerpc/nofpu/fedisblxcpt.c (fedisableexcept): Likewise.
266         * sysdeps/powerpc/nofpu/feenablxcpt.c: Include "soft-supp.h".
267         (__sim_disabled_exceptions): Remove extern declaration.
268         (feenableexcept): Use thread-local floating-point state and set
269         global state from it as needed.
270         * sysdeps/powerpc/nofpu/fegetenv.c (__sim_exceptions): Remove
271         extern declaration.
272         (__sim_disabled_exceptions): Likewise.
273         (__sim_round_mode): Likewise.
274         (__fegetenv): Use thread-local floating-point state.
275         * sysdeps/powerpc/nofpu/fegetexcept.c (fegetexcept): Likewise.
276         * sysdeps/powerpc/nofpu/fegetround.c (fegetround): Likewise.
277         * sysdeps/powerpc/nofpu/fesetenv.c (__fesetenv): Use thread-local
278         floating-point state and set global state from it as needed.
279         * sysdeps/powerpc/nofpu/fesetround.c (fesetround): Likewise.
280         * sysdeps/powerpc/nofpu/feupdateenv.c (__feupdateenv): Likewise.
281         * sysdeps/powerpc/nofpu/fgetexcptflg.c (__fegetexceptflag):
282         Likewise.
283         * sysdeps/powerpc/nofpu/fraiseexcpt.c (__feraiseexcept): Likewise.
284         * sysdeps/powerpc/nofpu/fsetexcptflg.c (__fesetexceptflag):
285         Likewise.
286         sysdeps/powerpc/nofpu/ftestexcept.c (fetestexcept): Likewise.
287         * sysdeps/powerpc/nofpu/get-rounding-mode.h (get_rounding_mode):
288         Use __sim_round_mode_thread.
289         * math/test-fenv-tls.c: New file.
290         * math/Makefile (tests): Add test-fenv-tls.
291         ($(objpfx)test-fenv-tls): Depend on
292         $(common-objpfx)nptl/libpthread.so.
293
294 2013-11-19  Andreas Schwab  <schwab@suse.de>
295
296         * locale/programs/locale.c (show_info): Decode wordarray elements.
297         * locale/categories.def (LC_MONETARY): Add element for
298         _NL_MONETARY_CRNCYSTR.
299         * locale/C-monetary.c (conversion_rate): New variable.
300         (_nl_C_LC_MONETARY): Use it for _NL_MONETARY_CONVERSION_RATE
301         element.
302
303 2013-11-18  Chris Metcalf  <cmetcalf@tilera.com>
304
305         * math/test-fpucw-ieee.c [!defined _FPU_IEEE] (FPU_CONTROL):
306         Omit definition of FPU_CONTROL and use default if no _FPU_IEEE.
307
308 2013-11-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
309
310         * elf/Makefile (tst-auxv): New test.
311         * elf/tst-auxv.c: New
312         * elf/rtld.c (dl_main): Adjust AT_EXECFN
313
314 2013-11-18  Joseph Myers  <joseph@codesourcery.com>
315
316         * include/libc-symbols.h (__hidden_proto): Add argument "thread".
317         (hidden_proto): Caller changed.
318         (hidden_tls_proto): New macro.
319         (libc_hidden_tls_proto): Likewise.
320         (rtld_hidden_tls_proto): Likewise.
321         (libm_hidden_tls_proto): Likewise.
322         (libresolv_hidden_tls_proto): Likewise.
323         (librt_hidden_tls_proto): Likewise.
324         (libdl_hidden_tls_proto): Likewise.
325         (libnss_files_hidden_tls_proto): Likewise.
326         (libnsl_hidden_tls_proto): Likewise.
327         (libnss_nisplus_hidden_tls_proto): Likewise.
328         (libutil_hidden_tls_proto): Likewise.
329
330 2013-11-18  Ondřej Bílka  <neleai@seznam.cz>
331
332         [BZ #10253]
333         * elf/dl-load.c (fillin_rpath): Add linkmap parameter and expand path.
334         (decompose_rpath): Defer expansion to fillin_rpath.
335         (_dl_init_paths): Pass linkmap to fillin_rpath.
336
337 2013-11-18  Rajalakshmi Srinivasaraghavan  <raji@linux.vnet.ibm.com>
338
339         * benchtests/Makefile: Add strsep.
340         * benchtests/bench-strsep.c: New file: strsep benchtest.
341         * benchtests/bench-strsep-ifunc.c: New file: strsep benchtest.
342
343 2013-11-18  Andreas Schwab  <schwab@suse.de>
344
345         * locale/programs/locale.c (show_info) [case byte]: Check for
346         '\377' instead of '\177'.
347         * locale/C-monetary.c (not_available): Always use "\377".
348         * stdlib/strfmon_l.c (__vstrfmon_l): Use -2 as marker for
349         unspecified p_sign_posn and n_sign_posn.  Check for '\377' to
350         detect unavailable sign_posn locale elements.
351         * locale/localeconv.c (__localeconv): For grouping and
352         mon_grouping handle "\177" and "\377" like no grouping.
353         (INT_ELEM): New macro.  Use it to set all numeric members.
354         * locale/programs/ld-monetary.c (monetary_read)
355         <tok_mon_grouping>: Normalize single -1 to the empty string.
356         * locale/programs/ld-numeric.c (numeric_read) <tok_grouping>:
357         Likewise.
358
359 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
360
361         [BZ #16055]
362         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Limit width
363         when we match (nil).
364         * stdio-common/tst-sscanf.c (struct test): Add testcase.
365
366 2013-11-16  Joseph Myers  <joseph@codesourcery.com>
367
368         * math/libm-test.inc (TEST_NAN_SIGN): New macro.
369         (NO_TEST_INLINE): Update value.
370         (ERRNO_UNCHANGED): Likewise.
371         (ERRNO_EDOM): Likewise.
372         (ERRNO_ERANGE): Likewise.
373         (IGNORE_RESULT): Likewise.
374         (check_float_internal): Check signs of NaN results if
375         TEST_NAN_SIGN used.
376         (check_complex): Pass TEST_NAN_SIGN flag through to second
377         check_float_internal call.
378         (copysign_test_data): Add tests with quiet NaNs as second
379         argument.  Use TEST_NAN_SIGN.
380         (fabs_test_data): Add test of negative quiet NaN argument.  Use
381         TEST_NAN_SIGN.
382         (signbit_test_data): Add tests of quiet NaN argument.
383         * math/gen-libm-test.pl (parse_args): Handle TEST_NAN_SIGN.
384
385         * math/gen-libm-test.pl (show_exceptions): Take extra argument
386         $ignore_result.
387         (parse_args): Handle function results specified as IGNORE.
388         * math/libm-test.inc (IGNORE_RESULT): New macro.
389         (check_float_internal): Do not check numerical result if flag
390         IGNORE_RESULT set.
391         (check_complex): Pass through IGNORE_RESULT to second
392         check_float_internal call.
393         (check_int): Do not check numerical result if flag IGNORE_RESULT
394         set.
395         (check_long): Likewise.
396         (check_bool): Likewise.
397         (check_longlong): Likewise.
398         (lrint_test_data): Add tests of infinite and NaN arguments.
399         (lrint_tonearest_test_data): Likewise.
400         (lrint_towardzero_test_data): Likewise.
401         (lrint_downward_test_data): Likewise.
402         (lrint_upward_test_data): Likewise.
403         (llrint_test_data): Likewise.
404         (llrint_tonearest_test_data): Likewise.
405         (llrint_towardzero_test_data): Likewise.
406         (llrint_downward_test_data): Likewise.
407         (llrint_upward_test_data): Likewise.
408         (lround_test_data): Likewise.
409         (llround_test_data): Likewise.
410
411         * math/libm-test.inc (NO_TEST_INLINE): New macro.
412         (ERRNO_UNCHANGED): Update value.
413         (ERRNO_EDOM): Likewise.
414         (ERRNO_ERANGE): Likewise.
415         (NO_TEST_INLINE_FLOAT): New macro.
416         (NO_TEST_INLINE_DOUBLE): Likewise.
417         (enable_test): New function.
418         (RUN_TEST_f_f): Check enable_test before running test.
419         (RUN_TEST_2_f): Likewise.
420         (RUN_TEST_fff_f): Likewise.
421         (RUN_TEST_c_f): Likewise.
422         (RUN_TEST_f_f1): Likewise.
423         (RUN_TEST_fF_f1): Likewise.
424         (RUN_TEST_fI_f1): Likewise.
425         (RUN_TEST_ffI_f1): Likewise.
426         (RUN_TEST_c_c): Likewise.
427         (RUN_TEST_cc_c): Likewise.
428         (RUN_TEST_f_i): Likewise.
429         (RUN_TEST_f_i_tg): Likewise.
430         (RUN_TEST_ff_i_tg): Likewise.
431         (RUN_TEST_f_b): Likewise.
432         (RUN_TEST_f_b_tg): Likewise.
433         (RUN_TEST_f_l): Likewise.
434         (RUN_TEST_f_L): Likewise.
435         (RUN_TEST_fFF_11): Likewise.
436         (asinh_test_data): Use NO_TEST_INLINE instead of [!TEST_INLINE]
437         conditionals.
438         (cosh_test_data): Likewise.
439         (exp_test_data): Likewise.
440         (expm1_test_data): Likewise.
441         (hypot_test_data): Likewise.
442         (pow_test_data): Likewise.
443         (sinh_test_data): Likewise.
444         (tanh_test_data): Likewise.
445         * math/gen-libm-test.pl (parse_args): Allow NO_TEST_INLINE as
446         flags argument.
447
448         * libm-test.inc (acos_test_data): Disallow inexact exceptions for
449         tests with quiet NaN input and output.
450         (acosh_test_data): Likewise.
451         (asin_test_data): Likewise.
452         (asinh_test_data): Likewise.
453         (atan_test_data): Likewise.
454         (atanh_test_data): Likewise.
455         (atan2_test_data): Likewise.
456         (cbrt_test_data): Likewise.
457         (cos_test_data): Likewise.
458         (cosh_test_data): Likewise.
459         (erf_test_data): Likewise.
460         (erfc_test_data): Likewise.
461         (exp_test_data): Likewise.
462         (exp10_test_data): Likewise.
463         (exp2_test_data): Likewise.
464         (expm1_test_data): Likewise.
465         (hypot_test_data): Likewise.
466         (j0_test_data): Likewise.
467         (j1_test_data): Likewise.
468         (jn_test_data): Likewise.
469         (lgamma_test_data): Likewise.
470         (log_test_data): Likewise.
471         (log10_test_data): Likewise.
472         (log1p_test_data): Likewise.
473         (log2_test_data): Likewise.
474         (pow_test_data): Likewise.
475         (scalb_test_data): Likewise.
476         (sin_test_data): Likewise.
477         (sincos_test_data): Likewise.
478         (sinh_test_data): Likewise.
479         (tan_test_data): Likewise.
480         (tanh_test_data): Likewise.
481         (tgamma_test_data): Likewise.
482         (y0_test_data): Likewise.
483         (y1_test_data): Likewise.
484         (yn_test_data): Likewise.
485
486         [BZ #16167]
487         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Check for first
488         argument being NaN and avoid computations with second argument in
489         that case.
490         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
491         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.
492         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
493
494 2013-11-15  Arun Kumar Pyasi <arun@chitwanix.com>
495
496         * locale/iso-639.def: Add Chitwani Tharu (the).
497
498 2013-11-14  Andreas Schwab  <schwab@suse.de>
499
500         * locale/C-address.c (_nl_C_LC_ADDRESS): Set country_num to zero
501         word instead of empty string.
502
503 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
504
505         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
506         (__fe_nomask_env): Fir compat symbol to be remove for GLIBC_2.19.
507         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
508         (__fe_nomask_env): Likewise.
509
510 2013-11-13  Steve Ellcey  <sellcey@mips.com>
511
512         * benchtests/bench-timing.h: Include time.h.
513
514 2013-11-13  H.J. Lu  <hongjiu.lu@intel.com>
515
516         [BZ #15997]
517         * sysdeps/unix/sysv/linux/configure.ac (arch_minimum_kernel): Set
518         to 3.4.0 for x32.
519         * sysdeps/unix/sysv/linux/configure: Regenerated.
520
521 2013-11-13  Joseph Myers  <joseph@codesourcery.com>
522
523         [BZ #16151]
524         * stdlib/strtod_l.c (round_and_return): Do not consider
525         retval[RETURN_LIBM_SIZE - 1] when determining more_bits for an
526         exponent one less than half the least subnormal exponent.
527         * stdlib/test-strtod-round-data: Add more tests.
528         * stdlib/tst-strtod-round.c (tests): Regenerated.
529
530 2013-11-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
531
532         [BZ #14143]
533         * sysdeps/powerpc/bits/fenv.h (__fe_nomask_env): Remove declaration.
534         (__fe_mask_env): Likewise.
535         * sysdeps/powerpc/fpu/fenv_libc.h (__fe_nomask_env): Remove
536         libm_hidden_proto and add function prototype.
537         (__fe_mask_env): Add function prototype.
538         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
539         (__fe_nomask_env): Add compat symbol for GLIBC_2.1.
540         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
541         (__fe_mask_env): Remove compiler warnings regarding ununsed variables.
542         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
543         (__fe_nomask_env): Add compat symbol for GLIBC_2.3.
544
545 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
546
547         * elf/dl-lookup.c (_dl_lookup_symbol_x): If UNDEF_MAP is false
548         set reference_name to "" to avoid passing NULL to DSO_FILENAME.
549
550 2013-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
551
552         * elf/tlsdeschtab.h (_dl_make_tlsdesc_dynamic): Handle failure
553         of htab_find_slot().
554
555 2013-11-11  David S. Miller  <davem@davemloft.net>
556
557         [BZ #16150]
558         * sysdeps/sparc/sparc64/multiarch/add_n.S: Resolve to the correct generic
559         symbol in the non-vis3 case in static builds.
560         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: Likewise.
561         * sysdeps/sparc/sparc64/multiarch/mul_1.S: Likewise.
562         * sysdeps/sparc/sparc64/multiarch/sub_n.S: Likewise.
563         * sysdeps/sparc/sparc64/multiarch/submul_1.S: Likewise.
564
565 2013-11-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
566
567         [BZ #387]
568         * elf/dl-object.c (_dl_new_object): Initialize L_NAME from NEWNAME if
569         it is empty.
570
571 2013-11-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
572
573         * benchtests/Makefile: Add bench-strtod.
574         * benchtests/bench-strtod.c: New file: strtod benchtest
575
576 2013-11-11  Andreas Schwab  <schwab@suse.de>
577
578         [BZ #16153]
579         * nscd/nscd_getserv_r.c (__nscd_getservbyport_r): Don't include
580         terminating NUL in key length.
581
582 2013-11-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
583
584         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET):
585         Add artificial ODP entry for vDSO symbol for PPC64.
586         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Adjust includes.
587         * sysdeps/unix/sysv/linux/powerpc/time.c: Likewise.
588
589 2013-11-07  Ondřej Bílka  <neleai@seznam.cz>
590
591         [BZ #15374]
592         * nss/getent.c (services_keys): Recognize services starting with digit.
593
594 2013-11-06  David S. Miller  <davem@davemloft.net>
595
596         [BZ #15985]
597         * sysdeps/sparc/sparc32/fpu/s_fdim.S (__fdim): Do not use fnegd
598         on pre-v9 cpus, use a fnegs+fmovs sequence instead.
599
600 2013-11-06  Will Newton  <will.newton@linaro.org>
601
602         * manual/memory.texi (Malloc Examples): Remove register
603         keyword from examples.
604
605 2013-11-04  Chris Leonard  <cjl@sugarlabs.org>
606
607         * locale/iso-639.def: Correct Walaita (wal) and add Unami Delaware (unm).
608
609 2013-11-04  Joseph Myers  <joseph@codesourcery.com>
610
611         * include/stdc-predef.h [__GCC_IEC_559] (__STDC_IEC_559__): Define
612         depending on [__GCC_IEC_559 > 0].
613         [__GCC_IEC_559_COMPLEX] (__STDC_IEC_559_COMPLEX__): Define
614         depending on [__GCC_IEC_559_COMPLEX > 0].
615
616 2013-11-03  Chris Leonard  <cjl@sugarlabs.org>
617
618         * locale/iso-639.def: Add Quechua, Southern (quz) and Silesian (szl)
619         to iso-639.def.
620
621 2013-11-03  Ondřej Bílka  <neleai@seznam.cz>
622
623         * elf/rtld.c: Remove unused NONTLS_INIT_TP.
624
625 2013-11-01  Ondřej Bílka  <neleai@seznam.cz>
626
627         [BZ #16112]
628         * malloc/malloc (malloc_info): Do not handle first bin as
629         special case.
630
631 2013-11-01  Chris Leonard  <cjl@sugarlabs.org>
632
633         * locale/iso-639.def: Add Central Nahuatl (nhn).
634
635 2013-11-01  Bruno Haible  <bruno@clisp.org>
636
637         [BZ #7003]
638         * manual/math.texi (BSD Random): Specify range upper bound as
639         in POSIX.
640
641 2013-10-31  Chris Leonard  <cjl@sugarlabs.org>
642
643         * locale/iso-639.def: Add Meadow Mari (mhr).
644
645 2013-10-31  Ondřej Bílka  <neleai@seznam.cz>
646
647         [BZ #14752], [BZ #15763]
648         * sysdeps/unix/sysv/linux/shm_open.c (shm_open, shm_unlink):
649         Validate name.
650         * rt/tst_shm.c: Add test for escaping directory.
651
652 2013-10-31  Andreas Schwab  <schwab@suse.de>
653
654         [BZ #15917]
655         * stdio-common/vfscanf.c (_IO_vfwscanf): Handle leading '0' not
656         followed by 'x' as part of digit sequence.
657         * stdio-common/tst-sscanf.c (double_tests2): New tests.
658
659 2013-10-31  Marc-Antoine Perennou <Marc-Antoine@Perennou.com>
660
661         [BZ #16037]
662         * configure.ac: allow GNU Make 4.0 and greater.
663         * configure: Regenerated.
664
665 2013-10-30  Will Newton  <will.newton@linaro.org>
666
667         [BZ #16038]
668         * malloc/hooks.c (memalign_check): Limit alignment to the
669         maximum representable power of two.
670         * malloc/malloc.c (__libc_memalign): Likewise.
671         * malloc/tst-memalign.c (do_test): Add test for very
672         large alignment values.
673         * malloc/tst-posix_memalign.c (do_test): Likewise.
674
675 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
676
677         [BZ #11087]
678         * malloc/malloc.c (sysmalloc): Compute statistics atomically.
679         (munmap_chunk): Likewise.
680         (mremap_chunk): Likewise.
681
682 2013-10-30  Ondřej Bílka  <neleai@seznam.cz>
683
684         [BZ #15799]
685         * stdlib/div.c (div): Remove obsolete code.
686         * stdlib/ldiv.c (ldiv): Likewise.
687         * stdlib/lldiv.c (lldiv): Likewise.
688
689 2013-10-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
690
691         [BZ #16071]
692         * nss/nss_files/files-XXX.c (get_contents_ret): New
693         enumerator.
694         (get_contents): New function.
695         (internal_getent): Use it.  Expand size of LINEBUFLEN.
696
697 2013-10-30  Mike Frysinger  <vapier@gentoo.org>
698
699         * configure.in: Moved to ...
700         * configure.ac: ... here. Change reference to configure.in
701         to configure.ac.
702         * sysdeps/arm/preconfigure.ac: ... here.
703         configure.in to configure.ac.
704         * sysdeps/gnu/configure.in: Moved to ...
705         * sysdeps/gnu/configure.ac: ... here.
706         * sysdeps/i386/configure.in: Moved to ...
707         * sysdeps/i386/configure.ac: ... here.
708         * sysdeps/ieee754/ldbl-opt/configure.in: Moved to ...
709         * sysdeps/ieee754/ldbl-opt/configure.ac: ... here.
710         * sysdeps/mach/configure.in: Moved to ...
711         * sysdeps/mach/configure.ac: ... here.
712         * sysdeps/mach/hurd/configure.in: Moved to ...
713         * sysdeps/mach/hurd/configure.ac: ... here.
714         * sysdeps/powerpc/configure.in: Moved to ...
715         * sysdeps/powerpc/configure.ac: ... here.
716         * sysdeps/powerpc/powerpc32/configure.in: Moved to ...
717         * sysdeps/powerpc/powerpc32/configure.ac: ... here.
718         * sysdeps/powerpc/powerpc64/configure.in: Moved to ...
719         * sysdeps/powerpc/powerpc64/configure.ac: ... here.
720         * sysdeps/s390/s390-32/configure.in: Moved to ...
721         * sysdeps/s390/s390-32/configure.ac: ... here.
722         * sysdeps/s390/s390-64/configure.in: Moved to ...
723         * sysdeps/s390/s390-64/configure.ac: ... here.
724         * sysdeps/sh/configure.in: Moved to ...
725         * sysdeps/sh/configure.ac: ... here.
726         * sysdeps/sparc/configure.in: Moved to ...
727         * sysdeps/sparc/configure.ac: ... here.
728         * sysdeps/unix/sysv/linux/configure.in: Moved to ...
729         * sysdeps/unix/sysv/linux/configure.ac: ... here.
730         * sysdeps/unix/sysv/linux/powerpc/configure.in: Moved to ...
731         * sysdeps/unix/sysv/linux/powerpc/configure.ac: ... here.
732         * sysdeps/x86_64/configure.in: Moved to ...
733         * sysdeps/x86_64/configure.ac: ... here.
734         * sysdeps/x86_64/preconfigure.in: Moved to ...
735         * sysdeps/x86_64/preconfigure.ac: ... here.
736         * aclocal.m4: Change reference to configure.in to configure.ac.
737         * config.h.in: Likewise.
738         * manual/install.texi: Likewise.
739         * manual/maint.texi: Likewise.
740         * Makefile: Likewise.
741         * malloc/Makefile: Likewise.
742         * nscd/Makefile: Likewise.
743         * Makeconfig: Change reference to configure.in and
744         preconfigure.in to configure.ac and preconfigure.ac
745         respectively.
746         * INSTALL: Regenerated.
747         * configure: Likewise.
748         * sysdeps/gnu/configure: Likewise.
749         * sysdeps/i386/configure: Likewise.
750         * sysdeps/ieee754/ldbl-opt/configure: Likewise.
751         * sysdeps/mach/configure: Likewise.
752         * sysdeps/mach/hurd/configure: Likewise.
753         * sysdeps/powerpc/configure: Likewise.
754         * sysdeps/powerpc/powerpc32/configure: Likewise.
755         * sysdeps/powerpc/powerpc64/configure: Likewise.
756         * sysdeps/s390/s390-32/configure: Likewise.
757         * sysdeps/s390/s390-64/configure: Likewise.
758         * sysdeps/sh/configure: Likewise.
759         * sysdeps/sparc/configure: Likewise.
760         * sysdeps/unix/sysv/linux/configure: Likewise.
761         * sysdeps/unix/sysv/linux/powerpc/configure: Likewise.
762         * sysdeps/x86_64/configure: Likewise.
763         * sysdeps/x86_64/preconfigure: Likewise.
764
765 2013-10-29  Andreas Schwab  <schwab@suse.de>
766
767         * stdio-common/Makefile (tst-swscanf-ENV): Define.
768
769 2013-10-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
770
771         * benchtests/pow-inputs: Add new inputs.
772
773         * benchtests/exp-inputs: Add new inputs.
774
775         * sysdeps/ieee754/dbl-64/sincos32.c (__sin32): Consolidate
776         conditional check for return value.
777         (__cos32): Likewise.
778
779 2013-10-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
780
781         * sysdeps/powerpc/powerpc64/strcpy.S (strcpy): Add word load/store
782         to provide a boost for large inputs with word alignment.
783         * sysdeps/powerpc/powerpc64/stpcpy.S (__stpcpy): Rewrite
784         implementation based on optimized PPC64 strcpy.
785         * sysdeps/powerpc/powerpc64/power7/strcpy.S: New file: optimized
786         strcpy for PPC64/POWER7 based on both doubleword and word load/store.
787         * sysdeps/powerpc/powerpc64/power7/stpcpy.S: New file: optimized
788         stpcpy for PPC64/POWER7 based on PPC64/POWER7 strcpy.
789
790 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
791
792         [BZ #2801]
793         * manual/socket.texi (Host Names): Fix gethostbyname_r example.
794
795 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
796
797         [BZ #14876]
798         * time/strptime_l.c (__strptime_internal): 14876 Read timezone entry.
799         * time/tst-strptime.c (day_tests): Add testcase.
800
801 2013-10-25   Ondřej Bílka  <neleai@seznam.cz>
802
803         [BZ #14029]
804         * manual/pattern.texi: Acknowledge that fnmatch can fail.
805
806 2013-10-25  Fabrice Bauzac  <fbauzac@debian71.nce.amadeus.net>
807
808         [BZ #16074]
809         * manual/llio.texi (Memory-mapped I/O): Indicate that mmap returns
810         MAP_FAILED on error.
811
812 2013-10-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
813
814         [BZ #16072]
815         * sysdeps/posix/getaddrinfo.c (gethosts): Allocate tmpbuf on
816         heap for large requests.
817
818 2013-10-25  Aurelien Jarno  <aurelien@aurel32.net>
819
820         [BZ #9954]
821         * sysdeps/posix/getaddrinfo.c (rfc3484_sort): do not assign native
822         result if the result has no associated interface.
823         * sysdeps/posix/getaddrinfo.c (getaddrinfo): correctly detect
824         interface for all 127.X.Y.Z addresses.
825
826 2013-10-24  Chris Leonard  <cjl@sugarlabs.org>
827
828         * locale/iso-639.def: Add Ligurian (lij)
829
830 2013-10-21  Ondřej Bílka  <neleai@seznam.cz>
831
832         [BZ #15825]
833         * sunrpc/rpc_main.c: Document rpcgen -5.
834
835 2013-10-19  Michael Stahl  <mstahl@redhat.com>
836
837         * elf/rtld.c (do_preload): Print the reason why preloading failed.
838
839 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
840
841         [BZ #10278]
842         * posix/glob.c: Match only directories when trailing slash is present.
843         * posix/tst-gnuglob.c (my_opendir): Do not open files.
844         (main): Add testcase.
845
846 2013-10-19  Ondřej Bílka  <neleai@seznam.cz>
847
848         [BZ #15670]
849         * time/tzfile.c (__tzfile_read): Replace alloca with malloc.
850
851 2013-10-18  Carlos O'Donell  <carlos@redhat.com>
852
853         * manual/crypt.texi (Cryptographic Functions): Using SunRPC and
854         AUTH_DES will prevent FIPS 140-2 compliance. Add vindex for
855         AUTH_DES and cindex for FIPS 140-2.
856         (DES Encryption): Add cindex FIPS 46-3.
857
858         * locale/locarchive.h (struct locarhandle): Add fname.
859         * locale/programs/localedef.c (main): Pass ARGV[remaining]
860         if an optional argument was specified to --list-archive,
861         otherwise NULL.
862         * locale/programs/locarchive.c (show_archive_content): Take new
863         argument fname and pass it via ah.fname to open_archive.
864         * locale/programs/localedef.h: Update decl.
865         (open_archive): If AH->fname is non-null, open that file
866         rather than the default file name, and don't ignore ENOENT.
867         (create_archive): Set AH.fname to NULL.
868         (delete_locales_from_archive): Likewise.
869         (add_locales_to_archive): Likewise.
870         * locale/programs/locfile.c (write_all_categories): Likewise.
871
872 2013-10-18  Joseph Myers  <joseph@codesourcery.com>
873             Aldy Hernandez  <aldyh@redhat.com>
874
875         * sysdeps/powerpc/powerpc32/e500/nofpu/Makefile: New file.
876         * sysdeps/powerpc/powerpc32/e500/nofpu/fclrexcpt.c: Likewise.
877         * sysdeps/powerpc/powerpc32/e500/nofpu/fe_note_change.c: Likewise.
878         * sysdeps/powerpc/powerpc32/e500/nofpu/fedisblxcpt.c: Likewise.
879         * sysdeps/powerpc/powerpc32/e500/nofpu/feenablxcpt.c: Likewise.
880         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetenv.c: Likewise.
881         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetexcept.c: Likewise.
882         * sysdeps/powerpc/powerpc32/e500/nofpu/fegetround.c: Likewise.
883         * sysdeps/powerpc/powerpc32/e500/nofpu/feholdexcpt.c: Likewise.
884         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_const.c: Likewise.
885         * sysdeps/powerpc/powerpc32/e500/nofpu/fenv_libc.h: Likewise.
886         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetenv.c: Likewise.
887         * sysdeps/powerpc/powerpc32/e500/nofpu/fesetround.c: Likewise.
888         * sysdeps/powerpc/powerpc32/e500/nofpu/feupdateenv.c: Likewise.
889         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_prctl.c:
890         Likewise.
891         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_from_spe.c:
892         Likewise.
893         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_prctl.c:
894         Likewise.
895         * sysdeps/powerpc/powerpc32/e500/nofpu/fexcepts_to_spe.c:
896         Likewise.
897         * sysdeps/powerpc/powerpc32/e500/nofpu/fgetexcptflg.c: Likewise.
898         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcept-soft.c:
899         Likewise.
900         * sysdeps/powerpc/powerpc32/e500/nofpu/fraiseexcpt.c: Likewise.
901         * sysdeps/powerpc/powerpc32/e500/nofpu/fsetexcptflg.c: Likewise.
902         * sysdeps/powerpc/powerpc32/e500/nofpu/ftestexcept.c: Likewise.
903         * sysdeps/powerpc/powerpc32/e500/nofpu/get-rounding-mode.h:
904         Likewise.
905         * sysdeps/powerpc/powerpc32/e500/nofpu/s_fabsf.S: Likewise.
906         * sysdeps/powerpc/powerpc32/e500/nofpu/spe-raise.c: Likewise.
907         * sysdeps/powerpc/preconfigure: Likewise.
908         * sysdeps/unix/sysv/linux/powerpc/powerpc32/e500/nofpu/Implies:
909         Likewise.
910         * sysdeps/powerpc/nofpu/soft-supp.h [__NO_FPRS__ && !_SOFT_FLOAT]:
911         Replace contents of file by #include of <fenv_libc.h>.
912         * sysdeps/powerpc/soft-fp/sfp-machine.h
913         [__NO_FPRS__ && !_SOFT_FLOAT]: Include <fenv_libc.h>, <sysdep.h>
914         and <sys/prctl.h>.
915         [__NO_FPRS__ && !_SOFT_FLOAT] (__feraiseexcept_soft): Declare.
916         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INEXACT): Define macro.
917         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_INVALID): Likewise.
918         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_DIVZERO): Likewise.
919         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_UNDERFLOW): Likewise.
920         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_EX_OVERFLOW): Likewise.
921         [__NO_FPRS__ && !_SOFT_FLOAT] (_FP_DECL_EX): Likewise.
922         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_ROUNDMODE): Likewise.
923         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_INIT_EXCEPTIONS): Likewise.
924         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_HANDLE_EXCEPTIONS): Likewise.
925         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_ROUNDMODE): Likewise.
926         [__NO_FPRS__ && !_SOFT_FLOAT] (FP_TRAPPING_EXCEPTIONS): Likewise.
927         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu/nptl/localplt.data:
928         Allow copysignl PLT reference to be missing.
929
930 2013-10-18  Richard Sandiford  <richard@codesourcery.com>
931             Joseph Myers  <joseph@codesourcery.com
932
933         [BZ #15948]
934         * locale/programs/ld-collate.c (new_element): Handle <U0000> as a
935         single character.
936         (add_to_tablewc): Assert sequence of wide characters is nonempty.
937
938 2013-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
939
940         * elf/tst-tls-dlinfo.c: Don't include tls.h.
941         * elf/tst-tls1.c: Likewise.
942         * elf/tst-tls10.h: Likewise.
943         * elf/tst-tls14.c: Likewise.
944         * elf/tst-tls2.c: Likewise.
945         * elf/tst-tls3.c: Likewise.
946         * elf/tst-tls4.c: Likewise.
947         * elf/tst-tls5.c: Likewise.
948         * elf/tst-tls6.c: Likewise.
949         * elf/tst-tls7.c: Likewise.
950         * elf/tst-tls8.c: Likewise.
951         * elf/tst-tls9.c: Likewise.
952         * elf/tst-tlsmod1.c: Likewise.
953         * elf/tst-tlsmod13.c: Likewise.
954         * elf/tst-tlsmod13a.c: Likewise.
955         * elf/tst-tlsmod14a.c: Likewise.
956         * elf/tst-tlsmod16a.c: Likewise.
957         * elf/tst-tlsmod16b.c: Likewise.
958         * elf/tst-tlsmod2.c: Likewise.
959         * elf/tst-tlsmod3.c: Likewise.
960         * elf/tst-tlsmod4.c: Likewise.
961         * elf/tst-tlsmod5.c: Likewise.
962         * elf/tst-tlsmod6.c: Likewise.
963
964 2013-10-18  Ondřej Bílka  <neleai@seznam.cz>
965
966         [BZ #12486]
967         * malloc/malloc.c: remove checks for statistics.
968
969 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
970
971         [BZ #15277]
972         * inet/inet_net.c (inet_network): Detect additional invalid strings.
973         * inet/tst-network.c: Add testcase.
974
975 2013-10-17  Andreas Schwab  <schwab@suse.de>
976
977         [BZ #15218]
978         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't use gethostbyaddr
979         to determine canonical name.
980
981 2013-10-17  Ondřej Bílka  <neleai@seznam.cz>
982
983         * sysdeps/ieee754/dbl-64/dbl2mpn.c: Fix formatting.
984         * sysdeps/ieee754/dbl-64/dla.h: Likewise.
985         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
986         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
987         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
988         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
989         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
990         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
991         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
992         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
993         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
994         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
995         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
996         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
997         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
998         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
999         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
1000         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
1001         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
1002         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
1003         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
1004         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
1005         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
1006         * sysdeps/ieee754/dbl-64/MathLib.h: Likewise.
1007         * sysdeps/ieee754/dbl-64/mpa-arch.h: Likewise.
1008         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
1009         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
1010         * sysdeps/ieee754/dbl-64/mpn2dbl.c: Likewise.
1011         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
1012         * sysdeps/ieee754/dbl-64/mydefs.h: Likewise.
1013         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
1014         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
1015         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
1016         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
1017         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
1018         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
1019         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
1020         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
1021         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
1022         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
1023         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
1024         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
1025         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
1026         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
1027         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
1028         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
1029         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
1030         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
1031         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
1032         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
1033         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
1034         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
1035         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
1036         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
1037         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1038         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
1039         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
1040         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
1041
1042 2013-10-17  Joseph Myers  <joseph@codesourcery.com>
1043
1044         [BZ #16041]
1045         * soft-fp/op-common.h (FP_EXTEND): When input is a signaling NaN,
1046         make result into a quiet NaN.
1047
1048 2013-10-16  Joseph Myers  <joseph@codesourcery.com>
1049
1050         * soft-fp/adddf3.c: Fix horizontal whitespace.
1051         * soft-fp/addsf3.c: Likewise.
1052         * soft-fp/addtf3.c: Likewise.
1053         * soft-fp/divdf3.c: Likewise.
1054         * soft-fp/divsf3.c: Likewise.
1055         * soft-fp/divtf3.c: Likewise.
1056         * soft-fp/double.h: Likewise.
1057         * soft-fp/eqdf2.c: Likewise.
1058         * soft-fp/eqsf2.c: Likewise.
1059         * soft-fp/eqtf2.c: Likewise.
1060         * soft-fp/extenddftf2.c: Likewise.
1061         * soft-fp/extended.h: Likewise.
1062         * soft-fp/extendsfdf2.c: Likewise.
1063         * soft-fp/extendsftf2.c: Likewise.
1064         * soft-fp/extendxftf2.c: Likewise.
1065         * soft-fp/fixdfdi.c: Likewise.
1066         * soft-fp/fixdfsi.c: Likewise.
1067         * soft-fp/fixdfti.c: Likewise.
1068         * soft-fp/fixsfdi.c: Likewise.
1069         * soft-fp/fixsfsi.c: Likewise.
1070         * soft-fp/fixsfti.c: Likewise.
1071         * soft-fp/fixtfdi.c: Likewise.
1072         * soft-fp/fixtfsi.c: Likewise.
1073         * soft-fp/fixtfti.c: Likewise.
1074         * soft-fp/fixunsdfdi.c: Likewise.
1075         * soft-fp/fixunsdfsi.c: Likewise.
1076         * soft-fp/fixunsdfti.c: Likewise.
1077         * soft-fp/fixunssfdi.c: Likewise.
1078         * soft-fp/fixunssfsi.c: Likewise.
1079         * soft-fp/fixunssfti.c: Likewise.
1080         * soft-fp/fixunstfdi.c: Likewise.
1081         * soft-fp/fixunstfsi.c: Likewise.
1082         * soft-fp/fixunstfti.c: Likewise.
1083         * soft-fp/floatdidf.c: Likewise.
1084         * soft-fp/floatdisf.c: Likewise.
1085         * soft-fp/floatditf.c: Likewise.
1086         * soft-fp/floatsidf.c: Likewise.
1087         * soft-fp/floatsisf.c: Likewise.
1088         * soft-fp/floatsitf.c: Likewise.
1089         * soft-fp/floattidf.c: Likewise.
1090         * soft-fp/floattisf.c: Likewise.
1091         * soft-fp/floattitf.c: Likewise.
1092         * soft-fp/floatundidf.c: Likewise.
1093         * soft-fp/floatundisf.c: Likewise.
1094         * soft-fp/floatunditf.c: Likewise.
1095         * soft-fp/floatunsidf.c: Likewise.
1096         * soft-fp/floatunsisf.c: Likewise.
1097         * soft-fp/floatunsitf.c: Likewise.
1098         * soft-fp/floatuntidf.c: Likewise.
1099         * soft-fp/floatuntisf.c: Likewise.
1100         * soft-fp/floatuntitf.c: Likewise.
1101         * soft-fp/fmadf4.c: Likewise.
1102         * soft-fp/fmasf4.c: Likewise.
1103         * soft-fp/fmatf4.c: Likewise.
1104         * soft-fp/gedf2.c: Likewise.
1105         * soft-fp/gesf2.c: Likewise.
1106         * soft-fp/getf2.c: Likewise.
1107         * soft-fp/ledf2.c: Likewise.
1108         * soft-fp/lesf2.c: Likewise.
1109         * soft-fp/letf2.c: Likewise.
1110         * soft-fp/muldf3.c: Likewise.
1111         * soft-fp/mulsf3.c: Likewise.
1112         * soft-fp/multf3.c: Likewise.
1113         * soft-fp/negdf2.c: Likewise.
1114         * soft-fp/negsf2.c: Likewise.
1115         * soft-fp/negtf2.c: Likewise.
1116         * soft-fp/op-1.h: Likewise.
1117         * soft-fp/op-2.h: Likewise.
1118         * soft-fp/op-4.h: Likewise.
1119         * soft-fp/op-8.h: Likewise.
1120         * soft-fp/op-common.h: Likewise.
1121         * soft-fp/quad.h: Likewise.
1122         * soft-fp/single.h: Likewise.
1123         * soft-fp/soft-fp.h: Likewise.
1124         * soft-fp/sqrtdf2.c: Likewise.
1125         * soft-fp/sqrtsf2.c: Likewise.
1126         * soft-fp/sqrttf2.c: Likewise.
1127         * soft-fp/subdf3.c: Likewise.
1128         * soft-fp/subsf3.c: Likewise.
1129         * soft-fp/subtf3.c: Likewise.
1130         * soft-fp/truncdfsf2.c: Likewise.
1131         * soft-fp/trunctfdf2.c: Likewise.
1132         * soft-fp/trunctfsf2.c: Likewise.
1133         * soft-fp/trunctfxf2.c: Likewise.
1134         * soft-fp/unorddf2.c: Likewise.
1135         * soft-fp/unordsf2.c: Likewise.
1136         * soft-fp/unordtf2.c: Likewise.
1137
1138 2013-10-15  Joseph Myers  <joseph@codesourcery.com>
1139
1140         * soft-fp/op-2.h (_FP_DIV_MEAT_2_gmp): Remove macro.
1141         * soft-fp/soft-fp.h (FP_UNSET_EXCEPTION): Likewise.
1142
1143 2013-10-15   Ondřej Bílka  <neleai@seznam.cz>
1144
1145         * elf/dl-libc.c: Clear initfini list after freeing.
1146
1147 2013-10-14  Joseph Myers  <joseph@codesourcery.com>
1148
1149         * soft-fp/adddf3.c: Fix vertical whitespace and indentation.
1150         * soft-fp/addsf3.c: Likewise.
1151         * soft-fp/addtf3.c: Likewise.
1152         * soft-fp/divdf3.c: Likewise.
1153         * soft-fp/divsf3.c: Likewise.
1154         * soft-fp/divtf3.c: Likewise.
1155         * soft-fp/double.h: Likewise.
1156         * soft-fp/eqdf2.c: Likewise.
1157         * soft-fp/eqsf2.c: Likewise.
1158         * soft-fp/eqtf2.c: Likewise.
1159         * soft-fp/extenddftf2.c: Likewise.
1160         * soft-fp/extended.h: Likewise.
1161         * soft-fp/extendsfdf2.c: Likewise.
1162         * soft-fp/extendsftf2.c: Likewise.
1163         * soft-fp/extendxftf2.c: Likewise.
1164         * soft-fp/fixdfdi.c: Likewise.
1165         * soft-fp/fixdfsi.c: Likewise.
1166         * soft-fp/fixdfti.c: Likewise.
1167         * soft-fp/fixsfdi.c: Likewise.
1168         * soft-fp/fixsfsi.c: Likewise.
1169         * soft-fp/fixsfti.c: Likewise.
1170         * soft-fp/fixtfdi.c: Likewise.
1171         * soft-fp/fixtfsi.c: Likewise.
1172         * soft-fp/fixtfti.c: Likewise.
1173         * soft-fp/fixunsdfdi.c: Likewise.
1174         * soft-fp/fixunsdfsi.c: Likewise.
1175         * soft-fp/fixunsdfti.c: Likewise.
1176         * soft-fp/fixunssfdi.c: Likewise.
1177         * soft-fp/fixunssfsi.c: Likewise.
1178         * soft-fp/fixunssfti.c: Likewise.
1179         * soft-fp/fixunstfdi.c: Likewise.
1180         * soft-fp/fixunstfsi.c: Likewise.
1181         * soft-fp/fixunstfti.c: Likewise.
1182         * soft-fp/floatdidf.c: Likewise.
1183         * soft-fp/floatdisf.c: Likewise.
1184         * soft-fp/floatditf.c: Likewise.
1185         * soft-fp/floatsidf.c: Likewise.
1186         * soft-fp/floatsisf.c: Likewise.
1187         * soft-fp/floatsitf.c: Likewise.
1188         * soft-fp/floattidf.c: Likewise.
1189         * soft-fp/floattisf.c: Likewise.
1190         * soft-fp/floattitf.c: Likewise.
1191         * soft-fp/floatundidf.c: Likewise.
1192         * soft-fp/floatundisf.c: Likewise.
1193         * soft-fp/floatunsidf.c: Likewise.
1194         * soft-fp/floatunsisf.c: Likewise.
1195         * soft-fp/floatuntidf.c: Likewise.
1196         * soft-fp/floatuntisf.c: Likewise.
1197         * soft-fp/floatuntitf.c: Likewise.
1198         * soft-fp/fmadf4.c: Likewise.
1199         * soft-fp/fmasf4.c: Likewise.
1200         * soft-fp/fmatf4.c: Likewise.
1201         * soft-fp/gedf2.c: Likewise.
1202         * soft-fp/gesf2.c: Likewise.
1203         * soft-fp/getf2.c: Likewise.
1204         * soft-fp/ledf2.c: Likewise.
1205         * soft-fp/lesf2.c: Likewise.
1206         * soft-fp/letf2.c: Likewise.
1207         * soft-fp/muldf3.c: Likewise.
1208         * soft-fp/mulsf3.c: Likewise.
1209         * soft-fp/multf3.c: Likewise.
1210         * soft-fp/negdf2.c: Likewise.
1211         * soft-fp/negsf2.c: Likewise.
1212         * soft-fp/negtf2.c: Likewise.
1213         * soft-fp/op-1.h: Likewise.
1214         * soft-fp/op-2.h: Likewise.
1215         * soft-fp/op-4.h: Likewise.
1216         * soft-fp/op-8.h: Likewise.
1217         * soft-fp/op-common.h: Likewise.
1218         * soft-fp/quad.h: Likewise.
1219         * soft-fp/single.h: Likewise.
1220         * soft-fp/soft-fp.h: Likewise.
1221         * soft-fp/sqrtdf2.c: Likewise.
1222         * soft-fp/sqrtsf2.c: Likewise.
1223         * soft-fp/sqrttf2.c: Likewise.
1224         * soft-fp/subdf3.c: Likewise.
1225         * soft-fp/subsf3.c: Likewise.
1226         * soft-fp/subtf3.c: Likewise.
1227         * soft-fp/truncdfsf2.c: Likewise.
1228         * soft-fp/trunctfdf2.c: Likewise.
1229         * soft-fp/trunctfsf2.c: Likewise.
1230         * soft-fp/trunctfxf2.c: Likewise.
1231         * soft-fp/unorddf2.c: Likewise.
1232         * soft-fp/unordsf2.c: Likewise.
1233         * soft-fp/unordtf2.c: Likewise.
1234
1235 2013-10-14   Ondřej Bílka  <neleai@seznam.cz>
1236
1237         [BZ #15672]
1238         * misc/error.c (error_tail): Fix possible buffer overflow.
1239
1240 2013-10-14  Aurelien Jarno  <aurelien@aurel32.net>
1241
1242         [BZ #13028]
1243         * res_send.c(__libc_res_nsend): Correctly copy the nameserver
1244         address.
1245
1246 2013-10-14  P. J. McDermott  <pj@pehjota.net>
1247
1248         [BZ #832]
1249         * elf/ldd.bash.in (try_trace): New function.  Delete previous code
1250         testing pipefail option.
1251
1252 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
1253
1254         * soft-fp/double.h: Indent preprocessor directives inside #if.
1255         * soft-fp/extended.h: Likewise.
1256         * soft-fp/op-2.h: Likewise.
1257         * soft-fp/op-4.h: Likewise.
1258         * soft-fp/op-common.h: Likewise.
1259         * soft-fp/quad.h: Likewise.
1260         * soft-fp/single.h: Likewise.
1261         * soft-fp/soft-fp.h: Likewise.
1262
1263 2013-10-12   Yuri Chornoivan <yurchor@ukr.net>
1264
1265         * iconv/iconv_prog.c: Fix typos.
1266         * stdio-common/psiginfo-data.h: Likewise.
1267
1268 2013-10-12   Reuben Thomas <rrt@sc3d.org>
1269
1270         [BZ #15764]
1271         * locale/setlocale.c: Fix typo.
1272
1273 2013-10-12  Joseph Myers  <joseph@codesourcery.com>
1274
1275         [BZ #16036]
1276         * soft-fp/unorddf2.c (__unorddf2): Raise "invalid" exception for
1277         signaling NaN arguments.
1278         * soft-fp/unordsf2.c (__unordsf2): Likewise.
1279         * soft-fp/unordtf2.c (__unordtf2): Likewise.
1280
1281         [BZ #14910]
1282         * soft-fp/gedf2.c (__gedf2): Raise "invalid" exception for all
1283         unordered operands.
1284         * soft-fp/gesf2.c (__gesf2): Likewise.
1285         * soft-fp/getf2.c (__getf2): Likewise.
1286         * soft-fp/ledf2.c (__ledf2): Likewise.
1287         * soft-fp/lesf2.c (__lesf2): Likewise.
1288         * soft-fp/letf2.c (__letf2): Likewise.
1289
1290         * soft-fp/eqdf2.c (__eqdf2): Use FP_INIT_EXCEPTIONS.
1291         * soft-fp/eqsf2.c (__eqsf2): Likewise.
1292         * soft-fp/eqtf2.c (__eqtf2): Likewise.
1293         * soft-fp/fixdfdi.c (__fixdfdi): Likewise.
1294         * soft-fp/fixdfsi.c (__fixdfsi): Likewise.
1295         * soft-fp/fixdfti.c (__fixdfti): Likewise.
1296         * soft-fp/fixsfdi.c (__fixsfdi): Likewise.
1297         * soft-fp/fixsfsi.c (__fixsfsi): Likewise.
1298         * soft-fp/fixsfti.c (__fixsfti): Likewise.
1299         * soft-fp/fixtfdi.c (__fixtfdi): Likewise.
1300         * soft-fp/fixtfsi.c (__fixtfsi): Likewise.
1301         * soft-fp/fixtfti.c (__fixtfti): Likewise.
1302         * soft-fp/fixunsdfdi.c (__fixunsdfdi): Likewise.
1303         * soft-fp/fixunsdfsi.c (__fixunsdfsi): Likewise.
1304         * soft-fp/fixunsdfti.c (__fixunsdfti): Likewise.
1305         * soft-fp/fixunssfdi.c (__fixunssfdi): Likewise.
1306         * soft-fp/fixunssfsi.c (__fixunssfsi): Likewise.
1307         * soft-fp/fixunssfti.c (__fixunssfti): Likewise.
1308         * soft-fp/fixunstfdi.c (__fixunstfdi): Likewise.
1309         * soft-fp/fixunstfsi.c (__fixunstfsi): Likewise.
1310         * soft-fp/fixunstfti.c (__fixunstfti): Likewise.
1311         * soft-fp/floatdidf.c (__floatdidf): Use FP_INIT_ROUNDMODE.
1312         * soft-fp/floatdisf.c (__floatdisf): Likewise.
1313         * soft-fp/floatsisf.c (__floatsisf): Likewise.
1314         * soft-fp/floattidf.c (__floattidf): Likewise.
1315         * soft-fp/floattisf.c (__floattisf): Likewise.
1316         * soft-fp/floattitf.c (__floattitf): Likewise.
1317         * soft-fp/floatundidf.c (__floatundidf): Likewise.
1318         * soft-fp/floatundisf.c (__floatundisf): Likewise.
1319         * soft-fp/floatunsisf.c (__floatunsisf): Likewise.
1320         * soft-fp/floatuntidf.c (__floatuntidf): Likewise.
1321         * soft-fp/floatuntisf.c (__floatuntisf): Likewise.
1322         * soft-fp/floatuntitf.c (__floatuntitf): Likewise.
1323         * soft-fp/gedf2.c (__gedf2): Use FP_INIT_EXCEPTIONS.
1324         * soft-fp/gesf2.c (__gesf2): Likewise.
1325         * soft-fp/getf2.c (__getf2): Likewise.
1326         * soft-fp/ledf2.c (__ledf2): Likewise.
1327         * soft-fp/lesf2.c (__lesf2): Likewise.
1328         * soft-fp/letf2.c (__letf2): Likewise.
1329
1330         * soft-fp/soft-fp.h [FP_NO_EXCEPTIONS] (FP_SET_EXCEPTION):
1331         Undefine and redefine.
1332         [FP_NO_EXCEPTIONS] (FP_CUR_EXCEPTIONS): Likewise.
1333         [FP_NO_EXCEPTIONS] (FP_TRAPPING_EXCEPTIONS): Likewise.
1334         [FP_NO_EXCEPTIONS] (FP_ROUNDMODE): Likewise.
1335         * soft-fp/floatditf.c (FP_NO_EXCEPTIONS): Define macro.
1336         (__floatditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
1337         * soft-fp/floatsidf.c (FP_NO_EXCEPTIONS): Define macro.
1338         (__floatsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
1339         * soft-fp/floatsitf.c (FP_NO_EXCEPTIONS): Define macro.
1340         (__floatsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
1341         * soft-fp/floatunditf.c (FP_NO_EXCEPTIONS): Define macro.
1342         (__floatunditf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
1343         * soft-fp/floatunsidf.c (FP_NO_EXCEPTIONS): Define macro.
1344         (__floatunsidf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
1345         * soft-fp/floatunsitf.c (FP_NO_EXCEPTIONS): Define macro.
1346         (__floatunsitf): Don't use FP_DECL_EX or FP_HANDLE_EXCEPTIONS.
1347
1348         [BZ #16032]
1349         * soft-fp/op-2.h (_FP_DIV_MEAT_2_udiv): Shift numerator right
1350         without decrementing exponent if mantissa >= that for the
1351         denominator, not >.
1352         (_FP_DIV_MEAT_2_gmp): Test numerator mantissa >= that for the
1353         denominator, not >.  Decrement exponent in < case instead of
1354         incrementing in >= case.
1355         * soft-fp/op-4.h (_FP_DIV_MEAT_4_udiv): Shift numerator right
1356         without decrementing exponent if mantissa >= that for the
1357         denominator, not >.
1358
1359         * soft-fp/op-common.h (_FP_TO_INT): Reverse test of sign for
1360         computing saturated result for unsigned overflow.
1361
1362 2013-10-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
1363             Jeff Law  <law@redhat.com>
1364
1365         * sysdeps/ieee754/dbl-64/e_atan2.c: Include stap-probe.h.
1366         (atan2Mp): Add systemtap probe marker.
1367         * sysdeps/ieee754/dbl-64/e_log.c: include stap-probe.h.
1368         (__ieee754_log): Add systemtap probe marker.
1369         * sysdeps/ieee754/dbl-64/s_atan.c: Include stap-probe.h.
1370         (atanMp): Add systemtap probe marker.
1371         * sysdeps/ieee754/dbl-64/s_tan.c: Include stap-probe.h.
1372         (tanMp): Add systemtap probe marker.
1373         * sysdeps/ieee754/dbl-64/slowexp.c: Include stap-probe.h.
1374         (__slowexp): Add systemtap probe marker.
1375         * sysdeps/ieee754/dbl-64/slowpow.c: Include stap-probe.h.
1376         (__slowpow): Add systemtap probe marker.
1377         * manual/probes.texi: Document probes.
1378
1379 2013-10-11  Eric Biggers  <ebiggers3@gmail.com>
1380
1381         [BZ #15362]
1382         * libio/fileops.c (_IO_new_file_write): Return count of bytes
1383         written.
1384         (_IO_new_file_xsputn): Don't return EOF if nothing has been
1385         written.
1386         * libio/iofwrite.c (_IO_fwrite): Return count if bytes were
1387         written to buffer but not flushed.
1388         * libio/iofwrite_u.c:  Likewise.
1389         * libio/iopadn.c:  Return bytes returned even if EOF was
1390         encountered.
1391         * libio/iowpadn.c:  Likewise.
1392         * stdio-common/vfprintf.c [COMPILE_WPRINTF] (PAD): Return error
1393         if _IO_padn does not write the whole buffer.
1394         [!COMPILE_WPRINTF] (PAD): Likewise.
1395
1396 2013-10-10  David S. Miller  <davem@davemloft.net>
1397
1398         * sysdeps/posix/dirstream.h (struct __dirstream): Fix alignment of
1399         directory block.
1400
1401 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
1402
1403         * soft-fp/extendxftf2.c: Use copyright year range.  Use URL
1404         instead of FSF address.
1405         * soft-fp/fixdfti.c: Likewise.
1406         * soft-fp/fixsfti.c: Likewise.
1407         * soft-fp/fixtfti.c: Likewise.
1408         * soft-fp/fixunsdfti.c: Likewise.
1409         * soft-fp/fixunssfti.c: Likewise.
1410         * soft-fp/fixunstfti.c: Likewise.
1411         * soft-fp/floattidf.c: Likewise.
1412         * soft-fp/floattisf.c: Likewise.
1413         * soft-fp/floattitf.c: Likewise.
1414         * soft-fp/floatuntidf.c: Likewise.
1415         * soft-fp/floatuntisf.c: Likewise.
1416         * soft-fp/floatuntitf.c: Likewise.
1417         * soft-fp/trunctfxf2.c: Likewise.
1418
1419         * soft-fp/extendxftf2.c: New file.  Copied from libgcc.
1420         * soft-fp/fixdfti.c: Likewise.
1421         * soft-fp/fixsfti.c: Likewise.
1422         * soft-fp/fixtfti.c: Likewise.
1423         * soft-fp/fixunsdfti.c: Likewise.
1424         * soft-fp/fixunssfti.c: Likewise.
1425         * soft-fp/fixunstfti.c: Likewise.
1426         * soft-fp/floattidf.c: Likewise.
1427         * soft-fp/floattisf.c: Likewise.
1428         * soft-fp/floattitf.c: Likewise.
1429         * soft-fp/floatuntidf.c: Likewise.
1430         * soft-fp/floatuntisf.c: Likewise.
1431         * soft-fp/floatuntitf.c: Likewise.
1432         * soft-fp/trunctfxf2.c: Likewise.
1433
1434 2013-10-10  David S. Miller  <davem@davemloft.net>
1435
1436         * sysdeps/sparc/fpu/libm-test-ulps: Update.
1437
1438 2013-10-10  Joseph Myers  <joseph@codsourcery.com>
1439
1440         * sysdeps/powerpc/nofpu/Makefile [$(subdir) = math]
1441         (CFLAGS-e_hypotl.c): Add -fno-builtin-fabsl.
1442         [$(subdir) = math] (CFLAGS-w_acosl.c): Likewise.
1443         [$(subdir) = math] (CFLAGS-w_asinl.c): Likewise.
1444         [$(subdir) = math] (CFLAGS-w_atanhl.c): Likewise.
1445         [$(subdir) = math] (CFLAGS-w_j0l.c): Likewise.
1446         [$(subdir) = math] (CFLAGS-w_j1l.c): Likewise.
1447
1448         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Check
1449         for NaNs before doing comparisons on argument.
1450         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl):
1451         Likewise.
1452
1453 2013-10-10  Will Newton  <will.newton@linaro.org>
1454
1455         * malloc/hooks.c (memalign_check): Ensure the value of bytes
1456         passed to _int_memalign does not overflow.
1457
1458 2013-10-10  Torvald Riegel  <triegel@redhat.com>
1459
1460         * scripts/bench.pl: Add include-sources directive.
1461         * benchtests/README: Update documentation.
1462
1463 2013-10-10  Joseph Myers  <joseph@codesourcery.com>
1464
1465         * soft-fp/soft-fp.h (FP_INIT_EXCEPTIONS): New macro.
1466         * soft-fp/extenddftf2.c (__extenddftf2): Use FP_INIT_EXCEPTIONS
1467         instead of FP_INIT_ROUNDMODE.
1468         * soft-fp/extendsfdf2.c (__extendsfdf2): Likewise.
1469         * soft-fp/extendsftf2.c (__extendsftf2): Likewise.
1470
1471         [BZ #16034]
1472         * soft-fp/op-common.h (_FP_NEG): Document input as raw.  Do not
1473         copy class of input value.
1474         * soft-fp/negdf2.c (__negdf2): Use raw unpacking and packing.  Do
1475         not handle exceptions.
1476         * soft-fp/negsf2.c (__negsf2): Likewise.
1477         * soft-fp/negtf2.c (__negtf2): Likewise.
1478         * sysdeps/sparc/sparc32/soft-fp/q_neg.c (_Q_neg): Likewise.
1479
1480 2013-10-09  Joseph Myers  <joseph@codesourcery.com>
1481
1482         * soft-fp/op-4.h (_FP_FRAC_DISASSEMBLE_4): Remove trailing
1483         semicolon.  From Linux kernel.
1484
1485 2013-10-09  Adam Buchbinder  <adam.buchbinder@gmail.com>
1486
1487         * soft-fp/op-common.h (_FP_UNPACK_CANONICAL): Fix typo in comment.
1488
1489 2013-10-08  Yogesh Chaudhari  <mr.yogesh@gmail.com>
1490
1491         [BZ #156]
1492         * manual/socket.texi: Added statement about buffer
1493         for gethostbyname2_r.
1494
1495 2013-10-08  Ondřej Bílka  <neleai@seznam.cz>
1496
1497         * sysdeps/x86_64/memset.S (ALIGN): Macro removed.
1498         Use .p2align directive instead, throughout.
1499         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
1500         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Likewise.
1501         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: Likewise.
1502         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
1503         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
1504         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: Likewise.
1505         * sysdeps/x86_64/strchr.S: Likewise.
1506         * sysdeps/x86_64/strrchr.S: Likewise.
1507
1508 2013-10-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
1509
1510         * sysdeps/ieee754/dbl-64/e_pow.c: Fix code formatting.
1511
1512         * sysdeps/ieee754/dbl-64/e_exp.c: Fix code formatting.
1513
1514         * sysdeps/generic/math_private.h (__mpsin1): Remove
1515         declaration.
1516         (__mpcos1): Likewise.
1517         (__mpsin): New argument __range_reduce.
1518         (__mpcos): Likewise.
1519         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
1520         (slow): Use __mpsin and __mpcos.
1521         (slow1): Likewise.
1522         (slow2): Likewise.
1523         (sloww): Likewise.
1524         (sloww1): Likewise.
1525         (sloww2): Likewise.
1526         (bsloww): Likewise.
1527         (bsloww1): Likewise.
1528         (bsloww2): Likewise.
1529         (cslow2): Likewise.
1530         (csloww): Likewise.
1531         (csloww1): Likewise.
1532         (csloww2): Likewise.
1533         * sysdeps/ieee754/dbl-64/sincos32.c (__mpsin): Add argument
1534         range_reduce.  Merge in __mpsin1.
1535         (__mpcos): Likewise.
1536         (__mpsin1): Remove.
1537         (__mpcos1): Likewise.
1538
1539 2013-10-07  Joseph Myers  <joseph@codesourcery.com>
1540
1541         * locale/loadlocale.c (_nl_intern_locale_data): Use
1542         LOCFILE_ALIGNED_P.
1543         * locale/programs/3level.h (CONCAT(add_locale_,TABLE)): Use
1544         LOCFILE_ALIGN_UP and LOCFILE_ALIGN.
1545         * locale/programs/ld-collate.c (obstack_int32_grow): Assert that
1546         obstack data is appropriately aligned.
1547         (obstack_int32_grow_fast): Likewise.
1548         * locale/programs/ld-ctype.c (ctype_output): Use LOCFILE_ALIGN.
1549         * locale/programs/locfile.c (add_locale_uint32): Likewise.
1550         (add_locale_uint32_array): Likewise.
1551
1552 2013-10-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
1553
1554         * benchtests/Makefile: Remove ARGLIST and RET variables.
1555         ($(objpfx)bench-%.c): Pass only function name to the script.
1556         * benchtests/README: Update documentation.
1557         * benchtests/acos-inputs: Add new directives.
1558         * benchtests/acosh-inputs: Likewise.
1559         * benchtests/asin-inputs: Likewise.
1560         * benchtests/asinh-inputs: Likewise.
1561         * benchtests/atan-inputs: Likewise.
1562         * benchtests/atanh-inputs: Likewise.
1563         * benchtests/cos-inputs: Likewise.
1564         * benchtests/cosh-inputs: Likewise.
1565         * benchtests/exp-inputs: Likewise.
1566         * benchtests/log-inputs: Likewise.
1567         * benchtests/pow-inputs: Likewise.
1568         * benchtests/rint-inputs: Likewise.
1569         * benchtests/sin-inputs: Likewise.
1570         * benchtests/sinh-inputs: Likewise.
1571         * benchtests/tan-inputs: Likewise.
1572         * benchtests/tanh-inputs: Likewise.
1573         * scripts/bench.pl: Add support for new directives.
1574
1575 2013-10-07  Alan Modra  <amodra@gmail.com>
1576
1577         * README: Fix careless merge.
1578
1579 2013-10-05  Alan Modra  <amodra@gmail.com>
1580
1581         * NEWS: Mention powerpc64le support and bugs fixed.
1582         * README: Both big-endian and little-endian powerpc64 supported.
1583
1584 2013-10-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1585
1586         * sysdeps/mach/hurd/fork.c (_hurd_atfork_prepare_hook,
1587         _hurd_atfork_child_hook, _hurd_atfork_parent_hook): New hooks.
1588         (__fork): Call _hurd_atfork_prepare_hook hooks before all locking, call
1589         _hurd_atfork_parent_hook or _hurd_atfork_child_hook after all unlocking.
1590
1591 2013-10-04  Ryan S. Arnold  <ryan.arnold@linaro.org>
1592
1593         * misc/swapon.c (swapon): Update definition, adding FLAGS parameter to
1594         match prototype.
1595
1596 2013-10-04  Joseph Myers  <joseph@codesourcery.com>
1597
1598         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = yes] (+cflags):
1599         Move -mhard-float appending from
1600         ports/sysdeps/powerpc/powerpc32/Makefile.
1601         [$(with-fp) = yes] (ASFLAGS): Likewise.
1602         [$(with-fp) = yes] (sysdep-LDFLAGS): Likewise.
1603         * sysdeps/powerpc/nofpu: Move directory from
1604         ports/sysdeps/powerpc/nofpu.
1605         * sysdeps/powerpc/soft-fp: Move directory from
1606         ports/sysdeps/powerpc/soft-fp.
1607         * sysdeps/powerpc/powerpc32/405: Move directory from
1608         ports/sysdeps/powerpc/powerpc32/405.
1609         * sysdeps/powerpc/powerpc32/440: Move directory from
1610         ports/sysdeps/powerpc/powerpc32/440.
1611         * sysdeps/powerpc/powerpc32/464: Move directory from
1612         ports/sysdeps/powerpc/powerpc32/464.
1613         * sysdeps/powerpc/powerpc32/476: Move directory from
1614         ports/sysdeps/powerpc/powerpc32/476.
1615         * sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu: Move directory
1616         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/nofpu.
1617         * sysdeps/unix/sysv/linux/powerpc/powerpc32/405: Move directory
1618         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/405.
1619         * sysdeps/unix/sysv/linux/powerpc/powerpc32/440: Move directory
1620         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/440.
1621         * sysdeps/unix/sysv/linux/powerpc/powerpc32/464: Move directory
1622         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/464.
1623         * sysdeps/unix/sysv/linux/powerpc/powerpc32/476: Move directory
1624         from ports/sysdeps/unix/sysv/linux/powerpc/powerpc32/476.
1625         * README: Update for powerpc-*-linux-gnu software floating point
1626         support in libc.
1627
1628         * sysdeps/unix/sysv/linux/configure.in (powerpc/powerpc32): Change
1629         case to powerpc/powerpc32*.
1630         * sysdeps/unix/sysv/linux/configure: Regenerated.
1631
1632         * sysdeps/powerpc/fpu_control.h [__NO_FPRS__ && !_SOFT_FLOAT]
1633         (_FPU_MASK_OM): Define as 0x04.
1634         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Define as 0x08.
1635         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Define as
1636         0x00c10080.
1637         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Define as
1638         0x0000003c.
1639         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Define as _FPU_DEFAULT.
1640
1641         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S
1642         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
1643         getcontext_e500.
1644         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S
1645         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use
1646         setcontext_e500.
1647         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S
1648         (__CONTEXT_FUNC_NAME) [__CONTEXT_ENABLE_E500]: Use getcontext_e500
1649         and setcontext_e500.
1650
1651 2013-10-04  Chris Leonard  <cjl@sugarlabs,.org>
1652
1653         * locale/iso-3166.def: Update iso-1366.def and related occurrences
1654
1655 2013-10-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
1656
1657         * manual/threads.texi (Default Thread Attributes): Fix typo.
1658
1659 2013-10-04  Will Newton  <will.newton@linaro.org>
1660
1661         * malloc/Makefile: Add tst-memalign.
1662         * malloc/tst-memalign.c: New file.
1663
1664         * malloc/tst-posix_memalign.c: Add comments.
1665         (do_test): Add comments and call free on all potentially
1666         allocated pointers. Add space after cast.
1667
1668         * malloc/tst-pvalloc.c: Add comments.
1669         (do_test): Add comments and call free on all potentially
1670         allocated pointers. Remove duplicate check for NULL pointer.
1671         Add space after cast.
1672
1673         * malloc/tst-valloc.c: Add comments.
1674         (do_test): Add comments and call free on all potentially
1675         allocated pointers. Remove duplicate check for NULL pointer.
1676         Add space after cast.
1677
1678 2013-10-04  Alan Modra  <amodra@gmail.com>
1679
1680         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
1681         Use stdint types in rather than __attribute__((mode())).
1682         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
1683
1684 2013-10-04  Alan Modra  <amodra@gmail.com>
1685
1686         * sysdeps/powerpc/powerpc32/dl-machine.c (__process_machine_rela):
1687         Correct handling of unaligned relocs for little-endian.
1688         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela): Likewise.
1689
1690 2013-10-04  Alan Modra  <amodra@gmail.com>
1691
1692         * configure.in: Map powerpc64le and powerpcle to base_machine/machine.
1693         * configure: Regenerate.
1694         * nptl/shlib-versions: Powerpc*le starts at 2.18.
1695         * shlib-versions: Likewise.
1696
1697 2013-10-04  Alan Modra  <amodra@gmail.com>
1698
1699         * string/tester.c (test_memrchr): Increment reported test cycle.
1700
1701 2013-10-04  Alan Modra  <amodra@gmail.com>
1702
1703         * string/test-memcpy.c (do_one_test): When reporting errors, print
1704         string address and don't overrun end of string.
1705
1706 2013-10-04  Alan Modra  <amodra@gmail.com>
1707
1708         * sysdeps/powerpc/powerpc64/power7/memchr.S: Replace rlwimi with
1709         insrdi.  Make better use of reg selection to speed exit slightly.
1710         Schedule entry path a little better.  Remove useless "are we done"
1711         checks on entry to main loop.  Handle wrapping around zero address.
1712         Correct main loop count.  Handle single left-over word from main
1713         loop inline rather than by using loop_small.  Remove extra word
1714         case in loop_small caused by wrong loop count.  Add little-endian
1715         support.
1716         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
1717         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.  Use proper
1718         cache hint.
1719         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
1720         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Add little-endian
1721         support.  Avoid rlwimi.
1722         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Likewise.
1723
1724 2013-10-04  Alan Modra  <amodra@gmail.com>
1725
1726         * sysdeps/powerpc/powerpc64/memset.S: Replace rlwimi with
1727         insrdi.  Formatting.
1728         * sysdeps/powerpc/powerpc64/power4/memset.S: Likewise.
1729         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
1730         * sysdeps/powerpc/powerpc64/power7/memset.S: Likewise.
1731         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
1732         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
1733         * sysdeps/powerpc/powerpc32/power7/memset.S: Likewise.
1734
1735 2013-10-04  Alan Modra  <amodra@gmail.com>
1736
1737         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Add little endian support.
1738         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
1739         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Likewise.
1740         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Likewise.
1741         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
1742         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
1743         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
1744         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
1745         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Likewise.  Make better
1746         use of regs.  Use power7 mtocrf.  Tidy function tails.
1747
1748 2013-10-04  Alan Modra  <amodra@gmail.com>
1749
1750         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Add little-endian support.
1751         Formatting.  Consistently use rXXX register defines or rN defines.
1752         Use early exit labels that avoid restoring unused non-volatile regs.
1753         Make cr field use more consistent with rWORDn compares.  Rename
1754         regs used as shift registers for unaligned loop, using rN defines
1755         for short lifetime/multiple use regs.
1756         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
1757         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.  Exit with
1758         addi 1,1,64 to pop stack frame.  Simplify return value code.
1759         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
1760
1761 2013-10-04  Alan Modra  <amodra@gmail.com>
1762
1763         * sysdeps/powerpc/powerpc64/power7/strchr.S (strchr): Add little-endian
1764         support.  Correct typos, formatting.  Optimize tail.  Use insrdi
1765         rather than rlwimi.
1766         * sysdeps/powerpc/powerpc32/power7/strchr.S: Likewise.
1767         * sysdeps/powerpc/powerpc64/power7/strchrnul.S (__strchrnul): Add
1768         little-endian support.  Correct typos.
1769         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Likewise.  Use insrdi
1770         rather than rlwimi.
1771         * sysdeps/powerpc/powerpc64/strchr.S (rTMP4, rTMP5): Define.  Use
1772         in loop and entry code to keep "and." results.
1773         (strchr): Add little-endian support.  Comment.  Move cntlzd
1774         earlier in tail.
1775         * sysdeps/powerpc/powerpc32/strchr.S: Likewise.
1776
1777 2013-10-04  Alan Modra  <amodra@gmail.com>
1778
1779         * sysdeps/powerpc/powerpc64/strcpy.S: Add little-endian support:
1780         * sysdeps/powerpc/powerpc32/strcpy.S: Likewise.
1781         * sysdeps/powerpc/powerpc64/stpcpy.S: Likewise.
1782         * sysdeps/powerpc/powerpc32/stpcpy.S: Likewise.
1783
1784 2013-10-04  Alan Modra  <amodra@gmail.com>
1785
1786         * sysdeps/powerpc/powerpc64/strcmp.S (rTMP2): Define as r0.
1787         (rTMP): Define as r11.
1788         (strcmp): Add little-endian support.  Optimise tail.
1789         * sysdeps/powerpc/powerpc32/strcmp.S: Similarly.
1790         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
1791         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
1792         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
1793         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
1794         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
1795         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
1796
1797 2013-10-04  Alan Modra  <amodra@gmail.com>
1798
1799         * sysdeps/powerpc/powerpc64/power7/strnlen.S (strnlen): Add
1800         little-endian support.  Remove unnecessary "are we done" tests.
1801         Handle "s" wrapping around zero and extremely large "size".
1802         Correct main loop count.  Handle single left-over word from main
1803         loop inline rather than by using small_loop.  Correct comments.
1804         Delete "zero" tail, use "end_max" instead.
1805         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Likewise.
1806
1807 2013-10-04  Alan Modra  <amodra@gmail.com>
1808
1809         * sysdeps/powerpc/powerpc64/power7/strlen.S (strlen): Add little-endian
1810         support.  Don't branch over align.
1811         * sysdeps/powerpc/powerpc32/power7/strlen.S: Likewise.
1812         * sysdeps/powerpc/powerpc64/strlen.S (strlen): Add little-endian
1813         support.  Rearrange tmp reg use to suit.  Comment.
1814         * sysdeps/powerpc/powerpc32/strlen.S: Likewise.
1815
1816 2013-10-04  Alan Modra  <amodra@gmail.com>
1817
1818         * sysdeps/unix/sysv/linux/powerpc/bits/sigstack.h: New file.
1819
1820 2013-10-04  Alan Modra  <amodra@gmail.com>
1821
1822         * sysdeps/unix/sysv/linux/powerpc/powerpc32/makecontext.S: Use
1823         conditional form of branch and link when obtaining pc.
1824         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: Likewise.
1825
1826 2013-10-04  Alan Modra  <amodra@gmail.com>
1827
1828         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Use
1829         HIWORD/LOWORD.
1830         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Ditto.
1831         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Ditto.
1832
1833 2013-10-04  Alan Modra  <amodra@gmail.com>
1834
1835         * sysdeps/powerpc/longjmp.c: Use proper symbol versioning macros.
1836         * sysdeps/powerpc/novmx-longjmp.c: Likewise.
1837         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Likewise.
1838         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Likewise.
1839         * sysdeps/powerpc/powerpc32/fpu/__longjmp.S: Likewise.
1840         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
1841         * sysdeps/powerpc/powerpc32/mcount.c: Likewise.
1842         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
1843         * sysdeps/powerpc/powerpc64/setjmp.S: Likewise.
1844         * nptl/sysdeps/unix/sysv/linux/powerpc/pt-longjmp.c: Likewise.
1845
1846 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1847             Alistair Popple <alistair@ozlabs.au.ibm.com>
1848             Alan Modra <amodra@gmail.com>
1849
1850         [BZ #15723]
1851         * sysdeps/powerpc/jmpbuf-offsets.h: Comment fix.
1852         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Correct
1853         _dl_hwcap access for little-endian.
1854         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.  Don't
1855         destroy vmx regs when saving unaligned.
1856         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Correct CR load.
1857         * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise CR save.  Don't
1858         destroy vmx regs when saving unaligned.
1859
1860 2013-10-04  Alan Modra  <amodra@gmail.com>
1861
1862         * sysdeps/powerpc/powerpc32/power4/hp-timing.h (HP_TIMING_NOW):
1863         Don't use a union to pack hi/low value.
1864
1865 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1866
1867         * sysdeps/powerpc/powerpc64/fpu/s_ceilf.S: Correct float constants
1868         for little-endian.
1869         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
1870         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: Likewise.
1871         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
1872         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
1873         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
1874
1875 2013-10-04  Alan Modra  <amodra@gmail.com>
1876
1877         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Increase alignment of
1878         constants to usual value for .cst8 section, and remove redundant
1879         high address load.
1880         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Use float
1881         constant for 0x1p52.  Load little-endian words of double from
1882         correct stack offsets.
1883
1884 2013-10-04  Alan Modra  <amodra@gmail.com>
1885
1886         * sysdeps/powerpc/sysdep.h (LOWORD, HIWORD, HISHORT): Define.
1887         * sysdeps/powerpc/powerpc32/fpu/s_copysign.S: Load little-endian
1888         words of double from correct stack offsets.
1889         * sysdeps/powerpc/powerpc32/fpu/s_copysignl.S: Likewise.
1890         * sysdeps/powerpc/powerpc32/fpu/s_lrint.S: Likewise.
1891         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
1892         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
1893         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
1894         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
1895         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
1896         * sysdeps/powerpc/powerpc32/power5/fpu/s_isnan.S: Likewise.
1897         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnan.S: Likewise.
1898         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
1899         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
1900         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
1901         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
1902         * sysdeps/powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
1903         * sysdeps/powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
1904         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Use HISHORT.
1905         * sysdeps/powerpc/powerpc64/power7/fpu/s_isinf.S: Likewise.
1906
1907 2013-10-04  Alan Modra  <amodra@gmail.com>
1908
1909         * sysdeps/powerpc/fpu_control.h (_FPU_GETCW): Rewrite using
1910         64-bit int/double union.
1911         (_FPU_SETCW): Likewise.
1912         * sysdeps/powerpc/fpu/tst-setcontext-fpscr.c (_GET_DI_FPSCR): Likewise.
1913         (_SET_DI_FPSCR, _GET_SI_FPSCR, _SET_SI_FPSCR): Likewise.
1914
1915 2013-10-04  Alan Modra  <amodra@gmail.com>
1916
1917         * sysdeps/powerpc/fpu/s_llround.c (__llround): Rewrite.
1918         * sysdeps/powerpc/fpu/s_llroundf.c (__llroundf): Rewrite.
1919
1920 2013-10-04  Alan Modra  <amodra@gmail.com>
1921
1922         * sysdeps/powerpc/fpu/s_float_bitwise.h (__float_and_test28): Don't
1923         use vector int constants.
1924         (__float_and_test24, __float_and8, __float_get_exp): Likewise.
1925
1926 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1927
1928         * sysdeps/powerpc/fpu/fenv_libc.h (fenv_union_t): Replace int
1929         array with long long.
1930         * sysdeps/powerpc/fpu/e_sqrt.c (__slow_ieee754_sqrt): Adjust.
1931         * sysdeps/powerpc/fpu/e_sqrtf.c (__slow_ieee754_sqrtf): Adjust.
1932         * sysdeps/powerpc/fpu/fclrexcpt.c (__feclearexcept): Adjust.
1933         * sysdeps/powerpc/fpu/fedisblxcpt.c (fedisableexcept): Adjust.
1934         * sysdeps/powerpc/fpu/feenablxcpt.c (feenableexcept): Adjust.
1935         * sysdeps/powerpc/fpu/fegetexcept.c (__fegetexcept): Adjust.
1936         * sysdeps/powerpc/fpu/feholdexcpt.c (feholdexcept): Adjust.
1937         * sysdeps/powerpc/fpu/fesetenv.c (__fesetenv): Adjust.
1938         * sysdeps/powerpc/fpu/feupdateenv.c (__feupdateenv): Adjust.
1939         * sysdeps/powerpc/fpu/fgetexcptflg.c (__fegetexceptflag): Adjust.
1940         * sysdeps/powerpc/fpu/fraiseexcpt.c (__feraiseexcept): Adjust.
1941         * sysdeps/powerpc/fpu/fsetexcptflg.c (__fesetexceptflag): Adjust.
1942         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Adjust.
1943
1944 2013-10-04  Anton Blanchard <anton@au1.ibm.com>
1945
1946         * sysdeps/powerpc/bits/mathinline.h (__signbitf): Use builtin.
1947         (__signbit): Likewise.  Correct for little-endian.
1948         (__signbitl): Call __signbit.
1949         (lrint): Correct for little-endian.
1950         (lrintf): Call lrint.
1951
1952 2013-10-04  Alan Modra  <amodra@gmail.com>
1953
1954         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (mynumber): Replace
1955         union 32-bit int array member with 64-bit int array.
1956         (t515, tm256): Double rather than long double.
1957         (__ieee754_sqrtl): Rewrite using 64-bit arithmetic.
1958
1959 2013-10-04  Alan Modra  <amodra@gmail.com>
1960
1961         * sysdeps/ieee754/ldbl-128ibm/ieee754.h (union ieee854_long_double):
1962         Delete.
1963         (IEEE854_LONG_DOUBLE_BIAS): Delete.
1964         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Don't include ieee854
1965         version of math_ldbl.h.
1966
1967 2013-10-04  Alan Modra  <amodra@gmail.com>
1968
1969         [BZ #15734], [BZ #15735]
1970         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Rewrite
1971         all uses of ieee875 long double macros and unions.  Simplify test
1972         for 0.0L.  Correct |x|<|y| and |x|=|y| test.  Use
1973         ldbl_extract_mantissa value for ix,iy exponents.  Properly
1974         normalize after ldbl_extract_mantissa, and don't add hidden bit
1975         already handled.  Don't treat low word of ieee854 mantissa like
1976         low word of IBM long double and mask off bit when testing for
1977         zero.
1978         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Rewrite
1979         all uses of ieee875 long double macros and unions.  Simplify tests
1980         for 0.0L and inf.  Correct double adjustment of k.  Delete dead code
1981         adjusting ha,hb.  Simplify code setting kld.  Delete two600 and
1982         two1022, instead use their values.  Recognise that tests for large
1983         "a" and small "b" are mutually exclusive.  Rename vars.  Comment.
1984         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c (__ieee754_remainderl):
1985         Rewrite all uses of ieee875 long double macros and unions.  Simplify
1986         test for 0.0L and nan.  Correct negation.
1987         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfl): Rewrite all uses of
1988         ieee875 long double macros and unions.  Correct output for large
1989         magnitude x.  Correct absolute value calculation.
1990         (__erfcl): Likewise.
1991         * math/libm-test.inc: Add tests for errors discovered in IBM long
1992         double versions of fmodl, remainderl, erfl and erfcl.
1993
1994 2013-10-04  Alan Modra  <amodra@gmail.com>
1995
1996         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Rewrite
1997         all uses of ieee854 long double macros and unions.  Simplify tests
1998         for long doubles that are fully specified by the high double.
1999         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c (__ieee754_gammal_r):
2000         Likewise.
2001         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c (__ieee754_ilogbl): Likewise.
2002         Remove dead code too.
2003         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_jnl): Likewise.
2004         (__ieee754_ynl): Likewise.
2005         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c (__ieee754_log10l): Likewise.
2006         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Likewise.
2007         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Likewise.
2008         Remove dead code too.
2009         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c (__kernel_tanl): Likewise.
2010         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (__expm1l): Likewise.
2011         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c (__frexpl): Likewise.
2012         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c (__isinf_nsl): Likewise.
2013         Simplify.
2014         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c (___isinfl): Likewise.
2015         Simplify.
2016         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Likewise.
2017         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c (__modfl): Likewise.
2018         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c (__nextafterl): Likewise.
2019         Comment on variable precision.
2020         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c (__nexttoward): Likewise.
2021         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
2022         Likewise.
2023         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c (__remquol): Likewise.
2024         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
2025         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
2026         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c (__tanhl): Likewise.
2027         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust tan_towardzero ulps.
2028
2029 2013-10-04  Alan Modra  <amodra@gmail.com>
2030
2031         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_high): Define.
2032         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Rewrite
2033         all uses of ieee854 long double macros and unions.
2034         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Likewise.
2035         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
2036         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Likewise.
2037         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c (__ieee754_coshl): Likewise.
2038         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c (__ieee754_log2l): Likewise.
2039         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
2040         Likewise.
2041         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Likewise.
2042         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
2043         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl): Likewise.
2044         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
2045         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c (__asinhl): Likewise.
2046         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Likewise.
2047         Simplify sign and nan test too.
2048         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c (__cosl): Likewise.
2049         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c (__fabsl): Likewise.
2050         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c (___finitel): Likewise.
2051         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c (___fpclassifyl):
2052         Likewise.
2053         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
2054         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c (__issignalingl):
2055         Likewise.
2056         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
2057         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c (___signbitl): Likewise.
2058         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c (__sincosl): Likewise.
2059         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c (__sinl): Likewise.
2060         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c (__tanl): Likewise.
2061         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (__logbl): Likewise.
2062
2063 2013-10-04  Alan Modra  <amodra@gmail.com>
2064
2065         * stdio-common/printf_size.c (__printf_size): Don't use
2066         union ieee854_long_double in fpnum union.
2067         * stdio-common/printf_fphex.c (__printf_fphex): Likewise.  Use
2068         signbit macro to retrieve sign from long double.
2069         * stdio-common/printf_fp.c (___printf_fp): Use signbit macro to
2070         retrieve sign from long double.
2071         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Adjust for fpnum change.
2072         * sysdeps/ieee754/ldbl-128/printf_fphex.c: Likewise.
2073         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Likewise.
2074         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
2075         * math/test-misc.c (main): Don't use union ieee854_long_double.
2076
2077 2013-10-04  Alan Modra  <amodra@gmail.com>
2078
2079         [BZ #15680]
2080         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Comment fix.
2081         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c
2082         (PRINT_FPHEX_LONG_DOUBLE): Tidy code by moving -53 into ediff
2083         calculation.  Remove unnecessary test for denormal exponent.
2084         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c (__mpn_extract_long_double):
2085         Correct handling of denormals.  Avoid undefined shift behaviour.
2086         Correct normalisation of low mantissa when low double is denormal.
2087         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h
2088         (ldbl_extract_mantissa): Likewise.  Comment.  Use uint64_t* for hi64.
2089         (ldbl_insert_mantissa): Make both hi64 and lo64 parms uint64_t.
2090         Correct normalisation of low mantissa.  Test for overflow of high
2091         mantissa and normalise.
2092         (ldbl_nearbyint): Use more readable constant for two52.
2093         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c
2094         (__mpn_construct_long_double): Fix test for overflow of high
2095         mantissa and correct normalisation.  Avoid undefined shift.
2096
2097 2013-10-04  Alan Modra  <amodra@gmail.com>
2098
2099         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
2100         (union ibm_extended_long_double): Define as an array of ieee754_double.
2101         (IBM_EXTENDED_LONG_DOUBLE_BIAS): Delete.
2102         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Update all references
2103         to ibm_extended_long_double and IBM_EXTENDED_LONG_DOUBLE_BIAS.
2104         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
2105         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
2106         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c: Likewise.
2107         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
2108         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
2109         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
2110         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c: Likewise.
2111         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
2112
2113 2013-10-03  Joseph Myers  <joseph@codesourcery.com>
2114
2115         * locale/programs/locarchive.c (add_locale): Use constant 4096 for
2116         page size instead of calling getpagesize.
2117
2118         * locale/localeinfo.h (LOCFILE_ALIGN): New macro.
2119         (LOCFILE_ALIGN_MASK): Likewise.
2120         (LOCFILE_ALIGN_UP): Likewise.
2121         (LOCFILE_ALIGNED_P): Likewise.
2122         * locale/programs/ld-collate.c (collate_output): Use the new
2123         macros instead of __alignof__ (int32_t).
2124         * locale/weight.h (findidx): Likewise.
2125
2126 2013-10-03  Ondřej Bílka  <neleai@seznam.cz>
2127
2128         [BZ #431]
2129         * manual/string.texi: Fix strncat and wcsncat.
2130
2131 2013-10-03  Brooks Moses  <bmoses@google.com>
2132
2133         [BZ #15915]
2134         * Makefile (linkobj/libc_pic.a, linkobj/libc.so): Move rules to...
2135         * Makerules: ...here, and adjust associated comments.
2136
2137 2013-10-02  Will Newton  <will.newton@linaro.org>
2138
2139         * malloc/Makefile: Add tst-pvalloc.
2140         * malloc/tst-pvalloc.c: New file.
2141
2142 2013-10-02  Will Newton  <will.newton@linaro.org>
2143
2144         * malloc/tst-valloc.c: Rewrite to use test-skeleton.c and
2145         improve test coverage.
2146
2147 2013-10-02  Will Newton  <will.newton@linaro.org>
2148
2149         * malloc/Makefile: Add tst-posix_memalign.
2150         * malloc/tst-posix_memalign.c: New file.
2151
2152 2013-10-01  Eric Blake  <eblake@redhat.com>
2153
2154         * posix/glob.c (next_brace_sub, prefix_array, collated_compare):
2155         Use __THROWNL rather than __THROW on static functions.
2156
2157 2013-09-30  Petr Machata  <pmachata@redhat.com>
2158
2159         * elf/elf.h (R_AARCH64_ABS16): New macro.
2160         (R_AARCH64_PREL64, R_AARCH64_PREL32): Likewise.
2161         (R_AARCH64_PREL16, R_AARCH64_MOVW_UABS_G0): Likewise.
2162         (R_AARCH64_MOVW_UABS_G0_NC, R_AARCH64_MOVW_UABS_G1): Likewise.
2163         (R_AARCH64_MOVW_UABS_G1_NC, R_AARCH64_MOVW_UABS_G2): Likewise.
2164         (R_AARCH64_MOVW_UABS_G2_NC, R_AARCH64_MOVW_UABS_G3): Likewise.
2165         (R_AARCH64_MOVW_SABS_G0, R_AARCH64_MOVW_SABS_G1): Likewise.
2166         (R_AARCH64_MOVW_SABS_G2, R_AARCH64_LD_PREL_LO19): Likewise.
2167         (R_AARCH64_ADR_PREL_LO21, R_AARCH64_ADR_PREL_PG_HI21): Likewise.
2168         (R_AARCH64_ADR_PREL_PG_HI21_NC, R_AARCH64_ADD_ABS_LO12_NC): Likewise.
2169         (R_AARCH64_LDST8_ABS_LO12_NC, R_AARCH64_LDST16_ABS_LO12_NC): Likewise.
2170         (R_AARCH64_LDST32_ABS_LO12_NC, R_AARCH64_LDST64_ABS_LO12_NC): Likewise.
2171         (R_AARCH64_LDST128_ABS_LO12_NC, R_AARCH64_TSTBR14): Likewise.
2172         (R_AARCH64_CONDBR19, R_AARCH64_JUMP26, R_AARCH64_CALL26): Likewise.
2173         (R_AARCH64_MOVW_PREL_G0, R_AARCH64_MOVW_PREL_G0_NC): Likewise.
2174         (R_AARCH64_MOVW_PREL_G1, R_AARCH64_MOVW_PREL_G1_NC): Likewise.
2175         (R_AARCH64_MOVW_PREL_G2, R_AARCH64_MOVW_PREL_G2_NC): Likewise.
2176         (R_AARCH64_MOVW_PREL_G3, R_AARCH64_MOVW_GOTOFF_G0): Likewise.
2177         (R_AARCH64_MOVW_GOTOFF_G0_NC, R_AARCH64_MOVW_GOTOFF_G1): Likewise.
2178         (R_AARCH64_MOVW_GOTOFF_G1_NC, R_AARCH64_MOVW_GOTOFF_G2): Likewise.
2179         (R_AARCH64_MOVW_GOTOFF_G2_NC, R_AARCH64_MOVW_GOTOFF_G3): Likewise.
2180         (R_AARCH64_GOTREL64, R_AARCH64_GOTREL32): Likewise.
2181         (R_AARCH64_GOT_LD_PREL19, R_AARCH64_LD64_GOTOFF_LO15): Likewise.
2182         (R_AARCH64_ADR_GOT_PAGE, R_AARCH64_LD64_GOT_LO12_NC): Likewise.
2183         (R_AARCH64_LD64_GOTPAGE_LO15, R_AARCH64_TLSGD_ADR_PREL21): Likewise.
2184         (R_AARCH64_TLSGD_ADR_PAGE21, R_AARCH64_TLSGD_ADD_LO12_NC): Likewise.
2185         (R_AARCH64_TLSGD_MOVW_G1, R_AARCH64_TLSGD_MOVW_G0_NC): Likewise.
2186         (R_AARCH64_TLSLD_ADR_PREL21, R_AARCH64_TLSLD_ADR_PAGE21): Likewise.
2187         (R_AARCH64_TLSLD_ADD_LO12_NC, R_AARCH64_TLSLD_MOVW_G1): Likewise.
2188         (R_AARCH64_TLSLD_MOVW_G0_NC, R_AARCH64_TLSLD_LD_PREL19): Likewise.
2189         (R_AARCH64_TLSLD_MOVW_DTPREL_G2): Likewise.
2190         (R_AARCH64_TLSLD_MOVW_DTPREL_G1): Likewise.
2191         (R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC): Likewise.
2192         (R_AARCH64_TLSLD_MOVW_DTPREL_G0): Likewise.
2193         (R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC): Likewise.
2194         (R_AARCH64_TLSLD_ADD_DTPREL_HI12): Likewise.
2195         (R_AARCH64_TLSLD_ADD_DTPREL_LO12): Likewise.
2196         (R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC): Likewise.
2197         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12): Likewise.
2198         (R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC): Likewise.
2199         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12): Likewise.
2200         (R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC): Likewise.
2201         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12): Likewise.
2202         (R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC): Likewise.
2203         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12): Likewise.
2204         (R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC): Likewise.
2205         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12): Likewise.
2206         (R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC): Likewise.
2207         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G1): Likewise.
2208         (R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC): Likewise.
2209         (R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21): Likewise.
2210         (R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC): Likewise.
2211         (R_AARCH64_TLSIE_LD_GOTTPREL_PREL19): Likewise.
2212         (R_AARCH64_TLSLE_MOVW_TPREL_G2): Likewise.
2213         (R_AARCH64_TLSLE_MOVW_TPREL_G1): Likewise.
2214         (R_AARCH64_TLSLE_MOVW_TPREL_G1_NC): Likewise.
2215         (R_AARCH64_TLSLE_MOVW_TPREL_G0): Likewise.
2216         (R_AARCH64_TLSLE_MOVW_TPREL_G0_NC): Likewise.
2217         (R_AARCH64_TLSLE_ADD_TPREL_HI12): Likewise.
2218         (R_AARCH64_TLSLE_ADD_TPREL_LO12): Likewise.
2219         (R_AARCH64_TLSLE_ADD_TPREL_LO12_NC): Likewise.
2220         (R_AARCH64_TLSLE_LDST8_TPREL_LO12): Likewise.
2221         (R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC): Likewise.
2222         (R_AARCH64_TLSLE_LDST16_TPREL_LO12): Likewise.
2223         (R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC): Likewise.
2224         (R_AARCH64_TLSLE_LDST32_TPREL_LO12): Likewise.
2225         (R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC): Likewise.
2226         (R_AARCH64_TLSLE_LDST64_TPREL_LO12): Likewise.
2227         (R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC): Likewise.
2228         (R_AARCH64_TLSLE_LDST128_TPREL_LO12): Likewise.
2229         (R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC): Likewise.
2230         (R_AARCH64_TLSDESC_LD_PREL19): Likewise.
2231         (R_AARCH64_TLSDESC_ADR_PREL21): Likewise.
2232         (R_AARCH64_TLSDESC_ADR_PAGE21): Likewise.
2233         (R_AARCH64_TLSDESC_LD64_LO12): Likewise.
2234         (R_AARCH64_TLSDESC_ADD_LO12): Likewise.
2235         (R_AARCH64_TLSDESC_OFF_G1): Likewise.
2236         (R_AARCH64_TLSDESC_OFF_G0_NC): Likewise.
2237         (R_AARCH64_TLSDESC_LDR): Likewise.
2238         (R_AARCH64_TLSDESC_ADD): Likewise.
2239         (R_AARCH64_TLSDESC_CALL): Likewise.
2240
2241 2013-09-30  Andreas Schwab  <schwab@suse.de>
2242
2243         [BZ #15048]
2244         * nscd/aicache.c (addhstaiX): Properly use the cache variable for
2245         the nss database lookup.
2246         * nscd/initgrcache.c (addinitgroupsX): Likewise.
2247         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
2248
2249 2013-09-28  Mike Frysinger  <vapier@gentoo.org>
2250
2251         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Fix style.
2252
2253 2013-09-28  P. J. McDermott  <pj@pehjota.net>
2254
2255         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't use
2256         ${Bash-specific parameter/pattern/string} parameter expansion.
2257         * sysdeps/unix/make-syscalls.sh: Likewise.
2258
2259 2013-09-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
2260
2261         * sysdeps/sh/stackguard-macros.h: New file.
2262
2263 2013-09-26  Ondřej Bílka  <neleai@seznam.cz>
2264
2265         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Update.
2266         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove strrchr ifunc.
2267         * sysdeps/x86_64/multiarch/strend-sse4.S Remove.
2268         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S Likewise.
2269         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
2270         * sysdeps/x86_64/strrchr.S (strrchr): Use optimized implementation.
2271
2272 2013-09-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2273
2274         * sysdeps/powerpc/powerpc64/stackguard-macros.h (POINTER_CHK_GUARD:
2275         Fix thread ID register.
2276
2277 2013-09-25  Joseph Myers  <joseph@codesourcery.com>
2278
2279         * conform/data/sched.h-data [XPG3 || XPG4]: Disable whole file.
2280         [POSIX || UNIX98]: Require rather than permitting all symbols from
2281         <time.h>.
2282         [POSIX || UNIX98] (sched_ss_low_priority): Do not specify optional
2283         element of struct sched_param.
2284         [POSIX || UNIX98] (sched_ss_repl_period): Likewise.
2285         [POSIX || UNIX98] (sched_ss_init_budget): Likewise.
2286         [POSIX || UNIX98] (sched_ss_max_repl): Likewise.
2287         [POSIX || UNIX98] (SCHED_SPORADIC): Do not specify optional
2288         constant.
2289
2290 2013-09-24  Olivier Langlois  <olivier@olivierlanglois.net>
2291
2292         * stdio-common/tst-long-dbl-fphex.c (do_test): Fix swprintf length
2293         argument calculation.
2294
2295 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
2296
2297         * conform/data/pthread.h-data [POSIX] (PTHREAD_MUTEX_INITIALIZER):
2298         Expect macro.
2299         [POSIX] (pthread_attr_t): Do not require type.
2300         [POSIX] (pthread_cond_t): Likewise.
2301         [POSIX] (pthread_condattr_t): Likewise.
2302         [POSIX] (pthread_key_t): Likewise.
2303         [POSIX] (pthread_mutex_t): Likewise.
2304         [POSIX] (pthread_mutexattr_t): Likewise.
2305         [POSIX] (pthread_once_t): Likewise.
2306         [POSIX] (pthread_t): Likewise.
2307         [POSIX-based standards] (pthread_atfork): Expect function.
2308
2309 2013-09-24  Joseph Myers  <joseph@codesourcery.com>
2310             Richard Sandiford  <richard@codesourcery.com>
2311
2312         * locale/programs/locfile.h: Include <byteswap.h> and <stdbool.h>.
2313         (swap_endianness_p): New extern variable.
2314         (set_big_endian): New inline function.
2315         (maybe_swap_uint32): Likewise.
2316         (maybe_swap_uint32_array): Likewise.
2317         (maybe_swap_uint32_obstack): Likewise.
2318         * locale/programs/locfile.c: Include <stdbool.h>.
2319         (swap_endianness_p): New variable.
2320         (add_locale_uint32): Call maybe_swap_uint32.
2321         (add_locale_uint32_array): Call maybe_swap_uint32_obstack.
2322         (write_locale_data): Call maybe_swap_uint32_array.
2323         * locale/programs/ld-collate.c (obstack_int32_grow): Call
2324         maybe_swap_uint32.
2325         (obstack_int32_grow_fast): Likewise.
2326         (output_weightwc): Call maybe_swap_uint32_obstack.
2327         (collate_output): Likewise.
2328         * locale/programs/localedef.c (OPT_LITTLE_ENDIAN): New macro.
2329         (OPT_LITTLE_ENDIAN): Likewise.
2330         (options): Add --little-endian and --big-endian options.
2331         (parse_opt): Handle OPT_LITTLE_ENDIAN and OPT_BIG_ENDIAN.
2332         * locale/programs/locarchive.c: Include "locfile.h".
2333         (GET): New macro.
2334         (SET): Likewise.
2335         (INC): Likewise.
2336         (create_archive): Use the new macros to access fields of
2337         structures directly mapped from or written to locale archives.
2338         (oldlocrecentcmp): Likewise.
2339         (enlarge_archive): Likewise.
2340         (insert_name): Likewise.
2341         (add_alias): Likewise.
2342         (add_locale): Likewise.
2343         (delete_locales_from_archive): Likewise.
2344         (show_archive_content): Likewise.
2345         (add_locale_to_archive): Likewise.  Use maybe_swap_uint32 on
2346         locale data.
2347
2348 2013-09-24  Roland McGrath  <roland@hack.frob.com>
2349
2350         * manual/freemanuals.texi: Updated from (newly) canonical copy at
2351         http://www.gnu.org/doc/freemanuals.texi.
2352         * manual/libc.texinfo (Free Manuals): Put the @appendix line here.
2353
2354 2013-09-24  Will Newton  <will.newton@linaro.org>
2355
2356         * sysdeps/mach/hurd/i386/tls.h (TLS_INIT_TP_EXPENSIVE): Remove
2357         macro.
2358
2359 2013-09-23  Joseph Myers  <joseph@codesourcery.com>
2360
2361         * locale/hashval.h (compute_hashval): Interpret bytes of key as
2362         unsigned char.
2363
2364 2013-09-23  Maciej W. Rozycki  <macro@codesourcery.com>
2365
2366         * manual/threads.texi (POSIX Threads): Fix a typo.
2367
2368 2013-09-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
2369
2370         [BZ #14547]
2371         * string/tst-strcoll-overflow.c: New test case.
2372         * string/Makefile (xtests): Add tst-strcoll-overflow.
2373         * string/strcoll_l.c (STRCOLL): Skip allocating memory for
2374         cache if string sizes may cause integer overflow.
2375
2376         [BZ #14547]
2377         * string/strcoll_l.c (coll_seq): New members rule, idx,
2378         save_idx and back_us.
2379         (get_next_seq_nocache): New function.
2380         (do_compare_nocache): New function.
2381         (STRCOLL): Use get_next_seq_nocache and do_compare_nocache
2382         when malloc fails.
2383
2384 2013-09-23  Carlos O'Donell  <carlos@redhat.com>
2385
2386         [BZ #15754]
2387         * sysdeps/generic/stackguard-macros.h: If PTRGUARD_LOCAL use
2388         __pointer_chk_guard_local, otherwise __pointer_chk_guard.
2389         * elf/Makefile: Define CFLAGS-tst-ptrguard1-static.c.
2390
2391         [BZ #15754]
2392         * elf/Makefile (tests): Add tst-ptrguard1.
2393         (tests-static): Add tst-ptrguard1-static.
2394         (tst-ptrguard1-ARGS): Define.
2395         (tst-ptrguard1-static-ARGS): Define.
2396         * elf/tst-ptrguard1.c: New file.
2397         * elf/tst-ptrguard1-static.c: New file.
2398         * sysdeps/x86_64/stackguard-macros.h: Define POINTER_CHK_GUARD.
2399         * sysdeps/i386/stackguard-macros.h: Likewise.
2400         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
2401         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
2402         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
2403         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
2404         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
2405         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
2406
2407 2013-09-23  Hector Marco  <hecmargi@upv.es>
2408             Ismael Ripoll  <iripoll@disca.upv.es>
2409             Carlos O'Donell  <carlos@redhat.com>
2410
2411         [BZ #15754]
2412         * sysdeps/generic/stackguard-macros.h: Define
2413         __pointer_chk_guard_local and POINTER_CHK_GUARD.
2414         * csu/libc-start.c [!SHARED && !THREAD_SET_POINTER_GUARD]:
2415         Define __pointer_chk_guard_local.
2416         (LIBC_START_MAIN) [!SHARED]: Call _dl_setup_pointer_guard.
2417         Use THREAD_SET_POINTER_GUARD or set __pointer_chk_guard_local.
2418
2419 2013-09-15  Vinitha Vijayan <vinitha.vijayann@gmail.com>
2420
2421         [BZ #15859]
2422         * elf/dl-deps.c (_dl_map_object_deps): Remove duplicate declaration.
2423
2424 2013-09-20  Andreas Schwab  <schwab@linux-m68k.org>
2425
2426         * include/string.h (__ffs): Declare as hidden.
2427         * string/ffs.c (__ffs): Define as hidden.
2428         * sysdeps/i386/ffs.c (__ffs): Likewise.
2429         * sysdeps/i386/i686/ffs.c (__ffs): Likewise.
2430         * sysdeps/powerpc/ffs.c (__ffs): Likewise.
2431         * sysdeps/s390/ffs.c (__ffs): Likewise.
2432         * sysdeps/x86_64/ffs.c (__ffs): Likewise.
2433
2434 2013-09-20  Alexandre Oliva <aoliva@redhat.com>
2435
2436         * NEWS: Mention malloc probes.
2437
2438         * malloc/arena.c (new_heap): New memory_heap_new probe.
2439         (grow_heap): New memory_heap_more probe.
2440         (shrink_heap): New memory_heap_less probe.
2441         (heap_trim): New memory_heap_free probe.
2442         * malloc/malloc.c (sysmalloc): New memory_sbrk_more probe.
2443         (systrim): New memory_sbrk_less probe.
2444         * manual/probes.texi: Document them.
2445
2446         * malloc/arena.c (arena_get_retry): Add memory_arena_retry probe.
2447         * manual/probes.texi: Document it.
2448
2449         * malloc/malloc.c (__libc_malloc): Add memory_malloc_retry probe.
2450         (__libc_realloc): Add memory_realloc_retry probe.
2451         (__libc_memalign): Add memory_memalign_retry probe.
2452         (__libc_valloc): Add memory_valloc_retry probe.
2453         (__libc_pvalloc): Add memory_pvalloc_retry probe.
2454         (__libc_calloc): Add memory_calloc_retry probe.
2455         * manual/probes.texi: Document them.
2456
2457         * malloc/arena.c (get_free_list): Add probe
2458         memory_arena_reuse_free_list.
2459         (reused_arena) [PER_THREAD]: Add probes memory_arena_reuse_wait
2460         and memory_arena_reuse.
2461         (arena_get2) [!PER_THREAD]: Likewise.
2462         * malloc/malloc.c (__libc_realloc) [!PER_THREAD]: Add probe
2463         memory_arena_reuse_realloc.
2464         * manual/probes.texi: Document them.
2465
2466         * malloc/malloc.c (__libc_free): Add
2467         memory_mallopt_free_dyn_thresholds probe.
2468         (__libc_mallopt): Add multiple memory_mallopt probes.
2469         * manual/probes.texi: Document them.
2470
2471         * malloc/malloc.c: Include stap-probe.h.
2472         (__libc_mallopt): Add memory_mallopt probe.
2473         * malloc/arena.c (_int_new_arena): Add memory_arena_new probe.
2474         * manual/probes.texi: New.
2475         * manual/Makefile (chapters): Add probes.
2476         * manual/threads.texi: Set next node.
2477
2478 2013-09-19  Wei-Lun Chao  <bluebat@member.fsf.org>
2479
2480         [BZ #15963, #13985]
2481         * locale/iso-639.def: Add Chiga (cgg) and Chinese (gan, hak,
2482         czh, cjy, lzh, cmn, mnp, cdo, czo, cpx, wuu, hsn, yue).
2483         Add `Chinese' to `nan' entry name.
2484
2485 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
2486
2487         * sysdeps/ieee754/dbl-64/s_sin.c (POLYNOMIAL2): New macro.
2488         (POLYNOMIAL): Likewise.
2489         (TAYLOR_SINCOS): Likewise.
2490         (TAYLOR_SLOW): Likewise.
2491         (__sin): Use TAYLOR_SINCOS.
2492         (__cos): Likewise.
2493         (slow): Use TAYLOR_SLOW.
2494         (sloww): Likewise.
2495         (bsloww): Likewise.
2496         (csloww): Likewise.
2497
2498 2013-09-19  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
2499
2500         * stdlib/strtod_l.c: Fix buffer overrun.
2501
2502 2013-09-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
2503
2504         * benchtests/Makefile (bench): Add sincos.
2505         * benchtests/bench-sincos.c: New file.
2506
2507         * math/libm-test.inc (cos_test_data): New test inputs.
2508         (sin_test_data): Likewise.
2509
2510         * sysdeps/ieee754/dbl-64/s_sin.c (SINCOS_TABLE_LOOKUP): New
2511         macro.
2512         (__sin): Use it.
2513         (__cos): Likewise.
2514         (slow1): Likewise.
2515         (slow2): Likewise.
2516         (sloww1): Likewise.
2517         (sloww2): Likewise.
2518         (bsloww1): Likewise.
2519         (bsloww2): Likewise.
2520         (cslow2): Likewise.
2521         (csloww1): Likewise.
2522         (csloww2): Likewise.
2523
2524         * sysdeps/ieee754/dbl-64/s_sin.c (reduce_and_compute): New
2525         function.
2526         (__sin): Use it.
2527         (__cos): Likewise.
2528
2529         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Remove redundant
2530         gotos.
2531         (__cos): Likewise.
2532
2533 2013-09-18  Maciej W. Rozycki  <macro@codesourcery.com>
2534
2535         * config.h.in (HAVE_MIPS_NAN2008): New macro.
2536         * elf/elf.h (EF_MIPS_NAN2008): Likewise.
2537         * sysdeps/generic/ldconfig.h (FLAG_MIPS_LIB32_NAN2008): Likewise.
2538         (FLAG_MIPS64_LIBN32_NAN2008): Likewise.
2539         (FLAG_MIPS64_LIBN64_NAN2008): Likewise.
2540         * elf/cache.c (print_entry): Handle the new cache flags.
2541
2542 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
2543             Aldy Hernandez  <aldyh@redhat.com>
2544
2545         * sysdeps/powerpc/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]:
2546         Change condition to [_SOFT_FLOAT].
2547         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_NEAREST): New macro.
2548         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_DOWN): Likewise.
2549         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_UP): Likewise.
2550         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RC_ZERO): Likewise.
2551         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_ZM): Likewise.
2552         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_OM): Likewise.
2553         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_UM): Likewise.
2554         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_XM): Likewise.
2555         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_MASK_IM): Likewise.
2556         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_RESERVED): Likewise.
2557         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_DEFAULT): Likewise.
2558         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_IEEE): Likewise.
2559         [__NO_FPRS__ && !_SOFT_FLOAT] (fpu_control_t): New typedef.
2560         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_GETCW): New macro.
2561         [__NO_FPRS__ && !_SOFT_FLOAT] (_FPU_SETCW): Likewise.
2562         [__NO_FPRS__ && !_SOFT_FLOAT] (__fpu_control): New variable
2563         declaration.
2564
2565 2013-09-18  Joseph Myers  <joseph@codesourcery.com>
2566
2567         * sysdeps/powerpc/powerpc32/__longjmp-common.S (LOAD_GP): Define
2568         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
2569         (__longjmp): Use LOAD_GP to load saved GPRs.
2570         * sysdeps/powerpc/powerpc32/setjmp-common.S (SAVE_GP): Define
2571         macro conditional on [__SPE__ || (__NO_FPRS__ && !_SOFT_FLOAT)].
2572         (__sigsetjmp): Use SAVE_GP to save GPRs.
2573
2574         * sysdeps/powerpc/powerpc32/Makefile [$(with-fp) = no] (+cflags):
2575         Do not append -msoft-float.
2576         [$(with-fp) = no] (sysdep-LDFLAGS): Likewise.
2577
2578 2013-09-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
2579
2580         * sysdeps/ieee754/dbl-64/sincos32.c: Fix code formatting.
2581
2582 2013-09-17  Joseph Myers  <joseph@codesourcery.com>
2583
2584         [BZ #15966]
2585         * sysdeps/powerpc/fpu_control.h [!_SOFT_FLOAT && !__NO_FPRS__]
2586         (_FPU_GETCW): Use initial "__" on variable and field names but not
2587         on macro parameter name.
2588         [!_SOFT_FLOAT && !__NO_FPRS__] (_FPU_SETCW): Likewise.  Use
2589         parentheses around reference to macro parameter.
2590
2591 2013-09-13  Richard Sandiford  <richard@codesourcery.com>
2592
2593         * locale/programs/ld-ctype.c (find_idx): Use uint32_t in
2594         prototype.
2595         (ctype_startup): Use uint32_t in cast and sizeof for
2596         ctype->charnames.
2597
2598 2013-09-11  Jia Liu  <proljc@gmail.com>
2599
2600         * sunrpc/rpc/types.h [__APPLE_CC__]: Define __u_char_defined and
2601         __daddr_t_defined.
2602         [__FreeBSD__]: Likewise.
2603
2604 2013-09-11  Ondřej Bílka  <neleai@seznam.cz>
2605
2606         * sysdeps/x86_64/multiarch/ifunc-impl-list.c
2607         (__libc_ifunc_impl_list): Remove: __strchr_sse42.
2608         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Remove.
2609         (strchr): Remove __strchr_sse42 ifunc selection.
2610         * sysdeps/x86_64/strchr.S (strchr): Use optimized implementation.
2611         * sysdeps/x86_64/strchrnul.S: Include sysdeps/x86_64/strchr.S.
2612
2613 2013-09-11  Will Newton  <will.newton@linaro.org>
2614
2615         * benchtests/bench-timing.h (TIMING_INIT): Rename ITERS
2616         parameter to RES. Remove hardcoded 1000 value.
2617         * benchtests/bench-skeleton.c (main): Pass RES parameter
2618         to TIMING_INIT and multiply result by 1000.
2619
2620 2013-09-10  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2621
2622         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2623
2624 2013-09-11  Andreas Schwab  <schwab@suse.de>
2625
2626         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (__O_TMPFILE): Define
2627         if not defined.
2628         (O_TMPFILE) [__USE_GNU]: Define.
2629         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_TMPFILE):
2630         Define.
2631
2632 2013-09-11  Will Newton  <will.newton@linaro.org>
2633
2634         [BZ #15857]
2635         * malloc/malloc.c (__libc_memalign): Check the value of bytes
2636         does not overflow.
2637
2638 2013-09-11  Will Newton  <will.newton@linaro.org>
2639
2640         [BZ #15856]
2641         * malloc/malloc.c (__libc_valloc): Check the value of bytes
2642         does not overflow.
2643
2644 2013-09-11  Will Newton  <will.newton@linaro.org>
2645
2646         [BZ #15855]
2647         * malloc/malloc.c (__libc_pvalloc): Check the value of bytes
2648         does not overflow.
2649
2650 2013-09-10  Ondřej Bílka  <neleai@seznam.cz>
2651
2652         * sysdeps/ieee754/dbl-64/e_j0.c: Remove DO_NOT_USE_THIS conditionals.
2653         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
2654         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
2655         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
2656         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
2657
2658 2013-09-10  Allan McRae  <allan@archlinux.org>
2659
2660         [BZ #15748]
2661         * manual/arith.texi (Parsing of Floats): Clarify
2662         cross-reference.
2663
2664         [BZ #15849]
2665         * manual/install.texi (Running make install): Mention
2666         --enable-pt-chown.
2667         * INSTALL: Regenerated.
2668
2669 2013-09-09  Maciej W. Rozycki  <macro@codesourcery.com>
2670
2671         * csu/init-first.c (_init): Remove the !SHARED condition around
2672         FPU control word initialization.
2673         * elf/dl-support.c (_dl_fpu_control): New variable.
2674         (_dl_aux_init) <AT_FPUCW>: Initialize it.
2675         * math/test-fpucw.c [!FPU_CONTROL] (FPU_CONTROL): New macro.
2676         (main): Replace _FPU_DEFAULT with FPU_CONTROL throughout.
2677         * math/test-fpucw-static.c: New file.
2678         * math/test-fpucw-ieee.c: New file.
2679         * math/test-fpucw-ieee-static.c: New file.
2680         * math/Makefile (tests): Add `test-fpucw-ieee' and
2681         `$(tests-static)'.
2682         (tests-static): New variable.
2683         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests))): Move
2684         dependency to...
2685         [($(build-shared),yes)]
2686         ($(addprefix $(objpfx),$(filter-out $(tests-static),$(tests)))):
2687         ... this.
2688         [($(build-shared),yes)] ($(addprefix $(objpfx),$(tests-static))):
2689         New dependency.
2690
2691 2013-09-09  Allan McRae  <allan@archlinux.org>
2692
2693         [BZ #15939]
2694         * manual/string.texi (Collation Functions): Fix typo in
2695         strcoll example.
2696         Reported by Suren Karapetyan <me@suren.karapetyan.name>.
2697
2698         [BZ #15893]
2699         * stdlib/isomac.c (get_null_defines): Fix memory leak.
2700
2701         [BZ #15892]
2702         * libio/memstream.c (open_memstream): Fix memory leak.
2703         * libio/wmemstream.c (open_wmemstream): Likewise.
2704
2705         [BZ #15895]
2706         * nscd/netgroupcache.c: Fix nesting of ifdefs.
2707
2708 2013-09-09  Will Newton  <will.newton@linaro.org>
2709
2710         * malloc/Makefile: Add tst-realloc to tests.
2711         * malloc/tst-realloc.c: New file.
2712
2713 2013-09-09  Allan McRae  <allan@archlinux.org>
2714
2715         [BZ #15844]
2716         * COPYING: Update from GNU website to fix FSF address.
2717         * COPYING.LIB: Likewise.
2718
2719 2013-09-06  David S. Miller  <davem@davemloft.net>
2720
2721         * po/zh_TW.po: Update Chinese (traditional) translation from
2722         translation project.
2723
2724 2013-09-06  Richard Sandiford  <richard@codesourcery.com>
2725             Joseph Myers  <joseph@codesourcery.com>
2726
2727         * locale/programs/locfile.c: Include <assert.h>, <wchar.h> and
2728         "localeinfo.h".
2729         (obstack_chunk_alloc): New macro.
2730         (obstack_chunk_free): Likewise.
2731         (record_offset): New function.
2732         (init_locale_data): Likewise.
2733         (align_locale_data): Likewise.
2734         (add_locale_empty): Likewise.
2735         (add_locale_raw_data): Likewise.
2736         (add_locale_raw_obstack): Likewise.
2737         (add_locale_string): Likewise.
2738         (add_locale_wstring): Likewise.
2739         (add_locale_uint32): Likewise.
2740         (add_locale_uint32_array): Likewise.
2741         (add_locale_char): Likewise.
2742         (start_locale_structure): Likewise.
2743         (end_locale_structure): Likewise.
2744         (start_locale_prelude): Likewise.
2745         (end_locale_prelude): Likewise.
2746         (write_locale_data): Take locale_file structure rather than an
2747         iovec.
2748         * locale/programs/locfile.h: Include "obstack.h".
2749         (struct locale_file): Change to store locale file contents instead
2750         of header.
2751         (init_locale_data): New prototype.
2752         (align_locale_data): Likewise.
2753         (add_locale_empty): Likewise.
2754         (add_locale_raw_data): Likewise.
2755         (add_locale_raw_obstack): Likewise.
2756         (add_locale_string): Likewise.
2757         (add_locale_wstring): Likewise.
2758         (add_locale_uint32): Likewise.
2759         (add_locale_uint32_array): Likewise.
2760         (add_locale_char): Likewise.
2761         (start_locale_structure): Likewise.
2762         (end_locale_structure): Likewise.
2763         (start_locale_prelude): Likewise.
2764         (end_locale_prelude): Likewise.
2765         (write_locale_data): Update prototype.
2766         * locale/programs/3level.h (struct TABLE): Remove result field.
2767         (CONCAT(TABLE,_finalize)): Change to CONCAT(add_locale_,TABLE).
2768         Use new locale_file interface.
2769         [!NO_FINALIZE]: Change condition to [!NO_ADD_LOCALE].
2770         (NO_FINALIZE): Change #undef to #undef of NO_ADD_LOCALE.
2771         * locale/programs/ld-address.c (address_output): Use new
2772         locale_file interface.
2773         * locale/programs/ld-collate.c (NO_FINALIZE): Change to
2774         NO_ADD_LOCALE.
2775         (collate_finish): Don't call collseq_table_finalize.
2776         (collate_output): Use new locale_file interface.
2777         * locale/programs/ld-ctype.c: Move includes of "3level.h" earlier
2778         in file.
2779         (NO_FINALIZE): Change to NO_ADD_LOCALE.
2780         (TABLE): Move defines earlier in file.
2781         (ELEMENT): Likewise.
2782         (DEFAULT): Likewise.
2783         (wctrans_table_add): Move macro and inline function earlier in
2784         file.
2785         (struct wctype_table): Move type earlier in file.
2786         (add_locale_wctype_table): New static prototype.
2787         (struct locale_ctype_t): Use logical types instead of struct iovec
2788         pointers for members.
2789         (ctype_output): Use new locale_file interface.
2790         (wctype_table_finalize): Change to add_locale_wctype_table.  Use
2791         new locale_file interface.
2792         (allocate_arrays): Update for use of new locale_file interface.
2793         * locale/programs/ld-identification.c (identification_output): Use
2794         new locale_file interface.
2795         * locale/programs/ld-measurement.c (measurement_output): Likewise.
2796         * locale/programs/ld-messages.c (messages_output): Likewise.
2797         * locale/programs/ld-monetary.c (monetary_output): Likewise.
2798         * locale/programs/ld-name.c (name_output): Likewise.
2799         * locale/programs/ld-numeric.c (numeric_output): Likewise.
2800         * locale/programs/ld-paper.c (paper_output): Likewise.
2801         * locale/programs/ld-telephone.c (telephone_output): Likewise.
2802         * locale/programs/ld-time.c (time_output): Likewise.
2803
2804 2013-09-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2805
2806         * benchtests/Makefile: Add memrchr benchmark.
2807         * benchtests/bench-memchr.c (USE_AS_MEMRCHR): Add define to use
2808         benchmark as memrchr.
2809         * benchtests/bench-memrchr-ifunc.c: New file.
2810         * benchtests/bench-memrchr.c: New file.
2811
2812 2013-09-06   Will Newton  <will.newton@linaro.org>
2813
2814         * benchtests/Makefile (string-bench): Add memcpy.
2815
2816 2013-09-05  Carlos O'Donell  <carlos@redhat.com>
2817             Cong Wang  <amwang@redhat.com>
2818
2819         * sysdeps/unix/sysv/linux/bits/in.h
2820         [_UAPI_LINUX_IN6_H]: Define __USE_KERNEL_IPV6_DEFS.
2821         * inet/netinet/in.h: Move in_addr definition and bits/in.h inclusion
2822         before __USE_KERNEL_IPV6_DEFS uses.
2823         * inet/netinet/in.h [!__USE_KERNEL_IPV6_DEFS]: Define IPPROTO_MH, and
2824         IPPROTO_BEETPH.
2825         [__USE_KERNEL_IPV6_DEFS]: Don't define any of IPPROTO_*, in6_addr,
2826         sockaddr_in6, or ipv6_mreq.
2827
2828 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2829
2830         * sysdeps/powerpc/powerpc32/power7/memrchr.S (__memrchr): Fix invalid
2831         memory access for final bytes in some large inputs.
2832         * sysdeps/powerpc/powerpc64/power7/memrchr.S (__memrchr): Likewise.
2833
2834 2013-09-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2835
2836         * string/test-memrchr.c: New file.
2837         * string/test-memrchr-ifunc.c: New file.
2838         * string/Makefile: Add new memrchr testcase.
2839
2840 2013-09-05  Mike Frysinger  <vapier@gentoo.org>
2841
2842         * sysdeps/unix/sysv/linux/tst-fanotify.c (do_test): Skip test when
2843         fanotify_init returns EPERM.
2844
2845 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
2846
2847         * conform/conformtest.pl (newtoken): Treat tokens not allowed as
2848         errors.
2849         (top level): Treat second token from macro or constant entries for
2850         allowed headers as allowed.
2851         * include/complex.h: Condition internal declarations on
2852         [!_ISOMAC].
2853         * include/fenv.h: Condition include of <stdbool.h> and internal
2854         declarations on [!_ISOMAC].
2855
2856 2013-09-04  Chris Leonard  <cjl@sugarlabs,.org>
2857
2858         [BZ #15923]
2859         * locale/iso-4217.def: Update iso-1427.def and related occurrences.
2860
2861 2013-09-04  Joseph Myers  <joseph@codesourcery.com>
2862
2863         * configure.in (--enable-versioning): Remove configure option.
2864         (libc_cv_asm_symver_directive): Remove configure test.
2865         (libc_cv_ld_version_script_option): Likewise.
2866         (VERSIONING): Remove variable and AC_SUBST.
2867         (DO_VERSIONING): Remove AC_DEFINE.
2868         * configure: Regenerated.
2869         * config.h.in (DO_VERSIONING): Remove macro.
2870         * Makerules [$(versioning) = yes]: Change conditionals to
2871         [$(build-shared) = yes].
2872         * config.make.in (versioning): Remove variable.
2873         * dlfcn/Makefile [$(versioning) = yes]: Change conditionals to
2874         [$(build-shared) = yes].
2875         * dlfcn/modstatic2.c (test) [DO_VERSIONING]: Remove conditional.
2876         * dlfcn/tststatic2.c (main) [DO_VERSIONING]: Likewise.
2877         * elf/Makefile [$(versioning) = yes]: Change conditionals to
2878         [$(build-shared) = yes].
2879         * extra-lib.mk [$(versioning) = yes]: Likewise.
2880         * hurd/Makefile [$(versioning) = yes]: Likewise.
2881         * hurd/geteuids.c [SHARED && DO_VERSIONING]: Change conditional to
2882         [SHARED].
2883         * include/libc-symbols.h [DO_VERSIONING]: Change conditional to
2884         [SHARED].
2885         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
2886         [SHARED && !NO_HIDDEN].
2887         * include/shlib-compat.h [DO_VERSIONING]: Change conditional to
2888         [SHARED].
2889         [SHARED && DO_VERSIONING]: Likewise..
2890         * libio/Makefile [$(versioning) = yes]: Change conditionals to
2891         [$(build-shared) = yes].
2892         * manual/install.texi (--disable-versioning): Remove
2893         documentation.
2894         * INSTALL: Regenerated.
2895         * resolv/res_libc.c [SHARED && DO_VERSIONING]: Change conditional
2896         to [SHARED].
2897         * sunrpc/Makefile [$(versioning) = yes]: Change conditional to
2898         [$(build-shared) = yes].
2899         * sysdeps/gnu/Makefile [$(versioning) = yes]: Likewise.
2900         * sysdeps/i386/i686/multiarch/strstr-c.c
2901         [SHARED && DO_VERSIONING && !NO_HIDDEN]: Change conditional to
2902         [SHARED && !NO_HIDDEN].
2903         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h
2904         [SHARED && DO_VERSIONING]: Change conditional to [SHARED].
2905         * sysdeps/powerpc/powerpc32/dl-machine.c
2906         [SHARED && !(DO_VERSIONING - 0)]: Remove conditional error.
2907         * sysdeps/powerpc/powerpc32/sysdep.h
2908         [SHARED && DO_VERSIONING && PIC && !NO_HIDDEN]: Change conditional
2909         to [SHARED && PIC && !NO_HIDDEN].
2910         * sysdeps/wordsize-32/divdi3.c [SHARED && DO_VERSIONING]: Change
2911         conditional to [SHARED].
2912
2913 2013-09-04   Will Newton  <will.newton@linaro.org>
2914
2915         * benchtests/bench-timing.h (TIMING_PRINT_MEAN): New macro.
2916         * benchtests/bench-string.h: Include bench-timing.h instead
2917         of including hp-timing.h directly. (INNER_LOOP_ITERS): New
2918         define. (HP_TIMING_BEST): Delete macro. (test_init): Remove
2919         call to HP_TIMING_DIFF_INIT.
2920         * benchtests/bench-memccpy.c: Use bench-timing.h macros
2921         instead of hp-timing.h macros.
2922         * benchtests/bench-memchr.c: Likewise.
2923         * benchtests/bench-memcmp.c: Likewise.
2924         * benchtests/bench-memcpy.c: Likewise.
2925         * benchtests/bench-memmem.c: Likewise.
2926         * benchtests/bench-memmove.c: Likewise.
2927         * benchtests/bench-memset.c: Likewise.
2928         * benchtests/bench-rawmemchr.c: Likewise.
2929         * benchtests/bench-strcasecmp.c: Likewise.
2930         * benchtests/bench-strcasestr.c: Likewise.
2931         * benchtests/bench-strcat.c: Likewise.
2932         * benchtests/bench-strchr.c: Likewise.
2933         * benchtests/bench-strcmp.c: Likewise.
2934         * benchtests/bench-strcpy.c: Likewise.
2935         * benchtests/bench-strcpy_chk.c: Likewise.
2936         * benchtests/bench-strlen.c: Likewise.
2937         * benchtests/bench-strncasecmp.c: Likewise.
2938         * benchtests/bench-strncat.c: Likewise.
2939         * benchtests/bench-strncmp.c: Likewise.
2940         * benchtests/bench-strncpy.c: Likewise.
2941         * benchtests/bench-strnlen.c: Likewise.
2942         * benchtests/bench-strpbrk.c: Likewise.
2943         * benchtests/bench-strrchr.c: Likewise.
2944         * benchtests/bench-strspn.c: Likewise.
2945         * benchtests/bench-strstr.c: Likewise.
2946
2947 2013-09-04  Will Newton  <will.newton@linaro.org>
2948
2949         * benchtests/Makefile: Use LDLIBS instead of LDFLAGS.
2950
2951 2013-09-03  Joseph Myers  <joseph@codesourcery.com>
2952
2953         [BZ #15427]
2954         * sysdeps/ieee754/flt-32/e_lgammaf_r.c (__ieee754_lgammaf_r): Use
2955         2**-30 instead of 2**-70 as threshold for returning -log(|x|).
2956         * math/libm-test.inc (lgamma_test_data): Add more tests.
2957         * sysdeps/i386/fpu/libm-test-ulps: Update.
2958         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2959
2960 2013-09-03   Ondřej Bílka  <neleai@seznam.cz>
2961
2962         * sysdeps/x86_64/multiarch/strcmp-sse2-unaligned.S: New file.
2963         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
2964         Add ifunc.
2965         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
2966         Add strcmp-sse2-unaligned
2967         * sysdeps/x86_64/multiarch/strcmp.S (strcmp): Add ifunc.
2968
2969 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
2970
2971         * Versions.def (libc): Add GLIBC_2.19.
2972
2973 2013-09-02  Mike Frysinger  <vapier@gentoo.org>
2974
2975         * sysdeps/unix/sysv/linux/tst-fanotify.c: New test.
2976         * sysdeps/unix/sysv/linux/Makefile (tests): Add tst-fanotify.
2977
2978 2013-09-02  Joseph Myers  <joseph@codesourcery.com>
2979
2980         [BZ #14155]
2981         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_jnf): Use double for
2982         intermediate calculations in recurrence.
2983         (__ieee754_ynf): Likewise.
2984         * math/libm-test.inc (jn_test_data): Do not allow spurious
2985         underflow exception.  Add more tests.
2986         (yn_test_data): Add more tests.
2987         * sysdeps/i386/fpu/libm-test-ulps: Update.
2988         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2989
2990 2013-09-02   Ondřej Bílka  <neleai@seznam.cz>
2991
2992         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Fix typo.
2993
2994 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
2995
2996         * csu/init-first.c: Fix then/than typos.
2997         * locale/programs/ld-collate.c: Likewise.
2998         * locale/programs/linereader.h: Likewise.
2999         * manual/charset.texi: Likewise.
3000         * manual/filesys.texi: Likewise.
3001         * manual/stdio.texi: Likewise.
3002         * manual/string.texi: Likewise.
3003         * stdlib/fmtmsg.c: Likewise.
3004         * sysdeps/i386/stpncpy.S: Likewise.
3005         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
3006         * sysdeps/powerpc/powerpc32/power6/memset.S: Likewise.
3007         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
3008         * sysdeps/powerpc/powerpc64/power6/memset.S: Likewise.
3009
3010 2013-08-30   Ondřej Bílka  <neleai@seznam.cz>
3011
3012         * elf/dl-open.c: Fix typos.
3013         * iconvdata/gbbig5.c: Likewise.
3014         * iconvdata/iso-2022-jp.c: Likewise.
3015         * iconv/gconv_int.h: Likewise.
3016         * iconv/loop.c: Likewise.
3017         * nis/rpcsvc/nis.h: Likewise.
3018         * resolv/ns_name.c: Likewise.
3019         * stdio-common/vfscanf.c: Likewise.
3020         * streams/stropts.h: Likewise.
3021         * sunrpc/rpc_thread.c: Likewise.
3022         * sysdeps/i386/strpbrk.S: Likewise.
3023         * sysdeps/ieee754/k_standard.c: Likewise.
3024         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
3025         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
3026         * sysdeps/mach/hurd/dl-sysdep.c: Likewise.
3027         * sysdeps/mach/hurd/profil.c: Likewise.
3028         * sysdeps/s390/dl-procinfo.h: Likewise.
3029         * sysdeps/unix/sysv/linux/i386/chown.c: Likewise.
3030         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Likewise.
3031         * sysdeps/unix/sysv/linux/sparc/sparc32/makecontext.c: Likewise.
3032         * sysdeps/x86_64/dl-trampoline.S: Likewise.
3033         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
3034
3035 2013-08-30  Ondřej Bílka  <neleai@seznam.cz>
3036
3037         * sysdeps/x86_64/multiarch/rawmemchr.S: Delete.
3038         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Remove rawmemchr ifunc.
3039
3040 2013-08-29  Ondřej Bílka  <neleai@seznam.cz>
3041
3042         * sysdeps/unix/sysv/linux/powerpc/aix/aix-dirent.h: Remove
3043         aix specific files.
3044         * sysdeps/unix/sysv/linux/powerpc/aix/aix-errno.h: Likewise.
3045         * sysdeps/unix/sysv/linux/powerpc/aix/aix-stat.h: Likewise.
3046         * sysdeps/unix/sysv/linux/powerpc/aix/aix-termios.h: Likewise.
3047         * sysdeps/unix/sysv/linux/powerpc/aix/direntconv.c: Likewise.
3048         * sysdeps/unix/sysv/linux/powerpc/aix/errnoconv.c: Likewise.
3049         * sysdeps/unix/sysv/linux/powerpc/aix/statconv.c: Likewise.
3050         * sysdeps/unix/sysv/linux/powerpc/aix/tcgetattr.c: Likewise.
3051         * sysdeps/unix/sysv/linux/powerpc/aix/tcsetattr.c: Likewise.
3052
3053 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
3054             Roland McGrath  <roland@hack.frob.com>
3055
3056         * sysdeps/mach/hurd/errnos.awk (BEGIN): Emit ESUCCESS.
3057         * sysdeps/mach/hurd/bits/errno.h: Regenerate.
3058
3059 2013-08-29  Samuel Thibault  <samuel.thibault@ens-lyon.org>
3060
3061         * sysdeps/mach/hurd/i386/init-first.c (init1): Use
3062         __executable_start symbol instead of _start.
3063
3064 2013-08-29  Thomas Schwinge  <thomas@codesourcery.com>
3065
3066         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_HEADER)
3067         (VALID_ELF_OSABI, VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA):
3068         Move macros to...
3069         * sysdeps/gnu/ldsodefs.h: ... this new file.
3070
3071         * sysdeps/unix/sysv/linux/ldsodefs.h (VALID_ELF_OSABI)
3072         (VALID_ELF_ABIVERSION, MORE_ELF_HEADER_DATA): Use ELFOSABI_GNU
3073         instead of ELFOSABI_LINUX.
3074
3075         [BZ #15522] strtod ("nan(N)") returning a sNaN in some cases
3076         * stdlib/strtof_l.c (SET_MANTISSA): Rewrite.
3077         * stdlib/strtod_l.c (SET_MANTISSA): Likewise.
3078         * sysdeps/ieee754/ldbl-64-128/strtold_l.c (SET_MANTISSA):
3079         Likewise.
3080         * sysdeps/ieee754/ldbl-96/strtold_l.c (SET_MANTISSA): Likewise.
3081         * sysdeps/ieee754/ldbl-128/strtold_l.c (SET_MANTISSA): Likewise.
3082         * sysdeps/ieee754/ldbl-128ibm/strtold_l.c (SET_MANTISSA):
3083         Likewise.
3084         * sysdeps/ieee754/ldbl-128ibm/ieee754.h
3085         (ibm_extended_long_double): Add ieee_nan member.
3086         * stdlib/tst-strtod6.c (test): New function, renamed from do_test.
3087         (do_test): New function.
3088
3089         * math/basic-test.c (TEST_CONVERT): New macro, renamed from
3090         TEST_TRUNC.
3091         (convert_dfsf_test, convert_tfsf_test, convert_tfdf_test): New
3092         functions, renamed from truncdfsf_test, trunctfsf_test,
3093         trunctfdf_test.
3094         (convert_sfdf_test, convert_sftf_test, convert_dftf_test): New
3095         functions.
3096         (do_test): Run all these.
3097
3098 2013-08-29   Ondřej Bílka  <neleai@seznam.cz>
3099
3100         * argp/argp-help.c: Fix typos.
3101         * argp/argp-parse.c: Likewise.
3102         * debug/backtracesyms.c: Likewise.
3103         * elf/elf.h: Likewise.
3104         * malloc/malloc.c: Likewise.
3105         * nis/nis_print.c: Likewise.
3106         * resolv/res_comp.c: Likewise.
3107         * stdlib/stdlib.h: Likewise.
3108         * sunrpc/clnt_tcp.c: Likewise.
3109         * sunrpc/clnt_udp.c: Likewise.
3110         * sunrpc/clnt_unix.c: Likewise.
3111         * sysdeps/unix/bsd/ptsname.c: Likewise.
3112         * sysdeps/unix/sysv/linux/ifaddrs.c: Likewise.
3113         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Likewise.
3114         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext-common.S:
3115         Likewise.
3116         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext-common.S:
3117         Likewise.
3118         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S:
3119         Likewise.
3120         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
3121
3122 2013-08-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
3123
3124         * nscd/aicache.c (addhstaiX): Use __glibc_unlikely.
3125         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
3126
3127 2013-08-27  Mike Frysinger  <vapier@gentoo.org>
3128
3129         [BZ #15897]
3130         * dlfcn/Makefile (tests): Add bug-dl-leaf.
3131         (modules-names): Add bug-dl-leaf-lib and bug-dl-leaf-lib-cb.
3132         ($(objpfx)bug-dl-leaf): New rule.
3133         ($(objpfx)bug-dl-leaf.so): Likewise.
3134         ($(objpfx)bug-dl-leaf.out): Likewise.
3135         ($(objpfx)bug-dl-leaf-lib.so): Likewise.
3136         ($(objpfx)bug-dl-leaf-lib-cb.so): Likewise.
3137         * dlfcn/bug-dl-leaf.c: New test.
3138         * dlfcn/bug-dl-leaf-lib.c: Likewise.
3139         * dlfcn/bug-dl-leaf-lib-cb.c: Likewise.
3140         * dlfcn/dlfcn.h (dlopen): Change __THROW to __THROWNL.
3141         (dlclose): Likewise.
3142         (dlmopen): Likewise.
3143
3144 2013-08-27  Roland McGrath  <roland@hack.frob.com>
3145
3146         * include/netdb.h [!_ISOMAC]:
3147         Don't include <tls.h>.
3148         (h_errno, __libc_h_errno): Move declaration and macros out of
3149         [_LIBC_REENTRANT].
3150
3151         * include/resolv.h [_RESOLV_H_]:
3152         Don't include <tls.h>.
3153         (__resp, _res): Move declaration and macro out of [_LIBC_REENTRANT].
3154         * resolv/res_libc.c: Don't include <tls.h>.
3155         (_res): Use __attribute__ ((nocommon)) in place of
3156         __attribute__ ((section (".bss"))).
3157
3158         * Makefile ($(common-objpfx)linkobj/libc_pic.a):
3159         If [sunrpc not in $(subdirs)], define to use libc_pic.a directly.
3160
3161         * resolv/res_send.c (send_dg): Don't try to use ioctl unless [FIONREAD].
3162
3163         * resolv/res_hconf.c [!NOT_IN_libc] (ifaddrs): Declare
3164         only under [SIOCGIFCONF && SIOCGIFNETMASK].
3165
3166         * resolv/res_mkquery.c: Include <sys/time.h>.
3167
3168         * inet/ifreq.c: Moved to ...
3169         * sysdeps/unix/ifreq.c: ... here.
3170         * inet/ifreq.c: New file, true stub version.
3171
3172         * socket/sa_len.c: New file.
3173         * socket/Makefile (aux): Add it.
3174         * sysdeps/unix/sysv/linux/Makefile
3175         [$(subdir) = socket] (sysdep_routines): Don't add sa_len here.
3176         * sysdeps/unix/sysv/linux/sa_len.c: Just #define HAVE_NET*_H
3177         and #include <socket/sa_len.c>.
3178         * sysdeps/unix/sysv/linux/s390/sa_len.c: Just #define
3179         HAVE_NETIUCV_IUCV_H and #include <sysdeps/unix/sysv/linux/sa_len.c>.
3180
3181         * sysdeps/unix/bsd/bsd4.4/bits/socket.h: Moved to ...
3182         * bits/socket.h: ... here.
3183
3184         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (enum __socket_type):
3185         Add SOCK_CLOEXEC, SOCK_NONBLOCK with values from FreeBSD.
3186         (SOCK_MAX, SOCK_TYPE_MASK): New macros.
3187
3188 2013-08-27  Andreas Schwab  <schwab@suse.de>
3189
3190         [BZ #15736]
3191         * locale/categories.def (LC_CTYPE): Add "nonascii-case" element.
3192         * string/Makefile (test-strcasecmp-ENV, test-strncasecmp-ENV)
3193         (test-strcasecmp-ifunc-ENV, test-strncasecmp-ifunc-ENV): Define.
3194         * string/test-strcasecmp.c (test_main): Run tests in several
3195         locales.
3196         * string/test-strncasecmp.c (test_main): Likewise.
3197
3198         * sysdeps/i386/i686/multiarch/strcmp-sse4.S (__strcasecmp_sse4_2)
3199         (__strncasecmp_sse4_2) [PIC]: Restore %ebx before falling through
3200         to __strcasecmp_nonascii and __strncasecmp_nonascii.
3201         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (__strcasecmp_ssse3)
3202         (__strncasecmp_ssse3) [PIC]: Likewise.
3203
3204 2013-08-26  Roland McGrath  <roland@hack.frob.com>
3205
3206         * io/lxstat64.c: Just call __xstat64, for parity with stub __lxstat.
3207
3208         * nss/nss_files/files-key.c: Include <rpc/des_crypt.h>
3209         instead of explicitly declaring xdecrypt.
3210         * nis/nss_nis/nis-publickey.c: Likewise.
3211
3212 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3213
3214         [BZ #15890]
3215         * nscd/aicache.c: Include res_hconf.h.
3216         (addhstaiX): Initialize res_hconf.
3217
3218 2013-08-26  Andreas Schwab  <schwab@suse.de>
3219
3220         * stdlib/Makefile (LDFLAGS-tst-tls-atexit): Remove.
3221         ($(objpfx)tst-tls-atexit): Add dependencies here instead.
3222
3223 2013-08-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3224
3225         * nscd/aicache.c (addhstaiX): Fix indentation.
3226
3227 2013-08-25  Mike Frysinger  <vapier@gentoo.org>
3228
3229         * configure.ac: Quote $build_pt_chown test.
3230         * configure: Regenerated.
3231
3232 2013-08-23  Joseph Myers  <joseph@codesourcery.com>
3233
3234         [BZ #15532]
3235         * math/s_cexp.c (__cexp): Return NaN + i0 for NaN + i0 argument.
3236         * math/s_cexpf.c (__cexpf): Likewise.
3237         * math/s_cexpl.c (__cexpl): Likewise.
3238         * math/libm-test.inc (cexp_test_data): Correct expected return
3239         value for NaN + i0.  Add another test.
3240
3241 2013-08-22  David S. Miller  <davem@davemloft.net>
3242
3243         * po/ca.po: Update Catalan translation from translation project.
3244         * po/uk.po: Add Ukrainian translations from translation project.
3245
3246 2013-08-21  Joseph Myers  <joseph@codesourcery.com>
3247
3248         [BZ #15797]
3249         * math/s_fdim.c (__fdim): Check for infinite arguments if result
3250         is infinite, not alongside NaN test.
3251         * math/s_fdimf.c (__fdimf): Likewise.
3252         * math/s_fdiml.c (__fdiml): Likewise.
3253         * math/libm-test.inc (fdim_test_data): Add more tests.  Test that
3254         errno is unchanged.
3255
3256 2013-08-21   Ondřej Bílka  <neleai@seznam.cz>
3257
3258         * argp/argp-help.c: Fix typos.
3259         * crypt/speeds.c: Likewise.
3260         * csu/check_fds.c: Likewise.
3261         * elf/dl-load.c: Likewise.
3262         * elf/dl-open.c: Likewise.
3263         * elf/reldep3.c: Likewise.
3264         * elf/reldep.c: Likewise.
3265         * elf/sprof.c: Likewise.
3266         * iconv/iconv_charmap.c: Likewise.
3267         * iconv/skeleton.c: Likewise.
3268         * iconv/strtab.c: Likewise.
3269         * io/lockf64.c: Likewise.
3270         * libio/libioP.h: Likewise.
3271         * resolv/gai_notify.c: Likewise.
3272         * resolv/ns_name.c: Likewise.
3273         * resolv/ns_samedomain.c: Likewise.
3274         * resolv/res_send.c: Likewise.
3275         * stdlib/random.c: Likewise.
3276         * sunrpc/rpc/xdr.h: Likewise.
3277         * sysdeps/i386/fpu/fraiseexcpt.c: Likewise.
3278         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
3279         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
3280         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
3281         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
3282         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
3283         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
3284         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
3285         * sysdeps/mach/hurd/check_fds.c: Likewise.
3286         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
3287         * sysdeps/powerpc/powerpc32/fpu/setjmp.S: Likewise.
3288         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
3289         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
3290         * sysdeps/powerpc/powerpc32/setjmp.S: Likewise.
3291         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
3292         * sysdeps/pthread/aio_notify.c: Likewise.
3293         * sysdeps/sparc/fpu/fraiseexcpt.c: Likewise.
3294         * sysdeps/unix/sysv/linux/socketcall.h: Likewise.
3295         * sysdeps/x86_64/fpu/fraiseexcpt.c: Likewise.
3296         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
3297         * sysdeps/x86/fpu/bits/fenv.h: Likewise.
3298
3299 2013-08-21  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
3300
3301         * sysdeps/i386/i686/multiarch/strcmp.S: Skip SSE4_2
3302         version if bit_Slow_SSE4_2 is set.
3303         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
3304         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
3305
3306 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3307
3308         [BZ #15867]
3309         * sysdeps/powerpc/powerpc32/backtrace.c (__backtrace): Handle signal
3310         trampoline stack frame information.
3311         * sysdeps/powerpc/powerpc64/backtrace.c (__backtrace): Likewise.
3312         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h
3313         (__vdso_sigtramp_rt64): New variable: PPC64 signal trampoline.
3314         (__vdso_sigtramp32): New variable: PPC32 signal trampoline.
3315         (__vdso_sigtramp_rt32): New variable: PPC32 signal trampoline.
3316         * sysdeps/unix/sysv/linux/powerpc/init-first.c
3317         (_libc_vdso_platform_setup): Initialize the signal trampolines.
3318         * debug/tst-backtrace5.c (fn): Add an option set modify sigaction
3319         sa_flags value.
3320         * debug/tst-backtrace6.c: New file: check backtrace for signal frames,
3321         interrupting a syscall and set with option SA_SIGINFO.
3322
3323 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
3324
3325         [BZ #15531]
3326         * math/s_cproj.c (__cproj): Only return an infinity if one part of
3327         argument is infinite.
3328         * math/s_cprojf.c (__cprojf): Likewise.
3329         * math/s_cprojl.c (__cprojl): Likewise.
3330         * sysdeps/ieee754/ldbl-128ibm/s_cprojl.c (__cprojl): Likewise.
3331         * math/libm-test.inc (cproj_test_data): Add more tests.
3332
3333         * sysdeps/unix/sysv/linux/mmap64.c: Include <string.h>.
3334
3335         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64)
3336         [MMAP2_PAGE_SHIFT == -1]: Use __getpagesize to determine page
3337         size.  Use __ffs to determine corresponding shift.
3338
3339 2013-08-20  Joseph Myers  <joseph@codesourcery.com>
3340             Roland McGrath  <roland@hack.frob.com>
3341
3342         * Makefile (INSTALL): Remove trailing blank lines from output of
3343         makeinfo.
3344
3345 2013-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3346
3347         * sysdeps/unix/sysv/linux/s390/sys/procfs.h (struct elf_prstatus):
3348         Align 32 bit compat elf_greg to 8 bytes.
3349
3350 2013-08-20  Andreas Arnez  <arnez@linux.vnet.ibm.com>
3351
3352         * elf/setup-vdso.h (setup_vdso): Fix missing string termination.
3353
3354 2013-08-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
3355
3356         * string/strcoll_l.c (coll_seq): New structure.
3357         (get_next_seq_cached): New function.
3358         (get_next_seq): New function.
3359         (do_compare): New function.
3360         (STRCOLL): Use GNU style definition.  Simplify implementation
3361         by using get_next_seq, get_next_seq_cached and do_compare.
3362
3363 2013-08-16  Florian Weimer  <fweimer@redhat.com>
3364
3365         [BZ #14699]
3366         CVE-2013-4237
3367         * sysdeps/posix/dirstream.h (struct __dirstream): Add errcode
3368         member.
3369         * sysdeps/posix/opendir.c (__alloc_dir): Initialize errcode
3370         member.
3371         * sysdeps/posix/rewinddir.c (rewinddir): Reset errcode member.
3372         * sysdeps/posix/readdir_r.c (__READDIR_R): Enforce NAME_MAX limit.
3373         Return delayed error code.  Remove GETDENTS_64BIT_ALIGNED
3374         conditional.
3375         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Do not define
3376         GETDENTS_64BIT_ALIGNED.
3377         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
3378         * manual/filesys.texi (Reading/Closing Directory): Document
3379         ENAMETOOLONG return value of readdir_r.  Recommend readdir more
3380         strongly.
3381         * manual/conf.texi (Limits for Files): Add portability note to
3382         NAME_MAX, PATH_MAX.
3383         (Pathconf): Add portability note for _PC_NAME_MAX, _PC_PATH_MAX.
3384
3385 2013-08-13  Andreas Schwab  <schwab@suse.de>
3386
3387         [BZ #15749]
3388         * sysdeps/ieee754/ldbl-96/s_cbrtl.c (__cbrtl): Use fabsl instead
3389         of fabs.
3390         * math/libm-test.inc (cbrt_test_data) [TEST_LDOUBLE &&
3391         LDBL_MAX_EXP >= 16384]: Add tests for it.
3392
3393 2013-08-12  David S. Miller  <davem@davemloft.net>
3394
3395         * version.h (RELEASE): Set to "development".
3396         (VERSION): Set to "2.18.90".
3397         * NEWS: Add 2.19 section.
3398
3399 2013-08-03  David S. Miller  <davem@davemloft.net>
3400
3401         * po/ko.po: Update Korean translation from translation project.
3402
3403 2013-08-01  David S. Miller  <davem@davemloft.net>
3404
3405         * manual/contrib.texi: Update entry for Siddhesh Poyarekar.  Add
3406         entries for Will Newton, Andi Kleen, David Holsgrove, and Ondrej
3407         Bilka.
3408
3409 2013-07-30  David S. Miller  <davem@davemloft.net>
3410
3411         * po/fr.po: Update French translation from translation project.
3412
3413 2013-07-28  David S. Miller  <davem@davemloft.net>
3414
3415         * po/cs.po: Update Czech translation from translation project.
3416
3417         * po/sv.po: Update Swedish translation from translation project.
3418
3419 2013-07-27  David S. Miller  <davem@davemloft.net>
3420
3421         * po/eo.po: Update Esperanto translation from translation project.
3422
3423         * po/vi.po: Update Vietnamese translation from translation project.
3424
3425         * po/de.po: Update German translation from translation project.
3426
3427 2013-07-26  David S. Miller  <davem@davemloft.net>
3428
3429         * po/bg.po: Update Bulgarian translation from translation project.
3430
3431         * po/nl.po: Update Dutch translation from translation project.
3432         * po/pl.po: Update Polish translation from translation project.
3433         * po/ru.po: Update Russian translation from translation project.
3434
3435 2013-07-24  David S. Miller  <davem@davemloft.net>
3436
3437         * po/libc.pot: Update.
3438
3439 2013-07-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3440
3441         * sysdeps/unix/sysv/linux/powerpc/dl-static.c: New file to support
3442         variable page size.
3443         * sysdeps/unix/sysv/linux/powerpc/ldsodefs.h: Likewise.
3444         * sysdeps/unix/sysv/linux/powerpc/Makefile: Build dl-static in elf.
3445         * sysdeps/unix/sysv/linux/powerpc/Versions: Add _dl_var_init.
3446
3447 2013-07-22  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
3448
3449         * sysdeps/s390/fpu/libm-test-ulps: Refresh.
3450
3451 2013-07-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
3452             Andreas Schwab  <schwab@suse.de>
3453             Roland McGrath  <roland@hack.frob.com>
3454             Joseph Myers  <joseph@codesourcery.com>
3455             Carlos O'Donell  <carlos@redhat.com>
3456
3457         [BZ #15755]
3458         * config.h.in: Define HAVE_PT_CHOWN.
3459         * config.make.in (build-pt-chown): New variable.
3460         * configure.in (--enable-pt_chown): New configure option.
3461         * configure: Regenerate.
3462         * login/Makefile: Include Makeconfig.  Build pt_chown only if
3463         build-pt-chown is enabled.
3464         * sysdeps/unix/grantpt.c (grantpt) [HAVE_PT_CHOWN]: Spawn
3465         pt_chown to fix pty ownership.
3466         * sysdeps/unix/sysv/linux/grantpt.c [HAVE_PT_CHOWN]: Define
3467         CLOSE_ALL_FDS.
3468         * manual/install.texi (Configuring and compiling): Mention
3469         --enable-pt_chown. Add @findex for grantpt.
3470         * INSTALL: Regenerate.
3471
3472 2013-07-20  David S. Miller  <davem@davemloft.net>
3473
3474         * sysdeps/sparc/fpu/libm-test-ulps: Update ULPs to handle minor
3475         difference between 32-bit and 64-bit.
3476
3477 2013-07-15  Carlos O'Donell  <carlos@redhat.com>
3478
3479         [BZ #15711]
3480         * sysdeps/unix/sysv/linux/Makefile ($(objpfx)bits/syscall%h):
3481         Avoid system header dependency with -ffreestanding.
3482         ($(objpfx)bits/syscall%d): Likewise.
3483
3484 2013-07-13  David S. Miller  <davem@davemloft.net>
3485
3486         * math/libm-test.inc (casin_test_data): Annotate more cases of missing
3487         underflows from atanl/atan2l due to bug 15319.
3488         (casinh_test_data): Likewise.
3489
3490 2013-07-07  David S. Miller  <davem@davemloft.net>
3491
3492         * sysdeps/sparc/fpu/libm-test-ulps: Regenerate from scratch.
3493
3494 2013-07-05  Jeroen Albers  <_jeroen_@yahoo.com>
3495
3496         * sysdeps/i386/fpu/libm-test-ulps: Update.
3497         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3498
3499 2013-07-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
3500
3501         * configure.in (--enable-lock-elision): Fix message text.
3502         * INSTALL: Regenerate.
3503         * configure: Regenerate.
3504
3505 2013-07-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3506
3507         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
3508
3509 2013-07-03  Andreas Jaeger  <aj@suse.de>
3510
3511         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_LISTEN): Add
3512         define.
3513         (PTRACE_PEEKSIGINFO): Add new value from Linux 3.10.
3514         (ptrace_peeksiginfo_args): Add.
3515         (__ptrace_peeksiginfo_flags): Add.
3516         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
3517         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
3518         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
3519
3520 2013-07-03  Allan McRae  <allan@archlinux.org>
3521
3522         * sysdeps/i386/fpu/libm-test-ulps: Update.
3523
3524 2013-07-02  David S. Miller  <davem@davemloft.net>
3525
3526         * sysdeps/sparc/fpu/libm-test-ulps: Update.
3527
3528 2013-07-02  Markus Trippelsdorf  <markus@trippelsdorf.de>
3529
3530         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3531
3532 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
3533
3534         * sysdeps/i386/fpu/libm-test-ulps: Regenerated.
3535         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3536
3537 2013-07-02  Andi Kleen <ak@linux.intel.com>
3538
3539         * config.h.in (ENABLE_LOCK_ELISION): Add.
3540         * configure.in (--enable-lock-elision): Add option.
3541         * manual/install.texi: Document --enable lock elision.
3542         * configure: Regenerate
3543         * INSTALL: Regenerate.
3544
3545 2013-07-02  H.J. Lu  <hongjiu.lu@intel.com>
3546
3547         * sysdeps/i386/i686/multiarch/strcasecmp.S (__strcasecmp): Enable
3548         SSE4.2 strcasecmp for libc.a.
3549         * sysdeps/i386/i686/multiarch/strncase.S (__strncasecmp): Likewise.
3550
3551 2013-07-02  Joseph Myers  <joseph@codesourcery.com>
3552
3553         [BZ #13304]
3554         * soft-fp/op-common.h (_FP_FMA): New macro.
3555         * soft-fp/op-1.h (_FP_FRAC_HIGHBIT_DW_1): New macro.
3556         (_FP_MUL_MEAT_DW_1_imm): Likewise.  Split out of ...
3557         (_FP_MUL_MEAT_1_imm): ... here.
3558         (_FP_MUL_MEAT_DW_1_wide): New macro.  Split out of ...
3559         (_FP_MUL_MEAT_1_wide): ... here.
3560         (_FP_MUL_MEAT_DW_1_hard): Likewise.  Split out of ...
3561         (_FP_MUL_MEAT_1_hard): ... here.
3562         * soft-fp/op-2.h (_FP_FRAC_HIGHBIT_DW_2): New macro.
3563         (_FP_MUL_MEAT_DW_2_wide): Likewise.  Split out of ...
3564         (_FP_MUL_MEAT_2_wide): ... here.
3565         (_FP_MUL_MEAT_DW_2_wide_3mul): New macro.  Split out of ...
3566         (_FP_MUL_MEAT_2_wide_3mul): ... here.
3567         (_FP_MUL_MEAT_DW_2_gmp): New macro.  Split out of ...
3568         (_FP_MUL_MEAT_2_gmp): ... here.
3569         * soft-fp/op-4.h (_FP_FRAC_HIGHBIT_DW_4): New macro.
3570         (_FP_MUL_MEAT_DW_4_wide): Likewise.  Split out of ...
3571         (_FP_MUL_MEAT_4_wide): ... here.
3572         (_FP_MUL_MEAT_DW_4_gmp): New macro.  Split out of ...
3573         (_FP_MUL_MEAT_4_gmp): ... here.
3574         * soft-fp/single.h (_FP_FRACTBITS_DW_S): New macro.
3575         (_FP_WFRACBITS_DW_S): Likewise.
3576         (_FP_WFRACXBITS_DW_S): Likewise.
3577         (_FP_HIGHBIT_DW_S): Likewise.
3578         (FP_FMA_S): Likewise.
3579         (_FP_FRAC_HIGH_DW_S): Likewise.
3580         * soft-fp/double.h (_FP_FRACTBITS_DW_D): New macro.
3581         (_FP_WFRACBITS_DW_D): Likewise.
3582         (_FP_WFRACXBITS_DW_D): Likewise.
3583         (_FP_HIGHBIT_DW_D): Likewise.
3584         (FP_FMA_D): Likewise.
3585         (_FP_FRAC_HIGH_DW_D): Likewise.
3586         * soft-fp/extended.h (_FP_FRACTBITS_DW_E): New macro.
3587         (_FP_WFRACBITS_DW_E): Likewise.
3588         (_FP_WFRACXBITS_DW_E): Likewise.
3589         (_FP_HIGHBIT_DW_E): Likewise.
3590         (FP_FMA_E): Likewise.
3591         (_FP_FRAC_HIGH_DW_E): Likewise.
3592         * soft-fp/quad.h (_FP_FRACTBITS_DW_Q): New macro.
3593         (_FP_WFRACBITS_DW_Q): Likewise.
3594         (_FP_WFRACXBITS_DW_Q): Likewise.
3595         (_FP_HIGHBIT_DW_Q): Likewise.
3596         (FP_FMA_Q): Likewise.
3597         (_FP_FRAC_HIGH_DW_Q): Likewise.
3598         * soft-fp/fmasf4.c: New file.
3599         * soft-fp/fmadf4.c: Likewise.
3600         * soft-fp/fmatf4.c: Likewise.
3601
3602 2013-06-28  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
3603
3604         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
3605         bit_Slow_SSE4_2 and bit_Prefer_PMINUB_for_stringop for Intel
3606         Silvermont.
3607         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_SSE4_2): New
3608         macro.
3609         (index_Slow_SSE4_2): Likewise.
3610         (index_Prefer_PMINUB_for_stringop): Likewise.
3611         * sysdeps/x86_64/multiarch/strchr.S: Skip SSE4.2 version if
3612         bit_Slow_SSE4_2 is set.
3613         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
3614         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
3615
3616 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3617
3618         * sysdeps/powerpc/Makefile: Add comment about generating an offset to
3619         rtld_global._dl_hwcap2.
3620         * sysdeps/powerpc/bits/hwcap.h: Added PPC_FEATURE2_* definitions for
3621         POWER8.
3622         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_cap_flags): Extend for
3623         POWER8 feature descriptions defined in _dl_hwcap2.
3624         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Implement AT_HWCAP2
3625         string handling for POWER8 feature bits.
3626         (_DL_HWCAP_COUNT): Increment to 64 to cover AT_HWCAP2 bits.
3627         (_DL_HWCAP_LAST): New definition for position of last AT_HWCAP bit in
3628         _dl_powerpc_cap_flags.
3629         (_DL_HWCAP2_LAST): New definition for last usable bit of AT_HWCAP2.
3630         * sysdeps/powerpc/rtld-global-offsets.sym
3631         (RTLD_GLOBAL_RO_DL_HWCAP2_OFFSET): New offset macro to locate
3632         _dl_hwcap2 in the rtld_global_ro structure.
3633
3634 2013-06-28  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3635
3636         * elf/dl-support.c (_dl_hwcap2): Add a new hwcap field for more
3637         hardware capabilities in support of AT_HWCAP2.
3638         (_dl_aux_init): Read AT_HWCAP2 into GLRO(dl_hwcap2).
3639         * elf/dl-sysdep.c (_dl_sysdep_start): Read AT_HWCAP2 into
3640         GLRO(dl_hwcap2).
3641         (_dl_show_auxv): Add support for calling _dl_procinfo to display
3642         AT_HWCAP2.  If a platform doesn't chose to handle displaying AT_HWCAP2
3643         explicitly the unknown a_type display mechanism is used.
3644         * misc/getauxval.c (__getauxval): Return GLRO(dl_hwcap2) on AT_HWCAP2.
3645         * sysdeps/generic/ldsodefs.h (rtld_global_ro): Add _dl_hwcap2 as a new
3646         struct member.
3647         * sysdeps/generic/dl-procinfo.h (_dl_procinfo): Add TYPE parameter
3648         to macro prototype for AT_HWCAP2 support.
3649         * sysdeps/i386/dl-procinfo.h: Likewise.
3650         * sysdeps/s390/dl-procinfo.h: Likewise.
3651         * sysdeps/powerpc/dl-procinfo.h (_dl_procinfo): Add TYPE parameter to
3652         macro prototype for AT_HWCAP2 support.  Make WORD unsigned long int
3653         rather than signed int.  Stub in handler for TYPE == AT_HWCAP2 to
3654         return -1 for unknown a_type display fallback.
3655         * sysdeps/sparc/dl-procinfo.h: Likewise.
3656         * sysdeps/unix/sysv/linux/i386/dl-procinfo.h: Likewise.
3657         * sysdeps/unix/sysv/linux/s390/dl-procinfo.h: Likewise.
3658
3659 2013-06-28  Joseph Myers  <joseph@codesourcery.com>
3660
3661         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Shift by page_shift
3662         instead of MMAP2_PAGE_SHIFT in call to INLINE_SYSCALL.
3663
3664 2013-06-28  Pierre Ynard  <linkfanel@yahoo.fr>
3665
3666         [BZ #12492]
3667         * elf/dl-load.c (_dl_map_object_from_fd): Test for failure of
3668         mprotect making __stack_prot writable.
3669
3670 2013-06-28  Nathan Froyd  <froydnj@codesourcery.com>
3671             Joseph Myers  <joseph@codesourcery.com>
3672
3673         * elf/dl-profile.c (struct here_cg_arc_record): Declare 'count'
3674         as being properly aligned.
3675
3676 2013-06-28  Maciej W. Rozycki  <macro@codesourcery.com>
3677
3678         * dlfcn/modstatic5.c: New file.
3679         * dlfcn/tststatic5.c: New file.
3680         * dlfcn/Makefile (tests): Add tststatic5.
3681         (tests-static): Likewise.
3682         (modules-names): Add modstatic5.
3683         (tststatic5-ENV): New variable.
3684         ($(objpfx)tststatic5, $(objpfx)tststatic5.out): New dependencies.
3685
3686         [BZ #15022]
3687         * elf/dl-support.c (_dl_main_map): New variable.
3688         (_dl_ns): Use it to initialize [LM_ID_BASE] element.
3689         (_dl_nns, _dl_load_adds): Set to 1.
3690         (_dl_initial_searchlist): Refer to _dl_main_map.
3691         (_dl_non_dynamic_init): Initialize _dl_main_map.l_origin.
3692         * elf/dl-load.c (_dl_dst_substitute) [!SHARED]: Remove fallback
3693         call to _dl_get_origin.
3694         * elf/dl-open.c (dl_open_worker): Remove !SHARED special casing
3695         around call_map.
3696         (_dl_open) [!SHARED]: Remove code to initialize GL(dl_nns).
3697         * dlfcn/modstatic3.c: New file.
3698         * dlfcn/tststatic3.c: New file.
3699         * dlfcn/tststatic4.c: New file.
3700         * dlfcn/Makefile (tests): Add tststatic3 and tststatic4.
3701         (tests-static): Likewise.
3702         (modules-names): Add modstatic3.
3703         (tststatic3-ENV, tststatic4-ENV): New variables.
3704         ($(objpfx)tststatic3, $(objpfx)tststatic3.out): New dependencies.
3705         ($(objpfx)tststatic4, $(objpfx)tststatic4.out): Likewise.
3706
3707 2013-06-26  Joseph Myers  <joseph@codesourcery.com>
3708
3709         * configure.in (CC): Require GCC version 4.4 or later.
3710         * configure: Regenerated.
3711         * manual/install.texi (Tools for Compilation): Update GCC version
3712         requirement.
3713         * INSTALL: Regenerated.
3714
3715 2013-06-26  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
3716
3717         [BZ #15674]
3718         * string/test-memcmp.c (check2): New.
3719         (main): Call check2.
3720
3721         * sysdeps/x86_64/multiarch/memcmp-ssse3.S: Fix buffers overrun.
3722
3723 2013-06-26  Maciej W. Rozycki  <macro@codesourcery.com>
3724
3725         [BZ #15022]
3726         * elf/dl-open.c (_dl_open) [!SHARED]: Move call to DL_STATIC_INIT
3727         over to...
3728         (dl_open_worker) [!SHARED]: ... here.
3729
3730 2013-06-26  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3731
3732         * elf/elf.h (AT_HWCAP2): Add a new a_type entry.
3733
3734 2013-06-25  Richard Henderson  <rth@redhat.com>
3735
3736         * locale/programs/locarchive.c: Include <libc-internal.h>
3737
3738 2013-06-25  Joseph Myers  <joseph@codesourcery.com>
3739
3740         * manual/texinfo.tex: Update to version 2013-06-21.17, with
3741         trailing whitespace removed.
3742
3743 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
3744
3745         [BZ #10283]
3746         * locale/locarchive.h (struct locarhandle): Add mmap_base and mmap_len.
3747         * locale/programs/locarchive.c: Include libc-mmap.h.
3748         (prepare_address_space): Take two new outputs (the mmap base and len).
3749         Align p to MAP_FIXED_ALIGNMENT.  Set mmap base and len to the right
3750         values.
3751         (create_archive): Declare new mmap base and len values for
3752         prepare_address_space, and store the result in ah.
3753         (file_data_available_p): Replace pagesz with MAP_FIXED_ALIGNMENT.
3754         (enlarge_archive): If ah->mmap_base is not NULL, use that and
3755         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
3756         Declare new mmap base and len values for
3757         prepare_address_space, and store the result in new_ah.
3758         (open_archive): Declare new mmap base and len values for
3759         prepare_address_space, and store the result in ah.
3760         (close_archive): If ah->mmap_base is not NULL, use that and
3761         ah->mmap_len to unmap rather than ah->addr and ah->reserved.
3762         * sysdeps/generic/libc-mmap.h: New file.
3763
3764 2013-06-24  Mike Frysinger  <vapier@gentoo.org>
3765
3766         * include/libc-internal.h (ALIGN_DOWN): New helper macro.
3767         (ALIGN_UP): Likewise.
3768         (PTR_ALIGN_DOWN): Likewise.
3769         (PTR_ALIGN_UP): Likewise.
3770
3771 2013-06-24  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3772
3773         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add "power8"
3774         entry mapped to PPC_PLATFORM_POWER8.
3775         * sysdeps/powerpc/dl-procinfo.h (_DL_PLATFORMS_COUNT): Increment for
3776         POWER8.
3777         (PPC_PLATFORM_POWER8): Add new platform bit for POWER8 processor.
3778         (_dl_string_platform): Add case for exporting platform position for
3779         POWER8.
3780         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power8/Implies: Chain
3781         search path to sysdeps/powerpc/powerpc32/power8 directory.
3782         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power8/Implies: Chain
3783         search path to sysdeps/powerpc/powerpc64/power8 directory.
3784         * sysdeps/powerpc/powerpc32/power8/Implies: Chain search path to
3785         power7 directories.
3786         * sysdeps/powerpc/powerpc64/power8/Implies: Chain search path to
3787         power7 directories.
3788
3789 2013-06-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
3790
3791         * INSTALL: Regenerate.
3792
3793         * nscd/connections.c (nscd_init): Fix comment.
3794
3795 2013-06-22  Joseph Myers  <joseph@codesourcery.com>
3796
3797         * sysdeps/unix/sysv/linux/libc_fatal.c: Include <string.h>.
3798
3799         [BZ #15667]
3800         * soft-fp/op-4.h (__FP_FRAC_ADD_3): Rename variables _c1 and _c2
3801         to __FP_FRAC_ADD_3_c1 and __FP_FRAC_ADD_3_c2.
3802
3803 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
3804
3805         * elf/dl-dst.h (DL_DST_REQUIRED): Remove call to
3806         DL_DST_REQ_STATIC.
3807         (DL_DST_REQ_STATIC): Remove macro.
3808
3809 2013-06-21  Joseph Myers  <joseph@codesourcery.com>
3810
3811         [BZ #7006]
3812         * soft-fp/op-common.h (_FP_FROM_INT): Do not call _FP_FRAC_SLL
3813         with a shift of 0 bits.
3814
3815 2013-06-21  Maciej W. Rozycki  <macro@codesourcery.com>
3816
3817         * dlfcn/Makefile (tststatic2-ENV): Redefine in terms of
3818         $(tststatic-ENV).
3819
3820 2013-06-21  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
3821
3822         [BZ #15655]
3823         * sysdeps/sh/sh4/fpu/fgetexcptflg.c: New file.
3824
3825 2013-06-20  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3826
3827         * config.h.in (HAVE_CC_INHIBIT_LOOP_TO_LIBCALL): New define.
3828         * configure.in (libc_cv_cc_loop_to_function): Check if compiler
3829         accepts -fno-tree-loop-distribute-patterns.
3830         * include/libc-symbols.h (inhibit_loop_to_libcall): New macro.
3831         * string/memmove.c (MEMMOVE): Disable loop transformation to avoid
3832         recursive call.
3833         * string/memset.c (memset): Likewise.
3834         * string/test-memmove.c (simple_memmove): Disable loop transformation
3835         to library calls.
3836         * string/test-memset.c (simple_memset): Likewise.
3837         * benchtests/bench-memmove.c (simple_memmove): Likewise.
3838         * benchtests/bench-memset.c (simple_memset): Likewise.
3839         * configure: Regenerated.
3840
3841 2013-06-20  Joseph Myers  <joseph@codesourcery.com>
3842
3843         * math/test-misc.c (main): Ignore fesetround failure when failures
3844         of subsequent rounding tests would be ignored.
3845
3846         [BZ #15654]
3847         * math/fedisblxcpt.c (fedisableexcept): Return 0.
3848         * math/feenablxcpt.c (feenableexcept): Return 0 for argument 0.
3849         * math/fegetenv.c (__fegetenv): Return 0.
3850         * math/fegetexcept.c (fegetexcept): Return 0.
3851         * math/fegetround.c (fegetround) [FE_TONEAREST]: Return
3852         FE_TONEAREST.
3853         * math/feholdexcpt.c (feholdexcept): Return 0.
3854         * math/fesetenv.c (__fesetenv): Return 0.
3855         * math/fesetround.c (fesetround) [FE_TONEAREST]: Return 0 for
3856         argument FE_TONEAREST.
3857         * math/feupdateenv.c (__feupdateenv): Return 0.
3858         * math/fgetexcptflg.c (__fegetexceptflag): Return 0.
3859
3860 2013-06-18  Roland McGrath  <roland@hack.frob.com>
3861
3862         * elf/rtld-Rules (rtld-compile-command.S): New variable.
3863         (rtld-compile-command.s, rtld-compile-command.c): New variables.
3864         ($(objpfx)rtld-%.os rules): Use them.
3865
3866 2013-06-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3867
3868         * nptl/sysdeps/powerpc/tls.h (tcbhead_t): Add Event-Based Branch
3869         fields.
3870
3871 2013-06-17  Roland McGrath  <roland@hack.frob.com>
3872
3873         * scripts/sysd-rules.awk: Sort sysd_rules_patterns by descending
3874         length of target pattern, then descending length of dependency pattern.
3875         * configure.in (AWK): Require gawk 3.1.2 or newer.
3876         * manual/install.texi (Tools for Compilation): Say that we do.
3877         * configure: Regenerated.
3878
3879         * Makerules [inhibit-sysdep-asm] (check-inhibit-asm): Variable removed.
3880         ($(common-objpfx)sysd-rules): Replace shell logic with running ...
3881         * scripts/sysd-rules.awk: ... this new script.
3882         * sysdeps/mach/hurd/Makefile (inhibit-sysdep-asm): Use a regexp rather
3883         than a glob-style pattern.
3884
3885 2013-06-17  Joseph Myers  <joseph@codesourcery.com>
3886
3887         * math/test-misc.c (main): Do not treat incorrectly rounded
3888         conversions as failure unless ROUNDING_TESTS passes.
3889
3890 2013-06-15  Joseph Myers  <joseph@codesourcery.com>
3891
3892         [BZ #15631]
3893         * sysdeps/ieee754/dbl-64/e_sqrt.c (__ieee754_sqrt): Save and
3894         restore exception state around main square root computation, then
3895         check for inexactness explicitly.
3896
3897         * math/libm-test.inc (fma_test_data): Add another test.
3898
3899 2013-06-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
3900
3901         * manual/threads.texi (Non-POSIX Extensions): New document
3902         node.  Document pthread_getattr_default_np and
3903         pthread_setattr_default_np.
3904
3905         * Versions.def (libpthread): Add GLIBC_2.18.
3906         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: Update.
3907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
3908         Likewise.
3909         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
3910         Likewise.
3911         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3912         Likewise.
3913         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3914         Likewise.
3915         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist:
3916         Likewise.
3917         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
3918         Likewise.
3919         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
3920         Likewise.
3921         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
3922         Likewise.
3923         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
3924         Likewise.
3925
3926 2013-06-14  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
3927
3928         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
3929         Set bit_Fast_Unaligned_Load for Intel Silvermont architecture.
3930
3931 2013-06-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
3932             H.J. Lu  <hjl.tools@gmail.com>
3933
3934         [BZ #15627]
3935         * sysdeps/x86_64/rtld-memset.c: Remove file.
3936         * sysdeps/x86_64/rtld-memset.S: New file.
3937
3938 2013-06-14  Joseph Myers  <joseph@codesourcery.com>
3939
3940         * stdlib/tst-strtod-round.c: Include <math-tests.h>.
3941         (test_in_one_mode): Take arguments for whether the rounding mode
3942         is supported for each floating-point type.
3943         (do_test): Pass new arguments to test_in_one_mode using
3944         ROUNDING_TESTS.
3945
3946 2013-06-13  Roland McGrath  <roland@hack.frob.com>
3947
3948         * posix/tst-waitid.c (do_test): Distinguish different instances of
3949         stopped/continued in CHECK_SIGCHLD uses.  Insert a delay between
3950         sending SIGSTOP and calling waitpid to ensure SIGCHLD gets delivered
3951         before entering the kernel for waitpid.
3952
3953 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3954
3955         * NEWS: Fix note on clock function precision.  Text by Roland
3956         McGrath.
3957
3958 2013-06-13  Roland McGrath  <roland@hack.frob.com>
3959
3960         * elf/Makefile ($(objpfx)ld.so): Link into a temporary file and move
3961         it into place only when and if the sanity check passes.
3962
3963 2013-06-13  Joseph Myers  <joseph@codesourcery.com>
3964
3965         * stdlib/gen-tst-strtod-round.c (round_str): Always generate
3966         output for whether conversion result is exact.  Take argument
3967         indicating whether type is IBM long double.
3968         (round_for_all): Change need_exact field to ibm_ld.
3969         * stdlib/tst-strtod-round.c (struct exactness): New type.
3970         (struct test): Change bool ld_ok field to struct exactness exact.
3971         (TEST): Update all definitions for change to field.
3972         (tests): Regenerate array contents.
3973         (test_in_one_mode): Take pointer to new field instead of old ld_ok
3974         field value.  Check for IBM long double here.
3975         (do_test): Update calls to test_in_one_mode.
3976
3977 2013-06-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
3978
3979         [BZ #12515]
3980         * sysdeps/unix/sysv/linux/clock.c (clock): Use result from
3981         CLOCK_PROCESS_CPUTIME_ID clock instead of __times.
3982
3983 2013-06-12  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3984
3985         [BZ #15605]
3986         * sysdeps/generic/symbol-hacks.h: Add workaround for memset/memmove calls
3987         generated by the compiler on loop optimizations.
3988         * sysdeps/wordsize-32/symbol-hacks.h: Include next symbol-hacks.h for
3989         general definitions.
3990
3991 2013-06-12  Joseph Myers  <joseph@codesourcery.com>
3992
3993         * math/bug-nextafter.c: Include <math-tests.h>.
3994         (main): Only test for exceptions if EXCEPTION_TESTS is true for
3995         the relevant type.
3996         * math/bug-nexttoward.c: Include <math-tests.h>.
3997         (main): Only test for exceptions if EXCEPTION_TESTS is true for
3998         the relevant type.
3999         * math/test-misc.c: Include <math-tests.h>.
4000         (main): Only test for exceptions if EXCEPTION_TESTS is true for
4001         the relevant type.
4002
4003 2013-06-12  Andreas Jaeger  <aj@suse.de>
4004
4005         * po/ia.po: Update Interlingua translation from translation
4006         project.
4007
4008 2013-06-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
4009
4010         * include/fenv.h: Include stdbool.h.
4011         (struct rm_ctx): New structure.
4012         * sysdeps/generic/math_private.h (SET_RESTORE_ROUND_GENERIC):
4013         Define macro.
4014         (SET_RESTORE_ROUND): Define using SET_RESTORE_ROUND_GENERIC.
4015         (SET_RESTORE_ROUNDF): Likewise.
4016         (SET_RESTORE_ROUNDL): Likewise.
4017         (SET_RESTORE_ROUND_NOEX): Likewise.
4018         (SET_RESTORE_ROUND_NOEXF): Likewise.
4019         (SET_RESTORE_ROUND_NOEXL): Likewise.
4020         (SET_RESTORE_ROUND_53BIT): Likewise.
4021         [HAVE_RM_CTX] (libc_feresetround_noex_ctx): Define macro.
4022         (libc_feresetround_noexf_ctx): Likewise.
4023         (libc_feresetround_noexl_ctx): Likewise.
4024         (libc_feholdsetround_53bit_ctx): Likewise.
4025         (libc_feresetround_53bit_ctx): Likewise.
4026         * sysdeps/i386/fpu/fenv_private.h (HAVE_RM_CTX): Define macro.
4027         (libc_feholdexcept_setround_sse_ctx): New function.
4028         (libc_fesetenv_sse_ctx): Likewise.
4029         (libc_feupdateenv_sse_ctx): Likewise.
4030         (libc_feholdexcept_setround_387_prec_ctx): Likewise.
4031         (libc_feholdexcept_setround_387_ctx): Likewise.
4032         (libc_feholdexcept_setround_387_53bit_ctx): Likewise.
4033         (libc_feholdsetround_387_prec_ctx): Likewise.
4034         (libc_feholdsetround_387_ctx): Likewise.
4035         (libc_feholdsetround_387_53bit_ctx): Likewise.
4036         (libc_feholdsetround_sse_ctx): Likewise.
4037         (libc_feresetround_sse_ctx): Likewise.
4038         (libc_feresetround_387_ctx): Likewise.
4039         (libc_feupdateenv_387_ctx): Likewise.
4040         (libc_feholdexcept_setroundf_ctx): Define macro.
4041         (libc_fesetenvf_ctx): Likewise.
4042         (libc_feupdateenvf_ctx): Likewise.
4043         (libc_feholdsetroundf_ctx): Likewise.
4044         (libc_feresetroundf_ctx): Likewise.
4045         (libc_feholdexcept_setround_ctx): Likewise.
4046         (libc_fesetenv_ctx): Likewise.
4047         (libc_feupdateenv_ctx): Likewise.
4048         (libc_feholdsetround_ctx): Likewise.
4049         (libc_feresetround_ctx): Likewise.
4050         (libc_feholdexcept_setroundl_ctx): Likewise.
4051         (libc_feupdateenvl_ctx): Likewise.
4052         (libc_feholdsetroundl_ctx): Likewise.
4053         (libc_feresetroundl_ctx): Likewise.
4054         [!__SSE2_MATH__] (libc_feholdsetround_53bit_ctx): Likewise.
4055         (libc_feresetround_53bit_ctx): Likewise.
4056
4057 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4058
4059         * locale/iso-639.def: Convert to UTF-8.
4060
4061 2013-06-11  Joseph Myers  <joseph@codesourcery.com>
4062
4063         * sysdeps/generic/math-tests.h (EXCEPTION_TESTS_float): New macro.
4064         (EXCEPTION_TESTS_double): Likewise.
4065         (EXCEPTION_TESTS_long_double): Likewise.
4066         (EXCEPTION_TESTS): Likewise.
4067         * math/libm-test.inc (test_exceptions): Only test exceptions if
4068         EXCEPTION_TESTS (FLOAT).
4069
4070 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4071
4072         * benchtests/Makefile (string-bench): Add strcpy_chk and
4073         stpcpy_chk.
4074         * benchtests/bench-stpcpy_chk-ifunc.c: New file.
4075         * benchtests/bench-stpcpy_chk.c: New file.
4076         * benchtests/bench-strcpy_chk-ifunc.c: New file.
4077         * benchtests/bench-strcpy_chk.c: New file.
4078         * debug/test-strcpy_chk.c (do_one_test): Remove HP_TIMING
4079         code.
4080         (do_test): Likewise.
4081
4082 2013-06-11  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4083
4084         * sysdeps/powerpc/dl-procinfo.c (_dl_powerpc_platforms): Add ppc405,
4085         ppc440, ppc464, and ppc476, merging from ports/ dl-procinfo.c.
4086         * sysdeps/powerpc/dl-procinfo.h: Fix whitespace by correcting spaces
4087         with tabs where appropriate.
4088         [PPC_PLATFORM_PPC405]: Define new platform merging from ports/
4089         dl-procinfo.h.
4090         [PPC_PLATFORM_PPC440]: Likewise.
4091         [PPC_PLATFORM_PPC464]: Likewise.
4092         [PPC_PLATFORM_PPC476]: Likewise.
4093         (_dl_string_platform): Add support for detecting ppc405, ppc440,
4094         ppc464, and ppc476 platform strings merging from ports/
4095         dl-procinfo.h.
4096
4097 2013-06-11  Andreas Schwab  <schwab@suse.de>
4098
4099         [BZ #14991]
4100         * iconvdata/big5hkscs.c (big5hkscs_to_ucs, from_ucs4)
4101         (from_ucs4_idx): Regenerate.
4102         (MIN_NEEDED_FROM, MAX_NEEDED_FROM, MIN_NEEDED_TO): Remove macros.
4103         (FROM_LOOP_MIN_NEEDED_FROM, FROM_LOOP_MAX_NEEDED_FROM)
4104         (FROM_LOOP_MIN_NEEDED_TO, FROM_LOOP_MAX_NEEDED_TO)
4105         (TO_LOOP_MIN_NEEDED_FROM, TO_LOOP_MAX_NEEDED_FROM)
4106         (TO_LOOP_MIN_NEEDED_TO, TO_LOOP_MAX_NEEDED_TO, PREPARE_LOOP)
4107         (EXTRA_LOOP_ARGS, SAVE_RESET_STATE, EMIT_SHIFT_TO_INIT)
4108         (EXTRA_LOOP_DECLS, MAX_NEEDED_OUTPUT): New macros.
4109         (MIN_NEEDED_INPUT, MAX_NEEDED_INPUT, MIN_NEEDED_OUTPUT): Define
4110         from FROM_LOOP and TO_LOOP specific macros.
4111         (BODY): Handle combining characters.
4112         * iconvdata/BIG5HKSCS.irreversible: Update.
4113         * iconvdata/BIG5HKSCS.precomposed: New file.
4114         * iconvdata/testdata/BIG5HKSCS: Regenerate to cover all assigned
4115         characters.
4116         * iconvdata/testdata/BIG5HKSCS..UTF8: Update.
4117
4118 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4119
4120         * include/sys/time.h: Fix indentation and add copyright header.
4121
4122         * string/test-memccpy.c (do_one_test): Remove HP_TIMING code.
4123         (do_test): Likewise.
4124         * string/test-memchr.c (do_one_test): Likewise.
4125         (do_test): Likewise.
4126         * string/test-memcmp.c (do_one_test): Likewise.
4127         (do_test): Likewise.
4128         * string/test-memcpy.c (do_one_test): Likewise.
4129         (do_test): Likewise.
4130         * string/test-memmem.c (do_one_test): Likewise.
4131         (do_test): Likewise.
4132         (do_random_tests): Likewise.
4133         * string/test-memmove.c (do_one_test): Likewise.
4134         (do_test): Likewise.
4135         * string/test-memset.c (do_one_test): Likewise.
4136         (do_test): Likewise.
4137         * string/test-rawmemchr.c (do_one_test): Likewise.
4138         (do_test): Likewise.
4139         * string/test-strcasecmp.c (do_one_test): Likewise.
4140         (do_test): Likewise.
4141         * string/test-strcasestr.c (do_one_test): Likewise.
4142         (do_test): Likewise.
4143         * string/test-strcat.c (do_one_test): Likewise.
4144         (do_test): Likewise.
4145         * string/test-strchr.c (do_one_test): Likewise.
4146         (do_test): Likewise.
4147         * string/test-strcmp.c (do_one_test): Likewise.
4148         (do_test): Likewise.
4149         * string/test-strcpy.c (do_one_test): Likewise.
4150         (do_test): Likewise.
4151         * string/test-string.h: Likewise.
4152         (test_init): Likewise.
4153         * string/test-strlen.c (do_one_test): Likewise.
4154         (do_test): Likewise.
4155         * string/test-strncasecmp.c (do_one_test): Likewise.
4156         (do_test): Likewise.
4157         * string/test-strncat.c (do_one_test): Likewise.
4158         (do_test): Likewise.
4159         * string/test-strncmp.c (do_one_test): Likewise.
4160         (do_test_limit): Likewise.
4161         (do_test): Likewise.
4162         * string/test-strncpy.c (do_one_test): Likewise.
4163         (do_test): Likewise.
4164         * string/test-strnlen.c (do_one_test): Likewise.
4165         (do_test): Likewise.
4166         * string/test-strpbrk.c (do_one_test): Likewise.
4167         (do_test): Likewise.
4168         * string/test-strrchr.c (do_one_test): Likewise.
4169         (do_test): Likewise.
4170         * string/test-strspn.c (do_one_test): Likewise.
4171         (do_test): Likewise.
4172         * string/test-strstr.c (do_one_test): Likewise.
4173         (do_test): Likewise.
4174
4175         * benchtests/Makefile (string-bench): Add string benchmarks.
4176         * benchtests/bench-bcopy-ifunc.c: New file.
4177         * benchtests/bench-bcopy.c: New file.
4178         * benchtests/bench-bzero-ifunc.c: New file.
4179         * benchtests/bench-bzero.c: New file.
4180         * benchtests/bench-memccpy-ifunc.c: New file.
4181         * benchtests/bench-memccpy.c: New file.
4182         * benchtests/bench-memchr-ifunc.c: New file.
4183         * benchtests/bench-memchr.c: New file.
4184         * benchtests/bench-memcmp-ifunc.c: New file.
4185         * benchtests/bench-memcmp.c: New file.
4186         * benchtests/bench-memmem-ifunc.c: New file.
4187         * benchtests/bench-memmem.c: New file.
4188         * benchtests/bench-memmove-ifunc.c: New file.
4189         * benchtests/bench-memmove.c: New file.
4190         * benchtests/bench-mempcpy-ifunc.c: New file.
4191         * benchtests/bench-mempcpy.c: New file.
4192         * benchtests/bench-memset-ifunc.c: New file.
4193         * benchtests/bench-memset.c: New file.
4194         * benchtests/bench-rawmemchr-ifunc.c: New file.
4195         * benchtests/bench-rawmemchr.c: New file.
4196         * benchtests/bench-stpcpy-ifunc.c: New file.
4197         * benchtests/bench-stpcpy.c: New file.
4198         * benchtests/bench-stpncpy-ifunc.c: New file.
4199         * benchtests/bench-stpncpy.c: New file.
4200         * benchtests/bench-strcasecmp-ifunc.c: New file.
4201         * benchtests/bench-strcasecmp.c: New file.
4202         * benchtests/bench-strcasestr-ifunc.c: New file.
4203         * benchtests/bench-strcasestr.c: New file.
4204         * benchtests/bench-strcat-ifunc.c: New file.
4205         * benchtests/bench-strcat.c: New file.
4206         * benchtests/bench-strchr-ifunc.c: New file.
4207         * benchtests/bench-strchr.c: New file.
4208         * benchtests/bench-strchrnul-ifunc.c: New file.
4209         * benchtests/bench-strchrnul.c: New file.
4210         * benchtests/bench-strcmp-ifunc.c: New file.
4211         * benchtests/bench-strcmp.c: New file.
4212         * benchtests/bench-strcpy-ifunc.c: New file.
4213         * benchtests/bench-strcpy.c: New file.
4214         * benchtests/bench-strcspn-ifunc.c: New file.
4215         * benchtests/bench-strcspn.c: New file.
4216         * benchtests/bench-strlen-ifunc.c: New file.
4217         * benchtests/bench-strlen.c: New file.
4218         * benchtests/bench-strncasecmp-ifunc.c: New file.
4219         * benchtests/bench-strncasecmp.c: New file.
4220         * benchtests/bench-strncat-ifunc.c: New file.
4221         * benchtests/bench-strncat.c: New file.
4222         * benchtests/bench-strncmp-ifunc.c: New file.
4223         * benchtests/bench-strncmp.c: New file.
4224         * benchtests/bench-strncpy-ifunc.c: New file.
4225         * benchtests/bench-strncpy.c: New file.
4226         * benchtests/bench-strnlen-ifunc.c: New file.
4227         * benchtests/bench-strnlen.c: New file.
4228         * benchtests/bench-strpbrk-ifunc.c: New file.
4229         * benchtests/bench-strpbrk.c: New file.
4230         * benchtests/bench-strrchr-ifunc.c: New file.
4231         * benchtests/bench-strrchr.c: New file.
4232         * benchtests/bench-strspn-ifunc.c: New file.
4233         * benchtests/bench-strspn.c: New file.
4234         * benchtests/bench-strstr-ifunc.c: New file.
4235         * benchtests/bench-strstr.c: New file.
4236
4237         * benchtests/Makefile: Disable parallel execution of targets.
4238         (string-bench): Add memcpy.
4239         (benchset): New variable to store a list of benchmark sets.
4240         (bench-func): Renamed from bench.
4241         (bench-set): New target.
4242         (bench): Depend on bench-func and bench-set.
4243         * benchtests/README: Add section on benchmark sets.
4244         * benchtests/bench-memcpy-ifunc.c: New file.
4245         * benchtests/bench-memcpy.c: New file.
4246         * benchtests/bench-string.h: New file.
4247
4248 2013-06-11  Andreas Schwab  <schwab@suse.de>
4249
4250         [BZ #15577]
4251         * nscd/connections.c (nscd_run_worker): Always zero-terminate key.
4252         * nscd/netgroupcache.c (addgetnetgrentX): Properly handle absent
4253         values in the triple.
4254         * nscd/nscd_netgroup.c (__nscd_setnetgrent): Include zero
4255         terminator in the group key.
4256
4257 2013-06-11  Andreas Jaeger  <aj@suse.de>
4258
4259         * po/zh_TW.po: Update Chinese (traditional) translation from
4260         translation project.
4261
4262 2013-06-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
4263
4264         * include/time.h (__clock_gettime): Add libc_hidden_proto.
4265         * rt/clock_getcpuclockid.c (clock_getcpuclockid): Rename to
4266         __clock_getcpuclockid.  Add weak_alias and libc_hidden_def.
4267         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
4268         (clock_getcpuclockid): Likewise.
4269         * rt/clock_getres.c (clock_getres): Rename to __clock_getres.
4270         Add weak_alias and libc_hidden_def.
4271         * sysdeps/posix/clock_getres.c (clock_getres): Likewise.
4272         * rt/clock_gettime.c (clock_gettime): Rename to
4273         __clock_gettime.  Add weak_alias and libc_hidden_def.
4274         * sysdeps/unix/clock_gettime.c (clock_gettime): Likewise.
4275         * rt/clock_nanosleep.c (clock_nanosleep): Rename to
4276         __clock_nanosleep.  Add weak_alias and libc_hidden_def.
4277         * sysdeps/unix/clock_nanosleep.c (clock_nanosleep): Likewise.
4278         * sysdeps/unix/sysv/linux/clock_nanosleep.c (clock_nanosleep):
4279         Likewise.
4280         * rt/clock_settime.c (clock_settime): Rename to
4281         __clock_settime.  Add weak_alias and libc_hidden_def.
4282         * sysdeps/unix/clock_settime.c (clock_settime): Likewise.
4283
4284 2013-06-10  Joseph Myers  <joseph@codesourcery.com>
4285
4286         * mach/err_boot.sub: Remove trailing whitespace.
4287         * mach/err_ipc.sub: Likewise.
4288         * mach/err_mach.sub: Likewise.
4289
4290         * sysdeps/generic/math-tests.h (ROUNDING_TESTS_float): New macro.
4291         (ROUNDING_TESTS_double): Likewise.
4292         (ROUNDING_TESTS_long_double): Likewise.
4293         (ROUNDING_TESTS): Likewise.
4294         * math/libm-test.inc: Include <math-tests.h>.
4295         (IF_ROUND_INIT_FE_DOWNWARD): Use ROUNDING_TESTS.
4296         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
4297         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
4298         (IF_ROUND_INIT_FE_UPWARD): Likewise.
4299
4300 2013-06-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4301
4302         * benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
4303         of assigning.
4304
4305 2013-06-08  Joseph Myers  <joseph@codesourcery.com>
4306
4307         * sysdeps/gnu/errlist.awk: Do not generate space at end of
4308         otherwise empty TRANS lines.
4309         * sysdeps/gnu/errlist.c: Regenerated.
4310
4311         * catgets/gencat.c (error_print): Use (void) in function
4312         definition.
4313         * crypt/crypt_util.c (__init_des): Likewise.
4314         * crypt/speeds.c (Stop): Likewise.
4315         (main): Likewise.
4316         * hurd/hurdmalloc.c (print_malloc_free_list): Likewise.
4317         * inet/ruserpass.c (token): Likewise.
4318         * intl/finddomain.c (_nl_finddomain_subfreeres): Likewise.
4319         * intl/localealias.c (extend_alias_table): Likewise.
4320         * intl/plural-exp.c (init_germanic_plural): Likewise.
4321         * libio/fcloseall.c (__fcloseall): Likewise.
4322         * libio/genops.c (_IO_flush_all): Likewise.
4323         (_IO_flush_all_linebuffered): Likewise.
4324         (_IO_cleanup): Likewise.
4325         (_IO_iter_begin): Likewise.
4326         (_IO_iter_end): Likewise.
4327         (_IO_list_lock): Likewise.
4328         (_IO_list_unlock): Likewise.
4329         (_IO_list_resetlock): Likewise.
4330         * libio/getchar.c (getchar): Likewise.
4331         * libio/getchar_u.c (getchar_unlocked): Likewise.
4332         * libio/getwchar.c (getwchar): Likewise.
4333         * libio/getwchar_u.c (getwchar_unlocked): Likewise.
4334         * libio/oldstdfiles.c (_IO_check_libio): Likewise.
4335         * login/getpt.c (__getpt): Likewise.
4336         * login/tst-utmp.c (main): Likewise.
4337         * malloc/hooks.c (__malloc_check_init): Likewise.
4338         * malloc/malloc.c (__malloc_stats): Likewise.
4339         * malloc/mtrace.c (tr_break): Likewise.
4340         (mtrace): Likewise.
4341         (muntrace): Likewise.
4342         * misc/fstab.c (endfsent): Likewise.
4343         * misc/getclktck.c (__getclktck): Likewise.
4344         * misc/getdtsz.c (__getdtablesize): Likewise.
4345         * misc/gethostid.c (gethostid): Likewise.
4346         * misc/getpagesize.c (__getpagesize): Likewise.
4347         * misc/getsysstats.c (__get_nprocs_conf): Likewise.
4348         (__get_nprocs): Likewise.
4349         (__get_phys_pages): Likewise.
4350         (__get_avphys_pages): Likewise.
4351         * misc/getttyent.c (getttyent): Likewise.
4352         (setttyent): Likewise.
4353         (endttyent): Likewise.
4354         * misc/getusershell.c (getusershell): Likewise.
4355         (endusershell): Likewise.
4356         (setusershell): Likewise.
4357         (initshells): Likewise.
4358         * misc/hsearch.c (__hdestroy): Likewise.
4359         * misc/sync.c (sync): Likewise.
4360         * misc/syslog.c (closelog_internal): Likewise.
4361         (closelog): Likewise.
4362         * misc/ttyslot.c (ttyslot): Likewise.
4363         * misc/vhangup.c (vhangup): Likewise.
4364         * posix/fork.c (__fork): Likewise.
4365         * posix/getegid.c (__getegid): Likewise.
4366         * posix/geteuid.c (__geteuid): Likewise.
4367         * posix/getgid.c (__getgid): Likewise.
4368         * posix/getpid.c (__getpid): Likewise.
4369         * posix/getppid.c (__getppid): Likewise.
4370         * posix/getuid.c (__getuid): Likewise.
4371         * posix/pause.c (pause): Likewise.
4372         * posix/setpgrp.c (setpgrp): Likewise.
4373         * posix/setsid.c (__setsid): Likewise.
4374         * posix/test-vfork.c (noop): Likewise.
4375         * resolv/gethnamaddr.c (_endhtent): Likewise.
4376         (_gethtent): Likewise.
4377         (ht_endhostent): Likewise.
4378         (gethostent): Likewise.
4379         (dns_service): Likewise.
4380         * stdlib/drand48.c (drand48): Likewise.
4381         * stdlib/lrand48.c (lrand48): Likewise.
4382         * stdlib/mrand48.c (mrand48): Likewise.
4383         * stdlib/rand.c (rand): Likewise.
4384         * stdlib/random.c (__random): Likewise.
4385         * stdlib/setenv.c (clearenv): Likewise.
4386         * sunrpc/clnt_tcp.c (clnttcp_abort): Likewise.
4387         * sunrpc/clnt_unix.c (clntunix_abort): Likewise.
4388         * sysdeps/mach/getpagesize.c (__getpagesize): Likewise.
4389         * sysdeps/mach/getsysstats.c (__get_nprocs_conf): Likewise.
4390         (__get_nprocs): Likewise.
4391         (__get_phys_pages): Likewise.
4392         (__get_avphys_pages): Likewise.
4393         * sysdeps/mach/hurd/dl-sysdep.c (__getpid): Likewise.
4394         * sysdeps/mach/hurd/getclktck.c (__getclktck): Likewise.
4395         * sysdeps/mach/hurd/getdtsz.c (__getdtablesize): Likewise.
4396         * sysdeps/mach/hurd/getegid.c (__getegid): Likewise.
4397         * sysdeps/mach/hurd/geteuid.c (__geteuid): Likewise.
4398         * sysdeps/mach/hurd/getgid.c (__getgid): Likewise.
4399         * sysdeps/mach/hurd/gethostid.c (gethostid): Likewise.
4400         * sysdeps/mach/hurd/getlogin.c (getlogin): Likewise.
4401         * sysdeps/mach/hurd/getpid.c (__getpid): Likewise.
4402         * sysdeps/mach/hurd/getppid.c (__getppid): Likewise.
4403         * sysdeps/mach/hurd/getuid.c (__getuid): Likewise.
4404         * sysdeps/mach/hurd/sync.c (sync): Likewise.
4405         * sysdeps/posix/clock.c (clock): Likewise.
4406         * sysdeps/unix/bsd/setsid.c (__setsid): Likewise.
4407         * sysdeps/unix/getpagesize.c (__getpagesize): Likewise.
4408         * sysdeps/unix/sysv/linux/getclktck.c (__getclktck): Likewise.
4409         * sysdeps/unix/sysv/linux/gethostid.c (gethostid): Likewise.
4410         * sysdeps/unix/sysv/linux/getpagesize.c (__getpagesize): Likewise.
4411         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Likewise.
4412         (__get_nprocs_conf): Likewise.
4413         (__get_phys_pages): Likewise.
4414         (__get_avphys_pages): Likewise.
4415         * time/clock.c (clock): Likewise.
4416         * time/tzset.c (__tzname_max): Likewise.
4417
4418 2013-06-07  Joseph Myers  <joseph@codesourcery.com>
4419
4420         * bits/byteswap.h [__GNUC__ && !__GNUC_PREREQ (4, 3)]
4421         (__bswap_32): Do not use "register".
4422         * crypt/crypt.c (_ufc_doit_r): Likewise.
4423         * debug/stpcpy_chk.c (__stpcpy_chk): Likewise.
4424         * debug/wcscat_chk.c (__wcscat_chk): Likewise.
4425         * gmon/gmon.c (__monstartup): Likewise.
4426         * gmon/mcount.c (_MCOUNT_DECL(frompc, selfpc)): Likewise.
4427         * hurd/hurdmalloc.c (more_memory): Likewise.
4428         (malloc): Likewise.
4429         (free): Likewise.
4430         (realloc): Likewise.
4431         (malloc_fork_prepare): Likewise.
4432         (malloc_fork_parent): Likewise.
4433         (malloc_fork_child): Likewise.
4434         * include/rpc/auth_des.h (xdr_authdes_verf): Likewise.
4435         (_svcauth_des): Likewise.
4436         * inet/inet_lnaof.c (inet_lnaof): Likewise.
4437         * inet/inet_net.c (inet_network): Likewise.
4438         * inet/inet_netof.c (inet_netof): Likewise.
4439         * inet/rcmd.c (__validuser2_sa): Likewise.
4440         * io/fts.c (fts_open): Likewise.
4441         (fts_load): Likewise.
4442         (fts_close): Likewise.
4443         (fts_read): Likewise.
4444         (fts_children): Likewise.
4445         (fts_build): Likewise.
4446         (fts_stat): Likewise.
4447         (fts_sort): Likewise.
4448         (fts_alloc): Likewise.
4449         (fts_lfree): Likewise.
4450         * libio/fileops.c (_IO_new_file_xsputn): Likewise.
4451         (_IO_file_xsgetn): Likewise.
4452         (_IO_file_xsgetn_mmap): Likewise.
4453         * libio/iofopncook.c (_IO_cookie_read): Likewise.
4454         (_IO_cookie_write): Likewise.
4455         * libio/oldfileops.c (_IO_old_file_xsputn): Likewise.
4456         * libio/wfileops.c (_IO_wfile_xsputn): Likewise.
4457         * mach/msgserver.c (__mach_msg_server_timeout): Likewise.
4458         * malloc/obstack.c (_obstack_begin): Likewise.
4459         (_obstack_begin_1): Likewise.
4460         (_obstack_newchunk): Likewise.
4461         (_obstack_allocated_p): Likewise.
4462         (obstack_free): Likewise.
4463         (_obstack_memory_used): Likewise.
4464         * misc/getttyent.c (getttynam): Likewise.
4465         (getttyent): Likewise.
4466         (skip): Likewise.
4467         (value): Likewise.
4468         * misc/getusershell.c (initshells): Likewise.
4469         * misc/syslog.c (__vsyslog_chk): Likewise.
4470         * misc/ttyslot.c (ttyslot): Likewise.
4471         * nis/nis_hash.c (__nis_hash): Likewise.
4472         * posix/fnmatch_loop.c (FCT): Likewise.
4473         * posix/getconf.c (print_all): Likewise.
4474         (main): Likewise.
4475         * posix/getopt.c (exchange): Likewise.
4476         * posix/glob.c (globfree): Likewise.
4477         (prefix_array): Likewise.
4478         (__glob_pattern_type): Likewise.
4479         * resolv/arpa/nameser.h (NS_GET16): Likewise.
4480         (NS_GET32): Likewise.
4481         (NS_PUT16): Likewise.
4482         (NS_PUT32): Likewise.
4483         * resolv/gethnamaddr.c (getanswer): Likewise.
4484         (gethostbyname2): Likewise.
4485         (gethostbyaddr): Likewise.
4486         (_gethtent): Likewise.
4487         (_gethtbyname2): Likewise.
4488         (_gethtbyaddr): Likewise.
4489         * resolv/ns_print.c (dst_s_get_int16): Likewise.
4490         * resolv/nss_dns/dns-host.c (getanswer_r): Likewise.
4491         * resolv/res_init.c (__res_vinit): Likewise.
4492         (net_mask): Likewise.
4493         * resolv/res_mkquery.c (outchar): Likewise.
4494         (PRINT): Likewise.
4495         * stdio-common/printf_fp.c (outchar): Likewise.
4496         (PRINT): Likewise.
4497         * stdio-common/printf_fphex.c (outchar): Likewise.
4498         (PRINT): Likewise.
4499         * stdio-common/printf_size.c (outchar): Likewise.
4500         (PRINT): Likewise.
4501         * stdio-common/test_rdwr.c (main): Likewise.
4502         * stdio-common/tfformat.c (matches): Likewise.
4503         * stdio-common/vfprintf.c (outchar): Likewise.
4504         (printf_unknown): Likewise.
4505         (buffered_vfprintf): Likewise.
4506         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Likewise.
4507         * stdio-common/xbug.c (AppendToBuffer): Likewise.
4508         (ReadFile): Likewise.
4509         * stdlib/qsort.c (SWAP): Likewise.
4510         (_quicksort): Likewise.
4511         * stdlib/setenv.c (__add_to_environ): Likewise.
4512         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Likewise.
4513         * stdlib/strtol_l.c (__strtol_l): Likewise.
4514         * stdlib/tst-strtod.c (main): Likewise.
4515         * stdlib/tst-strtol.c (main): Likewise.
4516         * stdlib/tst-strtoll.c (main): Likewise.
4517         * string/bits/string2.h (__strcmp_cc): Likewise.
4518         (__strcmp_cg): Likewise.
4519         (__strcspn_c1): Likewise.
4520         (__strcspn_c2): Likewise.
4521         (__strcspn_c3): Likewise.
4522         (__strspn_c1): Likewise.
4523         (__strspn_c2): Likewise.
4524         (__strspn_c3): Likewise.
4525         (__strsep_1c): Likewise.
4526         (__strsep_2c): Likewise.
4527         (__strsep_3c): Likewise.
4528         * string/memccpy.c (__memccpy): Likewise.
4529         * string/stpcpy.c (__stpcpy): Likewise.
4530         * string/strcmp.c (strcmp): Likewise.
4531         * string/strrchr.c (strrchr): Likewise.
4532         * sysdeps/generic/sigset-cvt-mask.h (sigset_get_old_mask):
4533         Likewise.
4534         * sysdeps/mach/hurd/getcwd.c
4535         (_hurd_canonicalize_directory_name_internal): Likewise.
4536         * sysdeps/mach/i386/sysdep.h (SNARF_ARGS): Likewise.
4537         * sysdeps/powerpc/powerpc32/power6/wcschr.c (wcschr): Likewise.
4538         * sysdeps/powerpc/powerpc32/power6/wcsrchr.c (wcsrchr): Likewise.
4539         * sysdeps/x86/bits/byteswap-16.h [__GNUC__] (__bswap_16):
4540         Likewise, in both definitions.
4541         * sysdeps/x86/bits/byteswap.h (__bswap_32): Likewise, in multiple
4542         definitions.
4543         [__GNUC_PREREQ (2, 0) && !__GNUC_PREREQ (4, 3) && __WORDSIZE ==
4544         64] (__bswap_64): Likewise.
4545         * time/test_time.c (main): Likewise.
4546         * time/tzfile.c (__tzfile_read): Likewise.
4547         (__tzfile_compute): Likewise.
4548         * time/tzset.c (__tzset_parse_tz): Likewise.
4549         (tzset_internal): Likewise.
4550         (compute_change): Likewise.
4551         * wcsmbs/wcscat.c (__wcscat): Likewise.
4552         * wcsmbs/wcschr.c (wcschr): Likewise.
4553         * wcsmbs/wcschrnul.c (__wcschrnul): Likewise.
4554         * wcsmbs/wcscspn.c (wcscspn): Likewise.
4555         * wcsmbs/wcspbrk.c (wcspbrk): Likewise.
4556         * wcsmbs/wcsrchr.c (wcsrchr): Likewise.
4557         * wcsmbs/wcsspn.c (wcsspn): Likewise.
4558         * wcsmbs/wcsstr.c (wcsstr): Likewise.
4559         * wcsmbs/wmemchr.c (wmemchr): Likewise.
4560         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
4561         * wcsmbs/wmemset.c (wmemset): Likewise.
4562
4563 2013-06-06  Joseph Myers  <joseph@codesourcery.com>
4564
4565         * scripts/config.guess: Update to version 2013-05-16.
4566         * scripts/config.sub: Update to version 2013-04-24.
4567         * scripts/install-sh: Update to version 2011-11-20.07.
4568         * scripts/mkinstalldirs: Update to version 2009-04-28.21.
4569         * scripts/move-if-change: Update to version 2012-01-06 07:23.
4570
4571 2013-06-06   Ondřej Bílka  <neleai@seznam.cz>
4572
4573         * debug/fgetws_u_chk.c: Fix leading whitespaces.
4574         * elf/sln.c: Likewise.
4575         * hurd/hurd/ioctl.h: Likewise.
4576         * hurd/hurdmalloc.c: Likewise.
4577         * hurd/xattr.c: Likewise.
4578         * include/shlib-compat.h: Likewise.
4579         * inet/ruserpass.c: Likewise.
4580         * libio/iofgets_u.c: Likewise.
4581         * libio/iofgetws_u.c: Likewise.
4582         * locale/programs/ld-identification.c: Likewise.
4583         * locale/programs/ld-time.c: Likewise.
4584         * mach/msg-destroy.c: Likewise.
4585         * nss/nss_files/files-netgrp.c: Likewise.
4586         * resolv/res_data.c: Likewise.
4587         * soft-fp/op-1.h: Likewise.
4588         * soft-fp/op-2.h: Likewise.
4589         * soft-fp/op-4.h: Likewise.
4590         * soft-fp/op-common.h: Likewise.
4591         * stdio-common/printf_fphex.c: Likewise.
4592         * stdlib/strtod_l.c: Likewise.
4593         * sunrpc/rpc/clnt.h: Likewise.
4594         * sysdeps/generic/framestate.c: Likewise.
4595         * sysdeps/i386/bsd-_setjmp.S: Likewise.
4596         * sysdeps/i386/bsd-setjmp.S: Likewise.
4597         * sysdeps/i386/__longjmp.S: Likewise.
4598         * sysdeps/i386/setjmp.S: Likewise.
4599         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
4600         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
4601         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4602         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
4603         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
4604         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
4605         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
4606         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
4607         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
4608         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
4609         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
4610         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
4611         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
4612         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
4613         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
4614         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
4615         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
4616         * sysdeps/ieee754/ldbl-96/ldbl2mpn.c: Likewise.
4617         * sysdeps/ieee754/support.c: Likewise.
4618         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4619         * sysdeps/powerpc/powerpc32/lshift.S: Likewise.
4620         * sysdeps/sparc/sparc32/__longjmp.S: Likewise.
4621         * sysdeps/sparc/sparc64/soft-fp/qp_cmp.c: Likewise.
4622         * sysdeps/sparc/sparc64/soft-fp/qp_cmpe.c: Likewise.
4623         * sysdeps/sparc/sparc64/soft-fp/qp_feq.c: Likewise.
4624         * sysdeps/sparc/sparc64/soft-fp/qp_fge.c: Likewise.
4625         * sysdeps/sparc/sparc64/soft-fp/qp_fgt.c: Likewise.
4626         * sysdeps/sparc/sparc64/soft-fp/qp_fle.c: Likewise.
4627         * sysdeps/sparc/sparc64/soft-fp/qp_flt.c: Likewise.
4628         * sysdeps/sparc/sparc64/soft-fp/qp_fne.c: Likewise.
4629         * sysdeps/sparc/sparc64/soft-fp/qp_mul.c: Likewise.
4630         * sysdeps/sparc/sparc64/soft-fp/qp_qtoi.c: Likewise.
4631         * sysdeps/sparc/sparc64/soft-fp/qp_qtoui.c: Likewise.
4632         * sysdeps/sparc/sparc64/soft-fp/qp_qtoux.c: Likewise.
4633         * sysdeps/sparc/sparc64/soft-fp/qp_qtox.c: Likewise.
4634         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
4635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Likewise.
4636
4637 2013-06-05  Ondřej Bílka  <neleai@seznam.cz>
4638
4639         * posix/transbug.c: Remove executable mode.
4640
4641 2013-06-05  Joseph Myers  <joseph@codesourcery.com>
4642
4643         * crypt/speeds.c: Remove trailing whitespace.
4644         * dlfcn/default.c: Likewise.
4645         * elf/ifuncdep2.c: Likewise.
4646         * elf/ifuncmain1.c: Likewise.
4647         * elf/ifuncmain1vis.c: Likewise.
4648         * elf/testobj.h: Likewise.
4649         * elf/tst-stackguard1.c: Likewise.
4650         * gmon/sys/gmon.h: Likewise.
4651         * hurd/hurdmsg.c: Likewise.
4652         * hurd/new-fd.c: Likewise.
4653         * hurd/ports-get.c: Likewise.
4654         * iconvdata/ibm1008_420.c: Likewise.
4655         * inet/tst-getni1.c: Likewise.
4656         * inet/tst-getni2.c: Likewise.
4657         * libio/ioungetc.c: Likewise.
4658         * libio/wfiledoalloc.c: Likewise.
4659         * manual/libm-err-tab.pl: Likewise.
4660         * math/w_dremf.c: Likewise.
4661         * misc/ftruncate.c: Likewise.
4662         * posix/bug-glob2.c: Likewise.
4663         * posix/tst-pcre.c: Likewise.
4664         * posix/wait4.c: Likewise.
4665         * resolv/README: Likewise.
4666         * resolv/res_debug.h: Likewise.
4667         * resolv/tst-inet_ntop.c: Likewise.
4668         * setjmp/bug269-setjmp.c: Likewise.
4669         * soft-fp/extended.h: Likewise.
4670         * soft-fp/op-1.h: Likewise.
4671         * soft-fp/op-2.h: Likewise.
4672         * soft-fp/op-4.h: Likewise.
4673         * soft-fp/op-8.h: Likewise.
4674         * soft-fp/testit.c: Likewise.
4675         * stdio-common/bug16.c: Likewise.
4676         * stdlib/random.c: Likewise.
4677         * sunrpc/rpcsvc/rquota.x: Likewise.
4678         * sysdeps/ieee754/dbl-64/powtwo.tbl: Likewise.
4679         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
4680         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
4681         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
4682         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
4683         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
4684         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
4685         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
4686         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
4687         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
4688         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
4689         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
4690         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
4691         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
4692         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
4693         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
4694         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
4695         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
4696         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
4697         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
4698         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
4699         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
4700         * sysdeps/ieee754/ldbl-128/t_sincosl.c: Likewise.
4701         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
4702         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
4703         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
4704         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
4705         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
4706         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
4707         * sysdeps/ieee754/s_lib_version.c: Likewise.
4708         * sysdeps/mach/hurd/check_fds.c: Likewise.
4709         * sysdeps/mach/hurd/getsockname.c: Likewise.
4710         * sysdeps/mach/hurd/net/if_ppp.h: Likewise.
4711         * sysdeps/mach/hurd/recvfrom.c: Likewise.
4712         * sysdeps/powerpc/bits/link.h: Likewise.
4713         * sysdeps/powerpc/dl-procinfo.c: Likewise.
4714         * sysdeps/powerpc/fpu/feholdexcpt.c: Likewise.
4715         * sysdeps/powerpc/fpu/fenv_const.c: Likewise.
4716         * sysdeps/powerpc/fpu/fesetenv.c: Likewise.
4717         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
4718         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
4719         * sysdeps/powerpc/fpu/t_sqrt.c: Likewise.
4720         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
4721         * sysdeps/powerpc/powerpc32/fpu/s_floor.S: Likewise.
4722         * sysdeps/powerpc/powerpc32/fpu/s_floorf.S: Likewise.
4723         * sysdeps/powerpc/powerpc32/fpu/s_isnan.S: Likewise.
4724         * sysdeps/powerpc/powerpc32/fpu/s_lround.S: Likewise.
4725         * sysdeps/powerpc/powerpc32/fpu/s_round.S: Likewise.
4726         * sysdeps/powerpc/powerpc32/fpu/s_roundf.S: Likewise.
4727         * sysdeps/powerpc/powerpc32/fpu/s_trunc.S: Likewise.
4728         * sysdeps/powerpc/powerpc32/fpu/s_truncf.S: Likewise.
4729         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrint.S: Likewise.
4730         * sysdeps/powerpc/powerpc32/power4/fpu/s_llrintf.S: Likewise.
4731         * sysdeps/powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
4732         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
4733         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
4734         * sysdeps/powerpc/powerpc32/power4/hp-timing.c: Likewise.
4735         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
4736         * sysdeps/powerpc/powerpc32/power4/memset.S: Likewise.
4737         * sysdeps/powerpc/powerpc32/power4/wordcopy.c: Likewise.
4738         * sysdeps/powerpc/powerpc32/power5+/fpu/s_llround.S: Likewise.
4739         * sysdeps/powerpc/powerpc32/power5+/fpu/s_lround.S: Likewise.
4740         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
4741         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
4742         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrint.S: Likewise.
4743         * sysdeps/powerpc/powerpc32/power6/fpu/s_llrintf.S: Likewise.
4744         * sysdeps/powerpc/powerpc32/power6/fpu/s_llround.S: Likewise.
4745         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
4746         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
4747         * sysdeps/powerpc/powerpc32/power6x/fpu/s_lround.S: Likewise.
4748         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
4749         * sysdeps/powerpc/powerpc64/fpu/s_floor.S: Likewise.
4750         * sysdeps/powerpc/powerpc64/fpu/s_floorf.S: Likewise.
4751         * sysdeps/powerpc/powerpc64/fpu/s_isnan.S: Likewise.
4752         * sysdeps/powerpc/powerpc64/fpu/s_llrint.S: Likewise.
4753         * sysdeps/powerpc/powerpc64/fpu/s_llrintf.S: Likewise.
4754         * sysdeps/powerpc/powerpc64/fpu/s_llround.S: Likewise.
4755         * sysdeps/powerpc/powerpc64/fpu/s_llroundf.S: Likewise.
4756         * sysdeps/powerpc/powerpc64/fpu/s_round.S: Likewise.
4757         * sysdeps/powerpc/powerpc64/fpu/s_roundf.S: Likewise.
4758         * sysdeps/powerpc/powerpc64/fpu/s_roundl.S: Likewise.
4759         * sysdeps/powerpc/powerpc64/fpu/s_trunc.S: Likewise.
4760         * sysdeps/powerpc/powerpc64/fpu/s_truncf.S: Likewise.
4761         * sysdeps/powerpc/powerpc64/fpu/s_truncl.S: Likewise.
4762         * sysdeps/powerpc/powerpc64/hp-timing.c: Likewise.
4763         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
4764         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
4765         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
4766         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
4767         * sysdeps/powerpc/powerpc64/power5+/fpu/s_llround.S: Likewise.
4768         * sysdeps/powerpc/powerpc64/power5/fpu/s_isnan.S: Likewise.
4769         * sysdeps/powerpc/powerpc64/power6/fpu/s_isnan.S: Likewise.
4770         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
4771         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Likewise.
4772         * sysdeps/powerpc/powerpc64/power6x/fpu/s_isnan.S: Likewise.
4773         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llrint.S: Likewise.
4774         * sysdeps/powerpc/powerpc64/power6x/fpu/s_llround.S: Likewise.
4775         * sysdeps/powerpc/powerpc64/strlen.S: Likewise.
4776         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
4777         * sysdeps/powerpc/sysdep.h: Likewise.
4778         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
4779         * sysdeps/s390/s390-64/sub_n.S: Likewise.
4780         * sysdeps/sh/dl-trampoline.S: Likewise.
4781         * sysdeps/sh/memset.S: Likewise.
4782         * sysdeps/sh/sh4/fpu/fclrexcpt.c: Likewise.
4783         * sysdeps/sh/strlen.S: Likewise.
4784         * sysdeps/sparc/sparc32/dl-trampoline.S: Likewise.
4785         * sysdeps/sparc/sparc32/dotmul.S: Likewise.
4786         * sysdeps/sparc/sparc32/memcpy.S: Likewise.
4787         * sysdeps/sparc/sparc32/rem.S: Likewise.
4788         * sysdeps/sparc/sparc32/sdiv.S: Likewise.
4789         * sysdeps/sparc/sparc32/soft-fp/q_neg.c: Likewise.
4790         * sysdeps/sparc/sparc32/strchr.S: Likewise.
4791         * sysdeps/sparc/sparc32/udiv.S: Likewise.
4792         * sysdeps/sparc/sparc32/urem.S: Likewise.
4793         * sysdeps/sparc/sparc64/add_n.S: Likewise.
4794         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
4795         * sysdeps/sparc/sparc64/rawmemchr.S: Likewise.
4796         * sysdeps/sparc/sparc64/soft-fp/s_frexpl.c: Likewise.
4797         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h: Likewise.
4798         * sysdeps/sparc/sparc64/stpncpy.S: Likewise.
4799         * sysdeps/sparc/sparc64/strncmp.S: Likewise.
4800         * sysdeps/sparc/sparc64/strncpy.S: Likewise.
4801         * sysdeps/unix/bsd/times.c: Likewise.
4802         * sysdeps/unix/sysv/linux/a.out.h: Likewise.
4803         * sysdeps/unix/sysv/linux/net/if_ppp.h: Likewise.
4804         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S: Likewise.
4805         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S: Likewise.
4806         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions: Likewise.
4807         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h: Likewise.
4808         * sysdeps/unix/sysv/linux/powerpc/sys/ucontext.h: Likewise.
4809         * sysdeps/unix/sysv/linux/s390/s390-32/clone.S: Likewise.
4810         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Likewise.
4811         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Likewise.
4812         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S: Likewise.
4813         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
4814         * sysdeps/unix/sysv/linux/s390/s390-64/mmap.S: Likewise.
4815         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
4816         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
4817         * sysdeps/unix/sysv/linux/s390/s390-64/socket.S: Likewise.
4818         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
4819         * sysdeps/unix/sysv/linux/s390/s390-64/syscall.S: Likewise.
4820         * sysdeps/unix/sysv/linux/scsi/scsi_ioctl.h: Likewise.
4821         * sysdeps/unix/sysv/linux/sh/brk.c: Likewise.
4822         * sysdeps/unix/sysv/linux/sh/clone.S: Likewise.
4823         * sysdeps/unix/sysv/linux/sh/sh3/getcontext.S: Likewise.
4824         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
4825         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S: Likewise.
4826         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S: Likewise.
4827         * sysdeps/unix/sysv/linux/sh/vfork.S: Likewise.
4828         * sysdeps/unix/sysv/linux/sparc/a.out.h: Likewise.
4829         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
4830         * sysdeps/unix/sysv/linux/sys/personality.h: Likewise.
4831         * sysdeps/x86_64/fpu/s_ceill.S: Likewise.
4832         * sysdeps/x86_64/fpu/s_llrintl.S: Likewise.
4833         * sysdeps/x86_64/strcspn.S: Likewise.
4834
4835 2013-06-05  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
4836
4837         * locale/C-translit.h: Revert #include <stdint.h> because this is a
4838         generated file.  Regenerate properly from gen-translit.pl.
4839         * locale/gen-translit.pl: Add #include <stdint.h>.  This generates
4840         locale/C-translit.h.
4841
4842 2013-06-05  Andreas Schwab  <schwab@suse.de>
4843
4844         [BZ #15100]
4845         * time/strptime_l.c (__strptime_internal): Count Sunday in a %W
4846         week as 6 instead of -1.
4847         * time/tst-strptime.c (day_tests): Add test case.
4848
4849 2013-06-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
4850
4851         * sysdeps/generic/math_private.h
4852         (libc_feholdexcept_setround_53bit): Replace with
4853         libc_feholdsetround_53bit.
4854         (libc_feupdateenv_53bit): Replace with
4855         libc_feresetround_53bit.
4856         (SET_RESTORE_ROUND_53BIT): Adjust.
4857
4858 2013-06-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
4859
4860         * string/test-strchrnul.c: Add copyright header.
4861
4862         * posix/tst-getaddrinfo4.c: Increase test timeout.
4863
4864 2013-06-03  Carlos O'Donell  <carlos@redhat.com>
4865
4866         [BZ #15536]
4867         * math/libm-test.inc (MAX_EXP): Remove
4868         (MIN_EXP): Define.
4869         (ulp): Use MIN_EXP - MANT_DIG.
4870         (check_ulp): Verify subnormal ulps. Only allow a range of +/- 1 ulp.
4871
4872 2013-05-31  Carlos O'Donell  <carlos@redhat.com>
4873
4874         * po/be.po: Revert last change.
4875         * po/zh_CN.po: Likewise.
4876         * po/header.pot: Likewise.
4877
4878 2013-05-31  Joseph Myers  <joseph@codesourcery.com>
4879
4880         * Makefile ($(common-objpfx)linkobj/libc.so): Define
4881         link-libc-deps to empty as target-specific variable.
4882         * Makerules (link-libc-args): New variable.
4883         (libc-for-link): Likewise.
4884         (link-libc-deps): Likewise.
4885         (lib%.so): Depend on $(link-libc-deps).  Link with
4886         $(link-libc-args).
4887         (build-module): Link with $(link-libc-args).
4888         (build-module-asneeded): Likewise.
4889         (build-module-helper-objlist): Filter out $(link-libc-deps) from
4890         list of objects.
4891         ($(common-objpfx)libc.so): Define link-libc-deps to empty as
4892         target-specific variable.
4893         ($(extra-modules-build:%=$(objpfx)%.so)): Depend on
4894         $(link-libc-deps) instead of libc.so and libc_nonshared.a.
4895         * crypt/Makefile ($(objpfx)libcrypt.so): Remove dependencies on
4896         libc.
4897         * debug/Makefile ($(objpfx)libSegFault.so): Remove dependencies on
4898         libc and ld.so.
4899         ($(objpfx)libpcprofile.so): Likewise.
4900         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Remove ld.so and
4901         libc_nonshared.a.
4902         ($(objpfx)libdl.so): Remove dependencies on libc and ld.so.
4903         * hesiod/Makefile ($(objpfx)libnss_hesiod.so): Likewise.
4904         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Depend on
4905         $(link-libc-deps).
4906         ($(objpfx)$(mod).so): Remove dependencies on libc and ld.so.
4907         * locale/Makefile ($(objpfx)libBrokenLocale.so): Likewise.
4908         * login/Makefile ($(objpfx)libutil.so): Likewise.
4909         * malloc/Makefile ($(objpfx)libmemusage.so): Likewise.
4910         * math/Makefile ($(objpfx)libm.so): Likewise.
4911         * nis/Makefile ($(services:%=$(objpfx)libnss_%.so)
4912         $(objpfx)libnsl.so): Define libc-for-link as target-specific
4913         variable instead of depending directly on libc.
4914         * nss/Makefile ($(services:%=$(objpfx)libnss_%.so)): Likewise.
4915         ($(objpfx)/libnss_test1.so): Change dependencies on libc to
4916         $(link-libc-deps).
4917         * resolv/Makefile ($(objpfx)libresolv.so): Remove dependencies on
4918         libc.
4919         [$(have-ssp) = yes] (LDLIBS-resolv.so): Remove variable.
4920         ($(objpfx)libnss_dns.so): Remove dependencies on libc.
4921         ($(objpfx)libanl.so): Likewise.
4922         * rt/Makefile ($(objpfx)librt.so): Remove dependencies on libc and
4923         ld.so.
4924         * stdlib/Makefile ($(objpfx)tst-putenvmod.so): Depend on
4925         $(link-libc-deps).
4926         * sysdeps/i386/fpu/Makefile: Remove file.
4927         * sysdeps/powerpc/fpu/Makefile [$(subdir) = math]
4928         ($(objpfx)libm.so): Remove dependency on ld.so.
4929
4930 2013-05-30  Patsy Franklin  <pfrankli@redhat.com>
4931
4932         [BZ # 15553]
4933         * nis/yp_xdr.c (XDRMAXNAME): Define.
4934         (XDRMAXRECORD): Define.
4935         (xdr_domainname): Use XDRMAXNAME.
4936         (xdr_mapname): Likewise.
4937         (xdr_peername): Likewise.
4938         (xdr_keydat): Use XDRMAXRECORD.
4939         (xdr_valdat): Likewise.
4940
4941 2013-05-30  Jeff Law  <law@redhat.com>
4942
4943         [BZ #14256]
4944         * manual/errno.texi (ESTALE): Update to account for more than
4945         just NFS file systems.
4946         * sysdeps/gnu/errlist.c: Regenerated.
4947
4948 2013-05-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
4949
4950         [BZ #15465]
4951         * elf/Makefile (tests): Add tst-null-argv.
4952         (modules-names):  Add tst-null-argv-lib.
4953         ($(objpfx)tst-null-argv): Depend on tst-null-argv-lib.so.
4954         (tst-null-argv-ENV): Set environment for tst-null-argv.
4955         * sysdeps/generic/ldsodefs.h (DSO_FILENAME): New macro.
4956         (RTLD_PROGNAME): New macro.
4957         * elf/tst-null-argv.c: New test case.
4958         * elf/tst-null-argv-lib.c: Library for test case.
4959         * elf/dl-conflict.c (_dl_resolve_conflicts): Use DSO_FILENAME.
4960         * elf/dl-deps.c (_dl_map_object_deps): Likewise.
4961         * elf/dl-error.c (_dl_signal_error): Use RTLD_PROGNAME.
4962         * elf/dl-fini.c (_dl_fini): Use DSO_FILENAME.
4963         * elf/dl-init.c (call_init): Likewise.
4964         (_dl_init): Likewise.
4965         * elf/dl-load.c (print_search_path): Likewise.
4966         (_dl_map_object): Likewise.
4967         * elf/dl-lookup.c (do_lookup_x): Likewise.
4968         (add_dependency): Likewise.
4969         (_dl_lookup_symbol_x): Likewise.
4970         (_dl_debug_bindings): Likewise.
4971         * elf/dl-open.c (_dl_show_scope): Likewise.
4972         * elf/dl-reloc.c (_dl_relocate_object): Likewise.
4973         * elf/dl-version.c (match_symbol): Likewise.
4974         (_dl_check_map_versions): Likewise.
4975         * elf/rtld.c (dl_main): Likewise.
4976         (print_unresolved): Use RTLD_PROGNAME.
4977         (print_missing_version): Likewise.
4978         * sysdeps/i386/dl-machine.h (elf_machine_rel): Likewise.
4979         (elf_machine_rela): Likewise.
4980         * sysdeps/powerpc/powerpc32/dl-machine.c
4981         (__process_machine_rela): Likewise.
4982         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
4983         Likewise.
4984         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
4985         Likewise.
4986         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela):
4987         Likewise.
4988         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
4989         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela):
4990         Likewise.
4991         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela):
4992         Likewise.
4993         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
4994
4995 2013-05-28  Carlos O'Donell  <carlos@redhat.com>
4996
4997         * po/be.po: Add descriptive title.
4998         * po/zh_CN.po: Likewise.
4999         * po/header.pot: Likewise.
5000
5001 2013-05-28  Mike Frysinger  <vapier@gentoo.org>
5002
5003         * locale/programs/locarchive.c (create_archive): Inlucde fname in
5004         error message.
5005         (enlarge_archive): Likewise.
5006
5007 2013-05-28  Ben North  <ben@redfrontdoor.org>
5008
5009         * manual/arith.texi (frexp): It is the magnitude of the return
5010         value which lies in [0.5, 1), not the return value itself.
5011
5012 2013-05-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5013
5014         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5015
5016 2013-05-26  Thomas Schwinge  <thomas@codesourcery.com>
5017
5018         * stdio-common/bug26.c (main): Correct fscanf template.
5019
5020         * sysdeps/mach/hurd/dl-sysdep.c (_dl_sysdep_start:go): Don't
5021         declare _dl_skip_args.
5022
5023         * sysdeps/mach/hurd/i386/init-first.c (_dl_non_dynamic_init):
5024         Don't declare.
5025
5026         * manual/platform.texi: Add missing @end deftypefun.
5027
5028 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
5029
5030         [BZ #15529]
5031         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Set high
5032         bit of mantissa of 2^16382.
5033         * math/libm-test.inc (hypot_test_data): Add more tests.
5034
5035         * math/libm-test.inc: Add drem and pow10 to list of tested
5036         functions.
5037         (pow10_test): New function.
5038         (drem_test): Likewise.
5039         (drem_test_tonearest): Likewise.
5040         (drem_test_towardzero): Likewise.
5041         (drem_test_downward): Likewise.
5042         (drem_test_upward): Likewise.
5043         (main): Call the new functions.
5044
5045         * math/libm-test.inc (finite_test_data): Remove.
5046         (finite_test): Run tests from isfinite_test_data.
5047         (gamma_test_data): Remove.
5048         (gamma_test): Run tests from lgamma_test_data.
5049         * sysdeps/i386/fpu/libm-test-ulps: Update.
5050         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5051
5052 2013-05-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5053
5054         * manual/platform.texi: Add PowerPC PPR function set documentation.
5055         * sysdeps/powerpc/sys/platform/ppc.h: Add PowerPC PPR set function
5056         implementation.
5057
5058 2013-05-24  Carlos O'Donell  <carlos@redhat.com>
5059
5060         * math/libm-test.inc (MAX_EXP): Define.
5061         (ULPDIFF): Define.
5062         (ulp): New function.
5063         (check_float_internal): Use ULPDIFF.
5064         (cpow_test): Disable failing test.
5065         (check_ulp): Test ulp() implemetnation.
5066         (main): Call check_ulp before starting tests.
5067
5068 2013-05-24  Joseph Myers  <joseph@codesourcery.com>
5069
5070         * math/gen-libm-test.pl (generate_testfile): Do not handle
5071         START_DATA and END_DATA.
5072         * math/libm-test.inc (acos_test_data): Do not use START_DATA and
5073         END_DATA.
5074         (acos_tonearest_test_data): Likewise.
5075         (acos_towardzero_test_data): Likewise.
5076         (acos_downward_test_data): Likewise.
5077         (acos_upward_test_data): Likewise.
5078         (acosh_test_data): Likewise.
5079         (asin_test_data): Likewise.
5080         (asin_tonearest_test_data): Likewise.
5081         (asin_towardzero_test_data): Likewise.
5082         (asin_downward_test_data): Likewise.
5083         (asin_upward_test_data): Likewise.
5084         (asinh_test_data): Likewise.
5085         (atan_test_data): Likewise.
5086         (atanh_test_data): Likewise.
5087         (atan2_test_data): Likewise.
5088         (cabs_test_data): Likewise.
5089         (cacos_test_data): Likewise.
5090         (cacosh_test_data): Likewise.
5091         (carg_test_data): Likewise.
5092         (casin_test_data): Likewise.
5093         (casinh_test_data): Likewise.
5094         (catan_test_data): Likewise.
5095         (catanh_test_data): Likewise.
5096         (cbrt_test_data): Likewise.
5097         (ccos_test_data): Likewise.
5098         (ccosh_test_data): Likewise.
5099         (ceil_test_data): Likewise.
5100         (cexp_test_data): Likewise.
5101         (cimag_test_data): Likewise.
5102         (clog_test_data): Likewise.
5103         (clog10_test_data): Likewise.
5104         (conj_test_data): Likewise.
5105         (copysign_test_data): Likewise.
5106         (cos_test_data): Likewise.
5107         (cos_tonearest_test_data): Likewise.
5108         (cos_towardzero_test_data): Likewise.
5109         (cos_downward_test_data): Likewise.
5110         (cos_upward_test_data): Likewise.
5111         (cosh_test_data): Likewise.
5112         (cosh_tonearest_test_data): Likewise.
5113         (cosh_towardzero_test_data): Likewise.
5114         (cosh_downward_test_data): Likewise.
5115         (cosh_upward_test_data): Likewise.
5116         (cpow_test_data): Likewise.
5117         (cproj_test_data): Likewise.
5118         (creal_test_data): Likewise.
5119         (csin_test_data): Likewise.
5120         (csinh_test_data): Likewise.
5121         (csqrt_test_data): Likewise.
5122         (ctan_test_data): Likewise.
5123         (ctan_tonearest_test_data): Likewise.
5124         (ctan_towardzero_test_data): Likewise.
5125         (ctan_downward_test_data): Likewise.
5126         (ctan_upward_test_data): Likewise.
5127         (ctanh_test_data): Likewise.
5128         (ctanh_tonearest_test_data): Likewise.
5129         (ctanh_towardzero_test_data): Likewise.
5130         (ctanh_downward_test_data): Likewise.
5131         (ctanh_upward_test_data): Likewise.
5132         (erf_test_data): Likewise.
5133         (erfc_test_data): Likewise.
5134         (exp_test_data): Likewise.
5135         (exp_tonearest_test_data): Likewise.
5136         (exp_towardzero_test_data): Likewise.
5137         (exp_downward_test_data): Likewise.
5138         (exp_upward_test_data): Likewise.
5139         (exp10_test_data): Likewise.
5140         (exp2_test_data): Likewise.
5141         (expm1_test_data): Likewise.
5142         (fabs_test_data): Likewise.
5143         (fdim_test_data): Likewise.
5144         (finite_test_data): Likewise.
5145         (floor_test_data): Likewise.
5146         (fma_test_data): Likewise.
5147         (fma_towardzero_test_data): Likewise.
5148         (fma_downward_test_data): Likewise.
5149         (fma_upward_test_data): Likewise.
5150         (fmax_test_data): Likewise.
5151         (fmin_test_data): Likewise.
5152         (fmod_test_data): Likewise.
5153         (fpclassify_test_data): Likewise.
5154         (frexp_test_data): Likewise.
5155         (gamma_test_data): Likewise.
5156         (hypot_test_data): Likewise.
5157         (ilogb_test_data): Likewise.
5158         (isfinite_test_data): Likewise.
5159         (isgreater_test_data): Likewise.
5160         (isgreaterequal_test_data): Likewise.
5161         (isinf_test_data): Likewise.
5162         (isless_test_data): Likewise.
5163         (islessequal_test_data): Likewise.
5164         (islessgreater_test_data): Likewise.
5165         (isnan_test_data): Likewise.
5166         (isnormal_test_data): Likewise.
5167         (issignaling_test_data): Likewise.
5168         (isunordered_test_data): Likewise.
5169         (j0_test_data): Likewise.
5170         (j1_test_data): Likewise.
5171         (jn_test_data): Likewise.
5172         (ldexp_test_data): Likewise.
5173         (lgamma_test_data): Likewise.
5174         (lrint_test_data): Likewise.
5175         (lrint_tonearest_test_data): Likewise.
5176         (lrint_towardzero_test_data): Likewise.
5177         (lrint_downward_test_data): Likewise.
5178         (lrint_upward_test_data): Likewise.
5179         (llrint_test_data): Likewise.
5180         (llrint_tonearest_test_data): Likewise.
5181         (llrint_towardzero_test_data): Likewise.
5182         (llrint_downward_test_data): Likewise.
5183         (llrint_upward_test_data): Likewise.
5184         (log_test_data): Likewise.
5185         (log10_test_data): Likewise.
5186         (log1p_test_data): Likewise.
5187         (log2_test_data): Likewise.
5188         (logb_test_data): Likewise.
5189         (logb_downward_test_data): Likewise.
5190         (lround_test_data): Likewise.
5191         (llround_test_data): Likewise.
5192         (modf_test_data): Likewise.
5193         (nearbyint_test_data): Likewise.
5194         (nextafter_test_data): Likewise.
5195         (nexttoward_test_data): Likewise.
5196         (pow_test_data): Likewise.
5197         (pow_tonearest_test_data): Likewise.
5198         (pow_towardzero_test_data): Likewise.
5199         (pow_downward_test_data): Likewise.
5200         (pow_upward_test_data): Likewise.
5201         (remainder_test_data): Likewise.
5202         (remainder_tonearest_test_data): Likewise.
5203         (remainder_towardzero_test_data): Likewise.
5204         (remainder_downward_test_data): Likewise.
5205         (remainder_upward_test_data): Likewise.
5206         (remquo_test_data): Likewise.
5207         (rint_test_data): Likewise.
5208         (rint_tonearest_test_data): Likewise.
5209         (rint_towardzero_test_data): Likewise.
5210         (rint_downward_test_data): Likewise.
5211         (rint_upward_test_data): Likewise.
5212         (round_test_data): Likewise.
5213         (scalb_test_data): Likewise.
5214         (scalbn_test_data): Likewise.
5215         (scalbln_test_data): Likewise.
5216         (signbit_test_data): Likewise.
5217         (sin_test_data): Likewise.
5218         (sin_tonearest_test_data): Likewise.
5219         (sin_towardzero_test_data): Likewise.
5220         (sin_downward_test_data): Likewise.
5221         (sin_upward_test_data): Likewise.
5222         (sincos_test_data): Likewise.
5223         (sinh_test_data): Likewise.
5224         (sinh_tonearest_test_data): Likewise.
5225         (sinh_towardzero_test_data): Likewise.
5226         (sinh_downward_test_data): Likewise.
5227         (sinh_upward_test_data): Likewise.
5228         (sqrt_test_data): Likewise.
5229         (tan_test_data): Likewise.
5230         (tan_tonearest_test_data): Likewise.
5231         (tan_towardzero_test_data): Likewise.
5232         (tan_downward_test_data): Likewise.
5233         (tan_upward_test_data): Likewise.
5234         (tanh_test_data): Likewise.
5235         (tgamma_test_data): Likewise.
5236         (trunc_test_data): Likewise.
5237         (y0_test_data): Likewise.
5238         (y1_test_data): Likewise.
5239         (yn_test_data): Likewise.
5240         (significand_test_data): Likewise.
5241
5242         * math/gen-libm-test.pl (@functions): Remove variable.
5243         (generate_testfile): Don't handle START and END lines.
5244         * math/libm-test.inc (START): New macro.
5245         (END): Likewise.
5246         (END_COMPLEX): Likewise.
5247         (acos_test): Use END macro without arguments.
5248         (acos_test_tonearest): Likewise.
5249         (acos_test_towardzero): Likewise.
5250         (acos_test_downward): Likewise.
5251         (acos_test_upward): Likewise.
5252         (acosh_test): Likewise.
5253         (asin_test): Likewise.
5254         (asin_test_tonearest): Likewise.
5255         (asin_test_towardzero): Likewise.
5256         (asin_test_downward): Likewise.
5257         (asin_test_upward): Likewise.
5258         (asinh_test): Likewise.
5259         (atan_test): Likewise.
5260         (atanh_test): Likewise.
5261         (atan2_test): Likewise.
5262         (cabs_test): Likewise.
5263         (cacos_test): Use END_COMPLEX macro without arguments.
5264         (cacosh_test): Likewise.
5265         (carg_test): Use END macro without arguments.
5266         (casin_test): Use END_COMPLEX macro without arguments.
5267         (casinh_test): Likewise.
5268         (catan_test): Likewise.
5269         (catanh_test): Likewise.
5270         (cbrt_test): Use END macro without arguments.
5271         (ccos_test): Use END_COMPLEX macro without arguments.
5272         (ccosh_test): Likewise.
5273         (ceil_test): Use END macro without arguments.
5274         (cexp_test): Use END_COMPLEX macro without arguments.
5275         (cimag_test): Use END macro without arguments.
5276         (clog_test): Use END_COMPLEX macro without arguments.
5277         (clog10_test): Likewise.
5278         (conj_test): Likewise.
5279         (copysign_test): Use END macro without arguments.
5280         (cos_test): Likewise.
5281         (cos_test_tonearest): Likewise.
5282         (cos_test_towardzero): Likewise.
5283         (cos_test_downward): Likewise.
5284         (cos_test_upward): Likewise.
5285         (cosh_test): Likewise.
5286         (cosh_test_tonearest): Likewise.
5287         (cosh_test_towardzero): Likewise.
5288         (cosh_test_downward): Likewise.
5289         (cosh_test_upward): Likewise.
5290         (cpow_test): Use END_COMPLEX macro without arguments.
5291         (cproj_test): Likewise.
5292         (creal_test): Use END macro without arguments.
5293         (csin_test): Use END_COMPLEX macro without arguments.
5294         (csinh_test): Likewise.
5295         (csqrt_test): Likewise.
5296         (ctan_test): Likewise.
5297         (ctan_test_tonearest): Likewise.
5298         (ctan_test_towardzero): Likewise.
5299         (ctan_test_downward): Likewise.
5300         (ctan_test_upward): Likewise.
5301         (ctanh_test): Likewise.
5302         (ctanh_test_tonearest): Likewise.
5303         (ctanh_test_towardzero): Likewise.
5304         (ctanh_test_downward): Likewise.
5305         (ctanh_test_upward): Likewise.
5306         (erf_test): Use END macro without arguments.
5307         (erfc_test): Likewise.
5308         (exp_test): Likewise.
5309         (exp_test_tonearest): Likewise.
5310         (exp_test_towardzero): Likewise.
5311         (exp_test_downward): Likewise.
5312         (exp_test_upward): Likewise.
5313         (exp10_test): Likewise.
5314         (exp2_test): Likewise.
5315         (expm1_test): Likewise.
5316         (fabs_test): Likewise.
5317         (fdim_test): Likewise.
5318         (finite_test): Likewise.
5319         (floor_test): Likewise.
5320         (fma_test): Likewise.
5321         (fma_test_towardzero): Likewise.
5322         (fma_test_downward): Likewise.
5323         (fma_test_upward): Likewise.
5324         (fmax_test): Likewise.
5325         (fmin_test): Likewise.
5326         (fmod_test): Likewise.
5327         (fpclassify_test): Likewise.
5328         (frexp_test): Likewise.
5329         (gamma_test): Likewise.
5330         (hypot_test): Likewise.
5331         (ilogb_test): Likewise.
5332         (isfinite_test): Likewise.
5333         (isgreater_test): Likewise.
5334         (isgreaterequal_test): Likewise.
5335         (isinf_test): Likewise.
5336         (isless_test): Likewise.
5337         (islessequal_test): Likewise.
5338         (islessgreater_test): Likewise.
5339         (isnan_test): Likewise.
5340         (isnormal_test): Likewise.
5341         (issignaling_test): Likewise.
5342         (isunordered_test): Likewise.
5343         (j0_test): Likewise.
5344         (j1_test): Likewise.
5345         (jn_test): Likewise.
5346         (ldexp_test): Likewise.
5347         (lgamma_test): Likewise.
5348         (lrint_test): Likewise.
5349         (lrint_test_tonearest): Likewise.
5350         (lrint_test_towardzero): Likewise.
5351         (lrint_test_downward): Likewise.
5352         (lrint_test_upward): Likewise.
5353         (llrint_test): Likewise.
5354         (llrint_test_tonearest): Likewise.
5355         (llrint_test_towardzero): Likewise.
5356         (llrint_test_downward): Likewise.
5357         (llrint_test_upward): Likewise.
5358         (log_test): Likewise.
5359         (log10_test): Likewise.
5360         (log1p_test): Likewise.
5361         (log2_test): Likewise.
5362         (logb_test): Likewise.
5363         (logb_test_downward): Likewise.
5364         (lround_test): Likewise.
5365         (llround_test): Likewise.
5366         (modf_test): Likewise.
5367         (nearbyint_test): Likewise.
5368         (nextafter_test): Likewise.
5369         (nexttoward_test): Likewise.
5370         (pow_test): Likewise.
5371         (pow_test_tonearest): Likewise.
5372         (pow_test_towardzero): Likewise.
5373         (pow_test_downward): Likewise.
5374         (pow_test_upward): Likewise.
5375         (remainder_test): Likewise.
5376         (remainder_test_tonearest): Likewise.
5377         (remainder_test_towardzero): Likewise.
5378         (remainder_test_downward): Likewise.
5379         (remainder_test_upward): Likewise.
5380         (remquo_test): Likewise.
5381         (rint_test): Likewise.
5382         (rint_test_tonearest): Likewise.
5383         (rint_test_towardzero): Likewise.
5384         (rint_test_downward): Likewise.
5385         (rint_test_upward): Likewise.
5386         (round_test): Likewise.
5387         (scalb_test): Likewise.
5388         (scalbn_test): Likewise.
5389         (scalbln_test): Likewise.
5390         (signbit_test): Likewise.
5391         (sin_test): Likewise.
5392         (sin_test_tonearest): Likewise.
5393         (sin_test_towardzero): Likewise.
5394         (sin_test_downward): Likewise.
5395         (sin_test_upward): Likewise.
5396         (sincos_test): Likewise.
5397         (sinh_test): Likewise.
5398         (sinh_test_tonearest): Likewise.
5399         (sinh_test_towardzero): Likewise.
5400         (sinh_test_downward): Likewise.
5401         (sinh_test_upward): Likewise.
5402         (sqrt_test): Likewise.
5403         (tan_test): Likewise.
5404         (tan_test_tonearest): Likewise.
5405         (tan_test_towardzero): Likewise.
5406         (tan_test_downward): Likewise.
5407         (tan_test_upward): Likewise.
5408         (tanh_test): Likewise.
5409         (tgamma_test): Likewise.
5410         (trunc_test): Likewise.
5411         (y0_test): Likewise.
5412         (y1_test): Likewise.
5413         (yn_test): Likewise.
5414         (significand_test): Likewise.
5415
5416 2013-05-24  Ondřej Bílka  <neleai@seznam.cz>
5417
5418         [BZ #15381]
5419         * libio/genops.c (_IO_no_init): Initialize wide struct info.
5420
5421 2013-05-23  Edjunior Machado  <emachado@linux.vnet.ibm.com>
5422
5423         [BZ #14894]
5424         * sysdeps/powerpc/sys/platform/ppc.h: Add __ppc_yield,
5425         __ppc_mdoio and __ppc_mdoom.
5426         * manual/platform.texi: Document new functions __ppc_yield,
5427         __ppc_mdoio and __ppc_mdoom.
5428
5429 2013-05-22  Carlos O'Donell  <carlos@redhat.com>
5430
5431         * elf/ldconfig.c (is_hwcap_platform): Make comments full setences.
5432         (main): Mention "tls" pseudo-hwcap is legacy.
5433         * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
5434
5435 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
5436
5437         * math/gen-libm-test.pl (parse_args): Output only string of
5438         arguments as text for test name, not full call or descriptions of
5439         tests for extra outputs.
5440         (generate_testfile): Do not pass function name to parse_args.
5441         Generate this_func variable from START.
5442         * math/libm-test.inc (struct test_f_f_data): Rename test_name
5443         field to arg_str.
5444         (struct test_ff_f_data): Likewise.
5445         (test_ff_f_data_nexttoward): Likewise.
5446         (struct test_fi_f_data): Likewise.
5447         (struct test_fl_f_data): Likewise.
5448         (struct test_if_f_data): Likewise.
5449         (struct test_fff_f_data): Likewise.
5450         (struct test_c_f_data): Likewise.
5451         (struct test_f_f1_data): Likewise.  Remove field extra_name.
5452         (struct test_fF_f1_data): Likewise.
5453         (struct test_ffI_f1_data): Likewise.
5454         (struct test_c_c_data): Rename test_name field to arg_str.
5455         (struct test_cc_c_data): Likewise.
5456         (struct test_f_i_data): Likewise.
5457         (struct test_ff_i_data): Likewise.
5458         (struct test_f_l_data): Likewise.
5459         (struct test_f_L_data): Likewise.
5460         (struct test_fFF_11_data): Likewise.  Remove fields extra1_name
5461         and extra2_name.
5462         (COMMON_TEST_SETUP): New macro.
5463         (EXTRA_OUTPUT_TEST_SETUP): Likewise.
5464         (COMMON_TEST_CLEANUP): Likewise.
5465         (EXTRA_OUTPUT_TEST_CLEANUP): Likewise.
5466         (RUN_TEST_f_f): Take argument string.  Call new setup and cleanup
5467         macros.
5468         (RUN_TEST_LOOP_f_f): Update call to RUN_TEST_f_f.
5469         (RUN_TEST_2_f): Take argument string.  Call new setup and cleanup
5470         macros.
5471         (RUN_TEST_LOOP_2_f): Update call to RUN_TEST_2_f.
5472         (RUN_TEST_fff_f): Take argument string.  Call new setup and
5473         cleanup macros.
5474         (RUN_TEST_LOOP_fff_f): Update call to RUN_TEST_fff_f.
5475         (RUN_TEST_c_f): Take argument string.  Call new setup and cleanup
5476         macros.
5477         (RUN_TEST_LOOP_c_f): Update call to RUN_TEST_c_f.
5478         (RUN_TEST_f_f1): Take argument string.  Call new setup and cleanup
5479         macros.
5480         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
5481         (RUN_TEST_fF_f1): Take argument string.  Call new setup and
5482         cleanup macros.
5483         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
5484         (RUN_TEST_fI_f1): Take argument string.  Call new setup and
5485         cleanup macros.
5486         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
5487         (RUN_TEST_ffI_f1): Take argument string.  Call new setup and
5488         cleanup macros.
5489         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
5490         (RUN_TEST_c_c): Take argument string.  Call new setup and cleanup
5491         macros.
5492         (RUN_TEST_LOOP_c_c): Update call to RUN_TEST_c_c.
5493         (RUN_TEST_cc_c): Take argument string.  Call new setup and cleanup
5494         macros.
5495         (RUN_TEST_LOOP_cc_c): Update call to RUN_TEST_cc_c.
5496         (RUN_TEST_f_i): Take argument string.  Call new setup and cleanup
5497         macros.
5498         (RUN_TEST_LOOP_f_i): Update call to RUN_TEST_f_i.
5499         (RUN_TEST_f_i_tg): Take argument string.  Call new setup and
5500         cleanup macros.
5501         (RUN_TEST_LOOP_f_i_tg): Update call to RUN_TEST_f_i_tg.
5502         (RUN_TEST_ff_i_tg): Take argument string.  Call new setup and
5503         cleanup macros.
5504         (RUN_TEST_LOOP_ff_i_tg): Update call to RUN_TEST_ff_i_tg.
5505         (RUN_TEST_f_b): Take argument string.  Call new setup and cleanup
5506         macros.
5507         (RUN_TEST_LOOP_f_b): Update call to RUN_TEST_f_b.
5508         (RUN_TEST_f_b_tg): Take argument string.  Call new setup and
5509         cleanup macros.
5510         (RUN_TEST_LOOP_f_b_tg): Update call to RUN_TEST_f_b_tg.
5511         (RUN_TEST_f_l): Take argument string.  Call new setup and cleanup
5512         macros.
5513         (RUN_TEST_LOOP_f_l): Update call to RUN_TEST_f_l.
5514         (RUN_TEST_f_L): Take argument string.  Call new setup and cleanup
5515         macros.
5516         (RUN_TEST_LOOP_f_L): Update call to RUN_TEST_f_L.
5517         (RUN_TEST_fFF_11): Take argument string.  Call new setup and
5518         cleanup macros.
5519         (RUN_TEST_LOOP_fFF_11): Update call to RUN_TEST_fFF_11.
5520
5521 2013-05-22  Edjunior Barbosa Machado  <emachado@linux.vnet.ibm.com>
5522
5523         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add si_addr_lsb
5524         to _sifields.sigfault.
5525         (si_addr_lsb): Define new macro.
5526         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
5527         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
5528         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: Likewise.
5529
5530 2013-05-03  Carlos O'Donell  <carlos at redhat.com>
5531
5532         [BZ #15441]
5533         * intl/dcigettext.c (DCIGETTEXT): Skip translating if _nl_find_msg
5534         returns -1.
5535         (_nl_find_msg): Return -1 if recursive call returned -1. If newmem is
5536         null return -1.
5537         * intl/loadmsgcat.c (_nl_load_domain): If _nl_find_msg returns -1 abort
5538         loading the domain.
5539
5540 2013-05-22  Joseph Myers  <joseph@codesourcery.com>
5541
5542         * math/gen-libm-test.pl (parse_args): Do not include expected
5543         result in test name.
5544         * sysdeps/i386/fpu/libm-test-ulps: Update test names.
5545         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5546         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5547         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
5548         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5549         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5550
5551 2013-05-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
5552
5553         * benchtests/Makefile: Sort function entries.
5554
5555         * benchtests/Makefile (bench): Add asin, acos, sinh, cosh,
5556         tanh, asinh, acosh, atanh.
5557         * benchtests/acos-inputs: New file.
5558         * benchtests/acosh-inputs: New file.
5559         * benchtests/asin-inputs: New file.
5560         * benchtests/asinh-inputs: New file.
5561         * benchtests/atanh-inputs: New file.
5562         * benchtests/cosh-inputs: New file.
5563         * benchtests/log-inputs: New file.
5564         * benchtests/sinh-inputs: New file.
5565         * benchtests/tanh-inputs: New file.
5566
5567 2013-05-21  Dmitry V. Levin  <ldv@altlinux.org>
5568
5569         [BZ #15339]
5570         * posix/tst-getaddrinfo4.c: New test.
5571         * posix/Makefile (tests): Add it.
5572
5573 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
5574
5575         [BZ #15339]
5576         * nss/getXXbyYY_r.c (REENTRANT_NAME): Set NETDB_INTERNAL only
5577         when no services were used.
5578         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set h_errno.
5579         Return EAI_SYSTEM if h_errno is NETDB_INTERNAL.
5580
5581 2013-05-21  Andreas Schwab  <schwab@suse.de>
5582
5583         [BZ #15014]
5584         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME))
5585         [HANDLE_DIGITS_DOTS]: Set any_service when digits-dots parsing was
5586         successful.
5587         * nss/digits_dots.c (__nss_hostname_digits_dots): Remove
5588         redundant variable declarations and reallocation of buffer when
5589         parsing as IPv6 address.  Always set NSS status when called from
5590         reentrant functions.  Use NETDB_INTERNAL instead of TRY_AGAIN when
5591         buffer too small.  Correct computation of needed size.
5592         * nss/Makefile (tests): Add test-digits-dots.
5593         * nss/test-digits-dots.c: New test.
5594
5595 2013-05-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
5596
5597         * benchtests/Makefile: Remove instructions for adding
5598         benchmark tests.
5599         * benchtests/README: New file to explain how to execute and
5600         enhance the benchmark tests.
5601
5602 2013-05-21  Andreas Schwab  <schwab@suse.de>
5603
5604         [BZ #15493]
5605         * setjmp/Makefile (tests): Add tst-sigsetjmp.
5606         * setjmp/tst-sigsetjmp.c: New test.
5607
5608 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
5609
5610         * sysdeps/x86_64/memset.S (memset): New implementation.
5611         (__bzero): Likewise.
5612         (__memset_tail): New function.
5613
5614 2013-05-20  Ondřej Bílka  <neleai@seznam.cz>
5615
5616         * sysdeps/x86_64/multiarch/memcpy-sse2-unaligned.S: New file.
5617         * sysdeps/x86_64/multiarch/memcpy.S (__new_memcpy): Add
5618         __memcpy_sse2_unaligned ifunc selection.
5619         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
5620         Add memcpy-sse2-unaligned.S.
5621         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
5622         Add: __memcpy_sse2_unaligned.
5623
5624 2013-05-19  Joseph Myers  <joseph@codesourcery.com>
5625
5626         [BZ #15490]
5627         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
5628         math_force_eval before restoring floating-point envrionment.
5629         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Likewise.
5630         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl):
5631         Likewise.
5632         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Include
5633         <math_private.h>.
5634         (__nearbyintl): Use math_force_eval before restoring
5635         floating-point environment.
5636         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c (__nearbyintl): Likewise.
5637
5638         * math/gen-libm-test.pl (special_functions): Remove.
5639         (parse_args): Don't handle TEST_extra.  Handle functions with no
5640         return value.
5641         * math/libm-test.inc (struct test_sincos_data): Replace with
5642         struct test_fFF_11_data.
5643         (RUN_TEST_sincos): Replace with RUN_TEST_fFF_11.
5644         (RUN_TEST_LOOP_sincos): Replace with RUN_TEST_LOOP_fFF_11.
5645         (sincos_test_data): Change element type to struct
5646         test_fFF_11_data.  Use TEST_fFF_11 instead of TEST_extra.
5647         (sincos_test): Use RUN_TEST_LOOP_fFF_11 instead of
5648         RUN_TEST_LOOP_sincos.
5649         * math/README.libm-test: Don't mention special handling of
5650         individual functions.
5651         * sysdeps/i386/fpu/libm-test-ulps: Update names of sincos tests.
5652         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
5653         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
5654         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
5655         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
5656         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5657
5658         * math/gen-libm-test.pl (get_variable): Remove function.
5659         (parse_args): Don't show pointer parameters to call in test
5660         names.  Use "extra output N" in test names for extra outputs
5661         rather than naming variables.
5662
5663 2013-05-18  Joseph Myers  <joseph@codesourcery.com>
5664
5665         [BZ #15488]
5666         * math/complex.h [__USE_ISOC11 && __GNUC_PREREQ (4, 7) &&
5667         __NO_LONG_DOUBLE_MATH] (CMPLXL): Define macro.
5668         * math/tst-CMPLX.c (do_test) [NO_LONG_DOUBLE]: Do not disable long
5669         double tests.
5670         * make/tst-CMPLX2.c [NO_LONG_DOUBLE] (check_long_double): Do not
5671         disable.
5672         (do_test) [NO_LONG_DOUBLE]: Do not disable call to
5673         check_long_double.
5674
5675         * math/gen-libm-test.pl (@tests): Remove variable.
5676         ($count): Likewise.
5677         (new_test): Remove function.
5678         (show_exceptions): New function.
5679         (special_functions): Use show_exceptions instead of new_test.
5680         (parse_args): Likewise.
5681         (generate_testfile): Pass only function name in generated call to
5682         print_max_error or print_complex_max_error.
5683         (get_ulps): Do not handle complex tests specially.
5684         (output_test): Rename to ...
5685         (get_all_ulps_for_test): ... this.  Return a string rather than
5686         printing to a file.  Require ulps to be present.
5687         (output_ulps): Generate arrays rather than #defines.
5688         * math/libm-test.inc: Move down #include of "libm-test-ulps.h".
5689         (struct ulp_data): New type.
5690         (BUILD_COMPLEX_ULP): Remove macro.
5691         (compare_ulp_data): New function.
5692         (find_ulps): Likewise.
5693         (find_test_ulps): Likewise.
5694         (find_function_ulps): Likewise.
5695         (find_complex_function_ulps): Likewise.
5696         (print_max_error): Determine allowed ulps using
5697         find_function_ulps.
5698         (print_complex_max_error): Determine allowed ulps using
5699         find_complex_function_ulps.
5700         (check_float_internal): Determine max ulps using find_test_ulps.
5701         (check_float): Do not take max_ulp parameter.  Update call to
5702         check_float_internal.
5703         (check_complex): Likewise.
5704         (check_int): Do not take max_ulp parameter.
5705         (check_long): Likewise.
5706         (check_bool): Likewise.
5707         (check_longlong): Likewise.
5708         (struct test_f_f_data): Remove max_ulp field.
5709         (struct test_ff_f_data): Likewise.
5710         (struct test_ff_f_data_nexttoward): Likewise.
5711         (struct test_fi_f_data): Likewise.
5712         (struct test_fl_f_data): Likewise.
5713         (struct test_if_f_data): Likewise.
5714         (struct test_fff_f_data): Likewise.
5715         (struct test_c_f_data): Likewise.
5716         (struct test_f_f1_data): Remove max_ulp and extra_ulp fields.
5717         (struct test_fF_f1_data): Likewise.
5718         (struct test_ffI_f1_data): Likewise.
5719         (struct test_c_c_data): Remove max_ulp field.
5720         (struct test_cc_c_data): Likewise.
5721         (struct test_f_i_data): Likewise.
5722         (struct test_ff_i_data): Likewise.
5723         (struct test_f_l_data): Likewise.
5724         (struct test_f_L_data): Likewise.
5725         (struct test_sincos_data): Likewise.
5726         (RUN_TEST_f_f): Do not handle ulps.
5727         (RUN_TEST_LOOP_f_f): Likewise.
5728         (RUN_TEST_2_f): Likewise.
5729         (RUN_TEST_LOOP_2_f): Likewise.
5730         (RUN_TEST_fff_f): Likewise.
5731         (RUN_TEST_LOOP_fff_f): Likewise.
5732         (RUN_TEST_c_f): Likewise.
5733         (RUN_TEST_LOOP_c_f): Likewise.
5734         (RUN_TEST_f_f1): Likewise.
5735         (RUN_TEST_LOOP_f_f1): Likewise.
5736         (RUN_TEST_fF_f1): Likewise.
5737         (RUN_TEST_LOOP_fF_f1): Likewise.
5738         (RUN_TEST_fI_f1): Likewise.
5739         (RUN_TEST_LOOP_fI_f1): Likewise.
5740         (RUN_TEST_ffI_f1): Likewise.
5741         (RUN_TEST_LOOP_ffI_f1): Likewise.
5742         (RUN_TEST_c_c): Likewise.
5743         (RUN_TEST_LOOP_c_c): Likewise.
5744         (RUN_TEST_cc_c): Likewise.
5745         (RUN_TEST_LOOP_cc_c): Likewise.
5746         (RUN_TEST_f_i): Likewise.
5747         (RUN_TEST_LOOP_f_i): Likewise.
5748         (RUN_TEST_f_i_tg): Likewise.
5749         (RUN_TEST_LOOP_f_i_tg): Likewise.
5750         (RUN_TEST_ff_i_tg): Likewise.
5751         (RUN_TEST_LOOP_ff_i_tg): Likewise.
5752         (RUN_TEST_f_b): Likewise.
5753         (RUN_TEST_LOOP_f_b): Likewise.
5754         (RUN_TEST_f_b_tg): Likewise.
5755         (RUN_TEST_LOOP_f_b_tg): Likewise.
5756         (RUN_TEST_f_l): Likewise.
5757         (RUN_TEST_LOOP_f_l): Likewise.
5758         (RUN_TEST_f_L): Likewise.
5759         (RUN_TEST_LOOP_f_L): Likewise.
5760         (RUN_TEST_sincos): Likewise.
5761         (RUN_TEST_LOOP_sincos): Likewise.
5762
5763 2013-05-17  Joseph Myers  <joseph@codesourcery.com>
5764
5765         [BZ #15480]
5766         [BZ #15485]
5767         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder): For
5768         main case of finite arguments, set rounding mode to FE_TONEAREST
5769         and discard exceptions.
5770         * math/libm-test.inc (remainder_test_data): Disallow "inexact"
5771         exceptions.
5772         (remainder_tonearest_test_data): New variable.
5773         (remainder_test_tonearest): New function.
5774         (remainder_towardzero_test_data): New variable.
5775         (remainder_test_towardzero): New function.
5776         (remainder_downward_test_data): New variable.
5777         (remainder_test_downward): New function.
5778         (remainder_upward_test_data): New variable.
5779         (remainder_test_upward): New function.
5780         (main): Call the new test functions.
5781
5782         * math/libm-test.inc (struct test_f_f1_data): Remove field
5783         extra_init.
5784         (struct test_fF_f1_data): Likewise.
5785         (struct test_ffI_f1_data): Likewise.
5786         (RUN_TEST_f_f1): Remove argument EXTRA_INIT.  Initialize EXTRA_VAR
5787         based on value of EXTRA_EXPECTED.
5788         (RUN_TEST_LOOP_f_f1): Update call to RUN_TEST_f_f1.
5789         (RUN_TEST_fF_f1): Remove argument EXTRA_INIT.  Initialize
5790         EXTRA_VAR based on value of EXTRA_EXPECTED.
5791         (RUN_TEST_LOOP_fF_f1): Update call to RUN_TEST_fF_f1.
5792         (RUN_TEST_fI_f1): Remove argument EXTRA_INIT.  Initialize
5793         EXTRA_VAR based on value of EXTRA_EXPECTED.
5794         (RUN_TEST_LOOP_fI_f1): Update call to RUN_TEST_fI_f1.
5795         (RUN_TEST_ffI_f1): Remove argument EXTRA_INIT.  Initialize
5796         EXTRA_VAR based on value of EXTRA_EXPECTED.
5797         (RUN_TEST_LOOP_ffI_f1): Update call to RUN_TEST_ffI_f1.
5798         * math/gen-libm-test.pl (parse_args): Don't output initializers
5799         for extra output values.
5800
5801         * math/libm-test.inc (check_int): Expect result to be exactly
5802         equal to expected value and do not handle ulps.
5803         (check_long): Likewise.
5804         (check_longlong): Likewise.
5805
5806         * math/libm-test.inc (ceil_test_data): Test for "inexact"
5807         exceptions.
5808         (cimag_test_data): Likewise.
5809         (conj_test_data): Likewise.
5810         (copysign_test_data): Likewise.
5811         (cproj_test_data): Likewise.
5812         (creal_test_data): Likewise.
5813         (fabs_test_data): Likewise.
5814         (fdim_test_data): Likewise.
5815         (finite_test_data): Likewise.
5816         (floor_test_data): Likewise.
5817         (fmax_test_data): Likewise.
5818         (fmin_test_data): Likewise.
5819         (fmod_test_data): Likewise.
5820         (fpclassify_test_data): Likewise.
5821         (frexp_test_data): Likewise.
5822         (ilogb_test_data): Likewise.
5823         (isfinite_test_data): Likewise.
5824         (isgreater_test_data): Likewise.
5825         (isgreaterequal_test_data): Likewise.
5826         (isinf_test_data): Likewise.
5827         (isless_test_data): Likewise.
5828         (islessequal_test_data): Likewise.
5829         (islessgreater_test_data): Likewise.
5830         (isnan_test_data): Likewise.
5831         (isnormal_test_data): Likewise.
5832         (issignaling_test_data): Likewise.
5833         (isunordered_test_data): Likewise.
5834         (ldexp_test_data): Likewise.
5835         (lrint_test_data): Likewise.
5836         (lrint_test_data) [TEST_FLOAT]: Disable one test.
5837         (lrint_test_data) [!TEST_LDOUBLE]: Likewise.
5838         (lrint_tonearest_test_data): Test for "inexact" exceptions.
5839         (lrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
5840         (lrint_tonearest_test_data) [!TEST_LDOUBLE]: Likewise.
5841         (lrint_tonearest_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
5842         test input.
5843         (lrint_towardzero_test_data): Test for "inexact" exceptions.
5844         (lrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
5845         (lrint_towardzero_test_data) [!TEST_LDOUBLE]: Likewise.
5846         (lrint_towardzero_test_data) [TEST_LDOUBLE]: Use "L" suffix on
5847         that test input.
5848         (lrint_downward_test_data): Test for "inexact" exceptions.
5849         (lrint_downward_test_data) [TEST_FLOAT]: Disable one test.
5850         (lrint_downward_test_data) [!TEST_LDOUBLE]: Likewise.
5851         (lrint_downward_test_data) [TEST_LDOUBLE]: Use "L" suffix on that
5852         test input.
5853         (lrint_upward_test_data): Test for "inexact" exceptions.
5854         (lrint_upward_test_data) [TEST_LDOUBLE]: Use "L" suffix on one
5855         test input.
5856         (llrint_test_data): Test for "inexact" exceptions.
5857         (llrint_test_data) [TEST_FLOAT]: Disable one test.
5858         (llrint_tonearest_test_data): Test for "inexact" exceptions.
5859         (llrint_tonearest_test_data) [TEST_FLOAT]: Disable one test.
5860         (llrint_towardzero_test_data): Test for "inexact" exceptions.
5861         (llrint_towardzero_test_data) [TEST_FLOAT]: Disable one test.
5862         (llrint_downward_test_data): Test for "inexact" exceptions.
5863         (llrint_downward_test_data) [TEST_FLOAT]: Disable one test.
5864         (llrint_upward_test_data): Test for "inexact" exceptions.
5865         (logb_test_data): Likewise.
5866         (logb_downward_test_data): Likewise.
5867         (nextafter_test_data): Likewise.
5868         (nexttoward_test_data): Likewise.
5869         (remainder_test_data): Likewise.
5870         (remquo_test_data): Likewise.
5871         (scalbn_test_data): Likewise.
5872         (scalbln_test_data): Likewise.
5873         (signbit_test_data): Likewise.
5874         (sqrt_test_data): Likewise.
5875         (significand_test_data): Likewise.
5876
5877 2013-05-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
5878
5879         [BZ #15424]
5880         * benchtests/bench-modf.c (struct args): Mark arg0 as
5881         volatile.
5882         * scripts/bench.pl: Mark members of struct args as volatile.
5883
5884 2013-05-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
5885
5886         [BZ # 15497]
5887         * sysdeps/powerpc/fpu/e_hypot.c (GET_TWO_FLOAT_WORD): Fix test for
5888         negative infinity on POWER6 or lower.
5889         * sysdeps/powerpc/fpu/e_hypotf.c (GET_TWO_FLOAT_WORD): Likewise.
5890
5891 2013-05-16  Maciej W. Rozycki  <macro@codesourcery.com>
5892
5893         [BZ #15442]
5894         * soft-fp/op-common.h (_FP_FRAC_SNANP): New macro.
5895         (_FP_FRAC_SNANP_SEMIRAW): Likewise.
5896         (_FP_UNPACK_CANONICAL): Use _FP_FRAC_SNANP.
5897         (_FP_CHECK_SIGNAN_SEMIRAW): Use _FP_FRAC_SNANP_SEMIRAW.
5898         (_FP_SETQNAN): New macro.
5899         (_FP_SETQNAN_SEMIRAW): Likewise.
5900         (_FP_PACK_SEMIRAW): Use _FP_SETQNAN.
5901         (_FP_PACK_CANONICAL): Use _FP_SETQNAN.
5902         (_FP_ISSIGNAN): Use _FP_FRAC_SNANP.
5903         (FP_EXTEND): Use _FP_FRAC_SNANP.
5904         (FP_TRUNC): Use _FP_SETQNAN_SEMIRAW.
5905         * soft-fp/testit.c (gen_special_double): Take _FP_QNANNEGATEDP
5906         into account.
5907         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
5908         New macro.
5909         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_QNANNEGATEDP):
5910         Likewise.
5911
5912 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
5913
5914         * math/libm-test.inc (atanh_test_data): Use ERRNO_ERANGE together
5915         with DIVIDE_BY_ZERO_EXCEPTION.
5916         (gamma_test_data): Likewise.
5917         (lgamma_test_data): Likewise.
5918         (log_test_data): Likewise.
5919         (log10_test_data): Likewise.
5920         (log2_test_data): Likewise.
5921         (tgamma_test_data): Likewise.
5922
5923         * math/libm-test.inc (acos_test): Don't test for ENOSYS error.
5924         (acos_test_tonearest): Likewise.
5925         (acos_test_towardzero): Likewise.
5926         (acos_test_downward): Likewise.
5927         (acos_test_upward): Likewise.
5928         (acosh_test): Likewise.
5929         (asin_test): Likewise.
5930         (asin_test_tonearest): Likewise.
5931         (asin_test_towardzero): Likewise.
5932         (asin_test_downward): Likewise.
5933         (asin_test_upward): Likewise.
5934         (asinh_test): Likewise.
5935         (atan_test): Likewise.
5936         (atanh_test): Likewise.
5937         (atan2_test): Likewise.
5938         (cabs_test): Likewise.
5939         (cacos_test): Likewise.
5940         (cacosh_test): Likewise.
5941         (casin_test): Likewise.
5942         (casinh_test): Likewise.
5943         (catan_test): Likewise.
5944         (catanh_test): Likewise.
5945         (cbrt_test): Likewise.
5946         (ccos_test): Likewise.
5947         (ccosh_test): Likewise.
5948         (cexp_test): Likewise.
5949         (clog_test): Likewise.
5950         (clog10_test): Likewise.
5951         (cos_test): Likewise.
5952         (cos_test_tonearest): Likewise.
5953         (cos_test_towardzero): Likewise.
5954         (cos_test_downward): Likewise.
5955         (cos_test_upward): Likewise.
5956         (cosh_test): Likewise.
5957         (cosh_test_tonearest): Likewise.
5958         (cosh_test_towardzero): Likewise.
5959         (cosh_test_downward): Likewise.
5960         (cosh_test_upward): Likewise.
5961         (cpow_test): Likewise.
5962         (csin_test): Likewise.
5963         (csinh_test): Likewise.
5964         (csqrt_test): Likewise.
5965         (ctan_test): Likewise.
5966         (ctan_test_tonearest): Likewise.
5967         (ctan_test_towardzero): Likewise.
5968         (ctan_test_downward): Likewise.
5969         (ctan_test_upward): Likewise.
5970         (ctanh_test): Likewise.
5971         (ctanh_test_tonearest): Likewise.
5972         (ctanh_test_towardzero): Likewise.
5973         (ctanh_test_downward): Likewise.
5974         (ctanh_test_upward): Likewise.
5975         (erf_test): Likewise.
5976         (erfc_test): Likewise.
5977         (exp_test): Likewise.
5978         (exp_test_tonearest): Likewise.
5979         (exp_test_towardzero): Likewise.
5980         (exp_test_downward): Likewise.
5981         (exp_test_upward): Likewise.
5982         (exp10_test): Likewise.
5983         (exp2_test): Likewise.
5984         (expm1_test): Likewise.
5985         (fmod_test): Likewise.
5986         (gamma_test): Likewise.
5987         (hypot_test): Likewise.
5988         (j0_test): Likewise.
5989         (j1_test): Likewise.
5990         (jn_test): Likewise.
5991         (lgamma_test): Likewise.
5992         (log_test): Likewise.
5993         (log10_test): Likewise.
5994         (log1p_test): Likewise.
5995         (log2_test): Likewise.
5996         (logb_test_downward): Likewise.
5997         (pow_test): Likewise.
5998         (pow_test_tonearest): Likewise.
5999         (pow_test_towardzero): Likewise.
6000         (pow_test_downward): Likewise.
6001         (pow_test_upward): Likewise.
6002         (remainder_test): Likewise.
6003         (remquo_test): Likewise.
6004         (sin_test): Likewise.
6005         (sin_test_tonearest): Likewise.
6006         (sin_test_towardzero): Likewise.
6007         (sin_test_downward): Likewise.
6008         (sin_test_upward): Likewise.
6009         (sincos_test): Likewise.
6010         (sinh_test): Likewise.
6011         (sinh_test_tonearest): Likewise.
6012         (sinh_test_towardzero): Likewise.
6013         (sinh_test_downward): Likewise.
6014         (sinh_test_upward): Likewise.
6015         (sqrt_test): Likewise.
6016         (tan_test): Likewise.
6017         (tan_test_tonearest): Likewise.
6018         (tan_test_towardzero): Likewise.
6019         (tan_test_downward): Likewise.
6020         (tan_test_upward): Likewise.
6021         (tanh_test): Likewise.
6022         (tgamma_test): Likewise.
6023         (y0_test): Likewise.
6024         (y1_test): Likewise.
6025         (yn_test): Likewise.
6026
6027         * math/gen-libm-test.pl (adjust_arg): Remove function.
6028         (special_function): Remove argument $in_func.  Only handle
6029         generating output for tables of tests, not inside functions.
6030         (parse_args): Likewise.
6031         (generate_testfile): Remove variable $in_func.  Update call to
6032         parse_args.
6033         * math/libm-test.inc (PLUS_ZERO_INIT): Rename macro to plus_zero.
6034         (MINUS_ZERO_INIT): Rename macro to minus_zero.
6035         (PLUS_INFTY_INIT): Rename macro to plus_infty.
6036         (MINUS_INFTY_INIT): Rename macro to minus_infty.
6037         (QNAN_VALUE_INIT): Rename macro to qnan_value.
6038         (MAX_VALUE_INIT): Rename macro to max_value.
6039         (MIN_VALUE_INIT): Rename macro to min_value.
6040         (MIN_SUBNORM_VALUE_INIT): Rename macro to min_subnorm_value.
6041         (plus_zero): Remove variable.
6042         (minus_zero): Likewise.
6043         (plus_infty): Likewise.
6044         (minus_infty): Likewise.
6045         (qnan_value): Likewise.
6046         (max_value): Likewise.
6047         (min_value): Likewise.
6048         (min_subnorm_value): Likewise.
6049
6050 2013-05-16  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
6051
6052         * crypt/sha512-block.c: Add missing #include <stdint.h> due to
6053         uint64_t or uint32_t usage.
6054         * crypt/sha256-block.c: Likewise.
6055         * crypt/sha256-crypt.c: Likewise.
6056         * crypt/sha256.c: Likewise.
6057         * crypt/sha512-block.c: Likewise.
6058         * crypt/sha512-crypt.c: Likewise.
6059         * crypt/sha512.c: Likewise.
6060         * debug/backtrace-tst.c: Likewise.
6061         * debug/pcprofiledump.c: Likewise.
6062         * elf/cache.c: Likewise.
6063         * elf/dl-cache.c: Likewise.
6064         * elf/dl-misc.c: Likewise.
6065         * elf/dl-profile.c: Likewise.
6066         * elf/dl-support.c: Likewise.
6067         * elf/ldconfig.c: Likewise.
6068         * elf/sprof.c: Likewise.
6069         * iconv/dummy-repertoire.c: Likewise.
6070         * iconv/iconv_charmap.c: Likewise.
6071         * iconv/skeleton.c: Likewise.
6072         * iconvdata/8bit-generic.c: Likewise.
6073         * iconvdata/cp737.h: Likewise.
6074         * iconvdata/cp775.h: Likewise.
6075         * iconvdata/ibm1008.h: Likewise.
6076         * iconvdata/ibm1025.h: Likewise.
6077         * iconvdata/ibm1046.h: Likewise.
6078         * iconvdata/ibm1097.h: Likewise.
6079         * iconvdata/ibm1112.h: Likewise.
6080         * iconvdata/ibm1122.h: Likewise.
6081         * iconvdata/ibm1123.h: Likewise.
6082         * iconvdata/ibm1124.h: Likewise.
6083         * iconvdata/ibm1129.h: Likewise.
6084         * iconvdata/ibm1130.h: Likewise.
6085         * iconvdata/ibm1132.h: Likewise.
6086         * iconvdata/ibm1133.h: Likewise.
6087         * iconvdata/ibm1137.h: Likewise.
6088         * iconvdata/ibm1140.h: Likewise.
6089         * iconvdata/ibm1141.h: Likewise.
6090         * iconvdata/ibm1142.h: Likewise.
6091         * iconvdata/ibm1143.h: Likewise.
6092         * iconvdata/ibm1144.h: Likewise.
6093         * iconvdata/ibm1145.h: Likewise.
6094         * iconvdata/ibm1146.h: Likewise.
6095         * iconvdata/ibm1147.h: Likewise.
6096         * iconvdata/ibm1148.h: Likewise.
6097         * iconvdata/ibm1149.h: Likewise.
6098         * iconvdata/ibm1153.h: Likewise.
6099         * iconvdata/ibm1154.h: Likewise.
6100         * iconvdata/ibm1155.h: Likewise.
6101         * iconvdata/ibm1156.h: Likewise.
6102         * iconvdata/ibm1157.h: Likewise.
6103         * iconvdata/ibm1158.h: Likewise.
6104         * iconvdata/ibm1160.h: Likewise.
6105         * iconvdata/ibm1161.h: Likewise.
6106         * iconvdata/ibm1162.h: Likewise.
6107         * iconvdata/ibm1163.h: Likewise.
6108         * iconvdata/ibm1164.h: Likewise.
6109         * iconvdata/ibm1166.h: Likewise.
6110         * iconvdata/ibm1167.h: Likewise.
6111         * iconvdata/ibm12712.h: Likewise.
6112         * iconvdata/ibm1390.h: Likewise.
6113         * iconvdata/ibm1399.h: Likewise.
6114         * iconvdata/ibm16804.h: Likewise.
6115         * iconvdata/ibm4517.h: Likewise.
6116         * iconvdata/ibm4899.h: Likewise.
6117         * iconvdata/ibm4909.h: Likewise.
6118         * iconvdata/ibm4971.h: Likewise.
6119         * iconvdata/ibm5347.h: Likewise.
6120         * iconvdata/ibm803.h: Likewise.
6121         * iconvdata/ibm856.h: Likewise.
6122         * iconvdata/ibm901.h: Likewise.
6123         * iconvdata/ibm902.h: Likewise.
6124         * iconvdata/ibm9030.h: Likewise.
6125         * iconvdata/ibm9066.h: Likewise.
6126         * iconvdata/ibm921.h: Likewise.
6127         * iconvdata/ibm922.h: Likewise.
6128         * iconvdata/ibm9448.h: Likewise.
6129         * iconvdata/isiri-3342.h: Likewise.
6130         * iconvdata/jis0201.h: Likewise.
6131         * include/link.h: Likewise.
6132         * include/netdb.h: Likewise.
6133         * inet/check_native.c: Likewise.
6134         * inet/check_pf.c: Likewise.
6135         * inet/getipv4sourcefilter.c: Likewise.
6136         * inet/getnameinfo.c: Likewise.
6137         * inet/getsourcefilter.c: Likewise.
6138         * inet/htonl.c: Likewise.
6139         * inet/setipv4sourcefilter.c: Likewise.
6140         * inet/setsourcefilter.c: Likewise.
6141         * inet/test-inet6_opt.c: Likewise.
6142         * inet/tst-network.c: Likewise.
6143         * locale/C-collate.c: Likewise.
6144         * locale/C-ctype.c: Likewise.
6145         * locale/C-time.c: Likewise.
6146         * locale/C-translit.h: Likewise.
6147         * locale/loadarchive.c: Likewise.
6148         * locale/programs/3level.h: Likewise.
6149         * locale/programs/charmap.c: Likewise.
6150         * locale/programs/charmap.h: Likewise.
6151         * locale/programs/ld-address.c: Likewise.
6152         * locale/programs/ld-collate.c: Likewise.
6153         * locale/programs/ld-ctype.c: Likewise.
6154         * locale/programs/ld-identification.c: Likewise.
6155         * locale/programs/ld-measurement.c: Likewise.
6156         * locale/programs/ld-messages.c: Likewise.
6157         * locale/programs/ld-monetary.c: Likewise.
6158         * locale/programs/ld-name.c: Likewise.
6159         * locale/programs/ld-numeric.c: Likewise.
6160         * locale/programs/ld-paper.c: Likewise.
6161         * locale/programs/ld-telephone.c: Likewise.
6162         * locale/programs/ld-time.c: Likewise.
6163         * locale/programs/linereader.c: Likewise.
6164         * locale/programs/locale.c: Likewise.
6165         * locale/programs/locarchive.c: Likewise.
6166         * locale/programs/locfile.h: Likewise.
6167         * locale/programs/repertoire.c: Likewise.
6168         * locale/programs/simple-hash.c: Likewise.
6169         * locale/programs/simple-hash.h: Likewise.
6170         * malloc/memusage.c: Likewise.
6171         * malloc/memusagestat.c: Likewise.
6172         * nis/nis_defaults.c: Likewise.
6173         * nis/nis_hash.c: Likewise.
6174         * nis/nis_print.c: Likewise.
6175         * nis/nis_xdr.c: Likewise.
6176         * nscd/connections.c: Likewise.
6177         * nscd/hstcache.c: Likewise.
6178         * nscd/nscd_gethst_r.c: Likewise.
6179         * nscd/nscd_getserv_r.c: Likewise.
6180         * nscd/nscd_helper.c: Likewise.
6181         * nscd/servicescache.c: Likewise.
6182         * nss/makedb.c: Likewise.
6183         * nss/nss_db/db-XXX.c: Likewise.
6184         * nss/nss_db/db-initgroups.c: Likewise.
6185         * nss/nss_db/db-netgrp.c: Likewise.
6186         * nss/nss_files/files-network.c: Likewise.
6187         * nss/nss_files/files-parse.c: Likewise.
6188         * posix/bug-regex5.c: Likewise.
6189         * posix/fnmatch_loop.c: Likewise.
6190         * posix/regcomp.c: Likewise.
6191         * posix/regexec.c: Likewise.
6192         * posix/tst-rfc3484-2.c: Likewise.
6193         * posix/tst-rfc3484-3.c: Likewise.
6194         * posix/tst-rfc3484.c: Likewise.
6195         * resolv/nss_dns/dns-canon.c: Likewise.
6196         * resolv/nss_dns/dns-network.c: Likewise.
6197         * resolv/res_init.c: Likewise.
6198         * resolv/res_mkquery.c: Likewise.
6199         * resolv/tst-aton.c: Likewise.
6200         * stdlib/cxa_atexit.c: Likewise.
6201         * stdlib/cxa_finalize.c: Likewise.
6202         * stdlib/gen-fpioconst.c: Likewise.
6203         * stdlib/strtol_l.c: Likewise.
6204         * string/tst-endian.c: Likewise.
6205         * sunrpc/auth_des.c: Likewise.
6206         * sunrpc/clnt_udp.c: Likewise.
6207         * sunrpc/rtime.c: Likewise.
6208         * sunrpc/svcauth_des.c: Likewise.
6209         * sunrpc/xdr.c: Likewise.
6210         * sunrpc/xdr_intXX_t.c: Likewise.
6211         * sunrpc/xdr_rec.c: Likewise.
6212         * sysdeps/generic/ldconfig.h: Likewise.
6213         * sysdeps/generic/ldsodefs.h: Likewise.
6214         * sysdeps/generic/memusage.h: Likewise.
6215         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
6216         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: Likewise.
6217         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: Likewise.
6218         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
6219         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
6220         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
6221         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
6222         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
6223         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
6224         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h: Likewise.
6225         * sysdeps/posix/getaddrinfo.c: Likewise.
6226         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
6227         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
6228         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
6229         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
6230         * sysdeps/powerpc/test-gettimebase.c: Likewise.
6231         * sysdeps/unix/sysv/linux/check_pf.c: Likewise.
6232         * sysdeps/unix/sysv/linux/getipv4sourcefilter.c: Likewise.
6233         * sysdeps/unix/sysv/linux/getsourcefilter.c: Likewise.
6234         * sysdeps/unix/sysv/linux/netlinkaccess.h: Likewise.
6235         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: Likewise.
6236         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
6237         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
6238         * sysdeps/unix/sysv/linux/setipv4sourcefilter.c: Likewise.
6239         * sysdeps/unix/sysv/linux/setsourcefilter.c: Likewise.
6240         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: Likewise.
6241         * sysdeps/x86_64/dl-tls.h: Likewise.
6242         * sysdeps/x86_64/dl-tlsdesc.h: Likewise.
6243         * time/alt_digit.c: Likewise.
6244         * time/era.c: Likewise.
6245         * wcsmbs/tst-c16c32-1.c: Likewise.
6246
6247 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
6248
6249         * math/libm-test.inc (struct test_sincos_data): New type.
6250         (RUN_TEST_LOOP_sincos): New macro.
6251         (sincos_test_data): New variable.
6252         (sincos_test): Run tests with RUN_TEST_LOOP_sincos.
6253
6254 2013-05-16  Richard Henderson  <rth@redhat.com>
6255
6256         * math/atest-exp2.c (LIMB64): New macro.
6257         (CONSTSZ): New macro.
6258         (mp_exp1, mp_exp_m1, mp_log2): New variables.
6259         (hexdig): Move ...
6260         (print_mpn_fp): ... to function scope.
6261         (read_mpn_hex): Remove.
6262         (get_log2): Remove.
6263         (exp2_mpn): Use mp_log2.
6264         (main): Use mp_exp1.
6265
6266 2013-05-16  Joseph Myers  <joseph@codesourcery.com>
6267
6268         * math/libm-test.inc: Remove comment about not testing "inexact"
6269         exceptions.
6270         (INEXACT_EXCEPTION): New macro.
6271         (NO_INEXACT_EXCEPTION): Likewise.
6272         (INVALID_EXCEPTION_OK): Update value.
6273         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
6274         (OVERFLOW_EXCEPTION_OK): Likewise.
6275         (UNDERFLOW_EXCEPTION_OK): Likewise.
6276         (IGNORE_ZERO_INF_SIGN): Likewise.
6277         (ERRNO_UNCHANGED): Likewise.
6278         (ERRNO_EDOM): Likewise.
6279         (ERRNO_ERANGE): Likewise.
6280         (test_exceptions): Handle testing "inexact" exceptions.
6281         (nearbyint_test_data): Use NO_INEXACT_EXCEPTION on all tests.
6282         (rint_test_data): Use NO_INEXACT_EXCEPTION and INEXACT_EXCEPTION.
6283         (rint_test_data) [LDBL_MANT_DIG <= 100]: Disable some tests.
6284         (rint_tonearest_test_data): Use NO_INEXACT_EXCEPTION and
6285         INEXACT_EXCEPTION.
6286         (rint_towardzero_test_data): Likewise.
6287         (rint_downward_test_data): Likewise.
6288         (rint_upward_test_data): Likewise.
6289
6290         * math/libm-test.inc (exp_test_data): Use ERRNO_ERANGE together
6291         with OVERFLOW_EXCEPTION.
6292         (exp10_test_data): Likewise.
6293         (exp2_test_data): Likewise.
6294         (expm1_test_data): Likewise.
6295         (lgamma_test_data): Likewise.
6296         (pow_test_data): Likewise.
6297         (tgamma_test_data): Likewise.
6298         (yn_test_data): Remove duplicate test of overflow.
6299
6300         * math/libm-test.inc (struct test_cc_c_data): New type.
6301         (RUN_TEST_LOOP_cc_c): New macro.
6302         (cpow_test_data): New variable.
6303         (cpow_test): Run tests with RUN_TEST_LOOP_cc_c.
6304
6305         * math/libm-test.inc (struct test_f_L_data): New type.
6306         (RUN_TEST_LOOP_f_L): New macro.
6307         (llrint_test_data): New variable.
6308         (llrint_test): Run tests with RUN_TEST_LOOP_f_L.
6309         (llrint_tonearest_test_data): New variable.
6310         (llrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_L.
6311         (llrint_towardzero_test_data): New variable.
6312         (llrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_L.
6313         (llrint_downward_test_data): New variable.
6314         (llrint_test_downward): Run tests with RUN_TEST_LOOP_f_L.
6315         (llrint_upward_test_data): New variable.
6316         (llrint_test_upward): Run tests with RUN_TEST_LOOP_f_L.
6317         (llround_test_data): New variable.
6318         (llround_test): Run tests with RUN_TEST_LOOP_f_L.
6319
6320 2013-05-13  Peter Collingbourne  <pcc@google.com>
6321
6322         * math/atest-exp2.c (get_log2): Remove const attribute.
6323
6324 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
6325
6326         * math/libm-test.inc (struct test_f_l_data): New type.
6327         (RUN_TEST_LOOP_f_l): New macro.
6328         (lrint_test_data): New variable.
6329         (lrint_test): Run tests with RUN_TEST_LOOP_f_l.
6330         (lrint_tonearest_test_data): New variable.
6331         (lrint_test_tonearest): Run tests with RUN_TEST_LOOP_f_l.
6332         (lrint_towardzero_test_data): New variable.
6333         (lrint_test_towardzero): Run tests with RUN_TEST_LOOP_f_l.
6334         (lrint_downward_test_data): New variable.
6335         (lrint_test_downward): Run tests with RUN_TEST_LOOP_f_l.
6336         (lrint_upward_test_data): New variable.
6337         (lrint_test_upward): Run tests with RUN_TEST_LOOP_f_l.
6338         (lround_test_data): New variable.
6339         (lround_test): Run tests with RUN_TEST_LOOP_f_l.
6340
6341 2013-05-15  Peter Collingbourne  <pcc@google.com>
6342
6343         * sysdeps/x86_64/fpu/math_private.h (MOVQ): New macro.
6344         (EXTRACT_WORDS64) Use where appropriate.
6345         (INSERT_WORDS64) Likewise.
6346
6347         * sysdeps/x86_64/fpu/multiarch/s_fma.c (__fma_fma4): Replace xm
6348         constraints with x constraints.
6349         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c (__fmaf_fma4): Likewise.
6350
6351         * malloc/obstack.c (_obstack_compat): Add initializer.
6352
6353 2013-05-15  Edjunior Machado  <emachado@linux.vnet.ibm.com>
6354
6355         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Remove
6356         si_trapno and add si_addr_lsb to _sifields.sigfault.
6357         (si_trapno): Remove macro.
6358         (si_addr_lsb): Define new macro.
6359         (BUS_MCEERR_AR, BUS_MCEERR_AO): Define new values.
6360
6361 2013-05-15  Joseph Myers  <joseph@codesourcery.com>
6362
6363         * math/libm-test.inc (llrint_test): Consistently use TEST_f_L
6364         instead of TEST_f_l.
6365         (llrint_test_tonearest): Likewise.
6366         (llrint_test_towardzero): Likewise.
6367         (llrint_test_downward): Likewise.
6368         (llrint_test_upward): Likewise.
6369         (llround_test): Likewise.
6370
6371         * math/libm-test.inc (struct test_f_i_data): Add comment.
6372         (RUN_TEST_LOOP_f_b): New macro.
6373         (RUN_TEST_LOOP_f_b_tg): Likewise.
6374         (finite_test_data): New variable.
6375         (finite_test): Run tests with RUN_TEST_LOOP_f_b.
6376         (isfinite_test_data): New variable.
6377         (isfinite_test): Run tests with RUN_TEST_LOOP_f_b_tg.
6378         (isinf_test_data): New variable.
6379         (isinf_test): Run tests with RUN_TEST_LOOP_f_b_tg.
6380         (isnan_test_data): New variable.
6381         (isnan_test): Run tests with RUN_TEST_LOOP_f_b_tg.
6382         (isnormal_test_data): New variable.
6383         (isnormal_test): Run tests with RUN_TEST_LOOP_f_b_tg.
6384         (issignaling_test_data): New variable.
6385         (issignaling_test): Run tests with RUN_TEST_LOOP_f_b_tg.
6386         (signbit_test_data): New variable.
6387         (signbit_test): Run tests with RUN_TEST_LOOP_f_b_tg.
6388
6389         * math/libm-test.inc (acos_test_data): Use ERRNO_EDOM together
6390         with INVALID_EXCEPTION.
6391         (acosh_test_data): Likewise.
6392         (asin_test_data): Likewise.
6393         (atanh_test_data): Likewise.
6394         (fmod_test_data): Likewise.
6395         (log_test_data): Likewise.
6396         (log10_test_data): Likewise.
6397         (log2_test_data): Likewise.
6398         (pow_test_data): Likewise.
6399         (sqrt_test_data): Likewise.
6400         (y0_test_data): Likewise.
6401         (y1_test_data): Likewise.
6402         (yn_test_data): Likewise.
6403
6404         * math/libm-test.inc (test_single_errno) [TEST_INLINE]: Disable
6405         function contents.
6406
6407         * math/libm-test.inc (struct test_ff_i_data): New type.
6408         (RUN_TEST_LOOP_ff_i_tg): New macro.
6409         (isgreater_test_data): New variable.
6410         (isgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
6411         (isgreaterequal_test_data): New variable.
6412         (isgreaterequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
6413         (isless_test_data): New variable.
6414         (isless_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
6415         (islessequal_test_data): New variable.
6416         (islessequal_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
6417         (islessgreater_test_data): New variable.
6418         (islessgreater_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
6419         (isunordered_test_data): New variable.
6420         (isunordered_test): Run tests with RUN_TEST_LOOP_ff_i_tg.
6421
6422 2013-05-14  David S. Miller  <davem@davemloft.net>
6423
6424         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6425
6426 2013-05-14  Joseph Myers  <joseph@codesourcery.com>
6427
6428         * math/libm-test.inc (RUN_TEST_LOOP_2_f): Fix whitespace.
6429
6430         * math/libm-test.inc (struct test_fF_f1_data): Change type of
6431         extra_test to int.
6432         (struct test_f_i_data): Change type of max_ulp to int.
6433
6434         * math/libm-test.inc (test_ffI_f1_data): New type.
6435         (RUN_TEST_LOOP_ffI_f1): New macro.
6436         (remquo_test_data): New variable.
6437         (remquo_test): Run tests with RUN_TEST_LOOP_ffI_f1.
6438
6439         * setjmp/tst-setjmp-fp.c: New file.
6440         * setjmp/Makefile (tests): Add tst-setjmp-fp.
6441         (link-libm): New variable.
6442         ($(objpfx)tst-setjmp-fp): Depend on $(link-libm).
6443
6444         * math/libm-test.inc (struct test_f_i_data): New type.
6445         (RUN_TEST_LOOP_f_i): New macro.
6446         (RUN_TEST_LOOP_f_i_tg): Likewise.
6447         (fpclassify_test_data): New variable.
6448         (fpclassify_test): Run tests with RUN_TEST_LOOP_f_i_tg.
6449         (ilogb_test_data): New variable.
6450         (ilogb_test): Run tests with RUN_TEST_LOOP_f_i.
6451
6452         * math/libm-test.inc (scalbln_test): Correct function name in END
6453         call.
6454
6455         * math/libm-test.inc (struct test_f_f1_data): Add comment.
6456         (RUN_TEST_LOOP_fI_f1): New macro.
6457         (frexp_test_data): New variable.
6458         (frexp_test): Run tests with RUN_TEST_LOOP_fI_f1.
6459
6460         * math/libm-test.inc (struct test_fF_f1_data): New type.
6461         (RUN_TEST_LOOP_fF_f1): New macro.
6462         (modf_test_data): New variable.
6463         (modf_test): Run tests with RUN_TEST_LOOP_fF_f1.
6464
6465         * math/libm-test.inc (struct test_f_f1_data): New type.
6466         (RUN_TEST_LOOP_f_f1): New macro.
6467         (gamma_test_data): New variable.
6468         (gamma_test): Run tests with RUN_TEST_LOOP_f_f1.
6469         (lgamma_test_data): New variable.
6470         (lgamma_test): Run tests with RUN_TEST_LOOP_f_f1.
6471
6472 2013-05-13  Carlos O'Donell  <carlos@redhat.com>
6473
6474         * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading.
6475         * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check.
6476         (main): Comment "tls" pseudo-hwcap.
6477
6478 2013-05-13  Joseph Myers  <joseph@codesourcery.com>
6479
6480         * math/libm-test.inc (struct test_fl_f_data): New type.
6481         (RUN_TEST_LOOP_fl_f): New variable.
6482         (scalbln_test_data): New variable.
6483         (scalbln_test): Run tests with RUN_TEST_LOOP_fl_f.
6484
6485         * math/libm-test.inc (struct test_fi_f_data): New type.
6486         (RUN_TEST_LOOP_fi_f): New macro.
6487         (ldexp_test_data): New variable.
6488         (ldexp_test): Run tests with RUN_TEST_LOOP_fi_f.
6489         (scalbn_test_data): New variable.
6490         (scalbn_test): Run tests with RUN_TEST_LOOP_fi_f.
6491
6492         * math/libm-test.inc (struct test_c_f_data): New type.
6493         (RUN_TEST_LOOP_c_f): New macro.
6494         (cabs_test_data): New variable.
6495         (cabs_test): Run tests with RUN_TEST_LOOP_c_f.
6496         (carg_test_data): New variable.
6497         (carg_test): Run tests with RUN_TEST_LOOP_c_f.
6498         (cimag_test_data): New variable.
6499         (cimag_test): Run tests with RUN_TEST_LOOP_c_f.
6500         (creal_test_data): New variable.
6501         (creal_test): Run tests with RUN_TEST_LOOP_c_f.
6502
6503         * math/libm-test.inc (struct test_if_f_data): New type.
6504         (RUN_TEST_LOOP_if_f): New macro.
6505         (jn_test_data): New variable.
6506         (jn_test): Run tests with RUN_TEST_LOOP_if_f.
6507         (yn_test_data): New variable.
6508         (yn_test): Run tests with RUN_TEST_LOOP_if_f.
6509
6510         * math/libm-test.inc (scalbln_test): Consistently use TEST_fl_f.
6511
6512 2013-05-13  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6513
6514         * math/libm-test.inc (M_1_DIV_El): Define using decimal constant.
6515         (log_test_data): Use M_1_DIV_El instead of 1.0 / M_El.
6516
6517 2013-05-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
6518
6519         * benchtests/Makefile (CPPFLAGS-nonlib): Add
6520         -DUSE_CLOCK_GETTIME if USE_CLOCK_GETTIME is defined.
6521         (bench-deps): Add bench-timing.h.
6522         * benchtests-bench-skeleton.c: Include bench-timing.h.
6523         (main): Use TIMING_* macros instead of clock_gettime.
6524         * benchtests/bench-timing.h: New file.
6525
6526         [BZ #14582]
6527         * sysdeps/ieee754/s_lib_version.c (_LIB_VERSION_INTERNAL):
6528         Renamed from _LIB_VERSION.
6529         (_LIB_VERSION): Set as weak alias of _LIB_VERSION_INTERNAL.
6530
6531 2013-05-12  Joseph Myers  <joseph@codesourcery.com>
6532
6533         * math/libm-test.inc (struct test_fff_f_data): New type.
6534         (RUN_TEST_LOOP_fff_f): New macro.
6535         (fma_test_data): New variable.
6536         (fma_test): Run tests with RUN_TEST_LOOP_fff_f.
6537         (fma_towardzero_test_data): New variable.
6538         (fma_test_towardzero): Run tests with RUN_TEST_LOOP_fff_f.
6539         (fma_downward_test_data): New variable.
6540         (fma_test_downward): Run tests with RUN_TEST_LOOP_fff_f.
6541         (fma_upward_test_data): New variable.
6542         (fma_test_upward): Run tests with RUN_TEST_LOOP_fff_f.
6543
6544         * math/libm-test.inc (BUILD_COMPLEX_ULP): New macro.
6545         (struct test_c_c_data): New type.
6546         (RUN_TEST_LOOP_c_c): New macro.
6547         (cacos_test_data): New variable.
6548         (cacos_test): Run tests with RUN_TEST_LOOP_c_c.
6549         (cacosh_test_data): New variable.
6550         (cacosh_test): Run tests with RUN_TEST_LOOP_c_c.
6551         (casin_test_data): New variable.
6552         (casin_test): Run tests with RUN_TEST_LOOP_c_c.
6553         (casinh_test_data): New variable.
6554         (casinh_test): Run tests with RUN_TEST_LOOP_c_c.
6555         (catan_test_data): New variable.
6556         (catan_test): Run tests with RUN_TEST_LOOP_c_c.
6557         (catanh_test_data): New variable.
6558         (catanh_test): Run tests with RUN_TEST_LOOP_c_c.
6559         (ccos_test_data): New variable.
6560         (ccos_test): Run tests with RUN_TEST_LOOP_c_c.
6561         (ccosh_test_data): New variable.
6562         (ccosh_test): Run tests with RUN_TEST_LOOP_c_c.
6563         (cexp_test_data): New variable.
6564         (cexp_test): Run tests with RUN_TEST_LOOP_c_c.
6565         (clog_test_data): New variable.
6566         (clog_test): Run tests with RUN_TEST_LOOP_c_c.
6567         (clog10_test_data): New variable.
6568         (clog10_test): Run tests with RUN_TEST_LOOP_c_c.
6569         (conj_test_data): New variable.
6570         (conj_test): Run tests with RUN_TEST_LOOP_c_c.
6571         (cproj_test_data): New variable.
6572         (cproj_test): Run tests with RUN_TEST_LOOP_c_c.
6573         (csin_test_data): New variable.
6574         (csin_test): Run tests with RUN_TEST_LOOP_c_c.
6575         (csinh_test_data): New variable.
6576         (csinh_test): Run tests with RUN_TEST_LOOP_c_c.
6577         (csqrt_test_data): New variable.
6578         (csqrt_test): Run tests with RUN_TEST_LOOP_c_c.
6579         (ctan_test_data): New variable.
6580         (ctan_test): Run tests with RUN_TEST_LOOP_c_c.
6581         (ctan_tonearest_test_data): New variable.
6582         (ctan_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
6583         (ctan_towardzero_test_data): New variable.
6584         (ctan_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
6585         (ctan_downward_test_data): New variable.
6586         (ctan_test_downward): Run tests with RUN_TEST_LOOP_c_c.
6587         (ctan_upward_test_data): New variable.
6588         (ctan_test_upward): Run tests with RUN_TEST_LOOP_c_c.
6589         (ctanh_test_data): New variable.
6590         (ctanh_test): Run tests with RUN_TEST_LOOP_c_c.
6591         (ctanh_tonearest_test_data): New variable.
6592         (ctanh_test_tonearest): Run tests with RUN_TEST_LOOP_c_c.
6593         (ctanh_towardzero_test_data): New variable.
6594         (ctanh_test_towardzero): Run tests with RUN_TEST_LOOP_c_c.
6595         (ctanh_downward_test_data): New variable.
6596         (ctanh_test_downward): Run tests with RUN_TEST_LOOP_c_c.
6597         (ctanh_upward_test_data): New variable.
6598         (ctanh_test_upward): Run tests with RUN_TEST_LOOP_c_c.
6599         * math/gen-libm-test.pl (get_ulps): Use BUILD_COMPLEX_ULP instead
6600         of BUILD_COMPLEX.
6601
6602         * math/libm-test.inc (struct test_ff_f_data): New type.
6603         (struct test_ff_f_data_nexttoward): Likewise.
6604         (RUN_TEST_LOOP_2_f): New macro.
6605         (RUN_TEST_LOOP_ff_f): Likewise.
6606         (atan2_test_data): New variable.
6607         (atan2_test): Run tests with RUN_TEST_LOOP_ff_f.
6608         (copysign_test_data): New variable.
6609         (copysign_test): Run tests with RUN_TEST_LOOP_ff_f.
6610         (fdim_test_data): New variable.
6611         (fdim_test): Run tests with RUN_TEST_LOOP_ff_f.
6612         (fmax_test_data): New variable.
6613         (fmax_test): Run tests with RUN_TEST_LOOP_ff_f.
6614         (fmin_test_data): New variable.
6615         (fmin_test): Run tests with RUN_TEST_LOOP_ff_f.
6616         (fmod_test_data): New variable.
6617         (fmod_test): Run tests with RUN_TEST_LOOP_ff_f.
6618         (hypot_test_data): New variable.
6619         (hypot_test): Run tests with RUN_TEST_LOOP_ff_f.
6620         (nextafter_test_data): New variable.
6621         (nextafter_test): Run tests with RUN_TEST_LOOP_ff_f.
6622         (nexttoward_test_data): New variable.
6623         (nexttoward_test): Run tests with RUN_TEST_LOOP_ff_f.
6624         (pow_test_data): New variable.
6625         (pow_test): Run tests with RUN_TEST_LOOP_ff_f.
6626         (pow_tonearest_test_data): New variable.
6627         (pow_test_tonearest): Run tests with RUN_TEST_LOOP_ff_f.
6628         (pow_towardzero_test_data): New variable.
6629         (pow_test_towardzero): Run tests with RUN_TEST_LOOP_ff_f.
6630         (pow_downward_test_data): New variable.
6631         (pow_test_downward): Run tests with RUN_TEST_LOOP_ff_f.
6632         (pow_upward_test_data): New variable.
6633         (pow_test_upward): Run tests with RUN_TEST_LOOP_ff_f.
6634         (remainder_test_data): New variable.
6635         (remainder_test): Run tests with RUN_TEST_LOOP_ff_f.
6636         (scalb_test_data): New variable.
6637         (scalb_test): Run tests with RUN_TEST_LOOP_ff_f.
6638         * sysdeps/i386/fpu/libm-test-ulps: Update.
6639
6640 2013-05-11  Joseph Myers  <joseph@codesourcery.com>
6641
6642         * math/libm-test.inc (fma_test): Use max_value instead of local
6643         variable fltmax.
6644         (nextafter_test): Likewise.
6645
6646         * math/libm-test.inc (acos_towardzero_test_data): New variable.
6647         (acos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6648         (acos_downward_test_data): New variable.
6649         (acos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6650         (acos_upward_test_data): New variable.
6651         (acos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6652         (acosh_test_data): New variable.
6653         (acosh_test): Run tests with RUN_TEST_LOOP_f_f.
6654         (asin_test_data): New variable.
6655         (asin_test): Run tests with RUN_TEST_LOOP_f_f.
6656         (asin_tonearest_test_data): New variable.
6657         (asin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6658         (asin_towardzero_test_data): New variable.
6659         (asin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6660         (asin_downward_test_data): New variable.
6661         (asin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6662         (asin_upward_test_data): New variable.
6663         (asin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6664         (asinh_test_data): New variable.
6665         (asinh_test): Run tests with RUN_TEST_LOOP_f_f.
6666         (atan_test_data): New variable.
6667         (atan_test): Run tests with RUN_TEST_LOOP_f_f.
6668         (atanh_test_data): New variable.
6669         (atanh_test): Run tests with RUN_TEST_LOOP_f_f.
6670         (cbrt_test_data): New variable.
6671         (cbrt_test): Run tests with RUN_TEST_LOOP_f_f.
6672         (ceil_test_data): New variable.
6673         (ceil_test): Run tests with RUN_TEST_LOOP_f_f.
6674         (cos_test_data): New variable.
6675         (cos_test): Run tests with RUN_TEST_LOOP_f_f.
6676         (cos_tonearest_test_data): New variable.
6677         (cos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6678         (cos_towardzero_test_data): New variable.
6679         (cos_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6680         (cos_downward_test_data): New variable.
6681         (cos_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6682         (cos_upward_test_data): New variable.
6683         (cos_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6684         (cosh_test_data): New variable.
6685         (cosh_test): Run tests with RUN_TEST_LOOP_f_f.
6686         (cosh_tonearest_test_data): New variable.
6687         (cosh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6688         (cosh_towardzero_test_data): New variable.
6689         (cosh_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6690         (cosh_downward_test_data): New variable.
6691         (cosh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6692         (cosh_upward_test_data): New variable.
6693         (cosh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6694         (erf_test_data): New variable.
6695         (erf_test): Run tests with RUN_TEST_LOOP_f_f.
6696         (erfc_test_data): New variable.
6697         (erfc_test): Run tests with RUN_TEST_LOOP_f_f.
6698         (exp_test_data): New variable.
6699         (exp_test): Run tests with RUN_TEST_LOOP_f_f.
6700         (exp_tonearest_test_data): New variable.
6701         (exp_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6702         (exp_towardzero_test_data): New variable.
6703         (exp_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6704         (exp_downward_test_data): New variable.
6705         (exp_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6706         (exp_upward_test_data): New variable.
6707         (exp_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6708         (exp10_test_data): New variable.
6709         (exp10_test): Run tests with RUN_TEST_LOOP_f_f.
6710         (exp2_test_data): New variable.
6711         (exp2_test): Run tests with RUN_TEST_LOOP_f_f.
6712         (expm1_test_data): New variable.
6713         (expm1_test): Run tests with RUN_TEST_LOOP_f_f.
6714         (fabs_test_data): New variable.
6715         (fabs_test): Run tests with RUN_TEST_LOOP_f_f.
6716         (floor_test_data): New variable.
6717         (floor_test): Run tests with RUN_TEST_LOOP_f_f.
6718         (j0_test_data): New variable.
6719         (j0_test): Run tests with RUN_TEST_LOOP_f_f.
6720         (j1_test_data): New variable.
6721         (j1_test): Run tests with RUN_TEST_LOOP_f_f.
6722         (log_test_data): New variable.
6723         (log_test): Run tests with RUN_TEST_LOOP_f_f.
6724         (log10_test_data): New variable.
6725         (log10_test): Run tests with RUN_TEST_LOOP_f_f.
6726         (log1p_test_data): New variable.
6727         (log1p_test): Run tests with RUN_TEST_LOOP_f_f.
6728         (log2_test_data): New variable.
6729         (log2_test): Run tests with RUN_TEST_LOOP_f_f.
6730         (logb_test_data): New variable.
6731         (logb_test): Run tests with RUN_TEST_LOOP_f_f.
6732         (logb_downward_test_data): New variable.
6733         (logb_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6734         (nearbyint_test_data): New variable.
6735         (nearbyint_test): Run tests with RUN_TEST_LOOP_f_f.
6736         (rint_test_data): New variable.
6737         (rint_test): Run tests with RUN_TEST_LOOP_f_f.
6738         (rint_tonearest_test_data): New variable.
6739         (rint_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6740         (rint_towardzero_test_data): New variable.
6741         (rint_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6742         (rint_downward_test_data): New variable.
6743         (rint_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6744         (rint_upward_test_data): New variable.
6745         (rint_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6746         (round_test_data): New variable.
6747         (round_test): Run tests with RUN_TEST_LOOP_f_f.
6748         (sin_test_data): New variable.
6749         (sin_test): Run tests with RUN_TEST_LOOP_f_f.
6750         (sin_tonearest_test_data): New variable.
6751         (sin_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6752         (sin_towardzero_test_data): New variable.
6753         (sin_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6754         (sin_downward_test_data): New variable.
6755         (sin_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6756         (sin_upward_test_data): New variable.
6757         (sin_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6758         (sinh_test_data): New variable.
6759         (sinh_test): Run tests with RUN_TEST_LOOP_f_f.
6760         (sinh_tonearest_test_data): New variable.
6761         (sinh_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6762         (sinh_towardzero_test_data): New variable.
6763         (sinh_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6764         (sinh_downward_test_data): New variable.
6765         (sinh_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6766         (sinh_upward_test_data): New variable.
6767         (sinh_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6768         (sqrt_test_data): New variable.
6769         (sqrt_test): Run tests with RUN_TEST_LOOP_f_f.
6770         (tan_test_data): New variable.
6771         (tan_test): Run tests with RUN_TEST_LOOP_f_f.
6772         (tan_tonearest_test_data): New variable.
6773         (tan_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6774         (tan_towardzero_test_data): New variable.
6775         (tan_test_towardzero): Run tests with RUN_TEST_LOOP_f_f.
6776         (tan_downward_test_data): New variable.
6777         (tan_test_downward): Run tests with RUN_TEST_LOOP_f_f.
6778         (tan_upward_test_data): New variable.
6779         (tan_test_upward): Run tests with RUN_TEST_LOOP_f_f.
6780         (tanh_test_data): New variable.
6781         (tanh_test): Run tests with RUN_TEST_LOOP_f_f.
6782         (tgamma_test_data): New variable.
6783         (tgamma_test): Run tests with RUN_TEST_LOOP_f_f.
6784         (trunc_test_data): New variable.
6785         (trunc_test): Run tests with RUN_TEST_LOOP_f_f.
6786         (y0_test_data): New variable.
6787         (y0_test): Run tests with RUN_TEST_LOOP_f_f.
6788         (y1_test_data): New variable.
6789         (y1_test): Run tests with RUN_TEST_LOOP_f_f.
6790         (significand_test_data): New variable.
6791         (significand_test): Run tests with RUN_TEST_LOOP_f_f.
6792
6793 2013-05-10  Christian Grönke  <cgr_bugs@sysgo.com>
6794
6795         [BZ #12387]
6796         * sysdeps/unix/sysv/linux/sh/getgid.c: New file.
6797
6798 2013-05-10  Pino Toscano  <toscano.pino@tiscali.it>
6799
6800         * sysdeps/mach/hurd/bits/statvfs.h: Add ST_NOATIME.
6801
6802 2013-05-10  Andreas Jaeger  <aj@suse.de>
6803
6804         [BZ #15448]
6805         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_SET_S)
6806         (__CPU_CLR_S, __CPU_ISSET_S): Avoid integer overflow.
6807
6808 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
6809
6810         * math/gen-libm-test.pl (adjust_arg): New function.
6811         (special_functions): Handle generating output in both functions
6812         and arrays.
6813         (parse_args): Likewise.
6814         (generate_testfile): Handle START_DATA and END_DATA.  Pass extra
6815         $in_func argument to parse_args.
6816         * math/libm-test.inc (struct test_f_f_data): New type.
6817         (IF_ROUND_INIT_): New macro.
6818         (IF_ROUND_INIT_FE_DOWNWARD): Likewise.
6819         (IF_ROUND_INIT_FE_TONEAREST): Likewise.
6820         (IF_ROUND_INIT_FE_TOWARDZERO): Likewise.
6821         (IF_ROUND_INIT_FE_UPWARD): Likewise.
6822         (ROUND_RESTORE_): Likewise.
6823         (ROUND_RESTORE_FE_DOWNWARD): Likewise.
6824         (ROUND_RESTORE_FE_TONEAREST): Likewise.
6825         (ROUND_RESTORE_FE_TOWARDZERO): Likewise.
6826         (ROUND_RESTORE_FE_UPWARD): Likewise.
6827         (RUN_TEST_LOOP_f_f): New macro.
6828         (acos_test_data): New variable.
6829         (acos_test): Run tests with RUN_TEST_LOOP_f_f.
6830         (acos_tonearest_test_data): New variable.
6831         (acos_test_tonearest): Run tests with RUN_TEST_LOOP_f_f.
6832
6833 2013-05-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
6834
6835         * benchtests/bench-skeleton.c (startup): Fix coding style.
6836
6837 2013-05-10  Joseph Myers  <joseph@codesourcery.com>
6838
6839         [BZ #6809]
6840         * math/w_tgamma.c (__tgamma): Also call __kernel_standard for
6841         negative infinity argument.
6842         * math/w_tgammaf.c (__tgammaf): Also call __kernel_standard_f for
6843         negative infinity argument.
6844         * math/w_tgammal.c (__tgammal): Also call __kernel_standard_l for
6845         negative infinity argument.
6846         * math/libm-test.inc (tgamma_test): Expect errno to be set for
6847         domain errors.
6848
6849 2013-05-10  Florian Weimer  <fweimer@redhat.com>
6850
6851         * elf/sprof.c (load_profdata): Use fstat64 instead of fstat.
6852         * iconv/iconv_charmap.c (charmap_conversion): Likewise.
6853         * iconv/iconv_prog.c (main): Likewise.
6854         * locale/programs/charmap-dir.c (charmap_readdir)
6855         (fopen_uncompressed): Likewise.
6856         * locale/programs/locfile.c (siblings_uncached)
6857         (write_locale_data): Use lstat64 instead of lstat.
6858         * sunrpc/rpc_main.c (find_cpp, checkfiles): Use stat64 instead of
6859         stat.
6860
6861 2013-05-10  Andreas Jaeger  <aj@suse.de>
6862
6863         [BZ #15395]
6864         * sunrpc/rpc_main.c (main): Invoke setlocale and textdomain for
6865         localization.
6866         Include <locale.h>.
6867
6868 2013-05-09  Carlos O'Donell  <carlos@redhat.com>
6869
6870         * elf/dl-close.c (_dl_close_worker): Add comments.
6871
6872 2013-05-09  Joseph Myers  <joseph@codesourcery.com>
6873
6874         [BZ #15359]
6875         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (c): Use 106 bits for
6876         high part of pi/2.
6877         (__ieee754_rem_pio2l): Update comments.
6878
6879         [BZ #15429]
6880         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c (c): Use 113 bits for
6881         high part of pi/2.
6882         (__ieee754_rem_pio2l): Update comments.
6883
6884         * math/libm-test.inc (M_SQRT_2_2): Remove macro.
6885         (csqrt_test): Use M_SQRT1_2l instead of M_SQRT_2_2.
6886
6887         * math/libm-test.inc (carg_test): Use M_PI_34l instead of 3 *
6888         M_PI_4l.
6889
6890         * math/libm-test.inc (M_PI_34l): Define using decimal constant.
6891         (M_PI_34_LOG10El): Likewise.
6892         (M_PI2_LOG10El): Likewise.
6893         (M_PI4_LOG10El): Likewise.
6894         (M_PI_LOG10El): Likewise.
6895
6896 2013-05-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
6897
6898         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6899
6900 2013-05-08  Joseph Myers  <joseph@codesourcery.com>
6901
6902         * math/libm-test.inc (PLUS_ZERO_INIT): New macro.
6903         (MINUS_ZERO_INIT): Likewise.
6904         (PLUS_INFTY_INIT): Likewise.
6905         (MINUS_INFTY_INIT): Likewise.
6906         (QNAN_VALUE_INIT): Likewise.
6907         (MAX_VALUE_INIT): Likewise.
6908         (MIN_VALUE_INIT): Likewise.
6909         (MIN_SUBNORM_VALUE_INIT): Likewise.
6910         (plus_zero): Initialize with PLUS_ZERO_INIT.
6911         (minus_zero): Initialize with MINUS_ZERO_INIT.
6912         (plus_infty): Initialize with PLUS_INFTY_INIT.
6913         (minus_infty): Initialize with MINUS_INFTY_INIT.
6914         (qnan_value): Initialize with QNAN_VALUE_INIT.
6915         (max_value): Initialize with MAX_VALUE_INIT.
6916         (min_value): Initialize with MIN_VALUE_INIT.
6917         (min_subnorm_value): Initialize with MIN_SUBNORM_VALUE_INIT.
6918
6919         * math/libm-test.inc (RUN_TEST_if_f): New macro.
6920         (jn_test): Use TEST_if_f instead of TEST_ff_f.
6921         (ldexp_text): Use TEST_fi_i instead of TEST_ff_f.
6922         (yn_test): Use TEST_if_f instead of TEST_ff_f.
6923
6924         * math/libm-test.inc (RUN_TEST_f_f): New macro.
6925         (RUN_TEST_2_f): Likewise.
6926         (RUN_TEST_ff_f): Likewise.
6927         (RUN_TEST_fi_f): Likewise.
6928         (RUN_TEST_fl_f): Likewise.
6929         (RUN_TEST_fff_f): Likewise.
6930         (RUN_TEST_c_f): Likewise.
6931         (RUN_TEST_f_f1): Likewise.
6932         (RUN_TEST_fF_f1): Likewise.
6933         (RUN_TEST_fI_f1): Likewise.
6934         (RUN_TEST_ffI_f1): Likewise.
6935         (RUN_TEST_c_c): Likewise.
6936         (RUN_TEST_cc_c): Likewise.
6937         (RUN_TEST_f_i): Likewise.
6938         (RUN_TEST_f_i_tg): Likewise.
6939         (RUN_TEST_ff_i_tg): Likewise.
6940         (RUN_TEST_f_b): Likewise.
6941         (RUN_TEST_f_b_tg): Likewise.
6942         (RUN_TEST_f_l): Likewise.
6943         (RUN_TEST_f_L): Likewise.
6944         (RUN_TEST_sincos): Likewise.
6945         * math/gen-libm-test.pl (new_test): Take new argument to indicate
6946         whether to show exceptions.  Do not include ");\n" in return
6947         value.
6948         (special_functions): Output call to RUN_TEST_sincos instead of
6949         check_float calls.  Update calls to new_test.
6950         (parse_args): Output call to single RUN_TEST_* macro instead of
6951         check_* calls and other assignments.  Update calls to new_test.
6952
6953         [BZ #2546]
6954         [BZ #2560]
6955         [BZ #5159]
6956         [BZ #15426]
6957         * sysdeps/ieee754/k_standard.c (__kernel_standard): Copy sign of
6958         input to result for tgamma overflow.
6959         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Include <float.h>.
6960         (gamma_coeff): New variable.
6961         (NCOEFF): New macro.
6962         (gamma_positive): New function.
6963         (__ieee754_gamma_r): Handle positive infinity, NaN, overflow and
6964         underflow here.  Use gamma_positive instead of exp (lgamma) for
6965         other arguments.
6966         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Include <float.h>.
6967         (gamma_coeff): New variable.
6968         (NCOEFF): New macro.
6969         (gammaf_positive): New function.
6970         (__ieee754_gammaf_r): Handle positive infinity, NaN, overflow and
6971         underflow here.  Use gamma_positive instead of exp (lgamma) for
6972         other arguments.
6973         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Include <float.h>.
6974         (gamma_coeff): New variable.
6975         (NCOEFF): New macro.
6976         (gammal_positive): New function.
6977         (__ieee754_gammal_r): Handle positive infinity, NaN, overflow and
6978         underflow here.  Use gamma_positive instead of exp (lgamma) for
6979         other arguments.
6980         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Include <float.h>.
6981         (gamma_coeff): New variable.
6982         (NCOEFF): New macro.
6983         (gammal_positive): New function.
6984         (__ieee754_gammal_r): Handle positive infinity, overflow and
6985         underflow here.  Handle NaN the same as positive infinity.  Remove
6986         check x < 0xffffffff for negative integers.  Use gamma_positive
6987         instead of exp (lgamma) for other arguments.
6988         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Include <float.h>.
6989         (gamma_coeff): New variable.
6990         (NCOEFF): New macro.
6991         (gammal_positive): New function.
6992         * sysdeps/ieee754/dbl-64/gamma_product.c: New file.
6993         * sysdeps/ieee754/dbl-64/gamma_productf.c: Likewise.
6994         * sysdeps/ieee754/ldbl-128/gamma_productl.c: Likewise.
6995         * sysdeps/ieee754/ldbl-128ibm/gamma_productl.c: Likewise.
6996         * sysdeps/ieee754/ldbl-96/gamma_product.c: Likewise.
6997         * sysdeps/ieee754/ldbl-96/gamma_productl.c: Likewise.
6998         * sysdeps/generic/math_private.h (__gamma_productf): New
6999         prototype.
7000         (__gamma_product): Likewise.
7001         (__gamma_productl): Likewise.
7002         * math/Makefile (libm-calls): Add gamma_product.
7003         * math/libm-test.inc (tgamma_test): Add more tests.
7004         * sysdeps/i386/fpu/libm-test-ulps: Update.
7005         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7006
7007 2013-05-08  Ondřej Bílka  <neleai@seznam.cz>
7008
7009         * benchtests/bench-skeleton.c (main): Preheat CPU.
7010
7011 2013-05-07  Aurelien Jarno <aurelien@aurel32.net>
7012
7013         * misc/sys/param.h (DEV_BSIZE): Define only if not already defined.
7014
7015 2013-05-07  Roland McGrath  <roland@hack.frob.com>
7016
7017         * sysdeps/generic/ldsodefs.h [IS_IN_rtld]: Declare _dl_skip_args
7018         and _dl_skip_args_internal.
7019
7020 2013-05-07  Carlos O'Donell  <carlos@redhat.com>
7021
7022         * manual/message.texi (Message Translation): Talk about users.
7023         Message to key mapping impacts design.
7024
7025 2013-05-06  Roland McGrath  <roland@hack.frob.com>
7026
7027         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: New file.
7028
7029         * elf/dl-open.c: Remove declaration of _dl_sysdep_start.
7030
7031         * sysdeps/unix/sysv/linux/wordsize-64/glob64.c: Moved to ...
7032         * sysdeps/wordsize-64/glob64.c: ... here.
7033
7034         * sysdeps/generic/not-cancel.h (NO_CANCELLATION): New macro.
7035         (pause_not_cancel, nanosleep_not_cancel, sigsuspend_not_cancel):
7036         New macros.
7037
7038         * debug/getlogin_r_chk.c: Moved to ...
7039         * login/getlogin_r_chk.c: ... here.
7040         * debug/Makefile (routines): Move getlogin_r_chk to ...
7041         * login/Makefile (routines): ... here.
7042         * debug/Versions (libc: GLIBC_2.4): Move getlogin_r_chk to ...
7043         * login/Versions (libc: GLIBC_2.4): ... here.
7044
7045         * io/poll.c (__poll): Renamed from poll.
7046         Add libc_hidden_def.
7047         (poll): Define as weak alias.
7048
7049         * debug/ptsname_r_chk.c: Moved to ...
7050         * login/ptsname_r_chk.c: ... here.
7051         * debug/Makefile (routines): Move ptsname_r_chk to ...
7052         * login/Makefile (routines): ... here.
7053         * debug/Versions (libc: GLIBC_2.4): Move __ptsname_r_chk to ...
7054         * login/Versions (libc: GLIBC_2.4): ... here.
7055
7056         * posix/getlogin.c: Moved to ...
7057         * login/getlogin.c: ... here.
7058         * posix/getlogin_r.c: Moved to ...
7059         * login/getlogin_r.c: ... here.
7060         * posix/getlogin_r.c: Moved to ...
7061         * login/getlogin_r.c: ... here.
7062         * posix/Makefile (routines): Move getlogin, getlogin_r, setlogin to ...
7063         * login/Makefile (routines): ... here.
7064         * posix/Versions (libc: GLIBC_2.0): Move setlogin to ...
7065         * login/Versions (libc: GLIBC_2.0): ... here.
7066
7067         * resource/setrlimit.c (__setrlimit): Renamed from setrlimit.
7068         (setrlimit): Define as weak alias.
7069
7070         * sysdeps/posix/truncate.c (__truncate): Renamed from truncate.
7071         Call __ names for open, ftruncate, and close.
7072         For LENGTH==0 case, just use O_TRUNC rather than calling ftruncate.
7073         (truncate): Define as weak alias.
7074
7075 2013-05-06  Joseph Myers  <joseph@codesourcery.com>
7076
7077         * math/gen-libm-test.pl (parse_args): Initialize x before each
7078         test of frexp, modf and remquo.
7079
7080         * math/libm-test.inc (gamma_test): Consistently use TEST_f_f1 to
7081         test signgam value.
7082
7083 2013-05-06  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7084
7085         [BZ #15418]
7086         [BZ #15419]
7087         * sysdeps/powerpc/fpu/e_hypot.c: Fix spurious FP exception generated by
7088         internal tests.
7089         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
7090
7091 2013-05-06  Roland McGrath  <roland@hack.frob.com>
7092
7093         * elf/dl-writev.h: New file.
7094         * elf/dl-misc.c: Include it.
7095         (_dl_debug_vdprintf): Call _dl_writev instead of __writev et al.
7096         * sysdeps/unix/sysv/linux/dl-writev.h: New file.
7097
7098 2013-05-04  Joseph Myers  <joseph@codesourcery.com>
7099
7100         * math/libm-test.inc (noXFails): Remove variable.
7101         (noXPasses): Likewise.
7102         (BUILD_COMPLEX_INT): Remove macro.
7103         (print_screen): Remove xfail argument.
7104         (print_screen_max_error): Likewise.
7105         (update_stats): Likewise.
7106         (print_max_error): Likewise.  Update calls to other affected
7107         functions.
7108         (print_complex_max_error): Likewise.
7109         (test_single_exception): Update calls to print_screen.
7110         (test_single_errno): Likewise.
7111         (check_float_internal): Remove xfail argument.  Update calls to
7112         other affected functions.
7113         (check_float): Likewise.
7114         (check_complex): Likewise.
7115         (check_int): Likewise.
7116         (check_long): Likewise.
7117         (check_bool): Likewise.
7118         (check_longlong): Likewise.
7119         (main): Don't print noXFails and noXPasses.
7120         * math/gen-libm-test.pl (top level): Don't mention expected
7121         failure handling in comment.
7122         (new_test): Don't handle expected failures.
7123         (parse_args): Don't mention expected failure handling in comment.
7124         (generate_testfile): Don't handle expected failures.
7125         (parse_ulps): Likewise.
7126         (print_ulps_file): Likewise.
7127         (get_failure): Remove function.
7128         (output_test): Don't handle expected failures.
7129         * make/README.libm-test: Don't mention expected failure handling.
7130
7131         * math/libm-test.inc (plus_zero): Make const.  Add initializer.
7132         (minus_zero): Likewise.
7133         (plus_infty): Likewise.
7134         (minus_infty): Likewise.
7135         (qnan_value): Likewise.
7136         (max_value): Likewise.
7137         (min_value): Likewise.
7138         (min_subnorm_value): Likewise.
7139         (initialize): Do not initialize those variables dynamically.
7140
7141 2013-05-03  Roland McGrath  <roland@hack.frob.com>
7142
7143         * io/open.c (__open_2): Moved to ...
7144         * io/open_2.c: ... this new file.
7145         * io/open64.c (__open64_2): Moved to ...
7146         * io/open64_2.c: ... this new file.
7147         * io/openat.c (__openat_2): Moved to ...
7148         * io/openat_2.c: ... this new file.
7149         * io/openat64.c (__openat64_2): Moved to ...
7150         * io/openat64_2.c: ... this new file.
7151         * io/Makefile (routines): Add them.
7152         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Remove them.
7153         * sysdeps/unix/sysv/linux/open_2.c: File removed.
7154         * sysdeps/unix/sysv/linux/open64_2.c: File removed.
7155         * sysdeps/unix/sysv/linux/openat.c (__OPENAT_2): Removed.
7156         * sysdeps/unix/sysv/linux/openat64.c (__OPENAT_2): Removed.
7157         * sysdeps/unix/sysv/linux/wordsize-64/openat.c (__openat_2): Removed.
7158         (__openat64): Add hidden_ver.
7159         * sysdeps/mach/hurd/open.c (__open_2, __open64_2): Removed.
7160         * sysdeps/mach/hurd/openat.c (__openat_2): Removed.
7161
7162         * elf/dl-sysdep.c (_dl_sysdep_start) [NEED_DL_SYSINFO]:
7163         Separately conditionalize setting of GLRO(dl_sysinfo) so
7164         that the GLRO(dl_sysinfo_dso) test is under [NEED_DL_SYSINFO_DSO]
7165         as well, but the actual setting is only under [NEED_DL_SYSINFO].
7166
7167 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7168
7169         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_time symbol.
7170         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Add __vdso_time
7171         definition.
7172         (VDSO_IFUNC_RET): Cast to void * to silence compiler warning.
7173         * sysdeps/unix/sysv/linux/powerpc/init-first.c
7174         (_libc_vdso_platform_setup): Add __vdso_time initialization.
7175         * sysdeps/unix/sysv/linux/powerpc/time.c: New file: time implementation
7176         for PowerPC using vDSO where is avaliable or gettimeofday as a fallback.
7177
7178 2013-05-03  Joseph Myers  <joseph@codesourcery.com>
7179
7180         * math/libm-test.inc (lgamma_test): Consistently use TEST_f_f1 to
7181         test signgam value.
7182
7183         * math/libm-test.inc (hypot_test): Do not use
7184         IGNORE_ZERO_INF_SIGN.
7185
7186 2013-05-03  Andreas Jaeger  <aj@suse.de>
7187
7188         * sysdeps/gnu/netinet/tcp.h (TCP_TIMESTAMP): New value, from
7189         Linux 3.9.
7190         * sysdeps/unix/sysv/linux/bits/socket.h (PF_VSOCK, AF_VSOCK): Add.
7191         (PF_MAX): Adjust for VSOCK change.
7192
7193 2013-05-03  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7194
7195         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7196
7197 2013-05-02  Carlos O'Donell  <carlos@redhat.com>
7198
7199         [BZ #15264]
7200         * localedata/locales/en_CA (LC_MESSAGES): Define yesstr and nostr.
7201         * localedata/locales/es_AR (LC_MESSAGES): Copy es_ES.
7202         * localedata/locales/es_ES (LC_MESSAGES): Define yesstr and nostr.
7203
7204 2013-05-02  David S. Miller  <davem@davemloft.net>
7205
7206         * sysdeps/sparc/fpu/libm-test-ulps: Update.
7207
7208 2013-05-01  Ondřej Bílka  <neleai@seznam.cz>
7209
7210         * string/bits/string2.h (__strcmp_cg): Call __strcmp_gc.
7211
7212 2013-05-01  Roland McGrath  <roland@hack.frob.com>
7213
7214         * sysdeps/posix/opendir.c: Include <sys/param.h> to get MIN/MAX macros.
7215
7216 2013-05-01  Richard Smith  <richard@metafoo.co.uk>
7217
7218         [BZ #14952]
7219         * misc/sys/cdefs.h (__extern_inline, __extern_always_inline)
7220         [__GNUC__ && (__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
7221         Use __attribute__ ((__gnu_inline__)).
7222         [__GNUC__ && !(__GNUC_STDC_INLINE__ || __GNUC_GNU_INLINE__)]:
7223         Don't use __attribute__ ((__gnu_inline__)).
7224
7225 2013-05-01  Joseph Myers  <joseph@codesourcery.com>
7226
7227         [BZ #15423]
7228         * math/s_catan.c (__catan): Handle small real or imaginary part of
7229         input specially to avoid spurious underflow.
7230         * math/s_catanf.c (__catanf): Likewise.
7231         * math/s_catanh.c (__catanh): Likewise.
7232         * math/s_catanhf.c (__catanhf): Likewise.
7233         * math/s_catanhl.c (__catanhl): Likewise.
7234         * math/s_catanl.c (__catanl): Likewise.
7235         * math/libm-test.inc (catan_test): Add more tests.
7236         (catanh_test): Likewise.
7237         * sysdeps/i386/fpu/libm-test-ulps: Update.
7238         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7239
7240 2013-04-30  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7241
7242         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7243
7244 2013-04-30  Joseph Myers  <joseph@codesourcery.com>
7245
7246         [BZ #15416]
7247         * math/s_catan.c (__catan): Compute expressions 1 - x^2 - y^2 more
7248         accurately for denominator in atan2.
7249         * math/s_catanf.c (__catanf): Likewise.
7250         * math/s_catanh.c (__catanh): Likewise.
7251         * math/s_catanhf.c (__catanhf): Likewise.
7252         * math/s_catanhl.c (__catanhl): Likewise.
7253         * math/s_catanl.c (__catanl): Likewise.
7254         * math/libm-test.inc (catan_test): Add more tests.
7255         (catanh_test): Likewise.
7256         * sysdeps/i386/fpu/libm-test-ulps: Update.
7257         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7258
7259 2013-04-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
7260
7261         * sysdeps/ieee754/dbl-64/s_sin.c: Format code.
7262
7263         * benchtests/Makefile (bench): Remove slow benchmarks.
7264         * benchtests/atan-inputs: Add slow benchmark inputs.
7265         * benchtests/bench-modf.c (NUM_VARIANTS): Define.
7266         (BENCH_FUNC): Accept variant offset.
7267         (VARIANT): Define.
7268         * benchtests/bench-skeleton.c (main): Run benchmark for each
7269         variant.
7270         * benchtests/cos-inputs: Add slow benchmark inputs.
7271         * benchtests/exp-inputs: Likewise.
7272         * benchtests/pow-inputs: Likewise.
7273         * benchtests/sin-inputs: Likewise.
7274         * benchtests/slowatan-inputs: Remove.
7275         * benchtests/slowatan.c: Remove.
7276         * benchtests/slowcos-inputs: Remove.
7277         * benchtests/slowcos.c: Remove.
7278         * benchtests/slowexp-inputs: Remove.
7279         * benchtests/slowexp.c: Remove.
7280         * benchtests/slowpow-inputs: Remove.
7281         * benchtests/slowpow.c: Remove.
7282         * benchtests/slowsin-inputs: Remove.
7283         * benchtests/slowsin.c: Remove.
7284         * benchtests/slowtan-inputs: Remove.
7285         * benchtests/slowtan.c: Remove.
7286         * benchtests/tan-inputs: Add slow benchmark inputs.
7287         * scripts/bench.pl: Parse comments and directives.
7288
7289         * benchtests/Makefile: Remove *-ITER.  Define BENCH_DURATION
7290         in CPPFLAGS.
7291         ($(objpfx)bench-%.c): Remove *-ITER.
7292         * benchtests/bench-modf.c: Remove definition of ITER.
7293         * benchtests/bench-skeleton.c (TIMESPEC_AFTER): New macro.
7294         (main): Loop for DURATION seconds instead of fixed number of
7295         iterations.
7296         * scripts/bench.pl: Don't expect iterations in parameters.
7297
7298 2013-04-29  Roland McGrath  <roland@hack.frob.com>
7299
7300         * io/fchdir.c (__fchdir): Renamed from fchdir.
7301         (fchdir): Define as weak alias.
7302
7303 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
7304
7305         * math/libm-test.inc (ERRNO_UNCHANGED): New macro.
7306         (ERRNO_EDOM): Likewise.
7307         (ERRNO_ERANGE): Likewise.
7308         (noErrnoTests): New variable.
7309         (init_max_error): Set errno to 0.
7310         (test_single_errno): New function.
7311         (test_errno): Likewise.
7312         (check_float_internal): Call test_errno.  Set errno to 0.
7313         (check_complex): Refer to errno tests in comment.
7314         (check_int): Call test_errno.  Set errno to 0.
7315         (check_long): Likewise.
7316         (check_bool): Likewise.
7317         (check_longlong): Likewise.
7318         (cos_test): Use ERRNO_* flags for errno tests instead of
7319         check_int.
7320         (expm1_test): Likewise.
7321         (fmod_test): Likewise.
7322         (ilogb_test): Likewise.
7323         (lgamma_test): Likewise.
7324         (pow_test): Likewise.
7325         (remainder_test): Likewise.
7326         (sin_test): Likewise.
7327         (tan_test): Likewise.
7328         (yn_test): Likewise.
7329         (initialize): Set errno to 0.
7330         (main): Print number of errno tests.
7331         * math/gen-libm-test.pl (parse_args): Allow ERRNO flags on tests.
7332
7333 2013-04-29  Andreas Jaeger  <aj@suse.de>
7334
7335         [BZ #15084]
7336         * resolv/res_debug.c (p_option): Fix strings for RES_USEBSTRING
7337         and RES_USEVC.
7338
7339         [BZ #15085]
7340         * resolv/resolv.h (RES_NOCHECKNAME): Mark as unimplemented.
7341         * resolv/res_debug.c (p_option): Mark RES_NOCHECKNAME as
7342         unimplemented.
7343
7344         [BZ #15380]
7345         * stdlib/random.c (__initstate): Return NULL if
7346         __initstate fails.
7347
7348         [BZ #15086]
7349         * resolv/res_debug.c (p_option): Handle RES_NOALIASES,
7350         RES_KEEPTSIG, RES_BLAST, RES_NOIP6DOTINT, RES_SNGLKUP,
7351         RES_SNGLKUPREOP.
7352
7353 2013-04-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7354
7355         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
7356
7357 2013-04-29  Joseph Myers  <joseph@codesourcery.com>
7358
7359         * math/libm-test.inc (cacos_test): Add missing semicolons at ends
7360         of individual tests.
7361         (casin_test): Likewise.
7362         (casinh_test): Likewise.
7363
7364 2013-04-27  Joseph Myers  <joseph@codesourcery.com>
7365
7366         [BZ #15409]
7367         * math/s_catan.c (__catan): Handle arguments with large real or
7368         imaginary part separately without squaring.
7369         * math/s_catanf.c (__catanf): Likewise.
7370         * math/s_catanh.c (__catanh): Likewise.
7371         * math/s_catanhf.c (__catanhf): Likewise.
7372         * math/s_catanhl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
7373         and redefine.
7374         (__catanhl): Handle arguments with large real or imaginary part
7375         separately without squaring.
7376         * math/s_catanl.c [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine
7377         and redefine.
7378         (__catanl): Handle arguments with large real or imaginary part
7379         separately without squaring.
7380         * math/libm-test.inc (catan_test): Add more tests.
7381         (catanh_test): Likewise.
7382         * sysdeps/i386/fpu/libm-test-ulps: Update.
7383         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7384
7385 2013-04-27  Andreas Jaeger  <aj@suse.de>
7386
7387         [BZ #15007]
7388         * stdlib/stdlib.h: Update guards for qecvt.
7389         * stdlib/bits/stdlib-ldbl.h: Sync guards for qecvt etc with
7390         <stdlib.h>.
7391
7392 2013-04-27  Allan McRae  <allan@archlinux.org>
7393
7394         * sysdeps/i386/fpu/libm-test-ulps: Update.
7395
7396 2013-04-26  Joseph Myers  <joseph@codesourcery.com>
7397
7398         [BZ #15406]
7399         * math/s_catan.c: Include <float.h>.
7400         (__catan): Ensure underflow exception occurs for underflowed
7401         result.
7402         * math/s_catanf.c: Include <float.h>.
7403         (__catanf): Ensure underflow exception occurs for underflowed
7404         result.
7405         * math/s_catanh.c: Include <float.h>.
7406         (__catanh): Ensure underflow exception occurs for underflowed
7407         result.
7408         * math/s_catanhf.c: Include <float.h>.
7409         (__catanhf): Ensure underflow exception occurs for underflowed
7410         result.
7411         * math/s_catanhl.c: Include <float.h>.
7412         (__catanhl): Ensure underflow exception occurs for underflowed
7413         result.
7414         * math/s_catanl.c: Include <float.h>.
7415         (__catanl): Ensure underflow exception occurs for underflowed
7416         result.
7417         * math/libm-test.inc (catan_test): Add more tests.
7418         (catanh_test): Likewise.
7419
7420         [BZ #15405]
7421         * math/s_ccosh.c (__ccosh): Ensure underflow exception occurs for
7422         underflowed result.
7423         * math/s_ccoshf.c (__ccoshf): Likewise.
7424         * math/s_ccoshl.c (__ccoshl): Likewise.
7425         * math/s_csin.c (__csin): Likewise.
7426         * math/s_csinf.c (__csinf): Likewise.
7427         * math/s_csinh.c (__csinh): Likewise.
7428         * math/s_csinhf.c (__csinhf): Likewise.
7429         * math/s_csinhl.c (__csinhl): Likewise.
7430         * math/s_csinl.c (__csinl): Likewise.
7431         * math/libm-test.inc (ccos_test): Add more tests.
7432         (ccosh_test): Likewise.
7433         (csin_test): Likewise.
7434         (csinh_test): Likewise.
7435
7436 2013-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7437
7438         * sysdeps/powerpc/power5/fpu/s_modf.c: Moved to ...
7439         * sysdeps/powerpc/power5+/fpu/s_modf.c: ... this.
7440         * sysdeps/powerpc/power5/fpu/s_modff.c: Moved to ...
7441         * sysdeps/powerpc/power5+/fpu/s_modff.c: ... this.
7442         * sysdeps/powerpc/powerpc32/power5+/Implies: Add powerpc/power5+ and
7443         powerpc/power5+/fpu folders.
7444         * sysdeps/powerpc/powerpc64/power5+/Implies: Likewise.
7445
7446
7447 2013-04-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
7448
7449         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
7450
7451 2013-04-25  Joseph Myers  <joseph@codesourcery.com>
7452
7453         * elf/Makefile [$(config-machine) = x86_64] (tests): Remove
7454         additions to variable.
7455         [$(config-machine) = x86_64] (modules-names): Likewise.
7456         ($(objpfx)tst-audit3): Remove dependency.
7457         ($(objpfx)tst-audit3.out): Likewise.
7458         ($(objpfx)tst-audit4): Likewise.
7459         ($(objpfx)tst-audit4.out): Likewise.
7460         ($(objpfx)tst-audit5): Likewise.
7461         ($(objpfx)tst-audit5.out): Likewise.
7462         ($(objpfx)tst-audit6): Likewise.
7463         ($(objpfx)tst-audit6.out): Likewise.
7464         ($(objpfx)tst-audit7): Likewise.
7465         ($(objpfx)tst-audit7.out): Likewise.
7466         (tst-audit3-ENV): Remove variable.
7467         (tst-audit4-ENV): Likewise.
7468         (tst-audit5-ENV): Likewise.
7469         (tst-audit6-ENV): Likewise.
7470         (tst-audit7-ENV): Likewise.
7471         [$(config-cflags-avx) = yes] (AVX-CFLAGS): Likewise.
7472         [$(config-cflags-avx) = yes] (CFLAGS-tst-audit4.c): Remove
7473         addition to variable.
7474         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4a.c): Likewise.
7475         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod4b.c): Likewise.
7476         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6b.c): Likewise.
7477         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod6c.c): Likewise.
7478         [$(config-cflags-avx) = yes] (CFLAGS-tst-auditmod7b.c): Likewise.
7479         * sysdeps/x86_64/Makefile [$(subdir) = elf] (tests): Add
7480         tst-audit3, tst-audit4 and tst-audit5.
7481         [$(subdir) = elf && $(config-cflags-avx) = yes] (tests): Add
7482         tst-audit6 and tst-audit7.
7483         [$(subdir) = elf] (modules-names): Add audit modules for those
7484         tests.
7485         [$(subdir) = elf] ($(objpfx)tst-audit3): New dependency.
7486         [$(subdir) = elf] ($(objpfx)tst-audit3.out): Likewise.
7487         [$(subdir) = elf] ($(objpfx)tst-audit4): Likewise.
7488         [$(subdir) = elf] ($(objpfx)tst-audit4.out): Likewise.
7489         [$(subdir) = elf] ($(objpfx)tst-audit5): Likewise.
7490         [$(subdir) = elf] ($(objpfx)tst-audit5.out): Likewise.
7491         [$(subdir) = elf] ($(objpfx)tst-audit6): Likewise.
7492         [$(subdir) = elf] ($(objpfx)tst-audit6.out): Likewise.
7493         [$(subdir) = elf] ($(objpfx)tst-audit7): Likewise.
7494         [$(subdir) = elf] ($(objpfx)tst-audit7.out): Likewise.
7495         [$(subdir) = elf] (tst-audit3-ENV): New variable.
7496         [$(subdir) = elf] (tst-audit4-ENV): Likewise.
7497         [$(subdir) = elf] (tst-audit5-ENV): Likewise.
7498         [$(subdir) = elf] (tst-audit6-ENV): Likewise.
7499         [$(subdir) = elf] (tst-audit7-ENV): Likewise.
7500         [$(subdir) = elf && $(config-cflags-avx) = yes] (AVX-CFLAGS):
7501         Likewise.
7502         [$(subdir) = elf && $(config-cflags-avx) = yes]
7503         (CFLAGS-tst-audit4.c): Append $(AVX-CFLAGS).
7504         [$(subdir) = elf && $(config-cflags-avx) = yes]
7505         (CFLAGS-tst-auditmod4a.c): Likewise.
7506         [$(subdir) = elf && $(config-cflags-avx) = yes]
7507         (CFLAGS-tst-auditmod4b.c): Likewise.
7508         [$(subdir) = elf && $(config-cflags-avx) = yes]
7509         (CFLAGS-tst-auditmod6b.c): Likewise.
7510         [$(subdir) = elf && $(config-cflags-avx) = yes]
7511         (CFLAGS-tst-auditmod6c.c): Likewise.
7512         [$(subdir) = elf && $(config-cflags-avx) = yes]
7513         (CFLAGS-tst-auditmod7b.c): Likewise.
7514         * elf/tst-audit3.c: Move to ...
7515         * sysdeps/x86_64/tst-audit3.c: ... here.
7516         * elf/tst-audit4.c: Move to ...
7517         * sysdeps/x86_64/tst-audit4.c: ... here.
7518         * elf/tst-audit5.c: Move to ...
7519         * sysdeps/x86_64/tst-audit5.c: ... here.
7520         * elf/tst-audit6.c: Move to ...
7521         * sysdeps/x86_64/tst-audit6.c: ... here.
7522         * elf/tst-audit7.c: Move to ...
7523         * sysdeps/x86_64/tst-audit7.c: ... here.
7524         * elf/tst-auditmod3a.c: Move to ...
7525         * sysdeps/x86_64/tst-auditmod3a.c: ... here.
7526         * elf/tst-auditmod3b.c: Move to ...
7527         * sysdeps/x86_64/tst-auditmod3b.c: ... here.
7528         * elf/tst-auditmod4a.c: Move to ...
7529         * sysdeps/x86_64/tst-auditmod4a.c: ... here.
7530         * elf/tst-auditmod4b.c: Move to ...
7531         * sysdeps/x86_64/tst-auditmod4b.c: ... here.
7532         * elf/tst-auditmod5a.c: Move to ...
7533         * sysdeps/x86_64/tst-auditmod5a.c: ... here.
7534         * elf/tst-auditmod5b.c: Move to ...
7535         * sysdeps/x86_64/tst-auditmod5b.c: ... here.
7536         * elf/tst-auditmod6a.c: Move to ...
7537         * sysdeps/x86_64/tst-auditmod6a.c: ... here.
7538         * elf/tst-auditmod6b.c: Move to ...
7539         * sysdeps/x86_64/tst-auditmod6b.c: ... here.
7540         * elf/tst-auditmod6c.c: Move to ...
7541         * sysdeps/x86_64/tst-auditmod6c.c: ... here.
7542         * elf/tst-auditmod7a.c: Move to ...
7543         * sysdeps/x86_64/tst-auditmod7a.c: ... here.
7544         * elf/tst-auditmod7b.c: Move to ...
7545         * sysdeps/x86_64/tst-auditmod7b.c: ... here.
7546
7547 2013-04-25  Paul Pluzhnikov  <ppluzhnikov@google.com>
7548
7549         [BZ #15366]
7550         * sysdeps/generic/inttypes.h (PRId8, PRId16, etc.):
7551         define unconditionally.
7552         * sysdeps/generic/stdint.h (INT8_MIN, INT16_MIN, etc.):
7553         define unconditionally.
7554         (INT8_C, INT16_C, etc.): Likewise.
7555
7556 2013-04-25  Maciej W. Rozycki  <macro@codesourcery.com>
7557
7558         * csu/libc-start.c (__libc_start_main) [!SHARED]: Declare
7559         __ehdr_start with hidden visibility.
7560
7561         * soft-fp/op-common.h (_FP_SQRT): s/sNAN/NAN/ in a comment.
7562
7563 2013-04-24  Carlos O'Donell  <carlos@redhat.com>
7564
7565         * math/libm-test.inc (cos_test): Use accurate hex constants.
7566         (sincost_test): Likewise.
7567
7568 2013-04-24  Joseph Myers  <joseph@codesourcery.com>
7569
7570         * math/libm-test.inc (catan_test): Add more tests.
7571         (catanh_test): Likewise.
7572
7573         * math/s_catanf.c (__catanf): Use suffixed floating-point
7574         constants.
7575         * math/s_catanhf.c (__catanhf): Likewise.
7576         * math/s_catanhl.c (__catanhl): Likewise.
7577         * math/s_catanl.c (__catanl): Likewise.
7578
7579         [BZ #15394]
7580         * math/s_catan.c (__catan): Calculate imaginary part of result
7581         with log1p not log unless computing log of number close to 0.
7582         * math/s_catanf.c (__catanf): Likewise.
7583         * math/s_catanl.c (__catanl): Likewise.
7584         * math/s_catanh.c (__catanh): Calculate real part of result with
7585         log1p not log unless computing log of number close to 0.
7586         * math/s_catanhf.c (__catanhf): Likewise.
7587         * math/s_catanhl.c (__catanhl): Likewise.
7588         * math/libm-test.inc (catan_test): Add more tests.
7589         (catanh_test): Likewise.
7590         * sysdeps/i386/fpu/libm-test-ulps: Update.
7591         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7592
7593 2013-04-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
7594
7595         * benchtests/Makefile: Mention files in which fast and slow
7596         paths of math functions are implemented.
7597
7598 2013-04-23  Roland McGrath  <roland@hack.frob.com>
7599
7600         * sysdeps/posix/timespec_get.c: New file.
7601
7602 2013-04-23  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7603
7604         * sysdeps/powerpc/power5/fpu/s_modf.c: New file: modf optimization for
7605         POWER.
7606         * sysdeps/powerpc/power5/fpu/s_modff.c: New file: modff optimization
7607         for POWER.
7608         * sysdeps/powerpc/powerpc64/power5/Implies: Add powerpc/power5 and
7609         powerpc/power5/fpu folders.
7610         * sysdeps/powerpc/powerpc32/power5/Implies: Likewise.
7611         * benchtests/Makefile: Add modf testcase.
7612         * benchtests/bench-modf.c: New file: Benchmark test for mo
7613
7614 2013-04-23  Siddhesh Poyarekar  <siddhesh@redhat.com>
7615
7616         [BZ #14888]
7617         * time/Makefile (tests): Add tst-strptime-whitespace.
7618         * time/strptime_l.c (get_number): Use ISSPACE.
7619         (__strptime_internal): Likewise.
7620         * time/tst-strptime-whitespace.c: New test case.
7621
7622 2013-04-23  Andreas Schwab  <schwab@linux-m68k.org>
7623
7624         * nss/nss_files/files-init.c (TF): Don't initialize flexible array
7625         member.
7626         (_nss_files_init): Set it here.
7627
7628 2013-04-23  Heiko Carstens  <heiko.carstens@de.ibm.com>
7629
7630         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Change types of
7631         f_type, f_bsize, f_namelen, f_frsize, f_flags,and f_spare to
7632         unsigned.
7633
7634 2013-04-22  Jan-Benedict Glaw  <jbglaw@getslash.de>
7635
7636         * nss/getent.c (shadow_keys): Call endspent, not endpwent.
7637
7638 2013-04-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
7639
7640         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Compute results
7641         size just once.
7642
7643 2013-04-21  David S. Miller  <davem@davemloft.net>
7644
7645         * po/ru.po: Update Russion translation from translation project.
7646
7647 2013-04-17  Adam Conrad  <adconrad@0c3.net>
7648
7649         * sysdeps/unix/sysv/linux/sys/fsuid.h: Remove __wur from setfsuid
7650         and setfsgid.
7651
7652 2013-04-17  Carlos O'Donell  <carlos@redhat.com>
7653
7654         * configure.in: Remove i386 configure warning. Remove i386 case.
7655         * configure: Regenerate.
7656         * sysdeps/i386/configure.in: Raise error if config_machine is i386.
7657         Add example to error message.
7658         * sysdeps/i386/configure: Regenerate.
7659
7660 2013-04-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
7661
7662         * benchtests/Makefile (bench): Add cos, tan, slowcos and
7663         slowtan.
7664         * benchtests/cos-inputs: New file.
7665         * benchtests/slowcos-inputs: New file.
7666         * benchtests/slowcos.c: New file.
7667         * benchtests/slowtan-inputs: New file.
7668         * benchtests/slowtan.c: New file.
7669         * benchtests/tan-inputs: New file.
7670
7671 2013-04-16  Roland McGrath  <roland@hack.frob.com>
7672
7673         * rt/tst-aio7.c (do_test): Don't test O_RDONLY fd case, which is now
7674         considered kosher.
7675
7676 2013-04-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
7677
7678         * benchtests/Makefile: Include cppflags-iterator.mk to add
7679         -DNOT_IN_libc=1 to CPPFLAGS of all benchmark programs.
7680
7681         * Makefile.in (bench-clean): New target.
7682         * benchtests/Makefile (bench-clean): Likewise.
7683
7684 2013-04-16  David Holsgrove  <david.holsgrove@xilinx.com>
7685
7686         * elf/elf.h: Add EM_MICROBLAZE and MicroBlaze relocations.
7687
7688 2013-04-15  Thomas Schwinge  <thomas@codesourcery.com>
7689
7690         * stdio-common/tstdiomisc.c: Fix coding-style violation.
7691
7692 2013-04-15  Andreas Schwab  <schwab@suse.de>
7693
7694         * nscd/grpcache.c (cache_addgr): Properly check for short write.
7695         * nscd/initgrcache.c (addinitgroupsX): Likewise.
7696         * nscd/pwdcache.c (cache_addpw): Likewise.
7697         * nscd/servicescache.c (cache_addserv): Likewise.  Don't write
7698         more than recsize.
7699
7700 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7701
7702         * benchtests/Makefile (bench): Write all output to
7703         bench-out.tmp together.
7704
7705 2013-04-15  Andreas Schwab  <schwab@suse.de>
7706
7707         * nscd/nscd.c (main): Don't fork again after closing files.
7708
7709 2013-04-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
7710
7711         * libio/tst-fwrite-error.c (do_test): Fix BUF array definition.
7712
7713         * benchtests/Rules (bench-deps): Collect dependencies into a
7714         single variable.  Add Makefile to dependencies.
7715         ($(objpfx)bench-%.c): Depend on bench-deps.
7716
7717 2013-04-12  Roland McGrath  <roland@hack.frob.com>
7718             Xavier Roche  <roche+kml2@exalead.com>
7719
7720         [BZ #15361]
7721         * sysdeps/pthread/aio_fsync.c (aio_fsync): Don't check open modes,
7722         just that it's a file descriptor.
7723         * manual/llio.texi (Synchronizing AIO Operations): Update description
7724         for EBADF error from aio_fsync.
7725
7726 2013-04-12  Siddhesh Poyarekar  <siddhesh@redhat.com>
7727
7728         * Rules (bench): Move target definition...
7729         * benchtests/Makefile: ... here.
7730
7731 2013-04-11  Carlos O'Donell  <carlos@redhat.com>
7732
7733         * math/libm-test.inc (cos_test): Fix PI/2 test.
7734         (sincos_test): Likewise.
7735         * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate.
7736         * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
7737
7738 2013-04-11  Andreas Schwab  <schwab@suse.de>
7739
7740         [BZ #13988]
7741         * stdio-common/vfscanf.c (_IO_vfwscanf): When parsing a float
7742         accept exponent character only when digits were seen.
7743         * stdio-common/Makefile (tests): Add bug26.
7744         * stdio-common/bug26.c: New file.
7745
7746         [BZ #14293]
7747         * elf/dl-load.c (_dl_init_paths): Mark decomposed RUNPATH as
7748         non-freeable.
7749
7750 2013-04-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
7751
7752         * Makeconfig (rtld-prefix): Define built linker prefix.
7753         * Rules (run-bench): Use it.
7754         * math/Makefile (run-regen-ulps): Likewise.
7755
7756         * Rules (bench): Remove eval.
7757
7758 2013-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
7759             Roland McGrath  <roland@hack.frob.com>
7760             Ondrej Bilka  <neleai@seznam.cz>
7761
7762         [BZ #15346]
7763         * time/getdate.c: Include ctype.h and alloca.h.
7764         (__getdate_r): Trim leading and trailing spaces of input.
7765         * time/tst-getdate.c (tests): Add tests with leading and
7766         trailing spaces.
7767
7768 2013-04-08  Roland McGrath  <roland@hack.frob.com>
7769
7770         [BZ #14280]
7771         * sysdeps/mach/hurd/bits/ioctls.h (_IOTS): Cast to enum __ioctl_datum
7772         when computing value.
7773
7774 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
7775
7776         * math/README.libm-test (How can I generate "libm-test-ulps"?):
7777         Use testrun.sh to run libm tests.
7778
7779         [BZ #15309]
7780         * elf/dl-open.c (dl_open_worker): memset all of seen array.
7781
7782 2013-04-06  Marko Myllynen  <myllynen@redhat.com>
7783
7784         [BZ #15264]
7785         * locales/fi_FI (LC_MESSAGES): Define yesstr and nostr.
7786
7787 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
7788
7789         * Makefile.in (regen-ulps): New target.
7790         * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY.
7791         [ifneq (no,$(PERL)] (run-regen-ulps): New variable.
7792         [ifneq (no,$(PERL)] (regen-ulps): New target.
7793         [ifeq (no,$(PERL)] (regen-ulps): New target.
7794         * math/libm-test.inc (ulps_file_name): Define.
7795         (output_dir): New variable.
7796         (options): Add "output-dir" option.
7797         (parse_opt): Handle 'o' case.
7798         (main): If output_dir is non-NULL use it as a prefix
7799         otherwise use "".
7800         * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
7801
7802 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
7803
7804         [BZ #10060, #10062]
7805         * aclocal.m4 (LIBC_COMPILER_BUILTIN_INLINED): New macro.
7806         * sysdeps/i386/configure.in: Use LIBC_COMPILER_BUILTIN_INLINED and
7807         fail configure if __sync_val_compare_and_swap is not inlined.
7808         * sysdeps/i386/configure: Regenerate.
7809         * configure.in: Build for i686 when configured for i386.
7810         * configure: Regenerate.
7811         * README: Remove i386 reference.
7812
7813 2013-04-06  Carlos O'Donell  <carlos@redhat.com>
7814
7815         * sysdeps/s390/s390-32/sysdep.h: Undefine PSEUDO before redefinition.
7816         * sysdeps/s390/s390-64/sysdep.h: Likewise.
7817
7818 2013-04-05  Thomas Schwinge  <thomas@codesourcery.com>
7819
7820         * stdio-common/tstdiomisc.c (snanval, msnanval, lsnanval)
7821         (lmsnanval): New variables.
7822         (F): Add conversion tests.
7823         * stdlib/tst-strtod6.c (do_test): Add issignaling tests.
7824         * stdlib/Makefile ($(objpfx)tst-strtod6): Depend on $(link-libm).
7825
7826         * stdio-common/tstdiomisc.c (F): Properly collect individual
7827         tests' results.
7828
7829         [BZ #14686, #15336]
7830         * sysdeps/ieee754/dbl-64/urem.h (nNAN, NAN): Remove definitions.
7831         * sysdeps/ieee754/dbl-64/e_remainder.c (__ieee754_remainder):
7832         Instead, use input NaN values or generate a qNaN by arithmetic
7833         operation.  Also fix bugs to comply with the standard.
7834         * math/libm-test.inc (remainder_test): Add more tests.
7835
7836         [BZ #15335, #15342]
7837         * sysdeps/ieee754/dbl-64/upow.h (NaNQ): Remove definitions.
7838         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Instead, use
7839         input NaN values or generate a qNaN by arithmetic operation.
7840
7841         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Remove
7842         unreachable code.
7843
7844         * sysdeps/ieee754/dbl-64/usncs.h (NAN): Removed unused
7845         definitions.
7846
7847 2013-04-03  Joseph Myers  <joseph@codesourcery.com>
7848
7849         [BZ #14478]
7850         * math/s_cexp.c (__cexp): Ensure underflow exception occurs for
7851         underflowed result.
7852         * math/s_cexpf.c (__cexpf): Likewise.
7853         * math/s_cexpl.c (__cexpl): Likewise.
7854         * math/libm-test.inc (cexp_test): Add more tests.
7855
7856 2013-04-03  Andreas Schwab  <schwab@suse.de>
7857
7858         [BZ #15330]
7859         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Allocate results and
7860         order arrays from heap if bigger than alloca cutoff.
7861
7862 2013-04-03  Thomas Schwinge  <thomas@codesourcery.com>
7863
7864         * sysdeps/i386/fpu/math-tests.h (SNAN_TESTS_float)
7865         (SNAN_TESTS_double): Refer to GCC PR56831.
7866         * sysdeps/powerpc/math-tests.h (SNAN_TESTS_TYPE_CAST): Refer to
7867         GCC PR56828.
7868
7869 2013-04-03  Siddhesh Poyarekar  <siddhesh@redhat.com>
7870
7871         * Rules (bench): Move bench.out after the run is complete.
7872
7873         * Rules (bench): Echo currently running benchmark.
7874
7875         * benchtests/Makefile (bench): Add atan and slowatan.
7876         * benchtests/atan-inputs: New file.
7877         * benchtests/slowatan-inputs: New file.
7878         * benchtests/slowatan.c: New file.
7879
7880         * sysdeps/ieee754/dbl-64/mpa.h (TWO): Remove definition.
7881         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Replace TWO with
7882         its value.
7883
7884         [BZ #15305]
7885         * sysdeps/unix/sysv/linux/kernel-features.h
7886         [__LINUX_KERNEL_VERSION >= 0x02061d]: Define
7887         __ASSUME_XFS_RESTRICTED_CHOWN.
7888         * sysdeps/unix/sysv/linux/pathconf.c
7889         (__statfs_chown_restricted) [!__ASSUME_XFS_RESTRICTED_CHOWN]:
7890         Save and restore errno.
7891
7892 2013-04-02  Joseph Myers  <joseph@codesourcery.com>
7893
7894         [BZ #15327]
7895         * math/s_cacosh.c (__cacosh): Implement for finite nonzero
7896         arguments using __kernel_casinh.
7897         * math/s_cacoshf.c (__cacoshf): Implement for finite nonzero
7898         arguments using __kernel_casinhf.
7899         * math/s_cacoshl.c (__cacoshl): Implement for finite nonzero
7900         arguments using __kernel_casinhl.
7901         * math/libm-test.inc (cacosh_test): Add more tests.
7902         * sysdeps/i386/fpu/libm-test-ulps: Update.
7903         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7904
7905 2013-04-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
7906
7907         * sysdeps/ieee754/dbl-64/mpa.h (HALFRAD): Define as TWO23.
7908         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Use mantissa_t.
7909
7910         * bench/Makefile (bench): Add sin and slowsin.
7911         * benchtests/sin-inputs: New file.
7912         * benchtests/slowsin-inputs: New file.
7913         * benchtests/slowsin.c: New file.
7914
7915         * benchtests/Makefile: Add benchmarks for slowpow and slowexp.
7916         (bench): Add slowexp and slowpow.
7917         (exp-ITER): Increase iterations.
7918         (pow-ITER): Likewise.
7919         * benchtests/exp-inputs: Change input.
7920         * benchtests/pow-inputs: Likewise.
7921         * benchtests/slowexp-inputs: New file.
7922         * benchtests/slowexp.c: New file.
7923         * benchtests/slowpow-inputs: New file.
7924         * benchtests/slowpow.c: New file.
7925
7926 2013-04-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
7927
7928         * sysdeps/powerpc/powerpc32/fpu/s_rint.S: Remove branch prediction
7929         instructions.
7930         * sysdeps/powerpc/powerpc32/fpu/s_rintf.S: Likewise.
7931         * sysdeps/powerpc/powerpc64/fpu/s_rint.S: Likewise.
7932         * sysdeps/powerpc/powerpc64/fpu/s_rintf.S: Likewise.
7933         * benchtests/Makefile: Add rint benchtest.
7934         * benchtests/rint-inputs: Input for rint benchtest.
7935
7936 2013-04-02  Thomas Schwinge  <thomas@codesourcery.com>
7937
7938         * Versions.def (libm): Add GLIBC_2.18.
7939         * include/math.h [!_ISOMAC] (__issignaling, __issignalingf): Add
7940         hidden libm prototypes.
7941         [!_ISOMAC && !__NO_LONG_DOUBLE_MATH] (__issignalingl): Likewise.
7942         * math/Makefile (libm-calls): Add s_issignaling.
7943         * math/Versions (libm: GLIBC_2.18): Add __issignaling,
7944         __issignalingf, __issignalingl.  Adjust all libm.abilist files.
7945         * math/bits/mathcalls.h [__USE_GNU] (__issignaling): New prototype
7946         declaration.
7947         * math/math.h [__USE_GNU] (issignaling): New macro.
7948         * sysdeps/ieee754/flt-32/s_issignalingf.c: New file.
7949         * sysdeps/ieee754/dbl-64/s_issignaling.c: Likewise.
7950         * sysdeps/ieee754/dbl-64/wordsize-64/s_issignaling.c: Likewise.
7951         * sysdeps/ieee754/ldbl-96/s_issignalingl.c: Likewise.
7952         * sysdeps/ieee754/ldbl-128/s_issignalingl.c: Likewise.
7953         * sysdeps/ieee754/ldbl-128ibm/s_issignalingl.c: Likewise.
7954         * manual/arith.texi (issignaling): New section.
7955         * manual/libm-err-tab.pl (@all_functions): Update comment.
7956         * math/gen-libm-test.pl (parse_args): Apply special handling for
7957         issignaling.
7958         * math/libm-test.inc (print_float, issignaling_test): New
7959         functions.
7960         (check_float_internal): Add issignaling checks.
7961         * sysdeps/generic/math-tests.h (SNAN_TESTS_TYPE_CAST): Provide
7962         default definition.
7963         * sysdeps/powerpc/math-tests.h: New file.
7964         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Add issignaling
7965         tests.
7966         * math/test-snan.c (TEST_FUNC): Likewise.
7967
7968 2013-03-30  David S. Miller  <davem@davemloft.net>
7969
7970         * po/de.po: Update from translation team.
7971
7972 2013-03-30  Joseph Myers  <joseph@codesourcery.com>
7973
7974         [BZ #10357]
7975         * math/k_casinh.c (__kernel_casinh): Handle arguments with
7976         imaginary part less than 1.0 and real part less than 0.5
7977         specially.
7978         * math/k_casinhf.c (__kernel_casinhf): Likewise.
7979         * math/k_casinhl.c (__kernel_casinhl): Likewise.
7980         * math/libm-test.inc (UNDERFLOW_EXCEPTION_OK_DOUBLE): New macro.
7981         (cacos_test): Add more tests.
7982         (casin_test): Likewise.
7983         (casinh_test): Likewise.
7984         * sysdeps/i386/fpu/libm-test-ulps: Update.
7985         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7986
7987 2013-03-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
7988
7989         * sysdeps/powerpc/power4/fpu/mpa-arch.h (INTEGER_OF): Replace
7990         ONE with its value.
7991
7992         * sysdeps/ieee754/dbl-64/mpa.h (ONE, MONE): Remove defines.
7993         (__pow_mp): Replace ONE and MONE with their values.
7994         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
7995         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Likewise.
7996         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
7997         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Likewise.
7998         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
7999         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
8000
8001         * sysdeps/ieee754/dbl-64/s_tan.c: Fix formatting.
8002
8003         * sysdeps/ieee754/dbl-64/mpa.h (ZERO, MZERO): Remove defines.
8004         (__pow_mp): Replace ZERO and MZERO with their values.
8005         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
8006         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
8007         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
8008         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
8009         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
8010         * sysdeps/powerpc/power4/fpu/mpa.c (__mul): Likewise.
8011         (__sqr): Likewise.
8012
8013         * sysdeps/ieee754/dbl-64/s_atan.c: Fix formatting.
8014
8015         * sysdeps/ieee754/dbl-64/e_log.c: Fix formatting.
8016
8017 2013-03-28  Roland McGrath  <roland@hack.frob.com>
8018
8019         * include/stdlib.h [!SHARED] (__call_tls_dtors):
8020         Declare with __attribute__ ((weak)).
8021         * stdlib/exit.c (__libc_atexit) [!SHARED]:
8022         Call __call_tls_dtors only if it's not NULL.
8023
8024 2013-03-28  Roland McGrath  <roland@hack.frob.com>
8025
8026         * csu/libc-start.c (__libc_start_main) [!SHARED]: If _dl_aux_init
8027         didn't do it already, then set _dl_phdr and _dl_phnum based on the
8028         magic __ehdr_start linker symbol if it's defined.
8029         * sysdeps/mach/hurd/i386/init-first.c (init1) [!SHARED]: Don't set
8030         them up here if it was already done.
8031
8032         * elf/dl-support.c (_dl_phdr): Make pointer to const.
8033         (_dl_aux_init): Use const in cast when setting it.
8034         * sysdeps/mach/hurd/i386/init-first.c (init1): Remove superfluous cast.
8035         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr): Update decl.
8036         * csu/libc-tls.c (__libc_setup_tls): Make PHDR pointer to const.
8037
8038         * sysdeps/generic/ldsodefs.h [!SHARED] (_dl_phdr, _dl_phnum):
8039         Declare them here.
8040         * elf/dl-iteratephdr.c [!SHARED] (_dl_phdr, _dl_phnum): Not here.
8041         * csu/libc-tls.c: Nor here.
8042         * sysdeps/mach/hurd/i386/init-first.c (init1): Nor here.
8043
8044         * sysdeps/posix/libc_fatal.c: Don't include <sys/syslog.h>.
8045         (__libc_message): Never call vsyslog.
8046
8047 2013-03-28  Alan Modra  <amodra@gmail.com>
8048
8049         * sysdeps/powerpc/powerpc32/start.S (cfi_startproc, cfi_endproc):
8050         Define as empty.
8051         * sysdeps/powerpc/powerpc64/start.S (cfi_startproc, cfi_endproc):
8052         Likewise.
8053
8054 2013-03-28  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8055
8056         [BZ #15214]
8057         * sysdeps/ieee754/ldbl-128ibm/e_logl.c (__ieee754_logl): Fix spurious
8058         underflow.
8059         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
8060
8061 2013-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
8062
8063         [BZ #15304]
8064         * hesiod/nss_hesiod/hesiod-grp.c (_nss_hesiod_initgroups_dyn):
8065         Don't add gid passed as argument.
8066
8067         * sysdeps/ieee-754/dbl-64/e_atan2.c: Reformat.
8068
8069 2013-03-27  Joseph Myers  <joseph@codesourcery.com>
8070
8071         [BZ #15307]
8072         * math/k_casinh.c (__kernel_casinh): Handle arguments with
8073         imaginary part between 1.0 and 1.5 and real part less than 0.5
8074         specially.
8075         * math/k_casinhf.c (__kernel_casinhf): Likewise.
8076         * math/k_casinhl.c (__kernel_casinhl): Likewise.
8077         * math/libm-test.inc (cacos_test): Add more tests.
8078         (casin_test): Likewise.
8079         (casinh_test): Likewise.
8080         * sysdeps/i386/fpu/libm-test-ulps: Update.
8081         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8082
8083 2013-03-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
8084
8085         * sysdeps/ieee754/dbl-64/mpa.c (__acr): Use integral
8086         constants.
8087         (norm): Likewise.
8088         (denorm): Likewise.
8089         (__dbl_mp): Likewise.
8090         (add_magnitudes): Likewise.
8091         (sub_magnitudes): Likewise.
8092         (__add): Likewise.
8093         (__sub): Likewise.
8094         (__mul): Likewise.
8095         (__sqr): Likewise.
8096         (__inv): Likewise.
8097         (__dvd): Likewise.
8098
8099         * sysdeps/ieee754/dbl-64/branred.c (__branred): Remove
8100         commented code.
8101         * sysdeps/ieee754/dbl-64/dosincos.c (__dubsin): Likewise.
8102         (__dubcos): Likewise.
8103         * sysdeps/ieee754/dbl-64/e_asin.c (__ieee754_asin): Likewise.
8104         (__ieee754_acos): Likewise.
8105         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Likewise.
8106         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Likewise.
8107         (__exp1): Likewise.
8108         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Likewise.
8109         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
8110         (log1): Likewise.
8111         (my_log2): Likewise.
8112         (checkint): Likewise.
8113         * sysdeps/ieee754/dbl-64/e_remainder.c
8114         (__ieee754_remainder): Likewise.
8115         * sysdeps/ieee754/dbl-64/s_atan.c (atan): Likewise.
8116         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Likewise.
8117         (bsloww): Likewise.
8118         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
8119
8120         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
8121         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T and
8122         MANTISSA_STORE_T to store computations on mantissa.  Use
8123         macros for rounding and division.
8124         (denorm): Likewise.
8125         (__dbl_mp): Likewise.
8126         (add_magnitudes): Likewise.
8127         (sub_magnitudes): Likewise.
8128         (__mul): Likewise.
8129         (__sqr): Likewise.
8130         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
8131         powers of two in terms of TWOPOW macro.
8132         (mp_no): Make type of mantissa as MANTISSA_T.
8133         [!RADIXI]: Define RADIXI.
8134         [!TWO52]: Define TWO52.
8135         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
8136
8137 2013-03-25  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8138
8139         * sysdeps/powerpc/fpu/s_llround.c: Fix libm ABI issue with missing
8140         llroundl symbol when building for PPC32.
8141
8142 2013-03-24  Mark H Weaver  <mhw@netris.org>
8143
8144         * manual/arith.texi (Normalization Functions): Fix prototypes for
8145         scalbn, scalbnf, scalbnl, scalbln, scalblnf, and scalblnl.
8146
8147 2013-03-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8148
8149         [BZ #13889]
8150         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (__ieee754_expl): Increase the
8151         high value to check if expl overflow.
8152         * sysdeps/ieee754/ldbl-128ibm/w_expl.c (__expl): Fix threshold constants
8153         to check for underflow and overflow.
8154         * math/libm-test.inc: Add exp test.
8155
8156 2013-03-21  Dmitry V. Levin  <ldv@altlinux.org>
8157
8158         [BZ #11120]
8159         * sysdeps/x86_64/strcmp.S: Replace all occurrences of NOT_IN_lib
8160         with NOT_IN_libc.
8161
8162 2013-03-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8163
8164         * sysdeps/powerpc/fpu/w_sqrt.c (compat_symbol): Add sqrtl compat
8165         symbol.
8166
8167 2013-03-21  Thomas Schwinge  <thomas@codesourcery.com>
8168
8169         * math/gen-libm-test.pl (parse_args, special_functions): Properly
8170         wrap blocks consisting of several statements.
8171
8172         * sysdeps/generic/math-tests.h: New file.
8173         * sysdeps/i386/fpu/math-tests.h: Likewise.
8174         * math/test-snan.c: Include it.
8175         (TEST_FUNC): Use SNAN_TESTS to short-circuit certain tests.
8176
8177 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
8178
8179         [BZ #15285]
8180         * sysdeps/ieee754/ldbl-128/e_j0l.c: Include <float.h>.
8181         (__ieee754_j0l): Do not improve calculations using cos of twice
8182         input for inputs above LDBL_MAX / 2.0L.
8183         (__ieee754_y0l): Likewise.
8184         * sysdeps/ieee754/ldbl-128/e_j1l.c: Include <float.h>.
8185         (__ieee754_j1l): Do not improve calculations using cos of twice
8186         input for inputs above LDBL_MAX / 2.0L.
8187         (__ieee754_y1l): Likewise.
8188         * math/libm-test.inc (j0_test): Add another test.
8189         (j1_test): Likewise.
8190         (y0_test): Likewise.
8191         (y1_test): Likewise.
8192         * sysdeps/i386/fpu/libm-test-ulps: Update.
8193
8194 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8195
8196         * Rules ($(objpfx)bench-%.c): Include code from a C source
8197         file.
8198
8199 2013-03-21  Joseph Myers  <joseph@codesourcery.com>
8200
8201         [BZ #15287]
8202         * math/k_casinh.c (__kernel_casinh): Handle arguments with
8203         imaginary part 1.0 and real part less than 0.5 specially.
8204         * math/k_casinhf.c (__kernel_casinhf): Likewise.
8205         * math/k_casinhl.c (__kernel_casinhl): Likewise.
8206         * math/libm-test.inc (cacos_test): Add more tests.
8207         (casin_test): Likewise.
8208         (casinh_test): Likewise.
8209         * sysdeps/i386/fpu/libm-test-ulps: Update.
8210         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8211
8212 2013-03-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
8213
8214         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Use HALFRAD.
8215         * sysdeps/ieee754/dbl-64/sincos32.c (__mpranred): Likewise.
8216
8217 2013-03-20  Joseph Myers  <joseph@codesourcery.com>
8218
8219         * aclocal.m4 (LIBC_CONFIG_VAR): New autoconf macro.
8220         * config.make.in (config-cflags-sse4): Remove variable.
8221         (config-cflags-avx): Likewise.
8222         (config-cflags-sse2avx): Likewise.
8223         (config-cflags-novzeroupper): Likewise.
8224         (config-asflags-i686): Likewise.
8225         (have-mfma4): Likewise.
8226         (have-as-vis3): Likewise.
8227         (MIG): Likewise.
8228         * configure.in (MIG): Do not AC_SUBST.
8229         (libc_cv_cc_nofma): Move AC_SUBST next to configure test.
8230         (libc_cv_cc_sse4): Do not AC_SUBST.
8231         (libc_cv_cc_avx): Likewise.
8232         (libc_cv_cc_sse2avx): Likewise.
8233         (libc_cv_cc_novzeroupper): Likewise.
8234         (libc_cv_cc_fma4): Likewise.
8235         (libc_cv_as_i686): Likewise.
8236         (libc_cv_sparc_as_vis3): Likewise.
8237         * sysdeps/i386/configure.in (config-cflags-sse4): Set using
8238         LIBC_CONFIG_VAR.
8239         (config-asflags-i686): Likewise.
8240         (config-cflags-avx): Likewise.
8241         (config-cflags-sse2avx): Likewise.
8242         (have-mfma4): Likewise.
8243         (config-cflags-novzeroupper): Likewise.
8244         * sysdeps/mach/configure.in (MIG): Likewise.
8245         * sysdeps/sparc/configure.in (have-as-vis3): Likewise.
8246         * sysdeps/x86_64/configure.in (config-cflags-sse4): Set using
8247         LIBC_CONFIG_VAR.
8248         (config-cflags-avx): Likewise.
8249         (config-cflags-sse2avx): Likewise.
8250         (have-mfma4): Likewise.
8251         (config-cflags-novzeroupper): Likewise.
8252         * configure: Regenerated.
8253         * sysdeps/i386/configure: Likewise.
8254         * sysdeps/mach/configure: Likewise.
8255         * sysdeps/sparc/configure: Likewise.
8256         * sysdeps/x86_64/configure: Likewise.
8257
8258 2013-03-20  Roland McGrath  <roland@hack.frob.com>
8259
8260         [BZ #14812]
8261         * locale/programs/localedef.c (options): Put N_ translation marker
8262         on argument names, not just descriptions.
8263
8264 2013-03-20  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
8265
8266         * Makerules ($(inst_libdir)/libc.so): Use $(rtlddir).
8267
8268 2013-03-20  Ondřej Bílka  <neleai@seznam.cz>
8269
8270         [BZ #14176]
8271         * stdlib/stdlib.h (mblen, mbtowc, wctomb): Remove __wur.
8272
8273 2013-03-19  Roland McGrath  <roland@hack.frob.com>
8274
8275         * sysdeps/posix/libc_fatal.c: Include <sys/mman.h>.
8276         [!WRITEV_FOR_FATAL] (writev_for_fatal): New function.
8277         [!WRITEV_FOR_FATAL] (WRITEV_FOR_FATAL): New macro; call that.
8278         [!BEFORE_ABORT] (before_abort): New function.
8279         [!BEFORE_ABORT] (BEFORE_ABORT): New macro; call that.
8280         * sysdeps/unix/sysv/linux/libc_fatal.c: Trim includes.
8281         (writev_for_fatal): New function.
8282         (WRITEV_FOR_FATAL): New macro; call that.
8283         (backtrace_and_maps): New function.
8284         (BEFORE_ABORT): New macro; call that.
8285         (struct str_list): Type removed.
8286         (__libc_message, __libc_fatal): Functions removed.
8287         Include <sysdeps/posix/libc_fatal.c> instead.
8288
8289 2013-03-19  Joseph Myers  <joseph@codesourcery.com>
8290
8291         * math/k_casinhf.c (__kernel_casinhf): Consistently use float
8292         constants.
8293         * math/k_casinhl.c (__kernel_casinhl): Consistently use long
8294         double constants.
8295
8296 2013-03-19  Andreas Schwab  <schwab@suse.de>
8297
8298         * sysdeps/gnu/configure.in: Set libc_cv_rtldir for s390x.
8299         * sysdeps/gnu/configure: Regenerate.
8300
8301         * configure.in: Substitute libc_cv_rtlddir.
8302         * configure: Regenerate.
8303         * config.make.in (rtlddir): Set from libc_cv_rtlddir.
8304         * Makeconfig (rtlddir, inst_rtlddir): New variables.
8305         (rtld-LDFLAGS): Use them with $(rtld-installed-name).
8306         * elf/Makefile (install-others, CFLAGS-interp.c)
8307         (ldso_install, common-ldd-rewrite): Likewise.
8308         ($(inst_rtlddir)/$(rtld-installed-name)): Renamed from
8309         $(inst_slibdir)/$(rtld-installed-name).
8310         * scripts/rellns-sh: Add -p option.
8311         * Makerules (make-shlib-link): Use rellns-sh to get relative name
8312         for source.
8313
8314 2013-03-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
8315
8316         * manual/nptl.texi: Renamed to ...
8317         * manual/threads.texi: ... this.
8318         * manual/Makefile (chapters): Update.
8319
8320 2013-03-18  Roland McGrath  <roland@hack.frob.com>
8321
8322         [BZ #14812]
8323         * argp/argp-parse.c (argp_default_options): Put N_ translation marker
8324         on argument names, not just descriptions.
8325         * malloc/memusagestat.c (options): Likewise.
8326         * nss/getent.c (options): Likewise.
8327
8328 2013-03-18  Benno Schulenberg  <bensberg@justemail.net>
8329
8330         [BZ #14812]
8331         * iconv/iconv_prog.c (options): Put N_ translation marker
8332         on argument names, not just descriptions.
8333         * iconv/iconvconfig.c (options): Likewise.
8334
8335 2013-03-18  Ondrej Bilka  <neleai@seznam.cz>
8336
8337         * sysdeps/x86_64/strlen.S: Replace with new SSE2 based
8338         implementation which is faster on all x86_64 architectures.
8339         Tested on AMD, Intel Nehalem, SNB, IVB.
8340         * sysdeps/x86_64/strnlen.S: Likewise.
8341
8342         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines):
8343         Remove all multiarch strlen and strnlen versions.
8344         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: Update.
8345         Remove strlen and strnlen related parts.
8346
8347         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: Update.
8348         Inline strlen part.
8349         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Likewise.
8350
8351         * sysdeps/x86_64/multiarch/strlen.S: Remove.
8352         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S: Likewise.
8353         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: Likewise.
8354         * sysdeps/x86_64/multiarch/strlen-sse4.S: Likewise.
8355         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
8356         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: Likewise.
8357
8358 2013-03-17  Carlos O'Donell  <carlos@redhat.com>
8359
8360         * manual/memory.texi (Malloc Tunable Parameters):
8361         Sort parameters alphabetically. Add comments for missing entries.
8362
8363 2013-03-17  David S. Miller  <davem@davemloft.net>
8364
8365         * sysdeps/sparc/fpu/libm-test-ulps: Update.
8366
8367 2013-03-16  Joseph Myers  <joseph@codesourcery.com>
8368
8369         [BZ #15283]
8370         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_y1l): Correct test
8371         for arguments at most half maximum finite value.
8372         * math/libm-test.inc (j0_test): Add more tests.
8373         (j1_test): Likewise.
8374         (y0_test): Likewise.
8375         (y1_test): Likewise.
8376         * sysdeps/i386/fpu/libm-test-ulps: Update.
8377         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
8378
8379         [BZ #14155]
8380         * sysdeps/ieee754/ldbl-128/e_j0l.c (__ieee754_j0l): Do not compute
8381         1 / x and functions P and Q for arguments above 0x1p256L.
8382         (__ieee754_y0l): Likewise.
8383         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_j1l): Likewise.
8384         (__ieee754_y1l): Likewise.
8385         * math/libm-test.inc (j0_test): Do not allow spurious underflows.
8386         (j1_test): Likewise.
8387         (y0_test): Likewise.
8388         (y1_test): Likewise.
8389
8390 2013-03-16  Thomas Schwinge  <thomas@codesourcery.com>
8391
8392         * math/test-snan.c (TEST_FUNC): Add and use minus_sNaN_var
8393         variable.
8394
8395 2013-03-15  Roland McGrath  <roland@hack.frob.com>
8396
8397         * elf/dl-support.c (_dl_aux_init): Ignore zero value for AT_PAGESZ.
8398         (_dl_non_dynamic_init): Don't set _dl_pagesize; it will never be
8399         zero since it's initialized to EXEC_PAGESIZE.
8400
8401         * sysdeps/unix/sysv/linux/ldsodefs.h
8402         (_dl_non_dynamic_init, _dl_aux_init): Move declarations to ...
8403         * sysdeps/generic/ldsodefs.h: ... here.
8404
8405 2013-03-15  Thomas Schwinge  <thomas@codesourcery.com>
8406
8407         * math/libm-test.inc (ldexp_test): Add missing START/END markers.
8408
8409         * sysdeps/powerpc/fpu/test-powerpc-snan.c: Rename to
8410         math/test-snan.c.
8411         * math/test-snan.c: Renamed from
8412         sysdeps/powerpc/fpu/test-powerpc-snan.c.
8413         * math/Makefile (tests): Add test-snan.
8414         * sysdeps/powerpc/fpu/Makefile (libm-tests): Don't add
8415         test-powerpc-snan.
8416
8417         * math/basic-test.c (TEST_FUNC): Replace NANFUNC argument with
8418         SUFFIX.  Initialize qNaN_var with __builtin_nan family of
8419         functions.
8420         (TEST_TRUNC): Add SUFFIX argument.  Initialize qNaN_var with
8421         __builtin_nan family of functions.
8422         * math/libm-test.inc (initialize): Initialize qnan_value with
8423         __builtin_nan family of functions.
8424         * sysdeps/powerpc/fpu/test-powerpc-snan.c (SNANf, SNAN, SNANl):
8425         Remove variables.
8426         (init_signaling_nan, snan_float, snan_double, snan_ldouble):
8427         Remove functions.
8428         (TEST_FUNC): Add SUFFIX argument.  Move sNaN_var into static
8429         storage class.  Initialize qNaN_var and sNaN_var with
8430         __builtin_nan and __builtin_nans families of functions,
8431         respectively.
8432
8433         * math/libm-test.inc (acosh_test): Also test with qNaN input.
8434         (sqrt_test): Remove duplicate test with qNaN input.
8435         (lrint_test, llrint_test, lround_test, llround_test, rint_test)
8436         (round_test, signbit_test, significand_test): Note missing +/-Inf
8437         as well as qNaN tests.
8438
8439         * math/basic-test.c (TEST_FUNC, TEST_TRUNC): Rename NaN_var to
8440         qNaN_var.  Fix a few strings, too.
8441         * math/libm-test.inc (nan_value): Rename to qnan_value.
8442         * math/gen-libm-test.pl (%beautify): Adjust to that.
8443         * math/bits/mathcalls.h (nan): Refer to qNaN instead of NaN.
8444         * math/test-misc.c (main): Likewise.
8445         * sysdeps/ieee754/bits/nan.h (__nan_bytes, __nan_union): Rename
8446         to __qnan_bytes, and __qnan_union, respectively.
8447         * ports/sysdeps/mips/bits/nan.h (__nan_bytes, __nan_union):
8448         Likewise.
8449         * stdio-common/tstdiomisc.c (nanval, lnanval): Rename to qnanval,
8450         and lqnanval, respectively.
8451         * sysdeps/powerpc/bits/fenv.h: Fix usage of NaN/qNaN/sNaN.
8452         * sysdeps/powerpc/fpu/fenv_libc.h: Likewise.
8453         * sysdeps/powerpc/fpu/test-powerpc-snan.c (TEST_FUNC): Likewise,
8454         and rename NaN_var to qNaN_var, and SNaN_var to sNaN_var.
8455
8456         * math/libm-test.inc (fpstack_test) [__x86_64__]: Enable test.
8457         * math/test-misc.c (main) [__x86_64__]: Enable test for long
8458         doubles.
8459
8460         * math/test-misc.c (main): Fix copy'n'pastos.
8461         * misc/tst-efgcvt.c (special): Likewise.
8462
8463         * stdio-common/printf_fp.c (__isinfl_internal, __isnanl_internal):
8464         Remove declarations.
8465
8466 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
8467
8468         * sysdeps/ieee754/dbl-64/mpa-arch.h: Remove.
8469         * sysdeps/ieee754/dbl-64/mpa.c: Revert last change.
8470         * sysdeps/ieee754/dbl-64/mpa.h: Revert last change.
8471         * sysdeps/powerpc/power4/fpu/mpa-arch.h: Remove.
8472
8473 2013-03-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8474
8475         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h (VDSO_IFUNC_RET): Add
8476         macro to return vdso values correctly in IFUNC implementations.
8477         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c (__gettimeofday):
8478         Optimization by using IFUNC.
8479
8480 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
8481             Richard Henderson  <rth@redhat.com>
8482             Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
8483
8484         * Makefile.in (bench): New target.
8485         * NEWS: Mention the benchmark framework.
8486         * Rules (bench): Likewise.
8487         (binaries-bench): Generate binaries for functions to
8488         benchmark.
8489         * benchtests/Makefile: New makefile for benchmark tests.
8490         * benchtests/bench-skeleton.c: New skeleton file for benchmark
8491         programs.
8492         * benchtests/exp-inputs: New input file for EXP function.
8493         * benchtests/pow-inputs: New input file for POW function.
8494         * scripts/bench.pl: New script to generate source files for
8495         benchmark programs.
8496
8497 2013-03-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
8498
8499         * sysdeps/ieee754/dbl-64/mpa-arch.h: New file.
8500         * sysdeps/ieee754/dbl-64/mpa.c (norm): Use MANTISSA_T to store
8501         computations on mantissa.  Use macros for rounding and
8502         division.
8503         (denorm): Likewise.
8504         (__dbl_mp): Likewise.
8505         (add_magnitudes): Likewise.
8506         (sub_magnitudes): Likewise.
8507         (__mul): Likewise.
8508         (__sqr): Likewise.
8509         * sysdeps/ieee754/dbl-64/mpa.h: Include mpa-arch.h.  Define
8510         powers of two in terms of TWOPOW macro.
8511         (mp_no): Make type of mantissa as MANTISSA_T.
8512         [!RADIXI]: Define RADIXI.
8513         [!TWO52]: Define TWO52.
8514         * sysdeps/powerpc/power4/fpu/mpa-arch.h: New file.
8515
8516         * manual/nptl.texi (cindex): Modify threads to pthreads.
8517
8518 2013-03-15  Joseph Myers  <joseph@codesourcery.com>
8519
8520         * sysdeps/x86_64/preconfigure: Regenerated.
8521
8522 2013-03-14  Joseph Myers  <joseph@codesourcery.com>
8523
8524         [BZ #14155]
8525         * sysdeps/ieee754/dbl-64/e_j0.c (pzero): Return 1.0 for arguments
8526         0x1p28 and above.
8527         (qzero): Return -0.125 / x for arguments 0x1p28 and above.
8528         * sysdeps/ieee754/dbl-64/e_j1.c (pzero): Return 1.0 for arguments
8529         0x1p28 and above.
8530         (qzero): Return 0.375 / x for arguments 0x1p28 and above.
8531         * math/libm-test.inc (j0_test): Do not allow one spurious
8532         underflow exception.
8533         (y1_test): Likewise.
8534
8535 2013-03-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
8536
8537         * manual/Makefile (chapters): Add nptl.
8538         * manual/debug.texi (Debugging Support): Add link to Threads
8539         chapter.
8540         * manual/nptl.texi: New file.
8541
8542         * sysdeps/unix/sysv/linux/times.c (__times): Fix formatting.
8543
8544 2013-03-14  Petr Baudis  <pasky@ucw.cz>
8545
8546         * sysdeps/unix/sysv/linux/times.c (__times): On EFAULT, test
8547         for non-NULL pointer before the memory validity test. Pointed
8548         out by Holger Brunck <holger.brunck@keymile.com>.
8549
8550 2013-03-13  Andreas Schwab  <schwab@suse.de>
8551
8552         * extra-lib.mk (extra-objs): Add static-only-routines as .oS
8553         instead of .os.
8554
8555 2013-03-13  Joseph Myers  <joseph@codesourcery.com>
8556
8557         * timezone/zic.c: Update from tzcode 2013b.
8558
8559 2013-03-12  Carlos O'Donell  <carlos@redhat.com>
8560
8561         * manual/install.texi (Configuring and compiling):
8562         Mention i686 and i586.
8563         * INSTALL: Regenerate.
8564
8565 2013-03-12  Roland McGrath  <roland@hack.frob.com>
8566
8567         * sysdeps/init_array/elf-init.c: New file.
8568         * csu/elf-init.c
8569         (__libc_csu_init) [!NO_INITFINI]: Conditionalize _init call on this.
8570         (__libc_csu_fini) [!NO_INITFINI]: Conditionalize _fini call on this.
8571
8572         * csu/gmon-start.c [GMON_START_ARRAY_SECTION]: Don't define
8573         __gmon_start__ as global, but as static with a .preinit_array pointer.
8574         * sysdeps/init_array/gmon-start.c: New file.  Use that.
8575         * sysdeps/init_array/crti.S: New file, empty except for comments.
8576         * sysdeps/init_array/crtn.S: Likewise.
8577
8578 2013-03-11  Ondřej Bílka  <neleai@seznam.cz>
8579
8580         * sysdeps/x86_64/memset.S: Remove USE_MULTIARCH conditional for
8581         definining bcopy.
8582         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
8583         Remove Prefer_SSE_for_memop.
8584         * sysdeps/x86_64/multiarch/init-arch.h: Remove
8585         bit_Prefer_SSE_for_memop, index_Prefer_SSE_for_memop,
8586         HAS_PREFER_SSE_FOR_MEMOP.
8587         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Remove
8588         memset-x86-64.
8589         * sysdeps/x86_64/multiarch/ifunc-impl-list.c (__libc_ifunc_impl_list):
8590         Remove bzero, memset ifunc support.
8591         * sysdeps/x86_64/multiarch/bzero.S: Remove file.
8592         * sysdeps/x86_64/multiarch/memset-x86-64.S: Likewise.
8593         * sysdeps/x86_64/multiarch/memset.S: Likewise.
8594         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
8595
8596 2013-03-11  Andreas Schwab  <schwab@suse.de>
8597
8598         [BZ #15234]
8599         * Versions.def (libpthread): Add GLIBC_2.3, so that it can be used
8600         by SHLIB_COMPAT.
8601         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist
8602         (GLIBC_2.16): Remove pthread_atfork.
8603
8604 2013-03-08  Paul Pluzhnikov  <ppluzhnikov@google.com>
8605
8606         * posix/Makefile (testcases.h): Set LC_ALL=C before sed.
8607         (ptestcases.h): Likewise.
8608
8609 2013-03-08  Roland McGrath  <roland@hack.frob.com>
8610
8611         * Makeconfig ($(common-objpfx)config.status): Depend on
8612         sysdeps/*/preconfigure{,.in} too.
8613
8614 2013-03-08  Joseph Myers  <joseph@codesourcery.com>
8615
8616         * malloc/malloc.h (__malloc_ptr_t): Remove macro.
8617         (__free_hook): Use void * instead of __malloc_ptr_t.
8618         (__malloc_hook): Likewise.
8619         (__realloc_hook): Likewise.
8620         (__memalign_hook): Likewise.
8621         (__after_morecore_hook): Likewise.
8622         * malloc/arena.c (save_malloc_hook): Likewise.
8623         (save_free_hook): Likewise.
8624         * malloc/hooks.c (malloc_hook_ini): Likewise.
8625         (realloc_hook_ini): Likewise.
8626         (memalign_hook_ini): Likewise.
8627         * malloc/malloc.c (malloc_hook_ini): Likewise.
8628         (realloc_hook_ini): Likewise.
8629         (memalign_hook_ini): Likewise.
8630         (__free_hook): Likewise.
8631         (__malloc_hook): Likewise.
8632         (__realloc_hook): Likewise.
8633         (__memalign_hook): Likewise.
8634         (__libc_malloc): Likewise.
8635         (__libc_free): Likewise.
8636         (__libc_realloc): Likewise.
8637         (__libc_memalign): Likewise.
8638         (__libc_valloc): Likewise.
8639         (__libc_pvalloc): Likewise.
8640         (__libc_calloc): Likewise.
8641         (__posix_memalign): Likewise.
8642         * malloc/morecore.c (__sbrk): Likewise.
8643         (__default_morecore): Likewise.
8644
8645         * malloc/morecore.c (__default_morecore): Use ISO C prototype.
8646
8647         * malloc/malloc.h (__malloc_ptrdiff_t): Remove macro.
8648         * malloc/morecore.c (__default_morecore): Use ptrdiff_t instead of
8649         __malloc_ptrdiff_t.
8650
8651         * malloc/malloc.h (__malloc_size_t): Remove macro.
8652         * malloc/mcheck.c (old_malloc_hook): Use size_t instead of
8653         __malloc_size_t.
8654         (old_memalign_hook): Likewise.
8655         (old_realloc_hook): Likewise.
8656         (struct hdr): Likewise.
8657         (flood): Likewise.
8658         (mallochook): Likewise.
8659         (memalignhook): Likewise.
8660         (reallochook): Likewise.
8661         * malloc/mtrace.c (tr_old_malloc_hook): Likewise.
8662         (tr_old_realloc_hook): Likewise.
8663         (tr_old_memalign_hook): Likewise.
8664         (tr_mallochook): Likewise.
8665         (tr_reallochook): Likewise.
8666         (tr_memalignhook): Likewise.
8667
8668 2013-03-08  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8669
8670         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_pack): Rename to
8671         default_ldbl_pack and using as default implementation.
8672         (ldbl_unpack): Rename to default_ldbl_unpack and using as default
8673         implementation.
8674         * sysdeps/powerpc/fpu/math_ldbl.h (ldbl_extract_mantissa): Remove
8675         redundant definition.
8676         (ldbl_insert_mantissa): Likewise.
8677         (ldbl_canonicalize): Likewise.
8678         (ldbl_nearbyint): Likewise.
8679         (ldbl_pack): Rename to ldbl_pack_ppc.
8680         (ldbl_unpack): Rename to ldbl_unpack_ppc.
8681         * sysdeps/unix/sysv/linux/powerpc/Implies: Remove file.
8682         * sysdeps/powerpc/Implies: Add ieee754/ldbl-opt after ieee754/ldbl-128ibm.
8683
8684 2013-03-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
8685
8686         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Move file...
8687         * sysdeps/powerpc/power4/fpu/mpa.c: ... here.
8688         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile: Move file...
8689         * sysdeps/powerpc/power4/fpu/Makefile: ... here.
8690         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Remove file.
8691         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile: Remove file.
8692         * sysdeps/powerpc/powerpc32/power4/Implies: New file.
8693         * sysdeps/powerpc/powerpc64/power4/Implies: New file.
8694
8695 2013-03-07  Andreas Jaeger  <aj@suse.de>
8696
8697         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
8698         bits/mman-linux.h.
8699
8700 2013-03-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
8701
8702         * sysdeps/ieee754/dbl-64/slowexp.c [!USE_LONG_DOUBLE_FOR_MP]:
8703         Include mpa.h and declare __MPEXP.
8704         [USE_LONG_DOUBLE_FOR_MP] (__slowexp): Call __IEEE754_EXPL.
8705         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
8706         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
8707         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Remove.
8708         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
8709         (CPPFLAGS-slowexp.c): Define USE_LONG_DOUBLE_FOR_MP.
8710         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Remove.
8711
8712         * sysdeps/ieee754/dbl-64/slowpow.c [USE_LONG_DOUBLE_FOR_MP]
8713         (__slowpow): Use long double EXPL and LOGL functions to
8714         compute POW.
8715         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile
8716         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
8717         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Remove.
8718         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile
8719         (CPPFLAGS-slowpow.c): Define USE_LONG_DOUBLE_FOR_MP.
8720         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Remove.
8721
8722         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Use
8723         intermediate variable to calculate exponent.
8724         (__sqr): Likewise.
8725         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
8726         Likewise.
8727         (__sqr): Likewise.
8728
8729         * sysdeps/ieee754/dbl-64/mpa.c [!NO__MUL]: Define __mul.
8730         [!NO__SQR]: Define __sqr.
8731         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: define NO__MUL
8732         and NO__SQR.  Remove all code except __mul and __sqr.  Include
8733         sysdeps/ieee754/dbl-64/mpa.c.
8734         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
8735
8736         [BZ #12723]
8737         * posix/Makefile (tests): Add tst-pathconf.
8738         * posix/tst-pathconf.c: New test case.
8739         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Remove
8740         _PC_PIPE_BUF.
8741         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Likewise.
8742
8743 2013-03-06  Patsy Franklin  <pfrankli@redhat.com>
8744
8745         * io/fcntl.h: Added a comment about AT_EACCESS and AT_REMOVEDIR.
8746
8747 2013-03-06  Andreas Jaeger  <aj@suse.de>
8748
8749         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_ANONYMOUS): Allow
8750         definition via __MAP_ANONYMOUS.
8751
8752         * sysdeps/unix/sysv/linux/s390/bits/mman.h (MAP_GROWSUP): Remove,
8753         it's not part of Linux headers.
8754
8755         * sysdeps/unix/sysv/linux/bits/mman-linux.h (MAP_HUGE_SHIFT): Define.
8756         (MAP_HUGE_MASK): Define.
8757
8758         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h (PTRACE_O_EXIT_KILL):
8759         Define.
8760         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
8761         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h (PTRACE_O_EXIT_KILL):
8762         Define.
8763         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
8764         * sysdeps/unix/sysv/linux/sys/ptrace.h (PTRACE_O_EXIT_KILL):
8765         Define.
8766         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
8767         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h (PTRACE_O_EXITKILL):
8768         Define.
8769         (PTRACE_O_MASK): Adjust for PTRACE_O_EXITKILL.
8770
8771         * sysdeps/unix/sysv/linux/x86/bits/msq.h (MSG_COPY): Likewise.
8772         * sysdeps/unix/sysv/linux/generic/bits/msq.h (MSG_COPY): Define.
8773         * sysdeps/unix/sysv/linux/powerpc/bits/msq.h (MSG_COPY): Likewise.
8774         * sysdeps/unix/sysv/linux/bits/msq.h (MSG_COPY): Likewise.
8775         * sysdeps/unix/sysv/linux/s390/bits/msq.h (MSG_COPY): Likewise.
8776         * sysdeps/unix/sysv/linux/sparc/bits/msq.h (MSG_COPY): Define.
8777
8778         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
8779         Handle f2fs.
8780
8781         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
8782         Handle f2fs and efivarfs.
8783
8784         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Handle
8785         f2fs.
8786
8787         * sysdeps/unix/sysv/linux/linux_fsinfo.h (F2FS_SUPER_MAGIC): Add.
8788         (EFIVARFS_MAGIC): Add.
8789         (F2FS_LINK_MAX): Add.
8790
8791 2013-03-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
8792
8793         * stdio-common/vfprintf.c: Replace __builtin_expect with
8794         __glibc_unlikely.
8795
8796 2013-03-06  Joseph Myers  <joseph@codesourcery.com>
8797
8798         [BZ #13550]
8799         * sysdeps/generic/bp-sym.h: Remove file.
8800         * sysdeps/powerpc/powerpc64/bp-asm.h: Likewise.
8801         * sysdeps/powerpc/powerpc64/__longjmp-common.S: Don't include
8802         <bp-sym.h> and <bp-asm.h>.
8803         (__longjmp): Don't use BP_SYM.
8804         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Don't include <bp-sym.h>
8805         and <bp-asm.h>.
8806         (memcpy): Don't use BP_SYM.
8807         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Don't include
8808         <bp-sym.h> and <bp-asm.h>.
8809         (memcpy): Don't use BP_SYM.
8810         * sysdeps/powerpc/powerpc64/memcpy.S: Don't include <bp-sym.h> and
8811         <bp-asm.h>.
8812         (memcpy): Don't use BP_SYM.
8813         * sysdeps/powerpc/powerpc64/memset.S: Don't include <bp-sym.h> and
8814         <bp-asm.h>.
8815         (memset): Don't use BP_SYM.
8816         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
8817         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
8818         (__bzero): Don't use BP_SYM.
8819         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
8820         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
8821         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Don't include
8822         <bp-sym.h> and <bp-asm.h>.
8823         (memcmp): Don't use BP_SYM.  Remove comment about bounded
8824         pointers.
8825         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Don't include
8826         <bp-sym.h> and <bp-asm.h>.
8827         (memcpy): Don't use BP_SYM.
8828         * sysdeps/powerpc/powerpc64/power4/memset.S: Don't include
8829         <bp-sym.h> and <bp-asm.h>.
8830         (memset): Don't use BP_SYM.
8831         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
8832         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
8833         (__bzero): Don't use BP_SYM.
8834         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
8835         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
8836         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Don't include
8837         <bp-sym.h> and <bp-asm.h>.
8838         (strncmp): Don't use BP_SYM.  Remove comment about bounded
8839         pointers.
8840         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Don't include
8841         <bp-sym.h> and <bp-asm.h>.
8842         (memcpy): Don't use BP_SYM.
8843         * sysdeps/powerpc/powerpc64/power6/memset.S: Don't include
8844         <bp-sym.h> and <bp-asm.h>.
8845         (memset): Don't use BP_SYM.
8846         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
8847         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
8848         (__bzero): Don't use BP_SYM.
8849         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
8850         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
8851         * sysdeps/powerpc/powerpc64/power7/memchr.S: Don't include
8852         <bp-sym.h> and <bp-asm.h>.
8853         (__memchr): Don't use BP_SYM.
8854         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Don't include
8855         <bp-sym.h> and <bp-asm.h>.
8856         (memcmp): Don't use BP_SYM.  Remove comment about bounded
8857         pointers.
8858         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Don't include
8859         <bp-sym.h> and <bp-asm.h>.
8860         (memcpy): Don't use BP_SYM.
8861         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: Don't include
8862         <bp-sym.h> and <bp-asm.h>.
8863         (__mempcpy): Don't use BP_SYM.
8864         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Don't include
8865         <bp-sym.h> and <bp-asm.h>.
8866         (__memrchr): Don't use BP_SYM.
8867         * sysdeps/powerpc/powerpc64/power7/memset.S: Don't include
8868         <bp-sym.h> and <bp-asm.h>.
8869         (memset): Don't use BP_SYM.
8870         (__bzero): Likewise.
8871         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: Don't include
8872         <bp-sym.h> and <bp-asm.h>.
8873         (__rawmemchr): Don't use BP_SYM.
8874         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Don't include
8875         <bp-sym.h> and <bp-asm.h>.
8876         (__STRCMP): Don't use BP_SYM.
8877         * sysdeps/powerpc/powerpc64/power7/strchr.S: Don't include
8878         <bp-sym.h> and <bp-asm.h>.
8879         (strchr): Don't use BP_SYM.
8880         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: Don't include
8881         <bp-sym.h> and <bp-asm.h>.
8882         (__strchrnul): Don't use BP_SYM.
8883         * sysdeps/powerpc/powerpc64/power7/strlen.S: Don't include
8884         <bp-sym.h> and <bp-asm.h>.
8885         (strlen): Don't use BP_SYM.
8886         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Don't include
8887         <bp-sym.h> and <bp-asm.h>.
8888         (strncmp): Don't use BP_SYM.  Remove comment about bounded
8889         pointers.
8890         * sysdeps/powerpc/powerpc64/power7/strnlen.S: Don't include
8891         <bp-sym.h> and <bp-asm.h>.
8892         (__strnlen): Don't use BP_SYM.
8893         * sysdeps/powerpc/powerpc64/setjmp-common.S: Don't include
8894         <bp-sym.h> and <bp-asm.h>.
8895         (__GI__setjmp): Don't use BP_SYM.
8896         (_setjmp): Likewise.
8897         (__sigsetjmp): Likewise.
8898         * sysdeps/powerpc/powerpc64/start.S: Don't include "bp-sym.h".
8899         (L(start_addresses)): Don't use BP_SYM.
8900         (_start): Likewise.
8901         * sysdeps/powerpc/powerpc64/stpcpy.S: Don't include <bp-sym.h> and
8902         <bp-asm.h>.
8903         (__stpcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW,
8904         STORE_RETURN_BOUNDS, CHECK_BOUNDS_HIGH and STORE_RETURN_VALUE.
8905         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8906         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
8907         * sysdeps/powerpc/powerpc64/strchr.S: Don't include <bp-sym.h> and
8908         <bp-asm.h>.
8909         (strchr): Don't use BP_SYM, CHECK_BOUNDS_LOW, STORE_RETURN_BOUNDS,
8910         CHECK_BOUNDS_HIGH_RTN and STORE_RETURN_VALUE.  Remove comment
8911         about bounded pointers.
8912         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
8913         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
8914         * sysdeps/powerpc/powerpc64/strcmp.S: Don't include <bp-sym.h> and
8915         <bp-asm.h>.
8916         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
8917         about bounded pointers.  Remove GKM FIXME comments.
8918         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
8919         * sysdeps/powerpc/powerpc64/strcpy.S: Don't include <bp-sym.h> and
8920         <bp-asm.h>.
8921         (strcpy): Don't use BP_SYM, CHECK_BOUNDS_LOW and
8922         STORE_RETURN_BOUNDS.  Remove comment about bounded pointers.
8923         Remove GKM FIXME comments.
8924         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
8925         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
8926         * sysdeps/powerpc/powerpc64/strlen.S: Don't include <bp-sym.h> and
8927         <bp-asm.h>.
8928         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove comment
8929         about bounded pointers.  Remove GKM FIXME comment.
8930         * sysdeps/powerpc/powerpc64/strncmp.S: Don't include <bp-sym.h>
8931         and <bp-asm.h>.
8932         (strncmp): Don't use BP_SYM.  Remove comment about bounded
8933         pointers.
8934         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S: Don't include
8935         <bp-sym.h> and <bp-asm.h>.
8936         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
8937         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S: Don't include
8938         <bp-sym.h> and <bp-asm.h>.
8939         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
8940         comment.
8941
8942 2013-03-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
8943
8944         * stdio-common/vfprintf.c (vfprintf): Check malloc return; don't
8945         call free(NULL).
8946
8947 2013-03-05  David S. Miller  <davem@davemloft.net>
8948
8949         * po/es.po: Update from translation team.
8950
8951 2013-03-05  Andreas Jaeger  <aj@suse.de>
8952
8953         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Include
8954         <bits/mman-linux.h>.
8955         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
8956         is fine.
8957         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Move include of
8958         <bits/mman-linux.h> to end of file.
8959         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
8960         is fine.
8961         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Move include of
8962         <bits/mman-linux.h> to end of file.
8963         (MCL_CURRENT, MCL_FUTURE): Do not define here, the generic value
8964         is fine.
8965         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Move include of
8966         <bits/mman-linux.h> to end of file.
8967
8968         * sysdeps/unix/sysv/linux/bits/mman-linux.h [!MCL_CURRENT]
8969         (MCL_CURRENT, MCL_FUTURE): Define here.
8970
8971 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8972
8973         [BZ #15232]
8974         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Use
8975         attribute_hidden.
8976         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
8977
8978 2013-03-05  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
8979
8980         * sysdeps/unix/sysv/linux/s390/s390-32/getcontext.S: Set the
8981         fourth parameter needed for rt_sigprocmask syscall.
8982         * sysdeps/unix/sysv/linux/s390/s390-32/setcontext.S:
8983         * sysdeps/unix/sysv/linux/s390/s390-32/swapcontext.S: Likewise.
8984         * sysdeps/unix/sysv/linux/s390/s390-64/getcontext.S: Likewise.
8985         * sysdeps/unix/sysv/linux/s390/s390-64/setcontext.S: Likewise.
8986         * sysdeps/unix/sysv/linux/s390/s390-64/swapcontext.S: Likewise.
8987         * sysdeps/unix/sysv/linux/s390/ucontext_i.sym: Define _NSIG8.
8988
8989 2013-03-04  Joseph Myers  <joseph@codesourcery.com>
8990
8991         [BZ #13550]
8992         * sysdeps/powerpc/powerpc32/power4/strncmp.S (strncmp): Remove
8993         comment about bounded pointers.
8994         * sysdeps/powerpc/powerpc32/power7/strncmp.S (strncmp): Likewise.
8995         * sysdeps/powerpc/powerpc32/strncmp.S (strncmp): Likewise.
8996
8997 2013-03-04  Andreas Jaeger  <aj@suse.de>
8998
8999         * sysdeps/unix/sysv/linux/bits/mman-linux.h: New file, with Linux
9000         common definitions.
9001
9002         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Remove all defines
9003         provided by bits/mman-linux.h and include <bits/mman-linux.h>.
9004         * sysdeps/unix/sysv/linux/x86/bits/mman.h: Likewise.
9005         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
9006         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
9007         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
9008
9009 2013-03-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9010
9011         [BZ #15055]
9012         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c (__ieee754_acoshl): Use
9013         __ieee754_sqrl instead of __sqrl.
9014
9015 2013-03-01  Joseph Myers  <joseph@codesourcery.com>
9016
9017         * sysdeps/powerpc/fpu/fpu_control.h: Move to ...
9018         * sysdeps/powerpc/fpu_control.h: ... here.
9019         * sysdeps/powerpc/fpu/bits/fenvinline.h: Move to ...
9020         * sysdeps/powerpc/bits/fenvinline.h: ... here.
9021         * sysdeps/powerpc/fpu/bits/mathinline.h: Move to ...
9022         * sysdeps/powerpc/bits/mathinline.h: ... here.
9023
9024 2013-03-01  Roland McGrath  <roland@hack.frob.com>
9025
9026         * elf/dl-hwcaps.c (_dl_important_hwcaps):
9027         Change [NEED_DL_SYSINFO || NEED_DL_SYSINFO_DSO] conditionals
9028         to just [NEED_DL_SYSINFO_DSO].
9029         * elf/dl-support.c: Likewise.
9030         * elf/dl-sysdep.c (_dl_sysdep_start): Likewise.
9031         * elf/rtld.c (dl_main): Likewise.
9032         * elf/setup-vdso.h (setup_vdso): Likewise.
9033         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Likewise.
9034         * sysdeps/unix/sysv/linux/dl-sysdep.c
9035         (_dl_discover_osversion): Likewise.
9036
9037 2013-03-01  Carlos O'Donell  <carlos@redhat.com>
9038
9039         * csu/libc-start.c (__pthread_initialize_minimal): Revert last change.
9040         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
9041
9042 2013-03-01  Siddhesh Poyarekar  <siddhesh@redhat.com>
9043
9044         * NEWS: Mention libm performance improvements and non-x86 PI
9045         futex support.
9046
9047         * csu/libc-start.c (__pthread_initialize_minimal): Change
9048         function arguments.
9049         * csu/libc-tls.c (__pthread_initialize_minimal): Likewise.
9050
9051 2013-02-28  Joseph Myers  <joseph@codesourcery.com>
9052
9053         [BZ #13550]
9054         * sysdeps/powerpc/powerpc32/bp-asm.h: Remove file.
9055         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Don't include
9056         <bp-sym.h> and <bp-asm.h>.
9057         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
9058         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Don't include <bp-sym.h>
9059         and <bp-asm.h>.
9060         (memcpy): Don't use BP_SYM.
9061         * sysdeps/powerpc/powerpc32/add_n.S: Don't include <bp-sym.h> and
9062         <bp-asm.h>.
9063         (__mpn_add_n): Don't use BP_SYM.
9064         (__mpn_add_n) [__BOUNDED_POINTERS_]: Remove conditional code.
9065         * sysdeps/powerpc/powerpc32/addmul_1.S: Don't include <bp-sym.h>
9066         and <bp-asm.h>.
9067         (__mpn_addmul_1): Don't use BP_SYM.
9068         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9069         * sysdeps/powerpc/powerpc32/bsd-_setjmp.S: Don't include
9070         <bp-sym.h>.
9071         (_setjmp): Don't use BP_SYM.
9072         (__novmx_setjmp): Likewise.
9073         (__GI__setjmp): Likewise.
9074         (__vmx_setjmp): Likewise.
9075         * sysdeps/powerpc/powerpc32/bsd-setjmp.S: Don't include
9076         <bp-sym.h>.
9077         * sysdeps/powerpc/powerpc32/bzero.S: Don't include <bp-sym.h>.
9078         (__bzero): Don't use BP_SYM.
9079         (__bzero) [__BOUNDED_POINTERS__]: Remove conditional code.
9080         (__bzero) [!__BOUNDED_POINTERS__]: Make code unconditional.
9081         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Don't include
9082         <bp-sym.h> and <bp-asm.h>.
9083         (memcpy): Don't use BP_SYM.
9084         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Don't include
9085         <bp-sym.h> and <bp-asm.h>.
9086         (__longjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
9087         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Don't include
9088         <bp-sym.h> and <bp-asm.h>.
9089         (__sigsetjmp): Don't use BP_SYM and CHECK_BOUNDS_BOTH_WIDE_LIT.
9090         * sysdeps/powerpc/powerpc32/lshift.S: Don't include <bp-sym.h> and
9091         <bp-asm.h>.
9092         (__mpn_lshift): Don't use BP_SYM.
9093         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9094         * sysdeps/powerpc/powerpc32/memset.S: Don't include <bp-sym.h> and
9095         <bp-asm.h>.
9096         (memset): Don't use BP_SYM.
9097         (memset) [__BOUNDED_POINTERS__]: Remove conditional code.
9098         (memset) [!__BOUNDED_POINTERS__]: Make code unconditional.
9099         * sysdeps/powerpc/powerpc32/mul_1.S: Don't include <bp-sym.h> and
9100         <bp-asm.h>.
9101         (__mpn_mul_1): Don't use BP_SYM.
9102         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9103         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Don't include
9104         <bp-sym.h> and <bp-asm.h>.
9105         (memcmp): Don't use BP_SYM.
9106         * sysdeps/powerpc/powerpc32/power4/memcpy.S: Don't include
9107         <bp-sym.h> and <bp-asm.h>.
9108         (memcpy): Don't use BP_SYM.
9109         * sysdeps/powerpc/powerpc32/power4/memset.S: Don't include
9110         <bp-sym.h> and <bp-asm.h>.
9111         (memset): Don't use BP_SYM.
9112         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't include
9113         <bp-sym.h> and <bp-asm.h>.
9114         (strncmp): Don't use BP_SYM.
9115         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Don't include
9116         <bp-sym.h> and <bp-asm.h>.
9117         (memcpy): Don't use BP_SYM.
9118         * sysdeps/powerpc/powerpc32/power6/memset.S: Don't include
9119         <bp-sym.h> and <bp-asm.h>.
9120         (memset): Don't use BP_SYM.
9121         * sysdeps/powerpc/powerpc32/power7/memchr.S: Don't include
9122         <bp-sym.h> and <bp-asm.h>.
9123         (__memchr): Don't use BP_SYM.
9124         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Don't include
9125         <bp-sym.h> and <bp-asm.h>.
9126         (memcmp): Don't use BP_SYM.
9127         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Don't include
9128         <bp-sym.h> and <bp-asm.h>.
9129         (memcpy): Don't use BP_SYM.
9130         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: Don't include
9131         <bp-sym.h> and <bp-asm.h>.
9132         (__mempcpy): Don't use BP_SYM.
9133         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Don't include
9134         <bp-sym.h> and <bp-asm.h>.
9135         (__memrchr): Don't use BP_SYM.
9136         * sysdeps/powerpc/powerpc32/power7/memset.S: Don't include
9137         <bp-sym.h> and <bp-asm.h>.
9138         (memset): Don't use BP_SYM.
9139         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: Don't include
9140         <bp-sym.h> and <bp-asm.h>.
9141         (__rawmemchr): Don't use BP_SYM.
9142         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Don't include
9143         <bp-sym.h> and <bp-asm.h>.
9144         (__STRCMP): Don't use BP_SYM.
9145         * sysdeps/powerpc/powerpc32/power7/strchr.S: Don't include
9146         <bp-sym.h> and <bp-asm.h>.
9147         (strchr): Don't use BP_SYM.
9148         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: Don't include
9149         <bp-sym.h> and <bp-asm.h>.
9150         (__strchrnul): Don't use BP_SYM.
9151         * sysdeps/powerpc/powerpc32/power7/strlen.S: Don't include
9152         <bp-sym.h> and <bp-asm.h>.
9153         (strlen): Don't use BP_SYM.
9154         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Don't include
9155         <bp-sym.h> and <bp-asm.h>.
9156         (strncmp): Don't use BP_SYM.
9157         * sysdeps/powerpc/powerpc32/power7/strnlen.S: Don't include
9158         <bp-sym.h> and <bp-asm.h>.
9159         (__strnlen): Don't use BP_SYM.
9160         * sysdeps/powerpc/powerpc32/rshift.S: Don't include <bp-sym.h> and
9161         <bp-asm.h>.
9162         (__mpn_rshift): Don't use BP_SYM.
9163         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9164         * sysdeps/powerpc/powerpc32/setjmp-common.S: Don't include
9165         <bp-sym.h> and <bp-asm.h>.
9166         (__sigsetjmp): Don't use BP_SYM.
9167         * sysdeps/powerpc/powerpc32/start.S: Don't include "bp-sym.h".
9168         (L(start_addresses)): Don't use BP_SYM.
9169         (_start): Likewise.
9170         * sysdeps/powerpc/powerpc32/stpcpy.S: Don't include <bp-sym.h> and
9171         <bp-asm.h>.
9172         (__stpcpy): Don't use BP_SYM and macros from bp-asm.h.
9173         (__stpcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
9174         (__stpcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
9175         * sysdeps/powerpc/powerpc32/strchr.S: Don't include <bp-sym.h> and
9176         <bp-asm.h>.
9177         (strchr): Don't use BP_SYM.h and macros from bp-asm.h.
9178         (strchr) [__BOUNDED_POINTERS__]: Remove conditional code.
9179         (strchr) [!__BOUNDED_POINTERS__]: Make code unconditional.
9180         * sysdeps/powerpc/powerpc32/strcmp.S: Don't include <bp-sym.h> and
9181         <bp-asm.h>.
9182         (strcmp): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
9183         comments.
9184         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
9185         * sysdeps/powerpc/powerpc32/strcpy.S: Don't include <bp-sym.h> and
9186         <bp-asm.h>.
9187         (strcpy): Don't use BP_SYM and macros from bp-asm.h.  Remove GKM
9188         FIXME comments.
9189         (strcpy) [__BOUNDED_POINTERS__]: Remove conditional code.
9190         (strcpy) [!__BOUNDED_POINTERS__]: Make code unconditional.
9191         * sysdeps/powerpc/powerpc32/strlen.S: Don't include <bp-sym.h> and
9192         <bp-asm.h>.
9193         (strlen): Don't use BP_SYM and CHECK_BOUNDS_LOW.  Remove GKM FIXME
9194         comment.
9195         * sysdeps/powerpc/powerpc32/strncmp.S: Don't include <bp-sym.h>
9196         and <bp-asm.h>.
9197         (strncmp): Don't use BP_SYM,
9198         * sysdeps/powerpc/powerpc32/sub_n.S: Don't include <bp-sym.h> and
9199         <bp-asm.h>.
9200         (__mpn_sub_n): Don't use BP_SYM.
9201         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9202         * sysdeps/powerpc/powerpc32/submul_1.S: Don't include <bp-sym.h>
9203         and <bp-asm.h>.
9204         (__mpn_submul_1): Don't use BP_SYM.
9205         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9206         * sysdeps/unix/sysv/linux/powerpc/powerpc32/brk.S: Don't include
9207         <bp-sym.h> and <bp-asm.h>.
9208         (__brk): Don't use BP_SYM and DISCARD_BOUNDS.
9209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S: Don't include
9210         <bp-sym.h> and <bp-asm.h>.
9211         (__clone): Don't use BP_SYM and DISCARD_BOUNDS.  Remove GKM FIXME
9212         comment.
9213
9214 2013-02-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
9215
9216         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (add_magnitudes):
9217         Use ZK to minimize writes to Z.
9218         (sub_magnitudes): Simplify code a bit.
9219         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (add_magnitudes):
9220         Use ZK to minimize writes to Z.
9221         (sub_magnitudes): Simplify code a bit.
9222
9223 2013-02-27  Roland McGrath  <roland@hack.frob.com>
9224
9225         * csu/gmon-start.c: Add special exception to license text.
9226
9227 2013-02-27  Richard Henderson  <rth@redhat.com>
9228
9229         * scripts/config.guess: Update from config.git.
9230         * scripts/config.sub: Likewise.
9231
9232 2013-02-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
9233
9234         * sysdeps/ieee754/dbl-64/mpsqrt.c: Reformat.
9235
9236         * sysdeps/ieee754/dbl-64/mpatan2.c: Reformat.
9237
9238         * sysdeps/ieee754/dbl-64/mpatan.c: Reformat.
9239
9240         * sysdeps/ieee754/dbl-64/mptan.c: Reformat.
9241
9242         * sysdeps/ieee754/dbl-64/mplog.c: Reformat.
9243
9244 2013-02-26  Roland McGrath  <roland@hack.frob.com>
9245
9246         * Makeconfig (%.v.i, %.v): Move these pattern rules outside of
9247         [$(build-shared = yes].
9248
9249 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9250
9251         * sysdeps/ieee754/dbl-64/mpa.c: Include alloca.h.
9252         (__mul): Reduce iterations for calculating mantissa.
9253
9254         * sysdeps/ieee754/dbl-64/sincos32.c (__c32): Use MPONE and
9255         MPTWO.
9256         (__mpranred): Likewise.
9257
9258         [BZ #15160]
9259         * malloc/memusagestat.c (main): Draw graphs for heap and stack
9260         only if MAXSIZE_HEAP and MAXSIZE_STACK are non-zero.
9261
9262 2013-02-26  Paul Eggert  <eggert@cs.ucla.edu>
9263
9264         * posix/regex_internal.h [__GNUC__ < 3 + (__GNUC_MINOR__ < 1]:
9265         Define __attribute__.
9266
9267 2013-02-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
9268
9269         * locale/elem-hash.h (elem_hash): Mark as pure and possibly
9270         unused.
9271         * posix/regex_internal.h (__attribute): Remove.
9272         [!_LIBC && __i386__]: Use __attribute__ instead of __attribute.
9273         (re_string_context_at): Likewise.
9274         (bitset_not): Use __attribute__ and mark function as possibly
9275         unused.
9276         (bitset_merge): Likewise.
9277         (bitset_mask): Likewise.
9278         (re_string_char_size_at): Likewise.
9279         (re_string_wchar_at): Likewise.
9280         (re_string_elem_size_at): Likewise.
9281
9282 2013-02-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
9283
9284         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Remove commented
9285         code.
9286         (cc32): Likewise.
9287
9288         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Use long instead of int.
9289         (__acr): Likewise.
9290         (__cpy): Likewise.
9291         (norm): Likewise.
9292         (denorm): Likewise.
9293         (__dbl_mp): Likewise.
9294         (add_magnitudes): Likewise.
9295         (sub_magnitudes): Likewise.
9296         (__mul): Likewise.
9297         (__inv): Likewise.
9298
9299         * sysdeps/ieee754/dbl-64/slowexp.c: Reformat in GNU coding
9300         style.
9301
9302         * sysdeps/ieee754/dbl-64/slowpow.c: Reformat in GNU coding
9303         style.
9304
9305         * sysdeps/ieee754/dbl-64/slowexp.c (__slowexp): Remove commented
9306         code.
9307
9308         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mp_dbl): Sync
9309         up changes with default code.
9310         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mp_dbl):
9311         Likewise.
9312
9313 2013-02-24  Allan McRae  <allan@archlinux.org>
9314
9315         * manual/socket.texi (The Internet Namespace): Order menu items
9316         to match that in the file.
9317
9318         * manual/libc-texinfo.sh: Use @detailmenu around the detailed
9319         node listing of the info page menu.
9320
9321 2013-02-21  Joseph Myers  <joseph@codesourcery.com>
9322
9323         [BZ #13550]
9324         * sysdeps/i386/bp-asm.h: Remove file.
9325         * sysdeps/i386/add_n.S: Do not include "bp-sym.h" and "bp-asm.h".
9326         (PARMS): Do not use macros from bp-asm.h.
9327         (S1): Likewise.
9328         (S2): Likewise.
9329         (SIZE): Likewise.
9330         (__mpn_add_n): Do not use BP_SYM
9331         * sysdeps/i386/addmul_1.S: Do not include "bp-sym.h" and
9332         "bp-asm.h".
9333         (PARMS): Do not use macros from bp-asm.h.
9334         (S1): Likewise.
9335         (SIZE): Likewise.
9336         (__mpn_addmul_1): Do not use BP_SYM
9337         * sysdeps/i386/bsd-_setjmp.S: Do not include "bp-sym.h" and
9338         "bp-asm.h".
9339         (PARMS): Do not use macros from bp-asm.h.
9340         (SIGMSK): Likewise.
9341         (_setjmp): Likewise.  Do not use BP_SYM.
9342         * sysdeps/i386/bsd-setjmp.S: Do not include "bp-sym.h" and
9343         "bp-asm.h".
9344         (PARMS): Do not use macros from bp-asm.h.
9345         (SIGMSK): Likewise.
9346         (setjmp): Likewise.  Do not use BP_SYM.
9347         * sysdeps/i386/fpu/s_frexp.S: Do not include "bp-sym.h" and
9348         "bp-asm.h".
9349         (PARMS): Do not use macros from bp-asm.h.
9350         (__frexp): Do not use BP_SYM.
9351         (frexp): Likewise.
9352         * sysdeps/i386/fpu/s_frexpf.S: Do not include "bp-sym.h" and
9353         "bp-asm.h".
9354         (PARMS): Do not use macros from bp-asm.h.
9355         (__frexpf): Do not use BP_SYM.
9356         (frexpf): Likewise.
9357         * sysdeps/i386/fpu/s_frexpl.S: Do not include "bp-sym.h" and
9358         "bp-asm.h".
9359         (PARMS): Do not use macros from bp-asm.h.
9360         (__frexpl): Do not use BP_SYM.
9361         (frexpl): Likewise.
9362         * sysdeps/i386/fpu/s_remquo.S: Do not include "bp-sym.h" and
9363         "bp-asm.h".
9364         (PARMS): Do not use macros from bp-asm.h.
9365         (__remquo): Do not use BP_SYM.
9366         (remquo): Likewise.
9367         * sysdeps/i386/fpu/s_remquof.S: Do not include "bp-sym.h" and
9368         "bp-asm.h".
9369         (PARMS): Do not use macros from bp-asm.h.
9370         (__remquof): Do not use BP_SYM.
9371         (remquof): Likewise.
9372         * sysdeps/i386/fpu/s_remquol.S: Do not include "bp-sym.h" and
9373         "bp-asm.h".
9374         (PARMS): Do not use macros from bp-asm.h.
9375         (__remquol): Do not use BP_SYM.
9376         (remquol): Likewise.
9377         * sysdeps/i386/i486/strcat.S: Do not include "bp-sym.h" and
9378         "bp-asm.h".
9379         (PARMS): Do not use macros from bp-asm.h.
9380         (DEST): Likewise.
9381         (SRC): Likewise.
9382         (strcat): Remove GKM FIXME comment.  Do not use BP_SYM.
9383         * sysdeps/i386/i486/strlen.S: Do not include "bp-sym.h" and
9384         "bp-asm.h".
9385         (PARMS): Do not use macros from bp-asm.h.
9386         (strlen): Do not use BP_SYM.
9387         * sysdeps/i386/i586/add_n.S: Do not include "bp-sym.h" and
9388         "bp-asm.h".
9389         (PARMS): Do not use macros from bp-asm.h.
9390         (S1): Likewise.
9391         (S2): Likewise.
9392         (SIZE): Likewise.
9393         (__mpn_add_n): Do not use BP_SYM.
9394         * sysdeps/i386/i586/addmul_1.S: Do not include "bp-sym.h" and
9395         "bp-asm.h".
9396         (PARMS): Do not use macros from bp-asm.h.
9397         (S1): Likewise.
9398         (SIZE): Likewise.
9399         (__mpn_addmul_1): Do not use BP_SYM.
9400         * sysdeps/i386/i586/bzero.S (__bzero): Do not use BP_SYM in
9401         weak_alias.
9402         (bzero): Likewise.
9403         * sysdeps/i386/i586/lshift.S: Do not include "bp-sym.h" and
9404         "bp-asm.h".
9405         (PARMS): Do not use macros from bp-asm.h.
9406         (S): Likewise.
9407         (SIZE): Likewise.
9408         (__mpn_lshift): Do not use BP_SYM.
9409         * sysdeps/i386/i586/memcpy.S: Do not include "bp-sym.h" and
9410         "bp-asm.h".
9411         (PARMS): Do not use macros from bp-asm.h.
9412         (DEST): Likewise.
9413         (SRC): Likewise.
9414         (LEN): Likewise.
9415         (memcpy): Likewise.  Do not use BP_SYM.
9416         * sysdeps/i386/i586/mempcpy.S (__mempcpy): Do not use BP_SYM in
9417         libc_hidden_def and weak_alias.
9418         (mempcpy): Do not use BP_SYM in weak_alias.
9419         * sysdeps/i386/i586/memset.S: Do not include "bp-sym.h" and
9420         "bp-asm.h".
9421         (PARMS): Do not use macros from bp-asm.h.
9422         (DEST): Likewise.
9423         (LEN): Likewise.
9424         [!BZERO_P] (CHR): Likewise.
9425         (memset): Likewise.  Do not use BP_SYM.
9426         * sysdeps/i386/i586/mul_1.S: Do not include "bp-sym.h" and
9427         "bp-asm.h".
9428         (PARMS): Do not use macros from bp-asm.h.
9429         (S1): Likewise.
9430         (SIZE): Likewise.
9431         (__mpn_mul_1): Do not use BP_SYM.
9432         * sysdeps/i386/i586/rshift.S: Do not include "bp-sym.h" and
9433         "bp-asm.h".
9434         (PARMS): Do not use macros from bp-asm.h.
9435         (S): Likewise.
9436         (SIZE): Likewise.
9437         (__mpn_rshift): Do not use BP_SYM.
9438         * sysdeps/i386/i586/strchr.S: Do not include "bp-sym.h" and
9439         "bp-asm.h".
9440         (PARMS): Do not use macros from bp-asm.h.
9441         (STR): Likewise.
9442         (CHR): Likewise.
9443         (strchr): Likewise.  Do not use BP_SYM.
9444         (index): Do not use BP_SYM in weak_alias.
9445         * sysdeps/i386/i586/strcpy.S: Do not include "bp-sym.h" and
9446         "bp-asm.h".
9447         (PARMS): Do not use macros from bp-asm.h.
9448         (DEST): Likewise.
9449         (SRC): Likewise.
9450         (STRCPY): Likewise.  Remove GKM FIXME comment.  Do not use BP_SYM.
9451         * sysdeps/i386/i586/strlen.S: Do not include "bp-sym.h" and
9452         "bp-asm.h".
9453         (PARMS): Do not use macros from bp-asm.h.
9454         (strlen): Do not use BP_SYM.
9455         * sysdeps/i386/i586/sub_n.S: Do not include "bp-sym.h" and
9456         "bp-asm.h".
9457         (PARMS): Do not use macros from bp-asm.h.
9458         (S1): Likewise.
9459         (S2): Likewise.
9460         (SIZE): Likewise.
9461         (__mpn_sub_n): Do not use BP_SYM.
9462         * sysdeps/i386/i586/submul_1.S: Do not include "bp-sym.h" and
9463         "bp-asm.h".
9464         (PARMS): Do not use macros from bp-asm.h.
9465         (S1): Likewise.
9466         (SIZE): Likewise.
9467         (__mpn_submul_1): Do not use BP_SYM.
9468         * sysdeps/i386/i686/add_n.S: Do not include "bp-sym.h" and
9469         "bp-asm.h".
9470         (PARMS): Do not use macros from bp-asm.h.
9471         (S1): Likewise.
9472         (S2): Likewise.
9473         (SIZE): Likewise.
9474         (__mpn_add_n): Do not use BP_SYM.
9475         * sysdeps/i386/i686/bzero.S (__bzero): Do not use BP_SYM in
9476         weak_alias.
9477         (bzero): Likewise.
9478         * sysdeps/i386/i686/memcmp.S: Do not include "bp-sym.h" and
9479         "bp-asm.h".
9480         (PARMS): Do not use macros from bp-asm.h.
9481         (BLK2): Likewise.
9482         (LEN): Likewise.
9483         (memcmp): Do not use BP_SYM.
9484         (bcmp): Do not use BP_SYM in weak_alias.
9485         * sysdeps/i386/i686/memcpy.S: Do not include "bp-sym.h" and
9486         "bp-asm.h".
9487         (PARMS): Do not use macros from bp-asm.h.
9488         (DEST): Likewise.
9489         (SRC): Likewise.
9490         (LEN): Likewise.
9491         (memcpy): Likewise.  Do not use BP_SYM.
9492         * sysdeps/i386/i686/memmove.S: Do not include "bp-sym.h" and
9493         "bp-asm.h".
9494         (PARMS): Do not use macros from bp-asm.h.
9495         (DEST): Likewise.
9496         (SRC): Likewise.
9497         (LEN): Likewise.
9498         (memmove): Likewise.  Do not use BP_SYM.
9499         * sysdeps/i386/i686/mempcpy.S: Do not include "bp-sym.h" and
9500         "bp-asm.h".
9501         (PARMS): Do not use macros from bp-asm.h.
9502         (DEST): Likewise.
9503         (SRC): Likewise.
9504         (LEN): Likewise.
9505         (__mempcpy): Likewise.  Do not use BP_SYM.
9506         (mempcpy): Do not use BP_SYM in weak_alias.
9507         * sysdeps/i386/i686/memset.S: Do not include "bp-sym.h" and
9508         "bp-asm.h".
9509         (PARMS): Do not use macros from bp-asm.h.
9510         (DEST): Likewise.
9511         (LEN): Likewise.
9512         [!BZERO_P] (CHR): Likewise.
9513         (memset): Likewise.  Do not use BP_SYM.
9514         * sysdeps/i386/i686/strcmp.S: Do not include "bp-sym.h" and
9515         "bp-asm.h".
9516         (PARMS): Do not use macros from bp-asm.h.
9517         (STR2): Likewise.
9518         (strcmp): Do not use BP_SYM.
9519         * sysdeps/i386/i686/strtok.S: Do not include "bp-sym.h" and
9520         "bp-asm.h".
9521         (PARMS): Do not use macros from bp-asm.h.
9522         (STR): Likewise.
9523         (DELIM): Likewise.
9524         [USE_AS_STRTOK_R] (SAVE): Likewise.
9525         (FUNCTION): Likewise.  Do not use BP_SYM.
9526         * sysdeps/i386/i686/strtok_r.S (__strtok_r): Do not use BP_SYM in
9527         aliases.
9528         (strtok_r): Likewise.
9529         (__GI___strtok_r): Likewise.
9530         * sysdeps/i386/lshift.S: Do not include "bp-sym.h" and "bp-asm.h".
9531         (PARMS): Do not use macros from bp-asm.h.
9532         (S): Likewise.
9533         (SIZE): Likewise.
9534         (__mpn_lshift): Do not use BP_SYM.
9535         * sysdeps/i386/memchr.S: Do not include "bp-sym.h" and "bp-asm.h".
9536         (PARMS): Do not use macros from bp-asm.h.
9537         (STR): Likewise.
9538         (CHR): Likewise.
9539         (__memchr): Do not use BP_SYM.
9540         (memchr): Do not use BP_SYM in weak_alias.
9541         * sysdeps/i386/memcmp.S: Do not include "bp-sym.h" and "bp-asm.h".
9542         (PARMS): Do not use macros from bp-asm.h.
9543         (BLK2): Likewise.
9544         (LEN): Likewise.
9545         (memcmp): Do not use BP_SYM.
9546         (bcmp): Do not use BP_SYM in weak_alias.
9547         * sysdeps/i386/mul_1.S: Do not include "bp-sym.h" and "bp-asm.h".
9548         (PARMS): Do not use macros from bp-asm.h.
9549         (S1): Likewise.
9550         (SIZE): Likewise.
9551         (__mpn_mul_1): Do not use BP_SYM.
9552         * sysdeps/i386/rawmemchr.S: Do not include "bp-sym.h" and
9553         "bp-asm.h".
9554         (PARMS): Do not use macros from bp-asm.h.
9555         (STR): Likewise.
9556         (CHR): Likewise.
9557         (__rawmemchr): Do not use BP_SYM.
9558         (rawmemchr): Do not use BP_SYM in weak_alias.
9559         * sysdeps/i386/rshift.S: Do not include "bp-sym.h" and "bp-asm.h".
9560         (PARMS): Do not use macros from bp-asm.h.
9561         (S): Likewise.
9562         (SIZE): Likewise.
9563         (__mpn_rshift): Do not use BP_SYM.
9564         * sysdeps/i386/setjmp.S: Do not include "bp-sym.h" and "bp-asm.h".
9565         (PARMS): Do not use macros from bp-asm.h.
9566         (SIGMSK): Likewise.
9567         (__sigsetjmp): Likewise.  Do not use BP_SYM.
9568         * sysdeps/i386/start.S: Do not include "bp-sym.h".
9569         (_start): Do not use BP_SYM.
9570         * sysdeps/i386/stpcpy.S: Do not include "bp-sym.h" and "bp-asm.h".
9571         (PARMS): Do not use macros from bp-asm.h.
9572         (DEST): Likewise.
9573         (SRC): Likewise.
9574         (__stpcpy): Likewise.  Do not use BP_SYM.
9575         (stpcpy): Do not use BP_SYM in weak_alias.
9576         * sysdeps/i386/stpncpy.S: Do not include "bp-sym.h" and
9577         "bp-asm.h".
9578         (PARMS): Do not use macros from bp-asm.h.
9579         (DEST): Likewise.
9580         (SRC): Likewise.
9581         (LEN): Likewise.
9582         (__stpncpy): Likewise.  Do not use BP_SYM.
9583         (stpncpy): Do not use BP_SYM in weak_alias.
9584         * sysdeps/i386/strchr.S: Do not include "bp-sym.h" and "bp-asm.h".
9585         (PARMS): Do not use macros from bp-asm.h.
9586         (STR): Likewise.
9587         (CHR): Likewise.
9588         (strchr): Likewise.  Do not use BP_SYM.
9589         * sysdeps/i386/strchrnul.S: Do not include "bp-sym.h" and
9590         "bp-asm.h".
9591         (PARMS): Do not use macros from bp-asm.h.
9592         (STR): Likewise.
9593         (CHR): Likewise.
9594         (__strchrnul): Likewise.  Do not use BP_SYM.
9595         (strchrnul): Do not use BP_SYM in weak_alias.
9596         * sysdeps/i386/strcspn.S: Do not include "bp-sym.h" and
9597         "bp-asm.h".
9598         (PARMS): Do not use macros from bp-asm.h.
9599         (STOP): Likewise.
9600         (strcspn): Do not use BP_SYM.
9601         * sysdeps/i386/strpbrk.S: Do not include "bp-sym.h" and
9602         "bp-asm.h".
9603         (PARMS): Do not use macros from bp-asm.h.
9604         (STR): Likewise.
9605         (STOP): Likewise.
9606         (strpbrk): Likewise.  Do not use BP_SYM.
9607         * sysdeps/i386/strrchr.S: Do not include "bp-sym.h" and
9608         "bp-asm.h".
9609         (PARMS): Do not use macros from bp-asm.h.
9610         (STR): Likewise.
9611         (CHR): Likewise.
9612         (strrchr): Likewise.  Do not use BP_SYM.
9613         * sysdeps/i386/strspn.S: Do not include "bp-sym.h" and "bp-asm.h".
9614         (PARMS): Do not use macros from bp-asm.h.
9615         (SKIP): Likewise.
9616         (strspn): Do not use BP_SYM.
9617         * sysdeps/i386/strtok.S: Do not include "bp-sym.h" and "bp-asm.h".
9618         (PARMS): Do not use macros from bp-asm.h.
9619         (STR): Likewise.
9620         (DELIM): Likewise.
9621         (SAVE): Likewise.
9622         (FUNCTION): Likewise.  Do not use BP_SYM.
9623         * sysdeps/i386/strtok_r.S (__strtok_r): Do not use BP_SYM in
9624         aliases.
9625         (strtok_r): Likewise.
9626         (__GI___strtok_r): Likewise.
9627         * sysdeps/i386/sub_n.S: Do not include "bp-sym.h" and "bp-asm.h".
9628         (PARMS): Do not use macros from bp-asm.h.
9629         (S1): Likewise.
9630         (S2): Likewise.
9631         (SIZE): Likewise.
9632         (__mpn_sub_n): Do not use BP_SYM.
9633         * sysdeps/i386/submul_1.S: Do not include "bp-sym.h" and
9634         "bp-asm.h".
9635         (PARMS): Do not use macros from bp-asm.h.
9636         (S1): Likewise.
9637         (SIZE): Likewise.
9638         (__mpn_submul_1): Do not use BP_SYM.
9639         * sysdeps/unix/i386/sysdep.S: Do not include <bp-asm.h> and
9640         <bp-sym.h>.
9641         * sysdeps/unix/sysv/linux/i386/clone.S: Do not include <bp-sym.h>
9642         and <bp-asm.h>.
9643         (PARMS): Do not use macros from bp-asm.h.
9644         (FLAGS): Likewise.
9645         (PTID): Likewise.
9646         (TLS): Likewise.
9647         (CTID): Likewise.
9648         (__clone): Do not use BP_SYM.
9649         (clone): Do not use BP_SYM in weak_alias.
9650         * sysdeps/unix/sysv/linux/i386/mmap64.S: Do not include <bp-sym.h>
9651         and <bp-asm.h>.
9652         (PARMS): Do not use macros from bp-asm.h.
9653         (LEN): Likewise.
9654         (__mmap64): Do not use BP_SYM.
9655         (mmap64): Do not use BP_SYM in weak_alias.
9656         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
9657         <bp-sym.h> and <bp-asm.h>.
9658         (PARMS): Do not use macros from bp-asm.h.
9659         (__posix_fadvise64_l64): Do not use BP_SYM.
9660         * sysdeps/unix/sysv/linux/i386/semtimedop.S
9661         (PARMS): Do not use macros from bp-asm.h.
9662         (NSOPS): Likewise.
9663         (semtimedop): Do not use BP_SYM.
9664         * sysdeps/unix/sysv/linux/i386/sysdep.h: Do not include <bp-sym.h>
9665         and <bp-asm.h>.
9666
9667 2013-02-21  Allan McRae  <allan@archlinux.org>
9668
9669         * manual/message.texi (Charset conversion in gettext):
9670         Move @end statement to beginning of line.
9671
9672 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
9673
9674         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Mark as
9675         static.
9676         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
9677         Likewise.
9678
9679         * sysdeps/ieee754/dbl-64/mpa.c (norm): Fix whitespace.
9680         (denorm): Likewise.
9681         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (norm): Likewise.
9682         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (norm): Likewise.
9683
9684 2013-02-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9685
9686         * sysdeps/s390/s390-32/dl-trampoline.S (_dl_runtime_profile): Do a
9687         tail-call to the resolved function if pltexit isn't needed.
9688
9689 2013-02-21  Siddhesh Poyarekar  <siddhesh@redhat.com>
9690
9691         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Mark X
9692         or Y being zero as being unlikely.
9693         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul):
9694         Likewise.
9695
9696 2013-02-20  Carlos O'Donell  <carlos@redhat.com>
9697
9698         * manual/nss.texi (System Databases and Name Service Switch):
9699         Remove frobnicate @pxref.
9700
9701 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
9702
9703         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
9704         __attribute__ ((unused)) to __attribute__ ((__unused__)).
9705
9706 2013-02-20  Petr Machata  <pmachata@redhat.com>
9707
9708         * elf/elf.h (R_ARM_TARGET1): New macro.
9709         (R_ARM_SBREL31, R_ARM_V4BX, R_ARM_TARGET2): Likewise.
9710         (R_ARM_PREL31, R_ARM_MOVW_ABS_NC, R_ARM_MOVT_ABS): Likewise.
9711         (R_ARM_MOVW_PREL_NC, R_ARM_MOVT_PREL): Likewise.
9712         (R_ARM_THM_MOVW_ABS_NC, R_ARM_THM_MOVT_ABS): Likewise.
9713         (R_ARM_THM_MOVW_PREL_NC, R_ARM_THM_MOVT_PREL): Likewise.
9714         (R_ARM_THM_JUMP19, R_ARM_THM_JUMP6): Likewise.
9715         (R_ARM_THM_ALU_PREL_11_0, R_ARM_THM_PC12): Likewise.
9716         (R_ARM_ABS32_NOI, R_ARM_REL32_NOI): Likewise.
9717         (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0): Likewise.
9718         (R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1): Likewise.
9719         (R_ARM_ALU_PC_G2, R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2): Likewise.
9720         (R_ARM_LDRS_PC_G0, R_ARM_LDRS_PC_G1): Likewise.
9721         (R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0): Likewise.
9722         (R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2): Likewise.
9723         (R_ARM_ALU_SB_G0_NC, R_ARM_ALU_SB_G0): Likewise.
9724         (R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1): Likewise.
9725         (R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1): Likewise.
9726         (R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0): Likewise.
9727         (R_ARM_LDRS_SB_G1, R_ARM_LDRS_SB_G2): Likewise.
9728         (R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, R_ARM_LDC_SB_G2): Likewise.
9729         (R_ARM_MOVW_BREL_NC, R_ARM_MOVT_BREL): Likewise.
9730         (R_ARM_MOVW_BREL, R_ARM_THM_MOVW_BREL_NC): Likewise.
9731         (R_ARM_THM_MOVT_BREL, R_ARM_THM_MOVW_BREL): Likewise.
9732         (R_ARM_PLT32_ABS, R_ARM_GOT_ABS, R_ARM_GOT_PREL): Likewise.
9733         (R_ARM_GOT_BREL12, R_ARM_GOTOFF12, R_ARM_GOTRELAX): Likewise.
9734         (R_ARM_TLS_LDO12, R_ARM_TLS_LE12, R_ARM_TLS_IE12GP): Likewise.
9735         (R_ARM_PRIVATE_0, R_ARM_PRIVATE_1, R_ARM_PRIVATE_2): Likewise.
9736         (R_ARM_PRIVATE_3, R_ARM_PRIVATE_4, R_ARM_PRIVATE_5): Likewise.
9737         (R_ARM_PRIVATE_6, R_ARM_PRIVATE_7, R_ARM_PRIVATE_8): Likewise.
9738         (R_ARM_PRIVATE_9, R_ARM_PRIVATE_10): Likewise.
9739         (R_ARM_PRIVATE_11, R_ARM_PRIVATE_12): Likewise.
9740         (R_ARM_PRIVATE_13, R_ARM_PRIVATE_14): Likewise.
9741         (R_ARM_PRIVATE_15, R_ARM_ME_TOO): Likewise.
9742         (R_ARM_THM_TLS_DESCSEQ16, R_ARM_THM_TLS_DESCSEQ32): Likewise.
9743         (R_ARM_THM_GOT_BREL12): Likewise.
9744         (R_ARM_PC24, R_ARM_PLT32): Updated a comment at this macro.
9745         (R_ARM_THM_PC11, R_ARM_THM_PC9): Likewise.
9746         (R_ARM_THM_ABS5, R_ARM_THM_PC22): Added a comment to this macro.
9747         (R_ARM_THM_PC8, R_ARM_THM_SWI8, R_ARM_XPC25): Likewise.
9748         (R_ARM_THM_XPC22, R_ARM_ALU_PCREL_7_0): Likewise.
9749         (R_ARM_ALU_PCREL_15_8, R_ARM_ALU_PCREL_23_15): Likewise.
9750         (R_ARM_LDR_SBREL_11_0, R_ARM_ALU_SBREL_19_12): Likewise.
9751         (R_ARM_ALU_SBREL_27_20, R_ARM_TLS_DESCSEQ): Likewise.
9752         (R_ARM_THM_TLS_DESCSEQ): Fixed whitespace.
9753
9754 2013-02-20  Thomas Schwinge  <thomas@codesourcery.com>
9755
9756         * sysdeps/ieee754/bits/nan.h [!__GNUC__] (__nan_union): Change
9757         __attribute_used__ to __attribute__ ((unused)).
9758
9759 2013-02-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
9760
9761         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Copy over comment from
9762         powerpc mpa.c.
9763         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__mul): Fix
9764         comment formatting.
9765         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__mul): Likewise.
9766
9767 2013-02-19  Joseph Myers  <joseph@codesourcery.com>
9768
9769         [BZ #13550]
9770         * sysdeps/i386/bp-asm.h [__BOUNDED_POINTERS__] (BOUNDS_VIOLATED):
9771         Remove macro.
9772         (ENTER): Remove both macro definitions.
9773         (LEAVE): Likewise.
9774         (CHECK_BOUNDS_LOW): Likewise.
9775         (CHECK_BOUNDS_HIGH): Likewise.
9776         (CHECK_BOUNDS_BOTH): Likewise.
9777         (CHECK_BOUNDS_BOTH_WIDE): Likewise.
9778         (RETURN_BOUNDED_POINTER): Likewise.
9779         (RETURN_NULL_BOUNDED_POINTER): Likewise.
9780         (PUSH_ERRNO_LOCATION_RETURN): Likewise.
9781         (POP_ERRNO_LOCATION_RETURN): Likewise.
9782         * sysdeps/i386/add_n.S (__mpn_add_n): Do not use removed macros.
9783         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9784         * sysdeps/i386/addmul_1.S (__mpn_addmul_1): Do not use removed
9785         macros.
9786         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9787         * sysdeps/i386/bsd-_setjmp.S (_setjmp): Do not use removed macros.
9788         * sysdeps/i386/bsd-setjmp.S (setjmp): Likewise.
9789         * sysdeps/i386/fpu/s_frexp.S (__frexp): Likewise.
9790         * sysdeps/i386/fpu/s_frexpf.S (__frexpf): Likewise.
9791         * sysdeps/i386/fpu/s_frexpl.S (__frexpl): Likewise.
9792         * sysdeps/i386/fpu/s_remquo.S (__remquo): Likewise.
9793         * sysdeps/i386/fpu/s_remquof.S (__remquof): Likewise.
9794         * sysdeps/i386/fpu/s_remquol.S (__remquol): Likewise.
9795         * sysdeps/i386/i486/strcat.S (strcat): Likewise.
9796         * sysdeps/i386/i486/strlen.S (strlen): Likewise.
9797         * sysdeps/i386/i586/add_n.S (__mpn_add_n): Likewise.
9798         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9799         * sysdeps/i386/i586/addmul_1.S (__mpn_addmul_1): Do not use
9800         removed macros.
9801         (__mpn_addmul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9802         * sysdeps/i386/i586/lshift.S (__mpn_lshift): Do not use removed
9803         macros.
9804         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9805         * sysdeps/i386/i586/memcpy.S (memcpy): Do not use removed macros.
9806         * sysdeps/i386/i586/memset.S (memset): Likewise.
9807         * sysdeps/i386/i586/mul_1.S (__mpn_mul_1): Likewise.
9808         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9809         * sysdeps/i386/i586/rshift.S (__mpn_rshift): Do not use removed
9810         macros.
9811         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9812         * sysdeps/i386/i586/strchr.S (strchr): Do not use removed macros.
9813         Change uses of L(2) to L(out).
9814         * sysdeps/i386/i586/strcpy.S (STRCPY): Do not use removed macros.
9815         * sysdeps/i386/i586/strlen.S (strlen): Likewise.
9816         * sysdeps/i386/i586/sub_n.S (__mpn_sub_n): Likewise.
9817         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9818         * sysdeps/i386/i586/submul_1.S (__mpn_submul_1): Do not use
9819         removed macros.
9820         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9821         * sysdeps/i386/i686/add_n.S (__mpn_add_n): Do not use removed
9822         macros.
9823         (__mpn_add_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9824         * sysdeps/i386/i686/memcmp.S (ENTRANCE): Do not use macro ENTER.
9825         (RETURN): Do not use macro LEAVE.
9826         * sysdeps/i386/i686/memcpy.S (memcpy): Do not use removed macros.
9827         * sysdeps/i386/i686/memmove.S (memmove): Likewise.
9828         * sysdeps/i386/i686/mempcpy.S (mempcpy): Likewise.
9829         * sysdeps/i386/i686/memset.S (memset): Likewise.
9830         * sysdeps/i386/i686/strcmp.S (strcmp): Likewise.
9831         (strcmp) [!__BOUNDED_POINTERS__]: Make code unconditional.
9832         (strcmp) [__BOUNDED_POINTERS__]: Remove conditional code.
9833         * sysdeps/i386/i686/strtok.S (save_ptr) [__BOUNDED_POINTERS__]:
9834         Likewise.
9835         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
9836         (FUNCTION): Do not use removed macros.  Combine labels L(1_1),
9837         L(1_2) and L(1_3) into L(1).
9838         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
9839         * sysdeps/i386/lshift.S (__mpn_lshift): Do not use removed macros.
9840         (__mpn_lshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9841         * sysdeps/i386/memchr.S (__memchr): Do not use removed macros.
9842         (__memchr) [__BOUNDED_POINTERS__]: Remove conditional code.
9843         * sysdeps/i386/memcmp.S (memcmp): Do not use removed macros.
9844         * sysdeps/i386/mul_1.S (__mpn_mul_1): Likewise.
9845         (__mpn_mul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9846         * sysdeps/i386/rawmemchr.S (__rawmemchr): Do not use removed
9847         macros.
9848         * sysdeps/i386/rshift.S (__mpn_rshift): Likewise.
9849         (__mpn_rshift) [__BOUNDED_POINTERS__]: Remove conditional code.
9850         * sysdeps/i386/setjmp.S (__sigsetjmp): Do not use removed macros.
9851         * sysdeps/i386/stpcpy.S (__stpcpy): Likewise.
9852         * sysdeps/i386/stpncpy.S (__stpncpy): Likewise.
9853         (__stpncpy) [__BOUNDED_POINTERS__]: Remove conditional code.
9854         * sysdeps/i386/strchr.S (strchr): Do not use removed macros.
9855         * sysdeps/i386/strchrnul.S (__strchrnul): Likewise.
9856         * sysdeps/i386/strcspn.S (strcspn): Likewise.
9857         * sysdeps/i386/strpbrk.S (strpbrk): Likewise.
9858         * sysdeps/i386/strrchr.S (strrchr): Likewise.
9859         * sysdeps/i386/strspn.S (strspn): Likewise.
9860         * sysdeps/i386/strtok.S (save_ptr) [__BOUNDED_POINTERS__]: Remove
9861         conditional code.
9862         (save_ptr) [!__BOUNDED_POINTERS__]: Make code unconditional.
9863         (FUNCTION) [!__BOUNDED_POINTERS__]: Likewise.
9864         (FUNCTION) [__BOUNDED_POINTERS__]: Remove conditional code.
9865         (FUNCTION): Do not use removed macros.  Combine labels L(1_2) and
9866         L(1_3) into L(1_1).
9867         * sysdeps/i386/sub_n.S (__mpn_sub_n): Do not use removed macros.
9868         (__mpn_sub_n) [__BOUNDED_POINTERS__]: Remove conditional code.
9869         * sysdeps/i386/submul_1.S (__mpn_submul_1): Do not use removed
9870         macros.
9871         (__mpn_submul_1) [__BOUNDED_POINTERS__]: Remove conditional code.
9872
9873 2013-02-19  Jakub Jelinek  <jakub@redhat.com>
9874
9875         * stdlib/strtod_l.c (__mpn_lshift_1): Rewritten as function-like
9876         macro.
9877
9878 2013-02-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
9879
9880         * math/atest-exp.c (exp_mpn): Remove ROUND.
9881         * math/atest-exp2.c (exp_mpn): Likewise.
9882         * math/atest-sincos.c (sincosx_mpn): Remove ROUND and CHK.
9883
9884         * stdlib/cxa_thread_atexit_impl.c: Fix Copyright year.
9885         * stdlib/tst-tls-atexit-lib.c: Likewise.
9886         * stdlib/tst-tls-atexit.c: Likewise.
9887
9888 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
9889
9890         * stdlib/stdlib.h (aligned_alloc): Use __attribute_malloc__
9891         and __attribute_alloc_size__.
9892
9893 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
9894
9895         * include/programs/xmalloc.h: Change __attribute_alloc_size to
9896         __attribute_alloc_size__.
9897         * include/sys/cdefs.h (__attribute_alloc_size): Macro removed.
9898         * misc/sys/cdefs.h (__attribute_alloc_size__): New macro.
9899
9900 2013-02-18  Mike Frysinger  <vapier@gentoo.org>
9901
9902         * include/programs/xmalloc.h: New file.
9903         * catgets/gencat.c: Include it.
9904         (xmalloc, xcalloc, xrealloc, xstrdup): Don't declare them.
9905         * elf/pldd.c: Likewise.
9906         * iconv/iconv_charmap.c: Likewise.
9907         * iconv/iconvconfig.c: Likewise.
9908         * iconv/strtab.c: Likewise.
9909         * locale/programs/locale.c: Likewise.
9910         * locale/programs/localedef.h: Likewise.
9911         * locale/programs/simple-hash.c: Likewise.
9912         * nscd/nscd.h: Likewise.
9913         * nss/makedb.c: Likewise.
9914         * sysdeps/generic/ldconfig.h: Likewise.
9915
9916 2013-02-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
9917
9918         * Versions.def: Add GLIBC_2.18.
9919         * include/link.h (struct link_map): New member l_tls_dtor_count.
9920         * include/stdlib.h (__cxa_thread_atexit_impl): Declare.
9921         (__call_tls_dtors): Likewise.
9922         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add
9923         __cxa_thread_atexit_impl.
9924         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
9925         Likewise.
9926         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
9927         Likewise.
9928         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist:
9929         Likewise.
9930         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist:
9931         Likewise.
9932         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
9933         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist:
9934         Likewise.
9935         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist:
9936         Likewise.
9937         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
9938         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
9939         Likewise.
9940         * stdlib/Makefile (routines): Add __cxa_thread_atexit_impl.
9941         (tests): Add test case tst-tls-atexit.
9942         (modules-names): Add shared library for tst-tls-atexit.
9943         * stdlib/Versions (GLIBC_2.18): Add __cxa_thread_atexit_impl.
9944         (GLIBC_PRIVATE): Add __call_tls_dtors.
9945         * stdlib/cxa_thread_atexit_impl.c: New file with helper function
9946         for libstdc++.
9947         * stdlib/exit.c (__run_exit_handlers): Call __call_tls_dtors.
9948         * stdlib/tst-tls-atexit.c: New test case.
9949         * stdlib/tst-tls-atexit-lib.c: New test case.
9950
9951         * misc/tst-pselect.c: Include stdlib.h for declaration of exit.
9952
9953         * elf/Versions (ld): Add _dl_find_dso_for_object.
9954         * elf/dl-addr.c (_dl_addr): Use _dl_find_dso_for_object.
9955         * elf/dl-open.c (_dl_find_dso_for_object): New function.
9956         (dl_open_worker): Use _dl_find_dso_for_object.
9957         * elf/dl-sym.c (do_sym): Likewise.
9958         * sysdeps/generic/ldsodefs.h: Declare _dl_find_dso_for_object.
9959
9960 2013-02-18  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
9961
9962         * sysdeps/s390/s390-64/dl-trampoline.S (_dl_runtime_resolve):
9963         Syntactic changes only.
9964         (_dl_runtime_profile): Do a tail-call to the resolved function.
9965
9966 2013-02-17  Joseph Myers  <joseph@codesourcery.com>
9967
9968         [BZ #13550]
9969         * sysdeps/x86_64/bp-asm.h: Remove file.
9970         * sysdeps/unix/sysv/linux/x86_64/clone.S: Do not include
9971         <bp-sym.h> and <bp-asm.h>.
9972         (__clone): Do not use BP_SYM.
9973         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Do not include
9974         <bp-sym.h> and <bp-asm.h>.
9975         * sysdeps/unix/x86_64/sysdep.S: Likewise.
9976         * sysdeps/x86_64/bsd-_setjmp.S: Do not include "bp-sym.h" and
9977         "bp-asm.h".
9978         (_setjmp): Do not use BP_SYM.
9979         * sysdeps/x86_64/bsd-setjmp.S: Do not include "bp-sym.h" and
9980         "bp-asm.h".
9981         (setjmp): Do not use BP_SYM.
9982         * sysdeps/x86_64/mempcpy.S (__mempcpy): Do not use BP_SYM in
9983         libc_hidden_def.
9984         (mempcpy): Do not use BP_SYM in weak_alias.
9985         * sysdeps/x86_64/rtld-strchr.S: Do not include "bp-sym.h" and
9986         "bp-asm.h".
9987         (strchr): Do not use BP_SYM.
9988         * sysdeps/x86_64/rtld-strlen.S: Do not include "bp-sym.h" and
9989         "bp-asm.h".
9990         * sysdeps/x86_64/setjmp.S (__sigsetjmp): Do not use BP_SYM.
9991         * sysdeps/x86_64/start.S: Do not include "bp-sym.h".
9992         (_start): Do not use BP_SYM.
9993         * sysdeps/x86_64/strcat.S: Do not include "bp-sym.h" and
9994         "bp-asm.h".
9995         (strcat): Do not use BP_SYM.
9996         * sysdeps/x86_64/strcmp.S: Do not include "bp-sym.h" and
9997         "bp-asm.h".
9998         (STRCMP): Do not use BP_SYM.
9999         * sysdeps/x86_64/strcpy.S: Do not include "bp-sym.h" and
10000         "bp-asm.h".
10001         (STRCPY): Do not use BP_SYM.
10002         * sysdeps/x86_64/strcpy_chk.S: Do not include "bp-sym.h" and
10003         "bp-asm.h".
10004         * sysdeps/x86_64/strtok.S: Do not include "bp-sym.h" and
10005         "bp-asm.h".
10006         (FUNCTION): Do not use BP_SYM.
10007         * sysdeps/x86_64/strtok_r.S (strtok_r): Do not use BP_SYM in
10008         weak_alias.
10009         (__GI___strtok_r): Do not use BP_SYM in strong_alias.
10010
10011 2013-02-17  Andreas Jaeger  <aj@suse.de>
10012
10013         * time/Versions: Sort entries.
10014         * string/Versions: Likewise.
10015         * resolv/Versions: Likewise.
10016         * posix/Versions: Likewise.
10017         * iconv/Versions: Likewise.
10018         * elf/Versions: Likewise.
10019         * wcsmbs/Versions: Likewise.
10020
10021 2013-02-15  Siddhesh Poyarekar  <siddhesh@redhat.com>
10022
10023         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): Avoid using LIM in
10024         loop termination condition.
10025
10026         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Use intermediate
10027         variable to calculate EZ.
10028         (__sqr): Likewise.
10029
10030         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Fix determination of
10031         the lower precision input.
10032
10033 2013-02-15  Joseph Myers  <joseph@codesourcery.com>
10034
10035         [BZ #13550]
10036         * Makeconfig [!+link-bounded] (+link-bounded): Remove variable.
10037         [!link-extra-libs] (link-extra-libs-bounded): Likewise.
10038         (run-via-rtld-prefix): Do not handle %-bp tests.
10039         (test-via-rtld-prefix): Do not mention %-bp tests in comment.
10040         (all-object-suffixes): Remove .ob.
10041         (bppfx): Remove variable.
10042         [$(build-bounded) = yes] (object-suffixes): Do not add .ob.
10043         [$(build-bounded) = yes] (CPPFLAGS-.ob): Remove variable.
10044         [$(build-bounded) = yes] (CFLAGS-.ob): Likewise.
10045         [$(build-bounded) = yes] (libtype.ob): Likewise.
10046         * Makerules (elide-routines.ob): Remove variable.
10047         (do-tests-clean): Do not handle *-bp.out.
10048         (common-mostlyclean): Do not handle *-bp and *-bp.out.
10049         * Rules [$(build-bounded) = yes] (tests-bp.out): Remove variable.
10050         [$(build-bounded) = yes] (xtests-bp.out): Likewise.
10051         (tests): Do not include $(tests-bp.out).
10052         (xtests): Do not include $(xtests-bp.out).
10053         [$(build-bounded) = yes] (binaries-bounded): Remove variable.
10054         [$(build-bounded) = yes] ($(addprefix
10055         $(objpfx),$(binaries-bounded))): Remove rule.
10056         ($(objpfx)%-bp.out): Remove rule.
10057         * config.make.in (build-bounded): Remove variable.
10058         * crypt/Makefile [$(build-bounded) = yes]
10059         ($(tests:%=$(objpfx)%-bp)): Remove dependency.
10060         * csu/Makefile [$(build-bounded) = yes] (extra-objs): Do not
10061         append to variable.
10062         [$(build-bounded) = yes] (install-lib): Likewise.
10063         [$(build-bounded) = yes] (generated): Likewise.
10064         [!start-installed-name-rule] ($(objpfx)b$(start-installed-name)):
10065         Remove rule.
10066         * intl/Makefile [$(build-bounded) = yes]
10067         ($(multithread-test-srcs:%=$(objpfx)%-bp)): Remove dependency.
10068         * math/Makefile [$(build-bounded) = yes]
10069         ($(tests:%=$(objpfx)%-bp): Likewise.
10070         * misc/Makefile [$(build-bounded) = yes]
10071         ($(objpfx)tst-tsearch-bp): Likewise.
10072         * nptl/Makeconfig (bounded-thread-library): Remove variable.
10073         * rt/Makefile [$(build-bounded) = yes] ($(tests:%=$(objpfx)%-bp)):
10074         Remove dependency.
10075         * string/Makefile (o-objects.ob): Remove variable.
10076         * sysdeps/i386/i686/Makefile [$(config-asflags-i686) = yes]
10077         (CFLAGS-.ob): Remove variable.
10078         [$(config-asflags-i686) = yes] (ASFLAGS-.ob): Likewise.
10079         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-.ob): Remove
10080         both definitions of variable.
10081         * sysdeps/sparc/sparc64/Makefile [$(have-as-vis3) = yes]
10082         (ASFLAGS-.ob): Remove variable.
10083
10084 2013-02-14  Joseph Myers  <joseph@codesourcery.com>
10085
10086         [BZ #13550]
10087         * config.h.in [USE_REGPARMS && !PROF && !__BOUNDED_POINTERS__]:
10088         Remove __BOUNDED_POINTERS__ from condition.
10089         * elf/dl-runtime.c [!PROF && !__BOUNDED_POINTERS__]: Likewise.
10090         * string/bits/string2.h [!__NO_STRING_INLINES &&
10091         !__BOUNDED_POINTERS__]: Likewise.
10092         * sysdeps/i386/dl-machine.h [!PROF && !__BOUNDED_POINTERS__]:
10093         Likewise.
10094         * sysdeps/unix/sysv/linux/shmat.c (shmat) [__BOUNDED_POINTERS__]:
10095         Remove conditional code.
10096         * sysdeps/x86/bits/string.h [!__NO_STRING_INLINES &&
10097         __USE_STRING_INLINES && __GNUC__ && __GNUC__ >= 2 &&
10098         !__BOUNDED_POINTERS__]: Remove __BOUNDED_POINTERS__ from
10099         condition.
10100
10101         [BZ #13550]
10102         * csu/libc-start.c: Do not include <bp-sym.h>.
10103         [!LIBC_START_MAIN] (LIBC_START_MAIN): Do not use BP_SYM.
10104         * elf/dl-open.c: Do not include <bp-sym.h>.
10105         (_dl_sysdep_start): Do not use BP_SYM in weak_extern.
10106         * math/fegetenv.c: Do not include <bp-sym.h>.
10107         (fegetenv): Do not use BP_SYM in versioned symbols.
10108         * nptl/sysdeps/pthread/bits/libc-lockP.h
10109         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]: Do not include
10110         <bp-sym.h>.
10111         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10112         (__pthread_mutex_init): Do not use BP_SYM in weak_extern.
10113         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10114         (__pthread_mutex_destroy): Likewise.
10115         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10116         (__pthread_mutex_lock): Likewise.
10117         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10118         (__pthread_mutex_trylock): Likewise.
10119         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10120         (__pthread_mutex_unlock): Likewise.
10121         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10122         (__pthread_mutexattr_init): Likewise.
10123         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10124         (__pthread_mutexattr_destroy): Likewise.
10125         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10126         (__pthread_mutexattr_settype): Likewise.
10127         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10128         (__pthread_rwlock_init): Likewise.
10129         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10130         (__pthread_rwlock_destroy): Likewise.
10131         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10132         (__pthread_rwlock_rdlock): Likewise.
10133         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10134         (__pthread_rwlock_tryrdlock): Likewise.
10135         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10136         (__pthread_rwlock_wrlock): Likewise.
10137         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10138         (__pthread_rwlock_trywrlock): Likewise.
10139         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10140         (__pthread_rwlock_unlock): Likewise.
10141         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10142         (__pthread_key_create): Likewise.
10143         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10144         (__pthread_setspecific): Likewise.
10145         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10146         (__pthread_getspecific): Likewise.
10147         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern] (__pthread_once):
10148         Likewise.
10149         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10150         (_pthread_cleanup_push_defer): Likewise.
10151         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10152         (_pthread_cleanup_pop_restore): Likewise.
10153         [!__NO_WEAK_PTHREAD_ALIASES && weak_extern]
10154         (pthread_setcancelstate): Likewise.
10155         * string/memchr.c [HAVE_BP_SYM_H || _LIBC]: Do not include
10156         <bp-sym.h>.
10157         [!(HAVE_BP_SYM_H || _LIBC)] (BP_SYM): Remove macro definition.
10158         (memchr): Do not use BP_SYM in weak_alias.
10159         * sysdeps/i386/fpu/fegetenv.c: Do not include <bp-sym.h>.
10160         (fegetenv): Do not use BP_SYM in versioned symbols.
10161         * sysdeps/i386/fpu/fesetenv.c: Do not include <bp-sym.h>.
10162         (fesetenv): Do not use BP_SYM in versioned symbols.
10163         * sysdeps/i386/fpu/feupdateenv.c: Do not include <bp-sym.h>.
10164         (feupdateenv): Do not use BP_SYM in versioned symbols.
10165         * sysdeps/i386/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
10166         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
10167         * sysdeps/posix/open64.c: Do not include <bp-sym.h>.
10168         (__open64): Do not use BP_SYM in weak_alias and libc_hidden_weak.
10169         (open64): Do not use BP_SYM in weak_alias.
10170         * sysdeps/powerpc/fpu/fegetenv.c: Do not include <bp-sym.h>.
10171         (fegetenv): Do not use BP_SYM in versioned symbols.
10172         * sysdeps/powerpc/fpu/fesetenv.c: Do not include <bp-sym.h>.
10173         (fesetenv): Do not use BP_SYM in versioned symbols.
10174         * sysdeps/powerpc/fpu/feupdateenv.c: Do not include <bp-sym.h>.
10175         (feupdateenv): Do not use BP_SYM in versioned symbols.
10176         * sysdeps/powerpc/fpu/fgetexcptflg.c: Do not include <bp-sym.h>.
10177         (fegetexceptflag): Do not use BP_SYM in versioned symbols.
10178         * sysdeps/powerpc/fpu/fraiseexcpt.c: Do not include <bp-sym.h>.
10179         (feraiseexcept): Do not use BP_SYM in versioned symbols.
10180         * sysdeps/powerpc/fpu/fsetexcptflg.c: Do not include <bp-sym.h>.
10181         (fesetexceptflag): Do not use BP_SYM in versioned symbols.
10182         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Do not include
10183         <bp-sym.h>.
10184         (__libc_start_main): Do not use BP_SYM.
10185
10186 2013-02-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
10187
10188         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cpy): Remove
10189         redundant return line.
10190         (norm): Likewise.
10191         (denorm): Likewise.
10192         (dbl_mp): Likewise.
10193         (sub_magnitudes): Likewise.
10194         (__add): Likewise.
10195         (__sub): Likewise.
10196         (__mul): Likewise.
10197         (__inv): Likewise.
10198         (__dvd): Likewise.
10199         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cpy): Likewise.
10200         (norm): Likewise.
10201         (denorm): Likewise.
10202         (dbl_mp): Likewise.
10203         (sub_magnitudes): Likewise.
10204         (__add): Likewise.
10205         (__sub): Likewise.
10206         (__mul): Likewise.
10207         (__inv): Likewise.
10208         (__dvd): Likewise.
10209
10210         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Use __sqr
10211         instead of __mul.
10212         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
10213         * sysdeps/ieee754/dbl-64/sincos32.c (ss32): Likewise.
10214         (cc32): Likewise.
10215
10216         * sysdeps/ieee754/dbl-64/mpa.c (__sqr): New function.
10217         * sysdeps/ieee754/dbl-64/mpa.h (__sqr): Declare.
10218         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): use __sqr instead
10219         of __mul for squares.
10220         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__sqr): New
10221         function
10222         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__sqr):
10223         Likewise.
10224         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define __sqr.
10225         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
10226
10227 2013-02-13  Joseph Myers  <joseph@codesourcery.com>
10228
10229         [BZ #13550]
10230         * misc/sys/cdefs.h [!__BOUNDED_POINTERS__]: Remove conditional
10231         code.
10232         * csu/libc-start.c (LIBC_START_MAIN): Do not use __unbounded in
10233         prototype or function definition.  Rename ubp_* variables and
10234         parameters.  Remove argv definitions conditional on
10235         [__BOUNDED_POINTERS__].
10236         * debug/backtrace.c (__backtrace): Do not use __unbounded.
10237         * elf/dl-runtime.c (_dl_fixup): Likewise.
10238         * include/set-hooks.h (RUN_HOOK): Likewise.
10239         * stdio-common/vfprintf.c (JUMP): Do not use __unbounded in either
10240         definition.
10241         * string/strcpy.c (strcpy): Do not use __unbounded.
10242         * sysdeps/generic/frame.h (struct layout): Likewise.
10243         * sysdeps/gnu/bits/msq.h (struct msqid_ds): Likewise.
10244         * sysdeps/i386/dl-machine.h (_dl_fixup): Likewise.
10245         * sysdeps/powerpc/powerpc32/backtrace.c (struct layout): Likewise.
10246         * sysdeps/powerpc/powerpc64/backtrace.c (struct layout): Likewise.
10247         * sysdeps/sparc/backtrace.c (struct layout): Likewise.
10248         (__backtrace): Likewise.
10249         * sysdeps/unix/sysv/linux/aio_sigqueue.c (__aio_sigqueue): Do not
10250         use __ptrvalue.
10251         * sysdeps/unix/sysv/linux/fxstat.c (__fxstat): Likewise.
10252         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Likewise.
10253         * sysdeps/unix/sysv/linux/gai_sigqueue.c (__gai_sigqueue):
10254         Likewise.
10255         * sysdeps/unix/sysv/linux/i386/brk.c (__brk): Likewise.
10256         * sysdeps/unix/sysv/linux/i386/fxstat.c (__fxstat): Likewise.
10257         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Likewise.
10258         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
10259         * sysdeps/unix/sysv/linux/i386/msgctl.c (struct __old_msqid_ds):
10260         Do not use __unbounded.
10261         * sysdeps/unix/sysv/linux/i386/setrlimit.c (__new_setrlimit):
10262         Rename __unboundedrlimits parameter to rlimits in prototype.
10263         * sysdeps/unix/sysv/linux/i386/shmctl.c (struct __old_shmid_ds):
10264         Do not use __unbounded.
10265         * sysdeps/unix/sysv/linux/i386/sigaction.c (__libc_sigaction): Do
10266         not use __ptrvalue.
10267         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
10268         * sysdeps/unix/sysv/linux/llseek.c (__llseek): Likewise.
10269         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10270         * sysdeps/unix/sysv/linux/mmap64.c (__mmap64): Do not use
10271         __ptrvalue or __unbounded.
10272         (__mmap64) [__BOUNDED_POINTERS__]: Remove conditional code.
10273         * sysdeps/unix/sysv/linux/msgctl.c (struct __old_msqid_ds): Do not
10274         use __unbounded.
10275         (__new_msgctl): Do not use __ptrvalue.
10276         * sysdeps/unix/sysv/linux/msgrcv.c (struct ipc_kludge): Do not use
10277         __unbounded.
10278         (__libc_msgrcv): Do not use __ptrvalue.
10279         * sysdeps/unix/sysv/linux/powerpc/libc-start.c (struct
10280         startup_info): Do not use __unbounded.
10281         (__libc_start_main): Likewise.  Rename ubp_* variables and
10282         parameters.  Remove argv definitions conditional on
10283         [__BOUNDED_POINTERS__].
10284         * sysdeps/unix/sysv/linux/ptrace.c (ptrace): Do not use
10285         __ptrvalue.
10286         * sysdeps/unix/sysv/linux/semctl.c (struct __old_semid_ds): Do not
10287         use __unbounded.
10288         * sysdeps/unix/sysv/linux/shmat.c (shmat): Do not use __unbounded
10289         or __ptrvalue.
10290         * sysdeps/unix/sysv/linux/shmctl.c (struct __old_shmid_ds): Do not
10291         use __unbounded.
10292         (__new_shmctl): Do not use __ptrvalue.
10293         * sysdeps/unix/sysv/linux/shmdt.c (shmdt): Likewise.
10294         * sysdeps/unix/sysv/linux/sigaction.c (__libc_sigaction):
10295         Likewise.
10296         * sysdeps/unix/sysv/linux/sigqueue.c (__sigqueue): Likewise.
10297         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c
10298         (__libc_sigaction): Likewise.
10299         * sysdeps/unix/sysv/linux/sysctl.c (__sysctl): Likewise.
10300         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (__libc_sigaction):
10301         Likewise.
10302         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10303
10304 2013-02-13   Ondřej Bílka  <neleai@seznam.cz>
10305
10306         * stdlib/Makefile (headers): Add bits/stdlib-bsearch.h.
10307
10308         * string/mempcpy.c: Implement by calling memcpy.
10309
10310 2013-02-13  Siddhesh Poyarekar  <siddhesh@redhat.com>
10311
10312         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove NFA.
10313
10314         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Faster polynomial
10315         evaluation.
10316
10317         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Don't bother with zero
10318         values in the mantissa.
10319
10320         * sysdeps/ieee754/dbl-64/mpa.c (add_magnitudes): Use ZK to
10321         minimize writes to Z.
10322         (sub_magnitudes): Simplify code a bit.
10323
10324 2013-02-12  Roland McGrath  <roland@hack.frob.com>
10325
10326         * include/libc-symbols.h (stub_warning): Remove "warning: " prefix
10327         from the message.  The linker prefixes all warnings with that already.
10328
10329 2013-02-12  Andreas Schwab  <schwab@suse.de>
10330
10331         [BZ #15078]
10332         * posix/regexec.c (extend_buffers): Add parameter min_len.
10333         (check_matching): Pass minimum needed length.
10334         (clean_state_log_if_needed): Likewise.
10335         (get_subexp): Likewise.
10336         * posix/Makefile (tests): Add bug-regex34.
10337         (bug-regex34-ENV): Define.
10338         * posix/bug-regex34.c: New file.
10339
10340         [BZ #11561]
10341         * posix/regcomp.c (parse_bracket_exp): When looking up collating
10342         elements compare against the byte sequence of it, not its name.
10343         * posix/Makefile (tests): Add bug-regex35.
10344         (bug-regex35-ENV): Define.
10345         * posix/bug-regex35.c: New file.
10346
10347 2013-02-11  Tom de Vries  <tom@codesourcery.com>
10348
10349         * string/str-two-way.h:  Fix typo RESULT_TYPE -> RETURN_TYPE in
10350         comment.
10351         Add RET0_IF_0 and CHECK_EOL to macro list in comment.
10352         (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J): Remove superfluous undef.
10353         (CHECK_EOL): Add undef.
10354
10355 2013-02-11   Ondřej Bílka  <neleai@seznam.cz>
10356
10357         * bits/stdlib-bsearch.h: New file.
10358         * stdlib/bsearch.c: Include bits/stdlib-bsearch.h.
10359         * stdlib/stdlib.h: Likewise.
10360
10361 2013-02-11  Roland McGrath  <roland@hack.frob.com>
10362
10363         * manual/conf.texi (General Limits): Fix SSIZE_MAX type to ssize_t.
10364         * manual/errno.texi (Error Messages): Fix typo in error_print_progname
10365         declaration.
10366         * manual/search.texi (Array Search Function): Add missing const in
10367         lfind prototype.
10368         * manual/resource.texi (Limits on Resources): Fix RLIM_INFINITY
10369         declaration to use rlim_t.
10370         (Basic Scheduling Functions): Remove erroneous const from
10371         sched_getparam prototype.  Remove erroneous * from
10372         sched_get_priority_max and sched_get_priority_min prototypes.
10373         (Resource Usage): Fix summary @comment on vtimes to refer to
10374         sys/vtimes.h rather than vtimes.h.
10375         Add missing *s in vtimes prototype.
10376         (Limits on Resources): Fix ulimit prototype to return long int.
10377         * manual/math.texi (SVID Random): Fix lrand48_r and mrand48_r
10378         prototypes to use long int rather than double.
10379         (BSD Random): Fix initstate and setstate to use char *, not void *.
10380         * manual/llio.texi (Asynchronous Reads/Writes): Fix lio_listio64
10381         prototype to make second argument 'struct aiocb64 *const[]'.
10382         Fix aio_read64 and aio_write64 prototypes to use struct aiocb64.
10383         (Status of AIO Operations): Remove erroneous const in aio_return and
10384         aio_return64 prototypes.
10385         (Synchronizing I/O): Fix sync prototype to return void.
10386         * manual/startup.texi (Suboptions): Remove an erroneous const in
10387         getsubopt prototype.
10388         * manual/getopt.texi (Using Getopt): Add a const in getopt prototype.
10389         * manual/users.texi (Lookup Netgroup): Fix getnetgrent_r prototype to
10390         use size_t rather than int.
10391         (Scanning All Users): Likewise for getpwent_r.
10392         (Setting Groups): Add missing const to setgroups prototype.
10393         * manual/sysinfo.texi (mtab): Fix typo in getmntent_r prototype.
10394         * manual/socket.texi (Host Names): Fix gethostbyaddr and
10395         gethostbyaddr_r prototypes to use socklen_t rather than size_t and
10396         'const void *' rather than 'const char *'.
10397         (Host Address Functions): Likewise for inet_ntop.
10398         (Networks Database): Fix getnetbyaddr prototype to use uint32_t.
10399         (Receiving Data): Fix recv, recvfrom, recvmsg prototypes to use
10400         ssize_t for return value.
10401         (Sending Data): Likewise for send, sendto, sendmsg.
10402         (Socket Option Functions): Add a missing const in setsockopt prototype.
10403         * manual/stdio.texi (Simple Output): Fix fputwc_unlocked prototype to
10404         use wchar_t for the argument.
10405         (Formatted Input Functions): Fix swscanf prototype to use wchar_t *.
10406         * manual/arith.texi (Control Functions): Fix fegetexcept prototype to
10407         take no arguments.
10408         (Normalization Functions): Fix scalb, scalbf, scalbl prototypes to use
10409         double/float/long double for second argument.
10410         Fix return types of significand, significandf, significandl.
10411         * manual/filesys.texi (Setting Permissions): Use mode_t for second
10412         argument in fchmod prototype.
10413         (File Owner): Use uid_t and gid_t in fchown prototype.
10414         (File Times): Add const to utimes, futimes, and lutimes prototypes.
10415         (Making Special Files): Use mode_t and dev_t in mknod prototype.
10416         (Scanning Directory Content): Fix scandir and scandir64 prototypes to
10417         use 'const struct dirent **' as argument types to CMP function pointer
10418         argument.
10419         (Symbolic Links): Fix readlink prototype with ssize_t as return value.
10420         (File Times): Fix summary magic @comment for struct utimbuf and utime
10421         to refer to utime.h, not time.h.
10422         * manual/string.texi (Argz Functions): Add missing const in
10423         argz_extract and argz_next prototypes.
10424         (Finding Tokens in a String): Likewise for basename.
10425         (String/Array Comparison): Fix typo in wcscasecmp prototype.
10426         (Copying and Concatenation): Fix typo in wmemmove prototype.
10427         * manual/signal.texi (Using Pause): Use (void) in pause prototype.
10428         (Signal Stack): Remove erroneous const in sigstack prototype.
10429         * manual/time.texi (Setting an Alarm): Add missing const in setitimer
10430         prototype.
10431         (Simple Calendar Time): Likewise for stime.
10432         * manual/terminal.texi (BSD Terminal Modes): Add missing const in stty
10433         prototype.
10434         * manual/sysinfo.texi (System Parameters): Fix mentions of sysctl.h to
10435         say sys/sysctl.h instead.
10436         * manual/syslog.texi (syslog; vsyslog): Add missing const in syslog
10437         and vsyslog prototypes.
10438
10439 2013-02-11  Tom de Vries  <tom@codesourcery.com>
10440
10441         * string/Makefile (CFLAGS-bug-strstr1.c, CFLAGS-bug-strcasestr1.c):
10442         Remove.
10443
10444 2013-02-11  Roland McGrath  <roland@hack.frob.com>
10445
10446         * misc/sys/mman.h: Fix typo in mremap comment.
10447
10448 2013-02-08  Roland McGrath  <roland@hack.frob.com>
10449
10450         * manual/examples/mkfsock.c (make_named_socket): Don't add one for
10451         the '\0' terminator.
10452
10453 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
10454
10455         [BZ #13550]
10456         * debug/segfault.c: Don't include <bp-checks.h>.
10457         * sysdeps/generic/bp-checks.h: Remove file.
10458         * sysdeps/unix/sysv/linux/getdents.c: Don't include <bp-checks.h>.
10459         (__GETDENTS): Don't use CHECK_N.
10460         * sysdeps/unix/sysv/linux/i386/brk.c: Don't include <bp-checks.h>.
10461         * sysdeps/unix/sysv/linux/i386/getgroups.c: Likewise.
10462         (__getgroups): Don't use CHECK_N.
10463         * sysdeps/unix/sysv/linux/i386/setgroups.c: Likewise.
10464         (setgroups): Don't use CHECK_N.
10465         * sysdeps/unix/sysv/linux/mmap64.c: Don't include <bp-checks.h>.
10466         * sysdeps/unix/sysv/linux/msgrcv.c: Likewise.
10467         (__libc_msgrcv): Don't use CHECK_N.
10468         * sysdeps/unix/sysv/linux/msgsnd.c: Don't include <bp-checks.h>.
10469         (__libc_msgsnd): Don't use CHECK_N.
10470         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c: Don't include
10471         <bp-checks.h>.
10472         (__libc_pread): Don't use CHECK_N.
10473         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c: Don't
10474         include <bp-checks.h>.
10475         (__libc_pread64): Don't use CHECK_N.
10476         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c: Don't
10477         include <bp-checks.h>.
10478         (__libc_pwrite): Don't use CHECK_N.
10479         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c: Don't
10480         include <bp-checks.h>.
10481         (__libc_pwrite64): Don't use CHECK_N.
10482         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Don't include
10483         <bp-checks.h>.
10484         (__libc_pread): Don't use CHECK_N.
10485         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Don't
10486         include <bp-checks.h>.
10487         (__libc_pread64): Don't use CHECK_N.
10488         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Don't
10489         include <bp-checks.h>.
10490         (__libc_pwrite): Don't use CHECK_N.
10491         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Don't
10492         include <bp-checks.h>.
10493         (__libc_pwrite64): Don't use CHECK_N.
10494         * sysdeps/unix/sysv/linux/pread.c: Don't include <bp-checks.h>.
10495         (do_pread): Don't use CHECK_N.
10496         * sysdeps/unix/sysv/linux/pread64.c: Don't include <bp-checks.h>.
10497         (do_pread64): Don't use CHECK_N.
10498         * sysdeps/unix/sysv/linux/pwrite.c: Don't include <bp-checks.h>.
10499         (do_pwrite): Don't use CHECK_N.
10500         * sysdeps/unix/sysv/linux/pwrite64.c: Don't include <bp-checks.h>.
10501         (do_pwrite64): Don't use CHECK_N.
10502         * sysdeps/unix/sysv/linux/readv.c: Don't include <bp-checks.h>.
10503         (__libc_readv): Don't use CHECK_N.
10504         * sysdeps/unix/sysv/linux/semop.c: Don't include <bp-checks.h>.
10505         (semop): Don't use CHECK_N.
10506         * sysdeps/unix/sysv/linux/semtimedop.c: Don't include
10507         <bp-checks.h>.
10508         (semtimedop): Don't use CHECK_N.
10509         * sysdeps/unix/sysv/linux/sh/pread.c: Don't include <bp-checks.h>.
10510         (__libc_pread): Don't use CHECK_N.
10511         * sysdeps/unix/sysv/linux/sh/pread64.c: Don't include
10512         <bp-checks.h>.
10513         (__libc_pread64): Don't use CHECK_N.
10514         * sysdeps/unix/sysv/linux/sh/pwrite.c: Don't include
10515         <bp-checks.h>.
10516         (__libc_pwrite): Don't use CHECK_N.
10517         * sysdeps/unix/sysv/linux/sh/pwrite64.c: Don't include
10518         <bp-checks.h>.
10519         (__libc_pwrite64): Don't use CHECK_N.
10520         * sysdeps/unix/sysv/linux/sparc/sparc64/msgrcv.c: Don't include
10521         <bp-checks.h>.
10522         (__libc_msgrcv): Don't use CHECK_N.
10523         * sysdeps/unix/sysv/linux/sysctl.c: Don't include <bp-checks.h>.
10524         (__sysctl): Don't use CHECK_N.  Remove GKM FIXME comment.
10525         * sysdeps/unix/sysv/linux/writev.c: Don't include <bp-checks.h>.
10526         (__libc_writev): Don't use CHECK_N.
10527
10528 2013-02-08  Roland McGrath  <roland@hack.frob.com>
10529
10530         * string/strcpy.c: Removed unused variable.
10531
10532         * Makeconfig (+sysdep-includes): Define with := rather than =.
10533         Use an existing include/ subdir of each sysdeps dir before it.
10534
10535 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
10536
10537         * nscd/connection.c (register_traced_file): Comment function.
10538         [HAVE_INOTIFY] (union __inev): Define.
10539         [HAVE_INOTIFY] (inotify_check_files): New function.
10540         [HAVE_INOTIFY] (clear_db_cache): Likewise.
10541         [HAVE_INOTIFY] (main_loop_poll): Call inotify_check_files and
10542         clear_db_cache.
10543         [HAVE_INOTIFY] (main_loop_epoll): Likewise.
10544
10545 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
10546
10547         * elf/dl-cache.c (_dl_load_cache_lookup): Comment that cache is
10548         loaded if not already and that a failure is permanent.
10549
10550 2013-02-08  Carlos O'Donell  <carlos@redhat.com>
10551
10552         [BZ #15006]
10553         * sysdeps/generic/ldconfig.h: Define FLAG_ARM_LIBSF.
10554         * elf/cache.c (print_entry): Add FLAG_ARM_LIBSF support.
10555
10556 2013-02-08  Joseph Myers  <joseph@codesourcery.com>
10557
10558         [BZ #13550]
10559         * sysdeps/generic/bp-checks.h (CHECK_1): Remove all definitions.
10560         (CHECK_1_NULL_OK): Likewise.
10561         * sysdeps/unix/sysv/linux/fxstat.c: Do not include <bp-checks.h>.
10562         (__fxstat): Do not use CHECK_1.
10563         * sysdeps/unix/sysv/linux/fxstat64.c: Do not include
10564         <bp-checks.h>.
10565         (___fxstat64): Do not use CHECK_1.
10566         * sysdeps/unix/sysv/linux/fxstatat.c: Do not include
10567         <bp-checks.h>.
10568         (__fxstatat): Do not use CHECK_1.
10569         * sysdeps/unix/sysv/linux/fxstatat64.c: Do not include
10570         <bp-checks.h>.
10571         (__fxstatat64): Do not use CHECK_1.
10572         * sysdeps/unix/sysv/linux/i386/fxstat.c: Do not include
10573         <bp-checks.h>.
10574         (__fxstat): Do not use CHECK_1.
10575         * sysdeps/unix/sysv/linux/i386/fxstatat.c: Do not include
10576         <bp-checks.h>.
10577         (__fxstatat): Do not use CHECK_1.
10578         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
10579         <bp-checks.h>.
10580         (__getresgid): Do not use CHECK_1.
10581         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
10582         <bp-checks.h>.
10583         (__getresuid): Do not use CHECK_1.
10584         * sysdeps/unix/sysv/linux/i386/lxstat.c: Do not include
10585         <bp-checks.h>.
10586         (__lxstat): Do not use CHECK_1.
10587         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
10588         <bp-checks.h>.
10589         (__old_msgctl): Do not use CHECK_1.
10590         (__new_msgctl): Likewise.
10591         * sysdeps/unix/sysv/linux/i386/setrlimit.c: Do not include
10592         <bp-checks.h>.
10593         (__new_setrlimit): Do not use CHECK_1.
10594         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
10595         <bp-checks.h>.
10596         (__old_shmctl): Do not use CHECK_1.
10597         (__new_shmctl): Likewise.
10598         * sysdeps/unix/sysv/linux/i386/xstat.c: Do not include
10599         <bp-checks.h>.
10600         (__xstat): Do not use CHECK_1.
10601         * sysdeps/unix/sysv/linux/lxstat.c: Do not include <bp-checks.h>.
10602         (__lxstat): Do not use CHECK_1.
10603         * sysdeps/unix/sysv/linux/lxstat64.c: Do not include
10604         <bp-checks.h>.
10605         (___lxstat64): Do not use CHECK_1.
10606         * sysdeps/unix/sysv/linux/msgctl.c: Do not include <bp-checks.h>.
10607         (__old_msgctl): Do not use CHECK_1.
10608         (__new_msgctl): Likewise.
10609         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Do not include
10610         <bp-checks.h>.
10611         (__gettimeofday): Do not use CHECK_1.
10612         * sysdeps/unix/sysv/linux/ptrace.c: Do not include <bp-checks.h>.
10613         (ptrace) [__BOUNDED_POINTERS__]: Remove conditional code.
10614         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Do not include
10615         <bp-checks.h>.
10616         (__gettimeofday): Do not use CHECK_1.
10617         * sysdeps/unix/sysv/linux/shmctl.c: Do not include <bp-checks.h>.
10618         (__old_shmctl): Do not use CHECK_1_NULL_OK.
10619         (__new_shmctl): Do not use CHECK_1.
10620         * sysdeps/unix/sysv/linux/sigtimedwait.c: Do not include
10621         <bp-checks.h>.
10622         (do_sigtimedwait): Do not use CHECK_1.
10623         * sysdeps/unix/sysv/linux/sigwaitinfo.c: Do not include
10624         <bp-checks.h>.
10625         (do_sigwaitinfo): Do not use CHECK_1.
10626         * sysdeps/unix/sysv/linux/sparc/sparc64/msgctl.c: Do not include
10627         <bp-checks.h>.
10628         (msgctl): Do not use CHECK_1.
10629         * sysdeps/unix/sysv/linux/sparc/sparc64/shmctl.c: Do not include
10630         <bp-checks.h>.
10631         (shmctl): Do not use CHECK_1.
10632         * sysdeps/unix/sysv/linux/ustat.c: Do not include <bp-checks.h>.
10633         (ustat): Do not use CHECK_1.
10634         * sysdeps/unix/sysv/linux/wordsize-64/fxstat.c: Do not include
10635         <bp-checks.h>.
10636         (__fxstat): Do not use CHECK_1.
10637         * sysdeps/unix/sysv/linux/wordsize-64/fxstatat.c: Do not include
10638         <bp-checks.h>.
10639         (__fxstatat): Do not use CHECK_1.
10640         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c: Do not include
10641         <bp-checks.h>.
10642         (__lxstat): Do not use CHECK_1.
10643         * sysdeps/unix/sysv/linux/wordsize-64/xstat.c: Do not include
10644         <bp-checks.h>.
10645         (__xstat): Do not use CHECK_1.
10646         * sysdeps/unix/sysv/linux/xstat.c: Do not include <bp-checks.h>.
10647         (__xstat): Do not use CHECK_1.
10648         * sysdeps/unix/sysv/linux/xstat64.c: Do not include <bp-checks.h>.
10649         (___xstat64): Do not use CHECK_1.
10650
10651         [BZ #13550]
10652         * sysdeps/generic/bp-checks.h (CHECK_BOUNDS_LOW): Remove all
10653         definitions.
10654         (CHECK_BOUNDS_HIGH): Likewise.
10655         * string/strcpy.c: Do not include <bp-checks.h>.
10656         (strcpy): Do not use CHECK_BOUNDS_LOW and CHECK_BOUNDS_HIGH.
10657
10658 2013-02-07  Roland McGrath  <roland@hack.frob.com>
10659
10660         * nscd/nscd-client.h (__nscd_drop_map_ref):
10661         Add __attribute__ ((unused)).
10662         * nis/nss-nisplus.h (niserr2nss): Likewise.
10663
10664         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Define it only
10665         under [!(USE_AS_STRCASESTR && STRCASESTR_NONASCII)].
10666
10667         * csu/libc-tls.c (init_static_tls, init_slotinfo):
10668         Remove inline keyword.
10669         * include/rounding-mode.h (round_away): Likewise.
10670         * libio/wfileops.c (adjust_wide_data): Likewise.
10671         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu): Likewise.
10672         (__m128i_strloadu_tolower): Likewise.
10673         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c
10674         (__m128i_strloadu_tolower): Likewise.
10675         * time/mktime.c (ydhms_diff): Likewise.
10676         * locale/elem-hash.h (elem_hash): Likewise.
10677         * locale/setlocale.c (setdata): Likewise.
10678         * posix/regex_internal.h (re_string_char_size_at): Likewise.
10679         (re_string_wchar_at): Likewise.
10680         (bitset_not, bitset_merge, bitset_mask): Likewise.
10681         [!(__GNUC__ > 3)] (inline): Remove macro.
10682         * nscd/nscd-client.h (__nscd_drop_map_ref): Remove inline keyword.
10683         * elf/dl-deps.c (_dl_map_object_deps: preload): Likewise.
10684         * elf/tlsdeschtab.h (_dl_tlsdesc_resolve_early_return_p): Likewise.
10685         (_dl_tlsdesc_wake_up_held_fixups): Likewise.
10686         * string/memcmp.c (memcmp_bytes): Likewise.
10687         * locale/programs/locarchive.c (compute_hashval): Likewise.
10688         * sysdeps/ieee754/dbl-64/x2y2m1.c (mul_split): Likewise.
10689         * sysdeps/unix/sysv/linux/fips-private.h (fips_enabled_p): Likewise.
10690         * resolv/res_send.c (evNowTime, evCmpTime): Likewise.
10691         * nss/getent.c (print_rpc, print_protocols): Likewise.
10692         (print_passwd, print_group, print_aliases): Likewise.
10693         * nis/nss-nisplus.h (niserr2nss): Likewise.
10694         * nscd/connections.c (restart_p): Likewise.
10695         Change return type to bool.
10696
10697 2013-02-05  Roland McGrath  <roland@hack.frob.com>
10698
10699         * Makeconfig (all-Depend-files): Add existing
10700         $(sorted-subdirs:=/Depend) files.
10701         (all-subdirs): Remove nss.
10702         * sysdeps/unix/inet/Subdirs: Add it here instead.
10703         * hesiod/Depend: New file.
10704
10705         * elf/dl-hwcaps.c (_dl_important_hwcaps): Use a variable-length array
10706         instead of calling alloca.
10707
10708         * io/lseek.c (__lseek): Rename to __libc_lseek.
10709         Define __lseek as an alias.
10710
10711         * sysdeps/generic/malloc-sysdep.h: Include <stdbool.h> and <unistd.h>.
10712
10713 2013-02-04  Carlos O'Donell  <carlos@redhat.com>
10714
10715         * stdlib/getenv.c (getenv): Assume __BIG_ENDIAN in the
10716         else clause and remove check for non-standard endianness.
10717
10718 2013-02-04  David S. Miller  <davem@davemloft.net>
10719
10720         * sysdeps/sparc/fpu/libm-test-ulps: Update.
10721
10722 2013-02-04  Joseph Myers  <joseph@codesourcery.com>
10723
10724         [BZ #13550]
10725         * sysdeps/generic/bp-checks.h [__BOUNDED_POINTERS__]
10726         (__ubp_memchr): Remove prototype.
10727         [__BOUNDED_POINTERS__] (_CHECK_STRING): Remove macro.
10728         [__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
10729         [__BOUNDED_POINTERS__] (CHECK_STRING_NULL_OK): Likewise.
10730         [!__BOUNDED_POINTERS__] (CHECK_STRING): Likewise.
10731         * sysdeps/i386/memchr.S [!__BOUNDED_POINTERS__] (__ubp_memchr):
10732         Remove alias.
10733         * sysdeps/sparc/sparc32/memchr.S [!__BOUNDED_POINTERS__]
10734         (__ubp_memchr): Likewise.
10735         * sysdeps/sparc/sparc64/memchr.S [!__BOUNDED_POINTERS__]
10736         (__ubp_memchr): Likewise.
10737         * sysdeps/unix/sysv/linux/execve.c: Do not include <bp-checks.h>.
10738         (__execve) [__BOUNDED_POINTERS__]: Remove conditional code.
10739         (__execve) [!__BOUNDED_POINTERS__]: Make code unconditional.
10740         * sysdeps/unix/sysv/linux/fxstatat.c (__fxstatat): Do not use
10741         CHECK_STRING.
10742         * sysdeps/unix/sysv/linux/fxstatat64.c (__fxstatat64): Likewise.
10743         * sysdeps/unix/sysv/linux/getcwd.c: Do not include <bp-checks.h>.
10744         (__getcwd): Do not use CHECK_STRING.
10745         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
10746         <bp-checks.h>.
10747         (__real_chown): Do not use CHECK_STRING.
10748         * sysdeps/unix/sysv/linux/i386/fchownat.c: Do not include
10749         <bp-checks.h>.
10750         (fchownat): Do not use CHECK_STRING.
10751         * sysdeps/unix/sysv/linux/i386/fxstatat.c (__fxstatat): Do not use
10752         CHECK_STRING.
10753         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
10754         <bp-checks.h>.
10755         (__lchown): Do not use CHECK_STRING.
10756         * sysdeps/unix/sysv/linux/i386/lxstat.c (__lxstat): Likewise.
10757         * sysdeps/unix/sysv/linux/i386/xstat.c (__xstat): Likewise.
10758         * sysdeps/unix/sysv/linux/lxstat.c (__lxstat): Likewise.
10759         * sysdeps/unix/sysv/linux/lxstat64.c (___lxstat64): Likewise.
10760         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
10761         include <bp-checks.h>.
10762         (truncate64): Do not use CHECK_STRING.
10763         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
10764         <bp-checks.h>.
10765         (__real_chown): Do not use CHECK_STRING.
10766         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
10767         <bp-checks.h>.
10768         (__lchown): Do not use CHECK_STRING.
10769         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
10770         <bp-checks.h>.
10771         (__chown): Do not use CHECK_STRING.
10772         * sysdeps/unix/sysv/linux/truncate64.c: Do not include
10773         <bp-checks.h>.
10774         (truncate64): Do not use CHECK_STRING.
10775         * sysdeps/unix/sysv/linux/wordsize-64/lxstat.c (__lxstat):
10776         Likewise.
10777         * sysdeps/unix/sysv/linux/xmknod.c: Do not include <bp-checks.h>.
10778         (__xmknod): Do not use CHECK_STRING.
10779         * sysdeps/unix/sysv/linux/xmknodat.c: Do not include
10780         <bp-checks.h>.
10781         (__xmknodat): Do not use CHECK_STRING.
10782         * sysdeps/unix/sysv/linux/xstat.c (__xstat): Likewise.
10783         * sysdeps/unix/sysv/linux/xstat64.c (___xstat64): Likewise.
10784
10785 2013-02-04  Andreas Schwab  <schwab@suse.de>
10786
10787         [BZ #14142]
10788         * include/errno.h: Redefine errno only if !NOT_IN_libc || IN_LIB.
10789         * include/netdb.h: Likewise for h_errno.
10790         * elf/tst-stackguard1.c: Include <tls.h>.
10791
10792 2013-02-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
10793
10794         * elf/link.h (struct link_map): Extend the l_addr comment.
10795         * include/link.h (struct link_map): Likewise.
10796
10797 2013-02-01  Joseph Myers  <joseph@codesourcery.com>
10798
10799         [BZ #13550]
10800         * sysdeps/generic/bp-checks.h (BOUNDED_N): Remove all definitions.
10801         (BOUNDED_1): Remove macro.
10802         * debug/backtrace.c: Don't include <bp-checks.h>.
10803         (ADVANCE_STACK_FRAME): Don't use BOUNDED_1.
10804         (__backtrace): Likewise.
10805         * sysdeps/powerpc/powerpc32/backtrace.c: Don't include
10806         <bp-checks.h>.
10807         (__backtrace): Don't use BOUNDED_1.
10808         * sysdeps/powerpc/powerpc64/backtrace.c: Don't include
10809         <bp-checks.h>.
10810         (__backtrace): Don't use BOUNDED_1.
10811         * sysdeps/sparc/backtrace.c: Don't include <bp-checks.h>.
10812         (__backtrace): Don't use BOUNDED_1.
10813         * sysdeps/unix/sysv/linux/shmat.c: Don't include <bp-checks.h>.
10814         (shmat): Don't use BOUNDED_N.
10815
10816 2013-01-31  Joseph Myers  <joseph@codesourcery.com>
10817
10818         [BZ #13550]
10819         * sysdeps/generic/bp-start.h: Remove file.
10820         * csu/libc-start.c: Don't include <bp-start.h>.
10821         (LIBC_START_MAIN): Set up __environ directly instead of using
10822         INIT_ARGV_and_ENVIRON.
10823         * sysdeps/unix/sysv/linux/powerpc/libc-start.c: Don't include
10824         <bp-start.h>.
10825
10826         [BZ #13550]
10827         * sysdeps/generic/bp-checks.h (CHECK_IOCTL): Remove both
10828         definitions.
10829         (CHECK_FCNTL): Likewise.
10830         (CHECK_N_PAGES): Likewise.
10831
10832         [BZ #13550]
10833         * sysdeps/generic/bp-checks.h (CHECK_SIGSET): Remove both
10834         definitions.
10835         (CHECK_SIGSET_NULL_OK): Likewise.
10836         * sysdeps/unix/sysv/linux/sigpending.c: Don't include
10837         <bp-checks.h>.
10838         (sigpending): Don't use CHECK_SIGSET.
10839         * sysdeps/unix/sysv/linux/sigprocmask.c: Don't include
10840         <bp-checks.h>.
10841         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
10842         * sysdeps/unix/sysv/linux/sigsuspend.c: Don't include
10843         <bp-checks.h>.
10844         (do_sigsuspend): Don't use CHECK_SIGSET.
10845         * sysdeps/unix/sysv/linux/sigtimedwait.c (do_sigtimedwait): Don't
10846         use CHECK_SIGSET.
10847         * sysdeps/unix/sysv/linux/sigwait.c: Don't include <bp-checks.h>.
10848         (do_sigwait): Don't use CHECK_SIGSET.
10849         * sysdeps/unix/sysv/linux/sigwaitinfo.c (do_sigwaitinfo): Don't
10850         use CHECK_SIGSET.
10851         * sysdeps/unix/sysv/linux/sparc/sparc64/sigpending.c: Don't
10852         include <bp-checks.h>.
10853         (sigpending): Don't use CHECK_SIGSET.
10854         * sysdeps/unix/sysv/linux/sparc/sparc64/sigprocmask.c: Don't
10855         include <bp-checks.h>.
10856         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
10857         * sysdeps/unix/sysv/linux/x86_64/sigpending.c: Don't include
10858         <bp-checks.h>.
10859         (sigpending): Don't use CHECK_SIGSET.
10860         * sysdeps/unix/sysv/linux/x86_64/sigprocmask.c: Don't include
10861         <bp-checks.h>.
10862         (__sigprocmask): Don't use CHECK_SIGSET and CHECK_SIGSET_NULL_OK.
10863
10864         [BZ #13550]
10865         * sysdeps/generic/bp-semctl.h: Remove file.
10866         * sysdeps/unix/sysv/linux/i386/semctl.c: Don't include
10867         <bp-checks.h> and <bp-semctl.h>.
10868         (__old_semctl): Don't use CHECK_SEMCTL.
10869         (__new_semctl): Likewise.
10870         * sysdeps/unix/sysv/linux/semctl.c: Don't include <bp-checks.h>
10871         and <bp-semctl.h>.
10872         (__old_semctl): Don't use CHECK_SEMCTL.
10873         (__new_semctl): Likewise.
10874         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Don't include
10875         <bp-checks.h> and <bp-semctl.h>.
10876         (__old_semctl): Don't use CHECK_SEMCTL.
10877         (__new_semctl): Likewise.
10878         * sysdeps/unix/sysv/linux/sparc/sparc64/semctl.c: Don't include
10879         <bp-checks.h> and <bp-semctl.h>.
10880         (semctl): Don't use CHECK_SEMCTL.
10881
10882         [BZ #13550]
10883         * Makerules (elide-bp-thunks): Remove variable.
10884         (elide-routines.oS): Don't use $(elide-bp-thunks).
10885         (elide-routines.os): Likewise.
10886         (elide-routines.o): Likewise.
10887         (elide-routines.op): Likewise.
10888         (elide-routines.og): Likewise.
10889         (objects): Don't use $(bp-thunks).
10890         * sysdeps/unix/Makefile ($(common-objpfx)s-proto-bp.d): Do not
10891         include.
10892         (common-generated): Do not add s-proto-bp.d.
10893         * sysdeps/unix/make-syscalls.sh (ptr): Remove variable.
10894         (int): Likewise.
10895         (typ): Likewise.
10896         Do not generate makefile rules for bounded-pointer thunks.
10897         * sysdeps/generic/bp-thunks.h: Remove file.
10898         * sysdeps/unix/sysv/linux/i386/bp-thunks.h: Likewise.
10899         * sysdeps/unix/s-proto-bp.S: Likewise.
10900
10901         [BZ #15062]
10902         * math/k_casinh.c (__kernel_casinh): Compute real and imaginary
10903         parts of result separately when argument is not close to line from
10904         -i to i and one part of argument is small.
10905         * math/k_casinhf.c (__kernel_casinhf): Likewise.
10906         * math/k_casinhl.c (__kernel_casinhl): Likewise.
10907         * math/libm-test.inc (cacos_test): Add more tests.
10908         (casin_test): Likewise.
10909         (casinh_test): Likewise.
10910         * sysdeps/i386/fpu/libm-test-ulps: Update.
10911         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
10912
10913 2013-01-31  David S. Miller  <davem@davemloft.net>
10914
10915         * po/de.po: Update from translation team.
10916
10917 2013-01-25  Maxim Kuvyrkov  <maxim.kuvyrkov@gmail.com>
10918
10919         * time/tzfile.c: Include stdint.h for SIZE_MAX.
10920
10921 2013-01-25  Thomas Schwinge  <thomas@codesourcery.com>
10922
10923         * configure.in (_AC_PROG_CC_C89): New definition.
10924         * configure: Regenerate.
10925
10926         * configure.in (AC_PROG_CPP): New definition.
10927         * configure: Regenerate.
10928
10929 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
10930
10931         * debug/tst-backtrace.h: New file.
10932         * debug/tst-backtrace2.c: Include tst-backtrace.h.
10933         (ret): Remove variable.
10934         (x): Likewise.
10935         (FAIL): Remove macro.
10936         (NO_INLINE): Likewise.
10937         (fn1): Use match function instead of strstr.
10938         * debug/tst-backtrace3.c: Include tst-backtrace.h.
10939         (ret): Remove variable.
10940         (x): Likewise.
10941         (FAIL): Remove macro.
10942         (NO_INLINE): Likewise.
10943         (fn): Use match function instead of strstr.
10944         * debug/tst-backtrace4.c: Include tst-backtrace.h.
10945         (ret): Remove variable.
10946         (x): Likewise.
10947         (FAIL): Remove macro.
10948         (NO_INLINE): Likewise.
10949         (handle_signal): Use match function instead of strstr.
10950         * debug/tst-backtrace5.c: Include tst-backtrace.h.
10951         (ret): Remove variable.
10952         (x): Likewise.
10953         (FAIL): Remove macro.
10954         (NO_INLINE): Likewise.
10955         (handle_signal): Use match function instead of strstr.
10956
10957 2013-01-23  Roland McGrath  <roland@hack.frob.com>
10958
10959         * misc/sys/cdefs.h (__glibc_unlikely, __glibc_likely): Fix whitespace.
10960
10961 2013-01-23  David S. Miller  <davem@davemloft.net>
10962
10963         * sysdeps/sparc/sparc32/sparcv9/bits/atomic.h
10964         (__arch_compare_and_exchange_val_32_acq): Use %g0 as second
10965         argument of CAS if possible.
10966         * sysdeps/sparc/sparc64/bits/atomic.h
10967         (__arch_compare_and_exchange_val_32_acq): Likewise.
10968         (__arch_compare_and_exchange_val_64_acq): Likewise.
10969
10970 2013-01-23  Pino Toscano  <toscano.pino@tiscali.it>
10971
10972         * sysdeps/unix/sysv/linux/ulimit.c: Moved to ...
10973         * sysdeps/posix/ulimit.c: ... this.
10974         Include <limits.h>.
10975         * sysdeps/unix/bsd/ulimit.c: Remove file.
10976
10977 2013-01-23  Adam Conrad  <adconrad@0c3.net>
10978
10979         * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed).
10980         (LDFLAGS-tst-array5): Likewise.
10981
10982 2013-01-23  Joseph Myers  <joseph@codesourcery.com>
10983
10984         [BZ #15036]
10985         * bits/wchar.h (__WCHAR_MAX): Define based on __WCHAR_MAX__, or
10986         based on [L'\0' - 1 > 0] if [!__WCHAR_MAX__].
10987         (__WCHAR_MIN): Likewise, using __WCHAR_MIN__.
10988         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: Remove.
10989
10990 2013-01-21  David S. Miller  <davem@davemloft.net>
10991
10992         * sysdeps/sparc/backtrace.c: New file.
10993         * sysdeps/sparc/sparc32/backtrace.h: New file.
10994         * sysdeps/sparc/sparc32/sparcv9/backtrace.h: New file.
10995         * sysdeps/sparc/sparc64/backtrace.h: New file.
10996         * sysdeps/sparc/sparc64/backtrace.c: Delete.
10997         * sysdeps/sparc/Makefile (CFLAGS-backtrace.c): Add
10998         -funwind-tables.
10999
11000 2013-01-21  Andreas Schwab  <schwab@suse.de>
11001
11002         [BZ #15020]
11003         * posix/wordexp.c (exec_comm): Avoid busy loop when command has
11004         closed its stdout.
11005
11006 2013-01-20  Andreas Schwab  <schwab@linux-m68k.org>
11007
11008         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Don't include
11009         "mpa2.h".
11010         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
11011
11012 2013-01-18  Joseph Myers  <joseph@codesourcery.com>
11013             Mark Mitchell  <mark@codesourcery.com>
11014             Tom de Vries  <tom@codesourcery.com>
11015             Paul Pluzhnikov  <ppluzhnikov@google.com>
11016
11017         * debug/tst-backtrace2.c: New file.
11018         * debug/tst-backtrace3.c: Likewise.
11019         * debug/tst-backtrace4.c: Likewise.
11020         * debug/tst-backtrace5.c: Likewise.
11021         * debug/Makefile (CFLAGS-tst-backtrace2.c): New variable.
11022         (CFLAGS-tst-backtrace3.c): Likewise.
11023         (CFLAGS-tst-backtrace4.c): Likewise.
11024         (CFLAGS-tst-backtrace5.c): Likewise.
11025         (LDFLAGS-tst-backtrace2): Likewise.
11026         (LDFLAGS-tst-backtrace3): Likewise.
11027         (LDFLAGS-tst-backtrace4): Likewise.
11028         (LDFLAGS-tst-backtrace5): Likewise.
11029         (tests): Add new tests tst-backtrace2, tst-backtrace3,
11030         tst-backtrace4 and tst-backtrace5.
11031
11032 2013-01-18  Anton Blanchard  <anton@samba.org>
11033             Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
11034
11035         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Rename
11036         __kernel_vdso_get_tbfreq to __kernel_get_tbfreq.
11037         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Add parameter to
11038         INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK to specify return type.
11039         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
11040         (INTERNAL_VSYSCALL_NCS): Change "=&r" in inline asm output regs list to
11041         "+r" and remove output regs list as redundant.  Add explicit inline
11042         asm to specify register of return val to work around compiler codegen
11043         bug.  Remove (int) cast on return value.  Add return type parameter to
11044         use in macro so that this macro does not truncate return value for
11045         64-bit values.
11046         (INTERNAL_VSYSCALL_NO_SYSCALL_FALLBACK): Add return type parameter and
11047         pass to INTERNAL_VSYSCALL_NCS.
11048         (INLINE_VSYSCALL): Add 'long int' as return type to
11049         INTERNAL_VSYSCALL_NCS macro invocation.
11050         (INTERNAL_VSYSCALL): Add 'long int' as return type to
11051         INTERNAL_VSYSCALL_NCS macro invocation.
11052         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
11053
11054 2013-01-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
11055
11056         [BZ #14496]
11057         * sysdeps/i386/fpu/fenv_private.h (libc_feupdateenv_test_sse):
11058         Fix application of SIMD FP exception mask.
11059
11060         * sysdeps/ieee754/dbl-64/mpa.h (__pow_mp): New function to get an
11061         mp_no from a power of two.
11062         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove
11063         __mpexp_twomm1.  Use __pow_mp.
11064
11065         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Remove unnecessary
11066         multiplication.
11067
11068 2013-01-17  David S. Miller  <davem@davemloft.net>
11069
11070         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11071
11072 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
11073
11074         [BZ #15023]
11075         * include/complex.h: Condition contents on [!_COMPLEX_H].
11076         (__kernel_casinhf): New prototype.
11077         (__kernel_casinh): Likewise.
11078         (__kernel_casinhl): Likewise.
11079         * math/Makefile (libm_calls): Add k_casinh.
11080         * math/k_casinh.c: New file.
11081         * math/k_casinhf.c: Likewise.
11082         * math/k_casinhl.c: Likewise.
11083         * math/s_cacos.c (__cacos): Implement using __kernel_casinh for
11084         finite nonzero arguments.
11085         * math/s_cacosf.c (__cacosf): Implement using __kernel_casinhf for
11086         finite nonzero arguments.
11087         * math/s_cacosl.c (__cacosl): Implement using __kernel_casinhl for
11088         finite nonzero arguments.
11089         * math/s_casinh.c: Do not include <float.h>.
11090         (__casinh): Move code for finite nonzero arguments to k_casinh.c.
11091         * math/s_casinhf.c: Do not include <float.h>.
11092         (__casinhf): Move code for finite nonzero arguments to
11093         k_casinhf.c.
11094         * math/s_casinhl.c: Do not include <float.h>.
11095         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Do not undefine and
11096         redefine.
11097         (__casinhl): Move code for finite nonzero arguments to
11098         k_casinhl.c.
11099         * math/libm-test.inc (cacos_test): Add more tests.
11100         * sysdeps/i386/fpu/libm-test-ulps: Update.
11101         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11102
11103 2013-01-17  Pino Toscano  <toscano.pino@tiscali.it>
11104
11105         * sysdeps/unix/sysv/linux/malloc-sysdep.h (HAVE_MREMAP): New define.
11106         * malloc/malloc.c: Include <unistd.h> and <malloc-sysdep.h>.
11107         [!HAVE_MREMAP]: Remove [defined linux] case.
11108         * malloc/arena.c: Do not include <malloc-sysdep.h>.
11109
11110 2013-01-17  Siddhesh Poyarekar  <siddhesh@redhat.com>
11111
11112         * sysdeps/ieee754/dbl-64/mpa.c: Fix header comment.
11113
11114 2013-01-17  H.J. Lu  <hongjiu.lu@intel.com>
11115
11116         * elf/elf.h (R_386_SIZE32): New relocation.
11117         * sysdeps/i386/dl-machine.h (elf_machine_rel): Handle
11118         R_386_SIZE32.
11119         (elf_machine_rela): Likewise.
11120         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
11121         R_X86_64_SIZE64 and R_X86_64_SIZE32.
11122
11123 2013-01-17  Joseph Myers  <joseph@codesourcery.com>
11124
11125         * sysdeps/powerpc/bits/mathdef.h [_SOFT_FLOAT || __NO_FPRS__]
11126         (FP_FAST_FMA): Do not define.
11127         [_SOFT_FLOAT || __NO_FPRS__] (FP_FAST_FMAF): Likewise.
11128         * sysdeps/powerpc/fpu/bits/fenvinline.h [__GNUC__ && !_SOFT_FLOAT
11129         && !__NO_MATH_INLINES]: Add [!__NO_FPRS__] condition.
11130         * sysdeps/powerpc/fpu/bits/mathinline.h [__GNUC__ &&
11131         !_SOFT_FLOAT]: Likewise.
11132         * sysdeps/powerpc/fpu/fpu_control.h [_SOFT_FLOAT || __NO_FPRS__]
11133         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_RESERVED): Define with generic
11134         value.
11135         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_DEFAULT): Likewise.
11136         [_SOFT_FLOAT || __NO_FPRS__] (fpu_control_t): Likewise.
11137         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_GETCW): Likewise.
11138         [_SOFT_FLOAT || __NO_FPRS__] (_FPU_SETCW): Likewise.
11139         [_SOFT_FLOAT || __NO_FPRS__] (__fpu_control): Likewise.
11140         [!_SOFT_FLOAT && !__NO_FPRS__]: Condition previous contents of
11141         file.
11142
11143 2013-01-16  Andreas Schwab  <schwab@suse.de>
11144
11145         [BZ #14327]
11146         * include/stdlib.h (__mktemp): Add declaration.
11147         * misc/mktemp.c (__mktemp): Renamed from mktemp, add weak alias.
11148         * misc/Versions (GLIBC_PRIVATE): Add __mktemp.
11149
11150 2013-01-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
11151
11152         * sysdeps/ieee754/dbl-64/atnat.h: Remove constant value
11153         definitions.
11154         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
11155         * sysdeps/ieee754/dbl-64/mpa.c: Do not include mpa2.h.
11156         * sysdeps/ieee754/dbl-64/mpa.h: Move all constant value
11157         definitions here.
11158         * sysdeps/ieee754/dbl-64/mpa2.h: Remove.
11159         * sysdeps/ieee754/dbl-64/mpatan.h: Remove constant value
11160         definitions.
11161         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Remove ZERO
11162         and ONE.
11163         * sysdeps/ieee754/dbl-64/mpexp.c: Do not include mpexp.h.
11164         * sysdeps/ieee754/dbl-64/mpexp.h: Remove.
11165         * sysdeps/ieee754/dbl-64/mpsqrt.h: Remove constant value
11166         definitions.
11167         * sysdeps/ieee754/dbl-64/mptan.c (__mptan): Remove MONE.
11168         * sysdeps/ieee754/dbl-64/ulog.h: Remove constant value
11169         definitions.
11170         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
11171
11172         * sysdeps/ieee754/dbl-64/mpa2.h: Fix the value of TWO.
11173
11174 2013-01-15  David S. Miller  <davem@davemloft.net>
11175
11176         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
11177         trunc{,f} to libm-sysdep_routes.
11178         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
11179         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc-vis3.S: New
11180         file.
11181         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_trunc.S: New file.
11182         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf-vis3.S: New
11183         file.
11184         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_truncf.S: New
11185         file.
11186         * sysdeps/sparc/sparc32/sparcv9/fpu/s_trunc.S: New file.
11187         * sysdeps/sparc/sparc32/sparcv9/fpu/s_truncf.S: New file.
11188         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc-vis3.S: New file.
11189         * sysdeps/sparc/sparc64/fpu/multiarch/s_trunc.S: New file.
11190         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf-vis3.S: New file.
11191         * sysdeps/sparc/sparc64/fpu/multiarch/s_truncf.S: New file.
11192         * sysdeps/sparc/sparc64/fpu/s_trunc.S: New file.
11193         * sysdeps/sparc/sparc64/fpu/s_truncf.S: New file.
11194
11195         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
11196         nearbyint{,f} to libm-sysdep_routes.
11197         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
11198         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint-vis3.S:
11199         New file.
11200         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyint.S: New
11201         file.
11202         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf-vis3.S:
11203         New file.
11204         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_nearbyintf.S: New
11205         file.
11206         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyint.S: New file.
11207         * sysdeps/sparc/sparc32/sparcv9/fpu/s_nearbyintf.S: New file.
11208         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint-vis3.S: New
11209         file.
11210         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyint.S: New file.
11211         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf-vis3.S: New
11212         file.
11213         * sysdeps/sparc/sparc64/fpu/multiarch/s_nearbyintf.S: New file.
11214         * sysdeps/sparc/sparc64/fpu/s_nearbyint.S: New file.
11215         * sysdeps/sparc/sparc64/fpu/s_nearbyintf.S: New file.
11216
11217         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Use
11218         libc_feholdexcept and libc_fesetenv.
11219
11220 2013-01-15  Mike Frysinger  <vapier@gentoo.org>
11221
11222         * sysdeps/unix/sysv/linux/scsi/sg.h: Include stddef.h.
11223
11224 2013-01-14  David S. Miller  <davem@davemloft.net>
11225
11226         * sysdeps/sparc/sparc-ifunc.h (SPARC_ASM_IFUNC2): New macro.
11227         (SPARC_ASM_VIS2_IFUNC): Likewise.
11228         (SPARC_ASM_VIS3_VIS2_IFUNC): Likewise.
11229         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: Make
11230         use of 'siam' instruction.
11231         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S:
11232         Likewise.
11233         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S:
11234         Likewise.
11235         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S:
11236         Likewise.
11237         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: Likewise.
11238         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: Likewise.
11239         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: Likewise.
11240         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: Likewise.
11241         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis2.S: New
11242         file.
11243         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis2.S: New
11244         file.
11245         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis2.S: New
11246         file.
11247         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis2.S: New
11248         file.
11249         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis2.S: New file.
11250         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis2.S: New file.
11251         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis2.S: New file.
11252         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis2.S: New file.
11253         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Hook in
11254         new VIS2 routines.
11255         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
11256         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
11257         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
11258         Likewise.
11259         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
11260         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
11261         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
11262         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
11263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new VIS2
11264         routines to libm-sysdep_routines.
11265         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Likewise.
11266
11267         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add vis3
11268         fdim/fdimf to libm-sysdep_routines.
11269         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim-vis3.S: New
11270         file.
11271         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdim.S: New file.
11272         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf-vis3.S: New
11273         file.
11274         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fdimf.S: New file.
11275         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdim.S: New file.
11276         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fdimf.S: New file.
11277         * sysdeps/sparc/sparc32/fpu/s_fdim.S: New file.
11278         * sysdeps/sparc/sparc32/fpu/s_fdimf.S: New file.
11279         * sysdeps/sparc/sparc64/fpu/s_fdim.S: New file.
11280         * sysdeps/sparc/sparc64/fpu/s_fdimf.S: New file.
11281
11282 2013-01-14  Siddhesh Poyarekar  <siddhesh@redhat.com>
11283
11284         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Add a local variable
11285         to optimize copies.
11286
11287         * sysdeps/ieee754/dbl-64/mpa.c: Fix formatting.
11288         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
11289         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
11290
11291         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__inv): Remove
11292         local variable MPTWO.
11293         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__inv):
11294         Likewise.
11295
11296 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
11297
11298         * manual/pattern.texi (Flags for Globbing): Move GLOB_NOSORT after
11299         GLOB_NOESCAPE.
11300
11301 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
11302
11303         * manual/pattern.texi (Flags for Globbing): Highlight GNU extensions.
11304
11305 2013-01-13  Mike Frysinger  <vapier@gentoo.org>
11306
11307         * manual/pattern.texi (glob_t): Document gl_flags.
11308         (glob64_t): Likewise.
11309
11310 2013-01-11  David S. Miller  <davem@davemloft.net>
11311
11312         * math/Makefile (gmp-objs): Use $(gmp-sysdep_routines).
11313         * sysdeps/sparc/sparc64/multiarch/Makefile [$(subdir) = math]
11314         (gmp-sysdep_routines): New variable.  Add VIS3 optimized GMP routines.
11315         * sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
11316         * sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
11317         * sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
11318         * sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
11319         * sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
11320         * sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
11321         * sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
11322         * sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
11323         * sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
11324         * sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
11325
11326         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
11327         sparc V9 rather than using V8 code.
11328         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
11329         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
11330
11331         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
11332         Move to...
11333         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/multiarch/Implies:
11334         Here.
11335
11336 2013-01-11  Roland McGrath  <roland@hack.frob.com>
11337
11338         * configure.in (sysnames): Use $multi_arch_d in setting up $mach list,
11339         not in the main loop.
11340         * configure: Regenerated.
11341
11342 2013-01-11  Joseph Myers  <joseph@codesourcery.com>
11343
11344         * include/features.h (__GLIBC_HAVE_LONG_LONG): Remove.
11345         * bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change #elif condition
11346         to just #else.
11347         * bits/types.h [__GLIBC_HAVE_LONG_LONG]: Likewise.  Remove
11348         [!__GLIBC_HAVE_LONG_LONG] case.
11349         * posix/sys/types.h [__GLIBC_HAVE_LONG_LONG]: Change #elif
11350         condition to just #else.
11351         * stdlib/stdlib.h [__USE_ISOC99 || (__GLIBC_HAVE_LONG_LONG &&
11352         __USE_MISC)]: Change all uses to [__USE_ISOC99 || __USE_MISC].
11353         [__GLIBC_HAVE_LONG_LONG && __USE_BSD]: Change to [__USE_BSD].
11354         * string/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Make code
11355         unconditional.
11356         * string/endian.h [__GLIBC_HAVE_LONG_LONG]: Likewise.
11357         * sysdeps/s390/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
11358         #elif condition to just #else.
11359         * sysdeps/unix/sysv/linux/sys/sysmacros.h
11360         [__GLIBC_HAVE_LONG_LONG]: Make code unconditional.
11361         * sysdeps/x86/bits/byteswap.h [__GLIBC_HAVE_LONG_LONG]: Change
11362         #elif condition to just #else.
11363
11364 2013-01-11  Steve Ellcey  <sellcey@mips.com>
11365
11366         * elf/elf.h (EF_MIPS_ARCH_32): Fix value.
11367         (EF_MIPS_ARCH_64): Fix value.
11368         (EF_MIPS_ARCH_32R2): New.
11369         (EF_MIPS_ARCH_64R2): New.
11370
11371 2013-01-11  H.J. Lu  <hongjiu.lu@intel.com>
11372
11373         * Makeconfig (+link-pie-before-libc): New.
11374         (+link-pie-after-libc): Likewise.
11375         (+link-pie-tests): Likewise.
11376         (+link-pie): Rewritten.
11377         (link-before-libc): Remove $(config-LDFLAGS).
11378         (+link): Add $(rtld-LDFLAGS) after $(+link-before-libc).
11379         (+link-tests): Add $(rtld-tests-LDFLAGS) after $(+link-before-libc).
11380         (config-LDFLAGS): Renamed to ...
11381         (rtld-LDFLAGS): This.
11382         (rtld-tests-LDFLAGS): New macro.
11383         (link-libc-rpath-link): Likewise.
11384         (link-libc-tests-rpath-link): Likewise.
11385         (link-libc-before-gnulib): Remove -Wl,-rpath-link=$(rpath-link).
11386         (link-libc): Prepand $(link-libc-rpath-link).
11387         (link-libc-tests): Prepand $(link-libc-tests-rpath-link).
11388         (test-program-prefix): New macro.
11389         (test-via-rtld-prefix): Likewise.
11390         (test-program-cmd): Likewise.
11391         (host-test-program-cmd): Likewise.
11392         * Makefile ($(common-objpfx)testrun.sh): Replace
11393         $(run-program-prefix) with $(test-program-prefix).
11394         * Makerules ($(LINK.o)): Replace $(config-LDFLAGS) with
11395         $(rtld-LDFLAGS).
11396         ($(common-objpfx)shlib.lds): Likewise.
11397         (build-module-helper): Likewise.
11398         ($(common-objpfx)format.lds): Likewise.
11399         * Rules (binaries-pie-tests): New.
11400         (binaries-pie-notests): Likewise.
11401         (binaries-pie): Rewritten.
11402         ($(addprefix $(objpfx),$(binaries-pie))): Renamed to ...
11403         ($(addprefix $(objpfx),$(binaries-pie-notests))): This.
11404         ($(addprefix $(objpfx),$(binaries-pie-tests))): New.
11405         (make-test-out): Replace $(host-built-program-cmd) with
11406         $(host-test-program-cmd).
11407         * config.make.in (build-hardcoded-path-in-tests): New variable.
11408         * configure.in (--enable-hardcoded-path-in-tests): New configure
11409         option.
11410         (hardcoded_path_in_tests): New AC_SUBST.
11411         * configure: Regenerated.
11412         * catgets/Makefile ($(objpfx)test-gencat.out): Replace
11413         $(built-program-cmd) with $(test-program-cmd).
11414         * catgets/test-gencat.sh (run_program_cmd): Renamed to ...
11415         (test_program_cmd): This.
11416         * elf/Makefile ($(objpfx)order.out): Run test with
11417         $(test-program-prefix).
11418         ($(objpfx)order2.out): Likewise.
11419         ($(objpfx)tst-initorder.out): Likewise.
11420         ($(objpfx)tst-initorder2.out): Likewise.
11421         ($(objpfx)tst-array1.out): Replace $(built-program-cmd) with
11422         $(test-program-cmd).
11423         ($(objpfx)tst-array1-static.out): Likewise.
11424         ($(objpfx)tst-array2.out): Likewise.
11425         ($(objpfx)tst-array3.out): Likewise.
11426         ($(objpfx)tst-array4.out): Likewise.
11427         ($(objpfx)tst-array5.out): Likewise.
11428         ($(objpfx)tst-array5-static.out): Likewise.
11429         (tst-stackguard1-ARGS): Replace $(built-program-cmd) with
11430         $(test-program-cmd).
11431         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Replace
11432         $(run-program-prefix) with $(test-program-prefix).
11433         * grp/tst_fgetgrent.sh (run_program_prefix): Renamed to ...
11434         (test_program_prefix): This.
11435         * iconvdata/Makefile ($(objpfx)tst-tables.out): Replace
11436         $(run-program-prefix) with $(test-program-prefix).
11437         * iconvdata/tst-table.sh (run_program_prefix): Renamed to ...
11438         (test_program_prefix): This.
11439         * iconvdata/tst-tables.sh: Likewise.
11440         * intl/Makefile ($(objpfx)tst-gettext.out): Replace
11441         $(run-program-prefix) with $(test-program-prefix).
11442         ($(objpfx)tst-translit.out): Likewise.
11443         ($(objpfx)tst-gettext2.out): Likewise.
11444         ($(objpfx)tst-gettext4.out): Likewise.
11445         ($(objpfx)tst-gettext6.out): Likewise.
11446         * intl/tst-gettext.sh (run_program_prefix): Renamed to ...
11447         (test_program_prefix): This.
11448         * intl/tst-gettext2.sh: Likewise.
11449         * intl/tst-gettext4.sh  Likewise.
11450         * intl/tst-gettext6.sh: Likewise.
11451         * intl/tst-translit.sh: Likewise.
11452         * io/Makefile ($(objpfx)ftwtest.out): Replace $(run-program-cmd)
11453         with $(test-program-cmd).
11454         * libio/Makefile ($(objpfx)test-freopen.out): Replace
11455         $(run-program-prefix) with $(test-program-prefix).
11456         * libio/test-freopen.sh (run_program_prefix): Renamed to ...
11457         (test_program_prefix): This.
11458         * malloc/Makefile ($(objpfx)tst-mtrace.out): Replace
11459         $(run-program-prefix) with $(test-program-prefix).
11460         * malloc/tst-mtrace.sh (run_program_prefix): Renamed to ...
11461         (test_program_prefix): This.
11462         * manual/install.texi: Document --enable-hardcoded-path-in-tests.
11463         * posix/Makefile ($(objpfx)globtest.out): Replace
11464         $(run-via-rtld-prefix) and $(test-wrapper) with
11465         $(test-program-prefix) and $(test-via-rtld-prefix).
11466         ($(objpfx)wordexp-tst.out): Replace $(run-program-prefix) with
11467         $(test-program-prefix).
11468         (tst-exec-ARGS): Replace $(host-built-program-cmd) with
11469         $(host-test-program-cmd).
11470         (tst-spawn-ARGS): Likewise.
11471         ($(objpfx)tst-rxspencer-mem): Replace $(run-program-prefix) with
11472         $(test-program-prefix).
11473         * posix/globtest.sh (un_via_rtld_prefix): Renamed to ...
11474         (test_via_rtld_prefix): This.
11475         (test_wrapper): Renamed to ...
11476         (test_program_prefix): This.
11477         (run_program_prefix): Replaced by test_program_prefix.
11478         * posix/wordexp-tst.sh (run_program_prefix): Renamed to ...
11479         (test_program_prefix): This.
11480         * rt/Makefile (tst-mqueue7-ARGS): Replace $(host-built-program-cmd)
11481         with $(host-test-program-cmd).
11482         * stdio-common/Makefile ($(objpfx)tst-unbputc.out): Replace
11483         $(run-program-prefix) with $(test-program-prefix).
11484         ($(objpfx)tst-printf.out): Likewise.
11485         ($(objpfx)tst-setvbuf1.out): Replace $(built-program-cmd) with
11486         $(test-program-cmd).
11487         * stdio-common/tst-printf.sh (run_program_prefix): Renamed to ...
11488         (test_program_prefix): This.
11489         * stdio-common/tst-unbputc.sh: Likewise.
11490         * stdlib/Makefile ($(objpfx)tst-fmtmsg.out): Replace
11491         $(run-program-prefix) with $(test-program-prefix).
11492         * stdlib/tst-fmtmsg.sh (run_program_prefix): Renamed to ...
11493         (test_program_prefix): This.
11494         * string/Makefile ($(objpfx)tst-svc.out):  Replace
11495         $(built-program-cmd) with $(test-program-cmd).
11496
11497 2013-01-11  Andreas Jaeger  <aj@suse.de>
11498
11499         [BZ #15003]
11500         * sysdeps/unix/sysv/linux/bits/socket.h (MSG_FASTOPEN): New
11501         value. Sync with Linux 3.7.
11502
11503 2013-01-10  David S. Miller  <davem@davemloft.net>
11504
11505         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Revert previous changes.
11506         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
11507         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
11508
11509 2013-01-10  Roland McGrath  <roland@hack.frob.com>
11510
11511         * configure.in (sysnames): Drop use of $m0sub and $msub, which are
11512         never set.
11513         * configure: Regenerated.
11514
11515 2013-01-10  David S. Miller  <davem@davemloft.net>
11516
11517         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: Properly optimize for 32-bit
11518         sparc V9 rather than using V8 code.
11519         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: Likewise.
11520         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: Likewise.
11521
11522 2013-01-10  Roland McGrath  <roland@hack.frob.com>
11523
11524         * elf/elf.h (DT_SPARC_REGISTER, DT_SPARC_NUM): Fix whitespace.
11525         (EF_MIPS_NOREORDER, EF_MIPS_PIC, EF_MIPS_CPIC, EF_MIPS_XGOT): Likewise.
11526         (EF_MIPS_64BIT_WHIRL, EF_MIPS_ABI2, EF_MIPS_ABI_ON32): Likewise.
11527         (EF_MIPS_ARCH, EF_MIPS_ARCH_1, EF_MIPS_ARCH_2): Likewise.
11528         (EF_MIPS_ARCH_3, EF_MIPS_ARCH_4, EF_MIPS_ARCH_5): Likewise.
11529         (EF_MIPS_ARCH_32, EF_MIPS_ARCH_64): Likewise.
11530         (E_MIPS_ARCH_1): Define in terms of EF_MIPS_ARCH_* counterpart.
11531         (E_MIPS_ARCH_2, E_MIPS_ARCH_3, E_MIPS_ARCH_4, E_MIPS_ARCH_5): Likewise.
11532         (E_MIPS_ARCH_32, E_MIPS_ARCH_64): Likewise.
11533         (SHN_MIPS_ACOMMON, SHN_MIPS_TEXT, SHN_MIPS_DATA): Fix whitespace.
11534         (SHN_MIPS_SCOMMON, SHN_MIPS_SUNDEFINED): Likewise.
11535         (SHT_MIPS_LIBLIST, SHT_MIPS_MSYM, SHT_MIPS_CONFLICT): Likewise.
11536         (SHT_MIPS_GPTAB, SHT_MIPS_UCODE, SHT_MIPS_DEBUG): Likewise.
11537         (SHT_MIPS_REGINFO, SHT_MIPS_PACKAGE, SHT_MIPS_PACKSYM): Likewise.
11538         (SHT_MIPS_RELD, SHT_MIPS_IFACE, SHT_MIPS_CONTENT): Likewise.
11539         (SHT_MIPS_OPTIONS, SHT_MIPS_SHDR, SHT_MIPS_FDESC): Likewise.
11540         (SHT_MIPS_EXTSYM, SHT_MIPS_DENSE, SHT_MIPS_PDESC): Likewise.
11541         (SHT_MIPS_LOCSYM, SHT_MIPS_AUXSYM, SHT_MIPS_OPTSYM): Likewise.
11542         (SHT_MIPS_LOCSTR, SHT_MIPS_LINE, SHT_MIPS_RFDESC): Likewise.
11543         (SHT_MIPS_DELTASYM, SHT_MIPS_DELTAINST, SHT_MIPS_DELTACLASS): Likewise.
11544         (SHT_MIPS_DELTADECL, SHT_MIPS_SYMBOL_LIB, SHT_MIPS_EVENTS): Likewise.
11545         (SHT_MIPS_TRANSLATE, SHT_MIPS_PIXIE, SHT_MIPS_XLATE): Likewise.
11546         (SHT_MIPS_XLATE_DEBUG, SHT_MIPS_WHIRL, SHT_MIPS_EH_REGION): Likewise.
11547         (SHT_MIPS_XLATE_OLD, SHT_MIPS_PDR_EXCEPTION): Likewise.
11548         (SHF_MIPS_GPREL, SHF_MIPS_MERGE, SHF_MIPS_ADDR): Likewise.
11549         (SHF_MIPS_STRINGS, SHF_MIPS_NOSTRIP, SHF_MIPS_LOCAL): Likewise.
11550         (SHF_MIPS_NAMES, SHF_MIPS_NODUPE): Likewise.
11551
11552 2013-01-10  David S. Miller  <davem@davemloft.net>
11553
11554         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11555
11556 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
11557
11558         * posix/Makefile (tests-static): New variable.
11559         (tests): Add $(tests-static).
11560         (tst-exec-static-ARGS): New variable.
11561         (tst-spawn-static-ARGS): Likewise.
11562         * posix/tst-exec-static.c: New file.
11563         * posix/tst-spawn-static.c: Likewise.
11564         * posix/tst-exec.c: Support run directly.
11565         * posix/tst-spawn.c: Likewise.
11566
11567 2013-01-10  Joseph Myers  <joseph@codesourcery.com>
11568
11569         * elf/link.h (struct dl_phdr_info): Use __extension__ with long
11570         long.
11571         * math/bits/mathcalls.h (llrint): Likewise.
11572         (llround): Likewise.
11573         * stdlib/stdlib.h (struct drand48_data): Likewise.
11574         * sysdeps/generic/inttypes.h (imaxdiv_t): Likewise.
11575         * sysdeps/s390/bits/byteswap.h (__bswap_64): Likewise.
11576         * sysdeps/unix/sysv/linux/sparc/bits/ipc.h (struct ipc_perm):
11577         Likewise.
11578         * sysdeps/unix/sysv/linux/sparc/sys/ucontext.h (struct fpu):
11579         Likewise.
11580         * sysdeps/unix/sysv/linux/x86/sys/procfs.h [__x86_64__]
11581         (elf_greg_t): Likewise.
11582         * sysdeps/x86/bits/setjmp.h [__x86_64__ && __WORDSIZE != 64]
11583         (__jmp_buf): Likewise.
11584         * sysdeps/x86/fpu/bits/mathinline.h (llrintf): Likewise, for all
11585         definitions.
11586         (llrint): Likewise, for all definitions.
11587         (llrintl): Likewise.
11588
11589         * string/string.h [__USE_BSD && __USE_GNU && __GNUC__] (ffsll):
11590         Remove [__GNUC__] condition.
11591         * wcsmbs/wchar.h [__USE_ISOC99 || (__GNUC__ && __USE_GNU)]: Change
11592         condition to just [__USE_ISOC99].
11593         [__GNUC__ && __USE_GNU]: Change condition to just [__USE_GNU].
11594
11595 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
11596
11597         [BZ #14200]
11598         * sysdeps/unix/sysv/linux/x86/bits/environments.h
11599         (_POSIX_V7_ILP32_OFF32): Defined as 1 only if __x86_64__ isn't
11600         defined.
11601         (_POSIX_V6_ILP32_OFF32): Likewise.
11602         (_XBS5_ILP32_OFF32): Likewise.
11603         (__ILP32_OFFBIG_CFLAGS): Defined as "-mx32" for x32.
11604         (__ILP32_OFFBIG_LDFLAGS): Likewise.
11605
11606 2013-01-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
11607
11608         * sysdeps/ieee754/dbl-64/mpexp.c: Fix formatting.
11609
11610         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): New array of
11611         doubles __mpexp_twomm1.  Adjust usage.
11612         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1):
11613         Remove.
11614
11615 2013-01-10  Andreas Schwab  <schwab@suse.de>
11616
11617         [BZ #14964]
11618         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (FALLOC_FL_KEEP_SIZE)
11619         (FALLOC_FL_PUNCH_HOLE) [__USE_GNU]: New macros.
11620
11621 2013-01-09  David S. Miller  <davem@davemloft.net>
11622
11623         [BZ #15003]
11624         * sysdeps/gnu/netinet/tcp.h (TCP_COOKIE_TRANSACTIONS,
11625         TCP_THIN_LINEAR_TIMEOUTS, TCP_THIN_DUPACK, TCP_USER_TIMEOUT,
11626         TCP_REPAIR, TCP_REPAIR_QUEUE, TCP_QUEUE_SEQ, TCP_REPAIR_OPTIONS,
11627         TCP_FASTOPEN): Define.
11628         (tcp_repair_opt): New structure.
11629         (TCP_NO_QUEUE, TCP_RECV_QUEUE, TCP_SEND_QUEUE, TCP_QUEUES_NR): New
11630         enum values.
11631         (TCP_COOKIE_MIN, TCP_COOKIE_MAX, TCP_COOKIE_PAIR_SIZE,
11632         TCP_COOKIE_IN_ALWAYS, TCP_COOKIE_OUT_NEVER, TCP_S_DATA_IN,
11633         TCP_S_DATA_OUT, TCP_MSS_DEFAULT, TCP_MSS_DESIRED): Define.
11634         (tcp_cookie_transactions): New structure.
11635
11636 2013-01-09  Anton Blanchard  <anton@samba.org>
11637
11638         * sysdeps/unix/sysv/linux/powerpc/sched_getcpu.c: New file.
11639         * sysdeps/unix/sysv/linux/powerpc/Versions: Add __vdso_getcpu.
11640         * sysdeps/unix/sysv/linux/powerpc/bits/libc-vdso.h: Likewise.
11641         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Likewise.
11642
11643 2013-01-09  Joseph Myers  <joseph@codesourcery.com>
11644
11645         * include/features.h (__USE_ANSI): Remove.
11646
11647 2013-01-09  Roland McGrath  <roland@hack.frob.com>
11648
11649         * posix/Makefile (others): Depend on $(objpfx)getconf.speclist.
11650
11651         * misc/error.c (error_tail: ALLOCA_LIMIT): Remove unused macro.
11652
11653 2013-01-09  Siddhesh Poyarekar  <siddhesh@redhat.com>
11654
11655         * sysdeps/s390/fpu/libm-test-ulps: Update.
11656
11657         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11658
11659         * sysdeps/ieee754/dbl-64/mpa.c (mcr): Reword comment.
11660         (__acr): Likewise.
11661         (__cpy): Likewise.
11662         (norm): Likewise.
11663         (denorm): Likewise.
11664         (__mp_dbl): Likewise.
11665         (__dbl_mp): Likewise.
11666         (add_magnitudes): Likewise.
11667         (sub_magnitudes): Likewise.
11668         (__add): Likewise.
11669         (__sub): Likewise.
11670         (__mul): Likewise.
11671         (__inv): Likewise.
11672         (__dvd): Likewise.
11673         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mcr): Likewise.
11674         (__acr): Likewise.
11675         (__cpy): Likewise.
11676         (norm): Likewise.
11677         (denorm): Likewise.
11678         (__mp_dbl): Likewise.
11679         (__dbl_mp): Likewise.
11680         (add_magnitudes): Likewise.
11681         (sub_magnitudes): Likewise.
11682         (__add): Likewise.
11683         (__sub): Likewise.
11684         (__mul): Likewise.
11685         (__inv): Likewise.
11686         (__dvd): Likewise.
11687         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mcr): Likewise.
11688         (__acr): Likewise.
11689         (__cpy): Likewise.
11690         (norm): Likewise.
11691         (denorm): Likewise.
11692         (__mp_dbl): Likewise.
11693         (__dbl_mp): Likewise.
11694         (add_magnitudes): Likewise.
11695         (sub_magnitudes): Likewise.
11696         (__add): Likewise.
11697         (__sub): Likewise.
11698         (__mul): Likewise.
11699         (__inv): Likewise.
11700         (__dvd): Likewise.
11701
11702 2013-01-08  Joseph Myers  <joseph@codesourcery.com>
11703
11704         * io/sys/stat.h [__GNUC__ && __GNUC__ >= 2 &&
11705         __USE_EXTERN_INLINES]: Change condition to [__USE_EXTERN_INLINES].
11706         * sysdeps/unix/sysv/linux/sys/sysmacros.h [__GNUC__ && __GNUC__ >=
11707         2 && __USE_EXTERN_INLINES]: Likewise.
11708
11709 2013-01-08  Andreas Jaeger  <aj@suse.de>
11710
11711         [BZ# 14985]
11712         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h (EPOLL_NONBLOCK):
11713         Remove.
11714         * sysdeps/unix/sysv/linux/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
11715         * sysdeps/unix/sysv/linux/x86/bits/epoll.h (EPOLL_NONBLOCK): Likewise.
11716
11717 2013-01-07  Anton Blanchard  <anton@samba.org>
11718
11719         * sysdeps/powerpc/fpu/feholdexcpt.c: Fixed spelling errors.
11720         * sysdeps/powerpc/fpu/feupdateenv.c: Likewise.
11721         * sysdeps/powerpc/fpu/math_ldbl.h: Likewise.
11722         * sysdeps/powerpc/powerpc32/bits/atomic.h: Likewise.
11723         * sysdeps/powerpc/powerpc32/cell/memcpy.S: Likewise.
11724         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
11725         * sysdeps/powerpc/powerpc32/dl-start.S: Likewise.
11726         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
11727         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
11728         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
11729         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
11730         * sysdeps/powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
11731         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
11732         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Likewise.
11733         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Likewise.
11734         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
11735         * sysdeps/powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
11736         * sysdeps/powerpc/powerpc32/power6/memcpy.S: Likewise.
11737         * sysdeps/powerpc/powerpc32/power7/memchr.S: Likewise.
11738         * sysdeps/powerpc/powerpc32/power7/memcmp.S: Likewise.
11739         * sysdeps/powerpc/powerpc32/power7/memrchr.S: Likewise.
11740         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: Likewise.
11741         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
11742         * sysdeps/powerpc/powerpc32/strncmp.S: Likewise.
11743         * sysdeps/powerpc/powerpc64/bits/atomic.h: Likewise.
11744         * sysdeps/powerpc/powerpc64/cell/memcpy.S: Likewise.
11745         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11746         * sysdeps/powerpc/powerpc64/fpu/s_ceill.S: Likewise.
11747         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintl.S: Likewise.
11748         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
11749         * sysdeps/powerpc/powerpc64/memcpy.S: Likewise.
11750         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
11751         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
11752         * sysdeps/powerpc/powerpc64/power4/memcmp.S: Likewise.
11753         * sysdeps/powerpc/powerpc64/power4/memcpy.S: Likewise.
11754         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
11755         * sysdeps/powerpc/powerpc64/power6/memcpy.S: Likewise.
11756         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
11757         * sysdeps/powerpc/powerpc64/power7/memcmp.S: Likewise.
11758         * sysdeps/powerpc/powerpc64/power7/memrchr.S: Likewise.
11759         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: Likewise.
11760         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
11761         * sysdeps/powerpc/powerpc64/strncmp.S: Likewise.
11762
11763 2013-01-07  Joseph Myers  <joseph@codesourcery.com>
11764
11765         * malloc/malloc.h (__MALLOC_P): Remove all definitions.
11766         (__MALLOC_PMT): Likewise.
11767         [__GNUC__] (__MALLOC_HOOK_VOLATILE): Make not conditional on
11768         [__GNUC__], only on [_LIBC].
11769         [__GNUC__] (__MALLOC_DEPRECATED): Likewise.
11770         [!__GNUC__] (__MALLOC_HOOK_VOLATILE): Remove definition.
11771         [!__GNUC__] (__MALLOC_DEPRECATED): Likewise.
11772         * malloc/malloc.c (malloc_hook_ini): Do not use __MALLOC_P in
11773         forward declaration.
11774         (realloc_hook_ini): Likewise.
11775         (memalign_hook_ini): Likewise.
11776         (__libc_memalign): Do not use __MALLOC_PMT in variable
11777         declaration.
11778         (__libc_valloc): Likewise.
11779         (__libc_pvalloc): Likewise.
11780         (__libc_calloc): Likewise.
11781         (__posix_memalign): Likewise.
11782
11783         [BZ #14996]
11784         * math/s_casinh.c: Include <float.h>.
11785         (__casinh): Do not do computation with squaring and square root
11786         for large arguments.
11787         * math/s_casinhf.c: Include <float.h>.
11788         (__casinhf): Do not do computation with squaring and square root
11789         for large arguments.
11790         * math/s_casinhl.c: Include <float.h>.
11791         [LDBL_MANT_DIG == 106] (LDBL_EPSILON): Undefine and redefine.
11792         (__casinhl): Do not do computation with squaring and square root
11793         for large arguments.
11794         * math/libm-test.inc (casin_test): Add more tests.
11795         (casinh_test): Likewise.
11796         * sysdeps/i386/fpu/libm-test-ulps: Update.
11797         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11798
11799 2013-01-04  H.J. Lu  <hongjiu.lu@intel.com>
11800
11801         * sysdeps/i386/i686/cacheinfo.c (__x86_64_data_cache_size): Removed.
11802         (__x86_64_raw_data_cache_size): Likewise.
11803         (__x86_64_data_cache_size_half): Likewise.
11804         (__x86_64_raw_data_cache_size_half): Likewise.
11805         (__x86_64_shared_cache_size): Likewise.
11806         (__x86_64_raw_shared_cache_size): Likewise.
11807         (__x86_64_shared_cache_size_half): Likewise.
11808         (__x86_64_raw_shared_cache_size_half): Likewise.
11809         * sysdeps/x86_64/cacheinfo.c (__x86_64_data_cache_size): Renamed
11810         to ...
11811         (__x86_data_cache_size): This.
11812         (__x86_64_raw_data_cache_size): Renamed to ...
11813         (__x86_raw_data_cache_size): This.
11814         (__x86_64_data_cache_size_half): Renamed to ...
11815         (__x86_data_cache_size_half): This.
11816         (__x86_64_raw_data_cache_size_half): Renamed to ...
11817         (__x86_raw_data_cache_size_half): This.
11818         (__x86_64_shared_cache_size): Renamed to ...
11819         (__x86_shared_cache_size): This.
11820         (__x86_64_raw_shared_cache_size): Renamed to ...
11821         (__x86_raw_shared_cache_size): This.
11822         (__x86_64_shared_cache_size_half): Renamed to ...
11823         (__x86_shared_cache_size_half): This.
11824         (__x86_64_raw_shared_cache_size_half): Renamed to ...
11825         (__x86_raw_shared_cache_size_half): This.
11826         * sysdeps/x86_64/memcpy.S: Updated.
11827         * sysdeps/x86_64/memset.S: Likewise.
11828         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Likewise.
11829         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
11830         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
11831
11832 2013-01-04  David S. Miller  <davem@davemloft.net>
11833
11834         * sysdeps/sparc/fpu/libm-test-ulps: Update.
11835
11836 2013-01-04  Andreas Schwab  <schwab@linux-m68k.org>
11837
11838         * sysdeps/powerpc/fpu/test-powerpc-snan.c (_GNU_SOURCE): Define as
11839         1 to avoid redefinition warning.
11840         (__USE_GNU): Don't define.
11841         (init_signaling_nan): Protoize.
11842
11843         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
11844
11845 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11846
11847         * sysdeps/ieee754/dbl-64/mpa.c: Remove commented code.
11848         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (__cr): Remove.
11849         (__cpymn): Likewise.
11850         (norm): Remove commented code.
11851         (denorm): Likewise.
11852         (__mp_dbl): Likewise.
11853         (__inv): Likewise.
11854         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (__cr): Remove.
11855         (__cpymn): Likewise.
11856         (norm): Remove commented code.
11857         (denorm): Likewise.
11858         (__mp_dbl): Likewise.
11859         (__inv): Likewise.
11860
11861         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c (mpone): Define
11862         mp_no value for 1.0 and 2.0.
11863         (norm): Use RADIXI instead of radixi.d.
11864         (denorm): Likewise.
11865         (__mul): Use 0.0 instead of zero.d.
11866         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c (mpone): Define
11867         mp_no value for 1.0 and 2.0.
11868         (norm): Use RADIXI instead of radixi.d.
11869         (denorm): Likewise.
11870         (__mul): Use 0.0 instead of zero.d.
11871
11872 2013-01-04  Joseph Myers  <joseph@codesourcery.com>
11873
11874         [BZ #14994]
11875         * math/s_casinh.c (__casinh): Reduce finite argument to first
11876         quadrant then set signs of results at the end.
11877         * math/s_casinhf.c (__casinhf): Likewise.
11878         * math/s_casinhl.c (__casinhl): Likewise.
11879         * math/libm-test.inc (casin_test): Add more tests.
11880         (casinh_test): Likewise.
11881         * sysdeps/i386/fpu/libm-test-ulps: Update.
11882         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
11883
11884 2013-01-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
11885
11886         * sysdeps/ieee754/dbl-64/mpa.h: Fix code formatting.
11887
11888         * sysdeps/ieee754/dbl-64/mpa.h: Clean up comment for MP_NO.
11889
11890         * sysdeps/ieee754/dbl-64/mpa.c(norm): Remove commented
11891         declarations.
11892         (denorm): Likewise.
11893         (__mp_dbl): Likewise.
11894         (__inv): Likewise.
11895
11896         * sysdeps/ieee754/dbl-64/mpa.h: Remove commented declarations
11897         and adjust the header comment.
11898
11899         * sysdeps/ieee754/dbl-64/mpa.h (__mpexp): Remove unnecessary
11900         variable name from declaration.
11901
11902 2013-01-03  H.J. Lu  <hongjiu.lu@intel.com>
11903
11904         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
11905         Initialize COMMON_CPUID_INDEX_7 element.
11906         * sysdeps/x86_64/multiarch/init-arch.h (bit_RTM): New macro.
11907         (CPUID_RTM): Likewise.
11908         (HAS_RTM): Likewise.
11909         (COMMON_CPUID_INDEX_7): New enum.
11910
11911 2013-01-03  Andreas Schwab  <schwab@linux-m68k.org>
11912
11913         [BZ #14981]
11914         * malloc/mtrace.c (tr_reallochook): If realloc returns NULL when
11915         size is zero, record memory as freed.
11916
11917 2013-01-03  Andreas Jaeger  <aj@suse.de>
11918
11919         * po/ia.po: Add new Interlingua translation.
11920
11921 2012-01-03  Allan McRae  <allan@archlinux.org>
11922
11923         * locale/programs/localedef.c: Fix description of '--posix' flag.
11924
11925 2013-01-02  Joseph Myers  <joseph@codesourcery.com>
11926
11927         * NEWS: Update dates in second copyright notice.
11928         * README: Update copyright dates in example.
11929         * manual/libc.texinfo: Update copyright dates.
11930         * scripts/test-installation.pl: Update copyright date in --version
11931         output.
11932
11933         * hurd/ctty-input.c: Fix copyright notice formatting.
11934         * hurd/ctty-output.c: Likewise.
11935         * hurd/dtable.c: Likewise.
11936         * hurd/hurd-raise.c: Likewise.
11937         * hurd/hurdprio.c: Likewise.
11938         * hurd/msgportdemux.c: Likewise.
11939         * misc/sys/file.h: Likewise.
11940         * misc/sys/ioctl.h: Likewise.
11941         * sysdeps/gnu/netinet/ip_icmp.h: Likewise.
11942         * sysdeps/mach/hurd/chdir.c: Likewise.
11943         * sysdeps/mach/hurd/fchdir.c: Likewise.
11944         * sysdeps/mach/hurd/rename.c: Likewise.
11945         * sysdeps/mach/hurd/rmdir.c: Likewise.
11946         * sysdeps/mach/hurd/seekdir.c: Likewise.
11947         * sysdeps/mach/hurd/setsid.c: Likewise.
11948         * sysdeps/posix/wait3.c: Likewise.
11949
11950         * All files with FSF copyright notices: Update copyright dates
11951         using scripts/update-copyrights.
11952         * intl/plural.c: Regenerated.
11953         * locale/programs/charmap-kw.h: Likewise.
11954         * locale/programs/locfile-kw.h: Likewise.
11955
11956 2013-01-02  Siddhesh Poyarekar  <siddhesh@redhat.com>
11957
11958         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_twomm1): Fix first
11959         four values.
11960
11961         * sysdeps/ieee754/dbl-64/mpa.c (__mul): Split mantissa
11962         calculation loop and add branch prediction.
11963
11964         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Add assert to
11965         check access beyond bounds of m1np.
11966
11967         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
11968         MPTWO.
11969         (__inv): Remove local variable MPTWO to use the global
11970         constant.
11971         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPTWO.
11972         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
11973         variable MPTWO.
11974         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Make MPHALF and
11975         MP3HALFS static const.
11976
11977 2013-01-01  David S. Miller  <davem@davemloft.net>
11978
11979         * po/ca.po: Update from translation team.
11980
11981 2013-01-01  Joseph Myers  <joseph@codesourcery.com>
11982
11983         * scripts/update-copyrights: New file.
11984         * Makeconfig: Reformat copyright notice.
11985         * ctype/ctype.h: Likewise.
11986         * debug/swprintf_chk.c: Likewise.
11987         * elf/dl-cache.c: Likewise.
11988         * elf/dl-debug.c: Likewise.
11989         * elf/dl-object.c: Likewise.
11990         * grp/initgroups.c: Likewise.
11991         * hurd/Makefile: Likewise.
11992         * hurd/hurd/signal.h: Likewise.
11993         * hurd/hurdfault.c: Likewise.
11994         * hurd/hurdioctl.c: Likewise.
11995         * hurd/hurdlookup.c: Likewise.
11996         * hurd/intr-msg.c: Likewise.
11997         * iconv/gconv_open.c: Likewise.
11998         * libio/swprintf.c: Likewise.
11999         * locale/lc-ctype.c: Likewise.
12000         * locale/nl_langinfo.c: Likewise.
12001         * mach/Machrules: Likewise.
12002         * mach/Makefile: Likewise.
12003         * malloc/obstack.h: Likewise.
12004         * manual/Makefile: Likewise.
12005         * manual/tsort.awk: Likewise.
12006         * misc/bits/stab.def: Likewise.
12007         * nis/nis_print_group_entry.c: Likewise.
12008         * nis/nis_table.c: Likewise.
12009         * nis/nss_compat/compat-pwd.c: Likewise.
12010         * nis/nss_compat/compat-spwd.c: Likewise.
12011         * po/Makefile: Likewise.
12012         * posix/fnmatch.c: Likewise.
12013         * posix/regex.h: Likewise.
12014         * resolv/Makefile: Likewise.
12015         * resolv/nss_dns/dns-network.c: Likewise.
12016         * resolv/res_hconf.c: Likewise.
12017         * scripts/gen-sorted.awk: Likewise.
12018         * soft-fp/soft-fp.h: Likewise.
12019         * stdio-common/printf.h: Likewise.
12020         * stdlib/monetary.h: Likewise.
12021         * stdlib/random.c: Likewise.
12022         * stdlib/random_r.c: Likewise.
12023         * sysdeps/generic/Makefile: Likewise.
12024         * sysdeps/gnu/Makefile: Likewise.
12025         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
12026         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
12027         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
12028         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
12029         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
12030         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
12031         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
12032         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
12033         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
12034         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
12035         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
12036         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
12037         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
12038         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
12039         * sysdeps/ieee754/dbl-64/mplog.c: Likewise.
12040         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
12041         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
12042         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
12043         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
12044         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
12045         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
12046         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
12047         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
12048         * sysdeps/ieee754/ldbl-128/ldbl2mpn.c: Likewise.
12049         * sysdeps/ieee754/ldbl-128/mpn2ldbl.c: Likewise.
12050         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
12051         * sysdeps/ieee754/ldbl-128ibm/mpn2ldbl.c: Likewise.
12052         * sysdeps/ieee754/ldbl-128ibm/printf_fphex.c: Likewise.
12053         * sysdeps/mach/hurd/errnos.awk: Likewise.
12054         * sysdeps/mach/hurd/fork.c: Likewise.
12055         * sysdeps/mach/hurd/getcwd.c: Likewise.
12056         * sysdeps/mach/hurd/i386/trampoline.c: Likewise.
12057         * sysdeps/mach/hurd/mmap.c: Likewise.
12058         * sysdeps/mach/hurd/utimes.c: Likewise.
12059         * sysdeps/mach/hurd/xmknod.c: Likewise.
12060         * sysdeps/posix/profil.c: Likewise.
12061         * sysdeps/posix/readdir_r.c: Likewise.
12062         * sysdeps/powerpc/bits/mathdef.h: Likewise.
12063         * sysdeps/powerpc/bits/setjmp.h: Likewise.
12064         * sysdeps/powerpc/powerpc32/__longjmp-common.S: Likewise.
12065         * sysdeps/powerpc/powerpc32/memset.S: Likewise.
12066         * sysdeps/powerpc/powerpc32/power4/fpu/mpa.c: Likewise.
12067         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
12068         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
12069         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
12070         * sysdeps/powerpc/powerpc64/power4/fpu/mpa.c: Likewise.
12071         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
12072         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
12073         * sysdeps/pthread/lio_listio.c: Likewise.
12074         * sysdeps/sparc/dl-procinfo.h: Likewise.
12075         * sysdeps/unix/i386/sysdep.S: Likewise.
12076         * sysdeps/unix/sysv/linux/aio_sigqueue.c: Likewise.
12077         * sysdeps/unix/sysv/linux/fstatvfs64.c: Likewise.
12078         * sysdeps/unix/sysv/linux/getdents.c: Likewise.
12079         * sysdeps/unix/sysv/linux/msgctl.c: Likewise.
12080         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
12081         * sysdeps/unix/sysv/linux/semctl.c: Likewise.
12082         * sysdeps/unix/sysv/linux/shmctl.c: Likewise.
12083         * sysdeps/unix/sysv/linux/speed.c: Likewise.
12084         * sysdeps/unix/sysv/linux/xstatconv.h: Likewise.
12085         * sysdeps/wordsize-32/divdi3.c: Likewise.
12086         * time/sys/time.h: Likewise.
12087         * wcsmbs/Makefile: Likewise.
12088
12089 2013-01-01  David S. Miller  <davem@davemloft.net>
12090
12091         * po/fr.po: Update from translation team.
12092
12093         * catgets/gencat.c: Update copyright year.
12094         * csu/version.c: Likewise.
12095         * debug/catchsegv.sh: Likewise.
12096         * debug/pcprofiledump.c: Likewise.
12097         * debug/xtrace.sh: Likewise.
12098         * elf/ldconfig.c: Likewise.
12099         * elf/ldd.bash.in: Likewise.
12100         * elf/pldd.c: Likewise.
12101         * elf/sotruss.ksh: Likewise.
12102         * elf/sprof.c: Likewise.
12103         * iconv/iconv_prog.c: Likewise.
12104         * iconv/iconvconfig.c: Likewise.
12105         * locale/programs/locale.c: Likewise.
12106         * locale/programs/localedef.c: Likewise.
12107         * login/programs/pt_chown.c: Likewise.
12108         * malloc/memusage.sh: Likewise.
12109         * malloc/memusagestat.c: Likewise.
12110         * malloc/mtrace.pl: Likewise.
12111         * nscd/nscd.c: Likewise.
12112         * nss/getent.c: Likewise.
12113         * nss/makedb.c: Likewise.
12114         * posix/getconf.c: Likewise.
12115
12116 2012-12-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
12117
12118         * sysdeps/ieee754/dbl-64/mpa.c (__mp_dbl): Favour normal
12119         numbers.
12120
12121 2012-12-30  Mike Frysinger  <vapier@gentoo.org>
12122
12123         * math/bits/mathcalls.h (modf): Use __nonnull.
12124
12125 2012-12-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
12126
12127         * sysdeps/ieee754/dbl-64/branred.h: Include dla.h.
12128         (split): Use macro CN instead of the bare value.
12129         * sysdeps/ieee754/dbl-64/dla.h: Add comment to explain why CN
12130         could be used.
12131         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use CN
12132         instead of the bare value.
12133         (power1): Likewise.
12134
12135 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12136
12137         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove
12138         __ATAN_TWOM.
12139         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
12140
12141         * sysdeps/ieee754/dbl-64/atnat.h: Replaced constants with
12142         their values.
12143         * sysdeps/ieee754/dbl-64/atnat2.h: Likewise.
12144         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Likewise.
12145         * sysdeps/ieee754/dbl-64/ulog.h: Likewise.
12146         * sysdeps/ieee754/dbl-64/utan.h: Likewise.
12147
12148 2012-12-28  Andreas Jaeger  <aj@suse.de>
12149
12150         * elf/elf.h (NT_S390_TDB, NT_FILE, NT_SIGINFO): Define.  New
12151         values are from Linux 3.7.
12152
12153         * sysdeps/gnu/netinet/tcp.h (TCPI_OPT_SYN_DATA)
12154         (TCPI_OPT_ECN_SEEN): Define.  Sync with Linux 3.7.
12155
12156 2012-12-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12157
12158         * misc/sys/cdefs.h (__glibc_likely): Wrap __builtin_expect for
12159         TRUE case.
12160
12161         * sysdeps/ieee754/dbl-64/mpa.c (norm): Define R as RADIXI.
12162         (norm): Likewise.
12163         * sysdeps/ieee754/dbl-64/mpa2.h: Remove all static const
12164         variables with preprocessor constants.
12165         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
12166         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
12167         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
12168
12169 2012-12-27  Bruno Haible  <bruno@clisp.org>
12170
12171         [BZ #14317]
12172         * string/xpg-strerror.c (__xpg_strerror_r): Optimize, call strlen
12173         only if needed.
12174
12175 2012-12-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
12176
12177         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Eliminate __mpexp_nn
12178         and use variable directly.
12179         * sysdeps/ieee754/dbl-64/mpexp.h (__mpexp_nn): Remove.
12180
12181         * sysdeps/ieee754/dbl-64/mpa.c [! NO__CONST]: New constant
12182         MPONE.
12183         * sysdeps/ieee754/dbl-64/mpa.h: Declare MPONE.
12184         * sysdeps/ieee754/dbl-64/mpatan.c (__mpatan): Remove local
12185         variable MPONE.
12186         * sysdeps/ieee754/dbl-64/mpatan2.c (__mpatan2): Likewise.
12187         * sysdeps/ieee754/dbl-64/mpexp.c (__mpexp): Likewise.
12188         * sysdeps/ieee754/dbl-64/mplog.c (__mplog): Remove mplog.h
12189         include directive.  Remove local variable MPONE.
12190         * sysdeps/ieee754/dbl-64/mplog.h: Remove.
12191         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: Define NO__CONST.
12192         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
12193
12194 2012-12-25  David S. Miller  <davem@davemloft.net>
12195
12196         * version.h (RELEASE): Set to "development".
12197         (VERSION): Set to "2.17.90".
12198         * NEWS: Add 2.18 section.
12199
12200 2012-12-21  David S. Miller  <davem@davemloft.net>
12201
12202         * po/hr.po: Update from translation team.
12203
12204 2012-12-21  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12205
12206         * sysdeps/s390/fpu/libm-test-ulps: Refreshed.
12207
12208 2012-12-19  Steve Ellcey  <sellcey@mips.com>
12209
12210         * NEWS:  Mention new memcpy for MIPS.
12211
12212 2012-12-18  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
12213
12214         * manual/contrib.texi (Contributors): Spelling correction.
12215
12216 2012-12-15  David S. Miller  <davem@davemloft.net>
12217
12218         * po/ru.po: Update from translation team.
12219
12220 2012-12-13  David S. Miller  <davem@davemloft.net>
12221
12222         * NEWS: Mention IFUNC testsuite enhancements.
12223
12224         * po/pl.po: Update from translation team.
12225         * po/bg.po: Likewise.
12226
12227         * manual/contrib.texi (Contributors): Update entries for Hongjiu
12228         Lu and Joseph S. Myers.  Add entry for Marcus Shawcroft.
12229
12230 2012-12-11  David S. Miller  <davem@davemloft.net>
12231
12232         * po/sv.po: Update from translation team.
12233
12234         * po/vi.po: Update from translation team.
12235
12236         * po/cs.po: Update from translation team.
12237
12238         * po/de.po: Update from translation team.
12239         * po/eo.po: Likewise.
12240         * po/nl.po: Likewise.
12241
12242 2012-12-11  Siddhesh Poyarekar  <siddhesh@redhat.com>
12243
12244         [BZ #14246]
12245         * manual/argp.texi (Argp Helper Functions): Move node to follow
12246         Argp Parsing State.
12247
12248         [BZ #14872]
12249         * manual/conf.texi (Limits on File System Capacity): Mention if
12250         terminating null is included in the max size.
12251
12252 2012-12-10  Andreas Jaeger  <aj@suse.de>
12253
12254         * po/cs.po: Update from translation team.
12255
12256 2012-12-08  Siddhesh Poyarekar  <siddhesh@redhat.com>
12257
12258         * sysdeps/s390/jmpbuf-unwind.h (_jmpbuf_sp): Declare SP as
12259         void pointer and cast to uintptr_t.
12260         * sysdeps/s390/s390-64/memcmp.S: Pick sysdep.h from include
12261         path.
12262         * sysdeps/s390/s390-64/memcpy.S: Likewise.
12263         * sysdeps/s390/s390-64/memset.S: Likewise.
12264
12265 2012-12-08  Benno Schulenberg  <bensberg@justemail.net>
12266
12267         [BZ #14833]
12268         * menual/message.texi (Message Translation): Fix typos.
12269         (Helper programs for gettext): Likewise.
12270
12271 2012-12-07  Andreas Schwab  <schwab@linux-m68k.org>
12272
12273         [BZ #14898]
12274         * include/link.h (FORCED_DYNAMIC_TLS_OFFSET) [NO_TLS_OFFSET == 0]:
12275         Change to -1.
12276
12277 2012-12-07  David S. Miller  <davem@davemloft.net>
12278
12279         * po/libc.pot: Update.
12280
12281 2012-12-07  Richard Henderson  <rth@redhat.com>
12282
12283         [BZ #10114]
12284         * soft-fp/op-common.h (_FP_MUL): Pull computation of R_e from the
12285         normal/normal case to before the switch.
12286         (_FP_DIV): Likewise.
12287
12288 2012-12-06  Carlos O'Donell  <carlos@systemhalted.org>
12289             Mike Frysinger  <vapier@gentoo.org>
12290
12291         * sysdeps/unix/sysv/linux/posix_fadvise.c (posix_fadvise): Also
12292         check for __NR_fadvise64_64.
12293
12294 2012-12-06  Chris Metcalf  <cmetcalf@tilera.com>
12295
12296         * sysdeps/generic/fpu_control.h (_FPU_GETCW): Define to set cw to
12297         0, not just to plain "0" as a statement.
12298         (_FPU_SETCW): Define to (void) (cw), rather than doing nothing
12299         with cw.
12300
12301 2012-12-06  Joseph Myers  <joseph@codesourcery.com>
12302
12303         * NEWS: Use sourceware.org in Bugzilla URL.
12304
12305 2012-12-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
12306
12307         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
12308         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
12309
12310         * stdio-common/tst-put-error.c (do_test): Add newline to the
12311         padded test to ensure flush.
12312
12313 2012-12-05  Jeff Law  <law@redhat.com>
12314
12315         * sunrpc/etc.rpc (fedfs_admin): Add entry.
12316
12317 2012-12-05  Joseph Myers  <joseph@codesourcery.com>
12318
12319         * README: Don't refer to ports add-on as distributed separately.
12320         Mention AArch64 in list of systems supported in the ports add-on.
12321
12322         * LICENSES: Add more non-FSF copyright and license notices.
12323
12324         * soft-fp/op-common.h (_FP_DECL): Declare X##_s with __attribute__
12325         ((unused)).
12326
12327         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Include <stdlib.h>.
12328
12329         * stdio-common/tst-put-error.c (do_test): Use 10000000 instead of
12330         10000 as width of padded output.
12331
12332 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
12333
12334         * sysdeps/powerpc/sysdep.h (_SYS_AUXV_H): Define to 1 not empty.
12335
12336         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c (__ieee754_atanhl): Mark
12337         variable LX with __attribute__ ((unused)).
12338         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c (__ieee754_rem_pio2l):
12339         Likewise.
12340         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c (___isnanl): Likewise.
12341         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
12342         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Mark variable LY
12343         with __attribute__ ((unused)).
12344
12345 2012-12-04  David S. Miller  <davem@abraco.davemloft.net>
12346
12347         * sysdeps/generic/memcopy.h: Add multiple inclusion protection.
12348
12349 2012-12-04  Joseph Myers  <joseph@codesourcery.com>
12350
12351         * sysdeps/ieee754/ldbl-opt/Makefile [$(subdir) = math]
12352         (CFLAGS-nldbl-acos.c): New variable.
12353         [$(subdir) = math] (CFLAGS-nldbl-acosh.c): Likewise.
12354         [$(subdir) = math] (CFLAGS-nldbl-asin.c): Likewise.
12355         [$(subdir) = math] (CFLAGS-nldbl-asinh.c): Likewise.
12356         [$(subdir) = math] (CFLAGS-nldbl-atan.c): Likewise.
12357         [$(subdir) = math] (CFLAGS-nldbl-atan2.c): Likewise.
12358         [$(subdir) = math] (CFLAGS-nldbl-atanh.c): Likewise.
12359         [$(subdir) = math] (CFLAGS-nldbl-cabs.c): Likewise.
12360         [$(subdir) = math] (CFLAGS-nldbl-cacos.c): Likewise.
12361         [$(subdir) = math] (CFLAGS-nldbl-cacosh.c): Likewise.
12362         [$(subdir) = math] (CFLAGS-nldbl-carg.c): Likewise.
12363         [$(subdir) = math] (CFLAGS-nldbl-casin.c): Likewise.
12364         [$(subdir) = math] (CFLAGS-nldbl-casinh.c): Likewise.
12365         [$(subdir) = math] (CFLAGS-nldbl-catan.c): Likewise.
12366         [$(subdir) = math] (CFLAGS-nldbl-catanh.c): Likewise.
12367         [$(subdir) = math] (CFLAGS-nldbl-cbrt.c): Likewise.
12368         [$(subdir) = math] (CFLAGS-nldbl-ccos.c): Likewise.
12369         [$(subdir) = math] (CFLAGS-nldbl-ccosh.c): Likewise.
12370         [$(subdir) = math] (CFLAGS-nldbl-ceil.c): Likewise.
12371         [$(subdir) = math] (CFLAGS-nldbl-cexp.c): Likewise.
12372         [$(subdir) = math] (CFLAGS-nldbl-cimag.c): Likewise.
12373         [$(subdir) = math] (CFLAGS-nldbl-clog.c): Likewise.
12374         [$(subdir) = math] (CFLAGS-nldbl-clog10.c): Likewise.
12375         [$(subdir) = math] (CFLAGS-nldbl-conj.c): Likewise.
12376         [$(subdir) = math] (CFLAGS-nldbl-copysign.c): Likewise.
12377         [$(subdir) = math] (CFLAGS-nldbl-cos.c): Likewise.
12378         [$(subdir) = math] (CFLAGS-nldbl-cosh.c): Likewise.
12379         [$(subdir) = math] (CFLAGS-nldbl-cpow.c): Likewise.
12380         [$(subdir) = math] (CFLAGS-nldbl-cproj.c): Likewise.
12381         [$(subdir) = math] (CFLAGS-nldbl-creal.c): Likewise.
12382         [$(subdir) = math] (CFLAGS-nldbl-csin.c): Likewise.
12383         [$(subdir) = math] (CFLAGS-nldbl-csinh.c): Likewise.
12384         [$(subdir) = math] (CFLAGS-nldbl-csqrt.c): Likewise.
12385         [$(subdir) = math] (CFLAGS-nldbl-ctan.c): Likewise.
12386         [$(subdir) = math] (CFLAGS-nldbl-ctanh.c): Likewise.
12387         [$(subdir) = math] (CFLAGS-nldbl-drem.c): Likewise.
12388         [$(subdir) = math] (CFLAGS-nldbl-erf.c): Likewise.
12389         [$(subdir) = math] (CFLAGS-nldbl-erfc.c): Likewise.
12390         [$(subdir) = math] (CFLAGS-nldbl-exp.c): Likewise.
12391         [$(subdir) = math] (CFLAGS-nldbl-exp10.c): Likewise.
12392         [$(subdir) = math] (CFLAGS-nldbl-exp2.c): Likewise.
12393         [$(subdir) = math] (CFLAGS-nldbl-expm1.c): Likewise.
12394         [$(subdir) = math] (CFLAGS-nldbl-fabs.c): Likewise.
12395         [$(subdir) = math] (CFLAGS-nldbl-fdim.c): Likewise.
12396         [$(subdir) = math] (CFLAGS-nldbl-finite.c): Likewise.
12397         [$(subdir) = math] (CFLAGS-nldbl-floor.c): Likewise.
12398         [$(subdir) = math] (CFLAGS-nldbl-fma.c): Likewise.
12399         [$(subdir) = math] (CFLAGS-nldbl-fmax.c): Likewise.
12400         [$(subdir) = math] (CFLAGS-nldbl-fmin.c): Likewise.
12401         [$(subdir) = math] (CFLAGS-nldbl-fmod.c): Likewise.
12402         [$(subdir) = math] (CFLAGS-nldbl-frexp.c): Likewise.
12403         [$(subdir) = math] (CFLAGS-nldbl-gamma.c): Likewise.
12404         [$(subdir) = math] (CFLAGS-nldbl-hypot.c): Likewise.
12405         [$(subdir) = math] (CFLAGS-nldbl-ilogb.c): Likewise.
12406         [$(subdir) = math] (CFLAGS-nldbl-isinf.c): Likewise.
12407         [$(subdir) = math] (CFLAGS-nldbl-isnan.c): Likewise.
12408         [$(subdir) = math] (CFLAGS-nldbl-j0.c): Likewise.
12409         [$(subdir) = math] (CFLAGS-nldbl-j1.c): Likewise.
12410         [$(subdir) = math] (CFLAGS-nldbl-jn.c): Likewise.
12411         [$(subdir) = math] (CFLAGS-nldbl-ldexp.c): Likewise.
12412         [$(subdir) = math] (CFLAGS-nldbl-lgamma.c): Likewise.
12413         [$(subdir) = math] (CFLAGS-nldbl-lgamma_r.c): Likewise.
12414         [$(subdir) = math] (CFLAGS-nldbl-llrint.c): Likewise.
12415         [$(subdir) = math] (CFLAGS-nldbl-llround.c): Likewise.
12416         [$(subdir) = math] (CFLAGS-nldbl-log.c): Likewise.
12417         [$(subdir) = math] (CFLAGS-nldbl-log10.c): Likewise.
12418         [$(subdir) = math] (CFLAGS-nldbl-log1p.c): Likewise.
12419         [$(subdir) = math] (CFLAGS-nldbl-log2.c): Likewise.
12420         [$(subdir) = math] (CFLAGS-nldbl-logb.c): Likewise.
12421         [$(subdir) = math] (CFLAGS-nldbl-lrint.c): Likewise.
12422         [$(subdir) = math] (CFLAGS-nldbl-lround.c): Likewise.
12423         [$(subdir) = math] (CFLAGS-nldbl-modf.c): Likewise.
12424         [$(subdir) = math] (CFLAGS-nldbl-nan.c): Likewise.
12425         [$(subdir) = math] (CFLAGS-nldbl-nearbyint.c): Likewise.
12426         [$(subdir) = math] (CFLAGS-nldbl-nextafter.c): Likewise.
12427         [$(subdir) = math] (CFLAGS-nldbl-nexttoward.c): Likewise.
12428         [$(subdir) = math] (CFLAGS-nldbl-nexttowardf.c): Likewise.
12429         [$(subdir) = math] (CFLAGS-nldbl-pow.c): Likewise.
12430         [$(subdir) = math] (CFLAGS-nldbl-pow10.c): Likewise.
12431         [$(subdir) = math] (CFLAGS-nldbl-remainder.c): Likewise.
12432         [$(subdir) = math] (CFLAGS-nldbl-remquo.c): Likewise.
12433         [$(subdir) = math] (CFLAGS-nldbl-rint.c): Likewise.
12434         [$(subdir) = math] (CFLAGS-nldbl-round.c): Likewise.
12435         [$(subdir) = math] (CFLAGS-nldbl-scalb.c): Likewise.
12436         [$(subdir) = math] (CFLAGS-nldbl-scalbln.c): Likewise.
12437         [$(subdir) = math] (CFLAGS-nldbl-scalbn.c): Likewise.
12438         [$(subdir) = math] (CFLAGS-nldbl-significand.c): Likewise.
12439         [$(subdir) = math] (CFLAGS-nldbl-sin.c): Likewise.
12440         [$(subdir) = math] (CFLAGS-nldbl-sincos.c): Likewise.
12441         [$(subdir) = math] (CFLAGS-nldbl-sinh.c): Likewise.
12442         [$(subdir) = math] (CFLAGS-nldbl-sqrt.c): Likewise.
12443         [$(subdir) = math] (CFLAGS-nldbl-tan.c): Likewise.
12444         [$(subdir) = math] (CFLAGS-nldbl-tanh.c): Likewise.
12445         [$(subdir) = math] (CFLAGS-nldbl-tgamma.c): Likewise.
12446         [$(subdir) = math] (CFLAGS-nldbl-trunc.c): Likewise.
12447         [$(subdir) = math] (CFLAGS-nldbl-y0.c): Likewise.
12448         [$(subdir) = math] (CFLAGS-nldbl-y1.c): Likewise.
12449         [$(subdir) = math] (CFLAGS-nldbl-yn.c): Likewise.
12450
12451         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
12452         (INTERNAL_SYSCALL_DECL): Use __attribute__ ((unused)).
12453
12454         [BZ #14914]
12455         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Clear
12456         whole low double instead of just low 47 bits when splitting values
12457         into two parts.
12458
12459 2012-12-03  Allan McRae  <allan@archlinux.org>
12460
12461         * manual/stdio.texi (Predefined Printf Handlers): Remove
12462         @hsep and @vsep usage.
12463
12464 2012-12-03  Mike Frysinger  <vapier@gentoo.org>
12465
12466         * bits/byteswap.h [__GNUC__]: Change __GNUC_PREREQ from 4.2 to 4.3.
12467         * sysdeps/x86/bits/byteswap.h [__GNUC__]: Likewise.
12468
12469 2012-12-03  Jeff Law  <law@redhat.com>
12470
12471         * time/sys/time.h (settimeofday): Do not mark TV argument
12472         as __nonnull.
12473
12474 2012-12-01  Mike Frysinger  <vapier@gentoo.org>
12475
12476         * libio/fileops.c (_IO_new_file_close_it): Do not always flush
12477         when currently writing and seek to current position when not.
12478         * libio/Makefile (tests): Remove bug-fclose1.
12479         * libio/bug-fclose1.c: Delete.
12480
12481 2012-12-01  Joseph Myers  <joseph@codesourcery.com>
12482
12483         * manual/arith.texi (feenableexcept): Fix typo.
12484         (fedisableexcept): Likewise.
12485
12486 2012-11-30  Roland McGrath  <roland@hack.frob.com>
12487
12488         * sysdeps/powerpc/powerpc64/entry.h (TEXT_START): Define using a
12489         second, differently-typed declaration, rather than a cast.
12490
12491 2012-11-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
12492
12493         * sunrpc/rpc/svc.h (__svc_accept_failed): Move declaration...
12494         * include/rpc/svc.h: ... here.
12495
12496 2012-11-30  Aurelien Jarno  <aurel32@debian.org>
12497
12498         [BZ #13013]
12499         * resolv/res_query.c(__libc_res_nquery): Assign hp and hp2
12500         depending n and resplen2 to catch cases where answer
12501         equals answerp2.
12502
12503 2012-11-29  Carlos O'Donell  <carlos@systemhalted.org>
12504
12505         * elf/get-dynamic-info.h (elf_get_dynamic_info): Warn
12506         for unsupported DF_1_* bits when DL_DEBUG_FILES is set.
12507
12508 2012-11-29  Mike Frysinger  <vapier@gentoo.org>
12509
12510         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c (HAS_CPUCLOCK): Delete.
12511
12512 2012-11-29  Roland McGrath  <roland@hack.frob.com>
12513
12514         * inet/tst-inet6_rth.c (do_test): Use a union rather than type punning.
12515
12516 2012-11-28  Jeff Law  <law@redhat.com>
12517
12518         [BZ #13761]
12519         * nscd/grpcache.c (cache_addgr): Rename alloca_used to
12520         dataset_temporary.  Track alloca usage into alloca_used.
12521         If dataset is large allocate and release it via malloc/free.
12522
12523 2012-06-04  Florian Weimer  <fweimer@redhat.com>
12524
12525         [BZ #14197]
12526         * debug/test-strcpy_chk.c: Mention __chk_fail ABI test.
12527
12528 2012-11-28  David S. Miller  <davem@davemloft.net>
12529
12530         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12531
12532 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
12533
12534         [BZ #14803]
12535         * sysdeps/ieee754/ldbl-96/e_asinl.c (pio2_hi): Use hex float value
12536         of pi/2 rounded to nearest to 64 bits.
12537         (pio2_lo): Use hex float value of pi/2 - pio2_hi rounded to
12538         nearest to 64 bits.
12539         (pio4_hi): Use hex float value of pi/4 rounded to nearest to 64
12540         bits.
12541
12542 2012-11-28  Jeff Law <law@redhat.com>
12543             Martin Osvald <mosvald@redhat.com>
12544
12545         [BZ #14889]
12546         * sunrpc/rpc/svc.h (__svc_accept_failed): New prototype.
12547         * sunrpc/svc.c: Include time.h.
12548         (__svc_accept_failed): New function.
12549         * sunrpc/svc_tcp.c (rendezvous_request): If the accept fails for
12550         any reason other than EINTR, call __svc_accept_failed.
12551         * sunrpc/svc_udp.c (svcudp_recv): Similarly.
12552         * sunrpc/svc_unix.c (rendezvous_request): Similarly.
12553
12554 2012-11-28  Andreas Schwab  <schwab@suse.de>
12555
12556         * scripts/abilist.awk: Also handle indirect functions in .opd
12557         section.
12558
12559 2012-11-28  Joseph Myers  <joseph@codesourcery.com>
12560
12561         [BZ #13881]
12562         * sysdeps/x86/fpu/powl_helper.c: New file.
12563         * sysdeps/x86/fpu/Makefile: Likewise.
12564         * sysdeps/i386/fpu/e_powl.S (limit): Remove object.
12565         (p3): New object.
12566         (__ieee754_powl): Use __powl_helper for finite arguments except
12567         integer exponents below 8.
12568         * sysdeps/x86_64/fpu/e_powl.S (limit): Remove object.
12569         (p3): New object.
12570         (__ieee754_powl): Use __powl_helper for finite arguments except
12571         integer exponents below 8.
12572         * math/libm-test.inc (pow_test): Add more tests and enable some
12573         previously disabled tests.
12574         * sysdeps/i386/fpu/libm-test-ulps: Update.
12575         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
12576
12577 2012-11-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
12578             Carlos O'Donell  <carlos_odonell@mentor.com>
12579
12580         * nss/makedb.c (is_prime): Assert that input is odd and greater
12581         than 4.  Note that fact in a comment too.
12582         (next_prime): Add 4 to input.
12583
12584 2012-11-27  Siddhesh Poyarekar  <siddhesh@redhat.com>
12585
12586         [BZ #11741]
12587         * libio/Makefile (tests): Add test case tst-fwrite-error.
12588         * libio/iofwrite.c (_IO_fwrite): Return 0 on EOF.
12589         * libio/iofwrite_u.c (fwrite_unlocked): Likewise.
12590         * libio/tst-fwrite-error.c: New test case.
12591
12592 2012-11-26  H.J. Lu  <hongjiu.lu@intel.com>
12593
12594         * elf/dl-load.c (_dl_map_object_from_fd): Cast to uintptr_t
12595         before casting to void *.
12596         * include/libc-internal.h (__pointer_type): New macro.
12597         (__integer_if_pointer_type_sub): Likewise.
12598         (__integer_if_pointer_type): Likewise.
12599         (cast_to_integer): Likewise.
12600         * sysdeps/x86_64/bits/atomic.h: Include <libc-internal.h>.
12601         (__arch_c_compare_and_exchange_val_64_acq): Use cast_to_integer
12602         before casting to atomic64_t.
12603         (atomic_exchange_acq): Likewise.
12604         (__arch_exchange_and_add_body): Likewise.
12605         (__arch_add_body): Likewise.
12606         (atomic_add_negative): Likewise.
12607         (atomic_add_zero): Likewise.
12608
12609 2012-11-26  Joseph Myers  <joseph@codesourcery.com>
12610
12611         * sysdeps/generic/unwind-dw2-fde.c (get_pc_begin): New function.
12612         (fde_unencoded_compare): Use get_pc_begin instead of type-punning.
12613         (add_fdes): Likewise.
12614         (linear_search_fdes): Likewise.
12615         (binary_search_unencoded_fdes): Likewise.
12616
12617 2012-11-26  Andreas Schwab  <schwab@linux-m68k.org>
12618
12619         * elf/sotruss.ksh: Correctly locate argument of -F and -T options.
12620
12621 2012-11-24  Adam Conrad  <adconrad@0c3.net>
12622
12623         * configure.in: Autodetect C++ header directories.
12624         * configure: Regenerated.
12625
12626 2012-11-23  Mike Frysinger  <vapier@gentoo.org>
12627
12628         * elf/Makefile ($(objpfx)ld.so): Change readelf to $(READELF).
12629
12630 2012-11-23  Andreas Schwab  <schwab@linux-m68k.org>
12631
12632         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
12633
12634 2012-11-22  Joseph Myers  <joseph@codesourcery.com>
12635
12636         * math/libm-test.inc (fma_test_towardzero) [TEST_LDOUBLE &&
12637         LDBL_MANT_DIG == 106]: Disable some tests.
12638         (fma_test_downward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
12639         Likewise.
12640         (fma_test_upward) [TEST_LDOUBLE && LDBL_MANT_DIG == 106]:
12641         Likewise.
12642
12643         [BZ #14871]
12644         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c (__atanl): Return the
12645         input for small inputs.  Return +/- pi/2 for large inputs.
12646         * math/libm-test.inc (atan_test): Add more tests.
12647
12648         * sysdeps/generic/unwind-dw2-fde-glibc.c
12649         (_Unwind_IteratePhdrCallback): Declare P_DYNAMIC with
12650         __attribute__ ((unused)).
12651
12652         [BZ #14645]
12653         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Compute result as
12654         x * y if x and y are nonzero and z is zero.
12655
12656         [BZ #14811]
12657         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (__ieee754_powl): Saturate
12658         nonzero exponents with absolute value below 0x1p-117 to +/-
12659         0x1p-117.
12660
12661         [BZ #14869]
12662         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl): Scale
12663         up arguments below 2**-450, not just those below 2**-500.
12664         * math/libm-test.inc (hypot_test): Add another test.
12665
12666         [BZ #14868]
12667         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c (__ieee754_hypotl):
12668         Return a+b for ratio over 2**120, not 2**60.
12669         * math/libm-test.inc (hypot_test): Add another test.
12670
12671         * math/libm-test.inc (clog_test): Use
12672         UNDERFLOW_EXCEPTION_LDOUBLE_IBM on two tests.
12673         (clog10_test): Likewise.
12674
12675         [BZ #6778]
12676         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c (big): Change to 1e290L.
12677
12678 2012-11-22  Andreas Schwab  <schwab@suse.de>
12679
12680         * sysdeps/i386/fpu/libm-test-ulps: Update.
12681
12682 2012-11-22  Pino Toscano  <toscano.pino@tiscali.it>
12683
12684         * sysdeps/x86_64/multiarch/test-multiarch.c (get_cpuinfo): Terminate
12685         printf output with newline.
12686
12687 2012-11-21  H.J. Lu  <hongjiu.lu@intel.com>
12688
12689         [BZ #14865]
12690         * aclocal.m4 (LIBC_LINKER_FEATURE): New macro.
12691         * configure.in: Use LIBC_LINKER_FEATURE to check -z nodelete,
12692         -z nodlopen, -z initfirst and -z execstack support.
12693         * configure: Regenerated.
12694
12695         * elf/elf.h (DF_1_NODIRECT): New macro.
12696         (DF_1_IGNMULDEF): Likewise.
12697         (DF_1_NOKSYMS): Likewise.
12698         (DF_1_NOHDR): Likewise.
12699         (DF_1_EDITED): Likewise.
12700         (DF_1_NORELOC): Likewise.
12701         (DF_1_SYMINTPOSE): Likewise.
12702         (DF_1_GLOBAUDIT): Likewise.
12703         (DF_1_SINGLETON): Likewise.
12704         * elf/get-dynamic-info.h (elf_get_dynamic_info): Assert
12705         DT_1_SUPPORTED_MASK bits.
12706         * include/elf.h (DT_1_SUPPORTED_MASK): New macro.
12707
12708 2012-11-20  Carlos O'Donell  <carlos_odonell@mentor.com>
12709
12710         * sysdeps/unix/make-syscalls.sh: Document prefixes.
12711
12712 2012-11-20  Thomas Schwinge  <thomas@codesourcery.com>
12713
12714         * sysdeps/sh/dl-machine.h (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): New
12715         macro.
12716
12717         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr, recvmmsg)
12718         (sendmmsg): Move declarations...
12719         * socket/sys/socket.h: ... here.
12720         * sysdeps/unix/sysv/linux/recvmmsg.c [!defined __NR_recvmmsg &&
12721         !defined __NR_socketcall] (recvmmsg): Move ENOSYS stub into and
12722         include it from...
12723         * socket/recvmmsg.c: ... this new file.
12724         * sysdeps/unix/sysv/linux/internal_sendmmsg.S [__ASSUME_SENDMMSG]
12725         (sendmmsg): Rename to __sendmmsg, create weak alias and make
12726         definition of __sendmmsg hidden.
12727         * sysdeps/unix/sysv/linux/sendmmsg.c (sendmmsg): Likewise.
12728         [!defined __NR_sendmmsg && !defined __NR_socketcall] (sendmmsg):
12729         Move ENOSYS stub into and include it from...
12730         * socket/sendmmsg.c: ... this new file.
12731         * sysdeps/unix/sysv/linux/Makefile [subdir=socket]
12732         (sysdep_routines): Move recvmmsg and sendmmsg...
12733         * socket/Makefile (routines): ... here.
12734         * socket/Versions (GLIBC_2.17): Add recvmmsg and sendmmsg.
12735         (GLIBC_PRIVATE): Add __sendmmsg.
12736         * include/sys/socket.h (__sendmmsg): Add declarations.
12737         * resolv/res_send.c (send_dg): Invoke __sendmmsg instead of
12738         sendmmsg.
12739
12740 2012-11-20  Joseph Myers  <joseph@codesourcery.com>
12741
12742         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Mark
12743         variable I1 with __attribute__ ((unused)).
12744         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
12745
12746 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
12747
12748         * stdio-common/_itowa.c (_itowa) [BITS_PER_MP_LIMB == 64]: Declare
12749         DUMMY variables with __attribute__ ((unused)).
12750
12751         * bits/byteswap.h: Include <bits/types.h>.
12752         (__bswap_64): Use __uint64_t instead of unsigned long long int.
12753
12754 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
12755
12756         * sysdeps/mach/hurd/ptsname.c (ptsname): Change the type of PEERNAME to
12757         string_t.  Do not manually set errno.
12758         (__ptsname_r): Change the type of PEERNAME to string_t, and check its
12759         length with __strnlen.  Make sure to both set errno and return it on
12760         failure.
12761
12762 2012-11-19  David S. Miller  <davem@davemloft.net>
12763
12764         With help from Joseph Myers.
12765         * sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
12766         very large arguments properly.
12767         * math/libm-test.inc (atan_test): New tests.
12768         (atan2_test): New tests.
12769         * sysdeps/sparc/fpu/libm-test-ulps: Update.
12770         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
12771
12772 2012-11-19  Joseph Myers  <joseph@codesourcery.com>
12773
12774         [BZ #14856]
12775         * posix/bits/posix1_lim.h [!__USE_XOPEN2K] (_POSIX_TZNAME_MAX):
12776         Define to 3.
12777
12778         * conform/data/errno.h-data [POSIX] (EADDRINUSE): Do not expect.
12779         [POSIX] (EADDRNOTAVAIL): Likewise.
12780         [POSIX] (EAFNOSUPPORT): Likewise.
12781         [POSIX] (EALREADY): Likewise.
12782         [POSIX] (ECONNABORTED): Likewise.
12783         [POSIX] (ECONNREFUSED): Likewise.
12784         [POSIX] (ECONNRESET): Likewise.
12785         [POSIX] (EDESTADDRREQ): Likewise.
12786         [POSIX] (EDQUOT): Likewise.
12787         [POSIX] (EHOSTUNREACH): Likewise.
12788         [POSIX] (EIDRM): Likewise.
12789         [POSIX] (EISCONN): Likewise.
12790         [POSIX] (ELOOP): Likewise.
12791         [POSIX] (EMULTIHOP): Likewise.
12792         [POSIX] (ENETDOWN): Likewise.
12793         [POSIX] (ENETUNREACH): Likewise.
12794         [POSIX] (ENOBUFS): Likewise.
12795         [POSIX] (ENODATA): Likewise.
12796         [POSIX] (ENOLINK): Likewise.
12797         [POSIX] (ENOMSG): Likewise.
12798         [POSIX] (ENOPROTOOPT): Likewise.
12799         [POSIX] (ENOSR): Likewise.
12800         [POSIX] (ENOSTR): Likewise.
12801         [POSIX] (ENOTCONN): Likewise.
12802         [POSIX] (ENOTSOCK): Likewise.
12803         [POSIX] (EOPNOTSUPP): Likewise.
12804         [POSIX] (EOVERFLOW): Likewise.
12805         [POSIX] (EPROTO): Likewise.
12806         [POSIX] (EPROTONOSUPPORT): Likewise.
12807         [POSIX] (EPROTOTYPE): Likewise.
12808         [POSIX] (ESTALE): Likewise.
12809         [POSIX] (ETIME): Likewise.
12810         [POSIX] (ETXTBSY): Likewise.
12811         [POSIX] (EWOULDBLOCK): Likewise.
12812         [!ISO && !ISO99 && !ISO11] (E*): Do not allow.
12813         * conform/data/fcntl.h-data [POSIX] (SEEK_SET): Allow.
12814         [POSIX] (SEEK_CUR): Likewise.
12815         [POSIX] (SEEK_END): Likewise.
12816         [POSIX || UNIX98] (mode_t): Do not require.
12817         [POSIX] (off_t): Likewise.
12818         [POSIX] (pid_t): Likewise.
12819         [POSIX] (sys/stat.h): Do not allow header.
12820         [POSIX] (unistd.h): Likewise.
12821         [!ISO && !ISO99 && !ISO11] (timespec): Do not allow.
12822         [!ISO && !ISO99 && !ISO11] (tv_nsec): Likewise.
12823         [!ISO && !ISO99 && !ISO11] (tv_sec): Likewise.
12824         * conform/data/locale.h-data [POSIX] (LC_MESSAGES): Do not
12825         require.
12826         * conform/data/mqueue.h-data [!ISO && !ISO99 && !ISO11] (struct
12827         sigevent): Specify elements.
12828         [XOPEN2K8 || POSIX2008] (struct sigevent): Remove duplicate type
12829         entry.
12830         [!ISO && !ISO99 && !ISO11] (mq_*): Allow.
12831         [!ISO && !ISO99 && !ISO11] (MQ_*): Likewise.
12832
12833         * conform/data/cpio.h-data [POSIX]: Disable whole file.
12834         * conform/data/glob.h-data [POSIX] (GLOB_NOSYS): Do not expect.
12835         * conform/data/limits.h-data [!ISO && !ISO99 && !ISO11]
12836         (AIO_LIST_MAX): Change to AIO_LISTIO_MAX.
12837         [!ISO && !ISO99 && !ISO11] (ATEXT_MAX): Remove.
12838         [!ISO && !ISO99 && !ISO11 && !POSIX && !XPG3] (ATEXIT_MAX): Allow.
12839         [POSIX || POSIX2008 || XPG3] (IOV_MAX): Do not allow.
12840         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Likewise.
12841         [!ISO && !ISO99 && !ISO11] (MQ_PRIO_MAX): Allow.
12842         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Remove duplicate entry.
12843         [POSIX || XPG3 || XPG4 || UNIX98] (SS_REPL_MAX): Do not allow.
12844         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLOOP_MAX): Likewise.
12845         [POSIX || XPG3 || XPG4] (FILESIZEBITS): Likewise.
12846         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_ALLOC_SIZE_MIN):
12847         Likewise.
12848         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_INCR_XFER_SIZE):
12849         Likewise.
12850         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_MAX_XFER_SIZE):
12851         Likewise.
12852         [POSIX || XPG3 || XPG4 || UNIX98] (POSIX_REC_XFER_ALIGN):
12853         Likewise.
12854         [POSIX || XPG3 || XPG4 || UNIX98] (SYMLINK_MAX): Likewise.
12855         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SS_REPL_MAX): Likewise.
12856         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLINK_MAX): Likewise.
12857         [POSIX || XPG3 || XPG4 || UNIX98] (_POSIX_SYMLOOP_MAX): Likewise.
12858         [!ISO && !ISO99 && !ISO11] (BC_BASE_MAX): Use macro-constant.
12859         Specify lower bound on value.
12860         [!ISO && !ISO99 && !ISO11] (BC_DIM_MAX): Likewise.
12861         [!ISO && !ISO99 && !ISO11] (BC_SCALE_MAX): Likewise.
12862         [!ISO && !ISO99 && !ISO11] (BC_STRING_MAX): Likewise.
12863         [!ISO && !ISO99 && !ISO11] (COLL_WEIGHTS_MAX): Likewise.
12864         [!ISO && !ISO99 && !ISO11] (EXPR_NEST_MAX): Likewise.
12865         [!ISO && !ISO99 && !ISO11] (RE_DUP_MAX): Likewise
12866         [POSIX || XPG3 || XPG4] (CHARCLASS_NAME_MAX): Do not allow.
12867         [!ISO && !ISO99 && !ISO11] (_POSIX_CLOCKRES_MIN): Specify exact
12868         value.
12869         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_LISTIO_MAX): Do not specify
12870         as optional.
12871         [!ISO && !ISO99 && !ISO11] (_POSIX_AIO_MAX): Likewise.
12872         [!ISO && !ISO99 && !ISO11] (_POSIX_ARG_MAX): Likewise.
12873         [!ISO && !ISO99 && !ISO11] (_POSIX_CHILD_MAX): Likewise.
12874         [!ISO && !ISO99 && !ISO11] (_POSIX_DELAYTIMER_MAX): Likewise.
12875         [!ISO && !ISO99 && !ISO11] (_POSIX_LINK_MAX): Likewise.
12876         [!ISO && !ISO99 && !ISO11] (_POSIX_LOGIN_NAME_MAX): Likewise.
12877         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_CANON): Likewise.
12878         [!ISO && !ISO99 && !ISO11] (_POSIX_MAX_INPUT): Likewise.
12879         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_OPEN_MAX): Likewise.
12880         [!ISO && !ISO99 && !ISO11] (_POSIX_MQ_PRIO_MAX): Likewise.
12881         [!ISO && !ISO99 && !ISO11] (_POSIX_NAME_MAX): Likewise.
12882         [!ISO && !ISO99 && !ISO11] (_POSIX_NGROUPS_MAX): Likewise.
12883         [!ISO && !ISO99 && !ISO11] (_POSIX_OPEN_MAX): Likewise.
12884         [!ISO && !ISO99 && !ISO11] (_POSIX_PATH_MAX): Likewise.
12885         [!ISO && !ISO99 && !ISO11] (_POSIX_PIPE_BUF): Likewise.
12886         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Remove duplicate
12887         entry.
12888         [!ISO && !ISO99 && !ISO11] (_POSIX_RTSIG_MAX): Do not specify as
12889         optional.
12890         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_NSEMS_MAX): Likewise.
12891         [!ISO && !ISO99 && !ISO11] (_POSIX_SEM_VALUE_MAX): Likewise.
12892         [!ISO && !ISO99 && !ISO11] (_POSIX_SIGQUEUE_MAX): Likewise.
12893         [!ISO && !ISO99 && !ISO11] (_POSIX_SSIZE_MAX): Likewise.
12894         [!ISO && !ISO99 && !ISO11] (_POSIX_STREAM_MAX): Likewise.
12895         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_DESTRUCTOR_ITERATIONS):
12896         Likewise.
12897         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_KEYS_MAX): Likewise.
12898         [!ISO && !ISO99 && !ISO11] (_POSIX_THREAD_THREADS_MAX): Likewise.
12899         [!ISO && !ISO99 && !ISO11] (_POSIX_TIMER_MAX): Likewise.
12900         [!ISO && !ISO99 && !ISO11] (_POSIX_TTY_NAME_MAX): Likewise.
12901         [!ISO && !ISO99 && !ISO11] (_POSIX_TZNAME_MAX): Likewise.  Give
12902         value as 3 for [POSIX || XPG3 || XPG4 || UNIX98].
12903         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_BASE_MAX): Do not specify
12904         as optional.
12905         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_DIM_MAX): Likewise.
12906         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_SCALE_MAX): Likewise.
12907         [!ISO && !ISO99 && !ISO11] (_POSIX2_BC_STRING_MAX): Likewise.
12908         [!ISO && !ISO99 && !ISO11] (_POSIX2_CHARCLASS_NAME_MAX):
12909         Likewise.  Do not allow for [POSIX || XPG3 || XPG4 || UNIX98].
12910         [!ISO && !ISO99 && !ISO11] (_POSIX2_COLL_WEIGHTS_MAX): Do not
12911         specify as optional.
12912         [!ISO && !ISO99 && !ISO11] (_POSIX2_EXPR_NEST_MAX): Likewise.
12913         [!ISO && !ISO99 && !ISO11] (_POSIX2_LINE_MAX): Likewise.
12914         [!ISO && !ISO99 && !ISO11] (_POSIX2_RE_DUP_MAX): Likewise.
12915         [POSIX || POSIX2008 || XPG3] (_XOPEN_IOV_MAX): Do not allow.
12916         [POSIX || XPG3] (NL_ARGMAX): Do not allow.
12917         [XPG3] (NL_LANGMAX): Likewise.
12918         [POSIX || XPG3] (NL_MSGMAX): Likewise.
12919         [POSIX || XPG3] (NL_NMAX): Likewise.
12920         [POSIX || XPG3] (NL_SETMAX): Likewise.
12921         [POSIX || XPG3] (NL_TEXTMAX): Likewise.
12922         [XPG3] (NZERO): Likewise.
12923         [XPG4 || UNIX98] (TMP_MAX): Only enable for these conditions.
12924         [POSIX || XPG3 || XPG4 || UNIX98] (*_MIN): Do not allow.
12925         [!ISO && !ISO99 && !ISO11] (*_t): Allow.
12926         * conform/data/regex.h-data [!ISO && !ISO99 && !ISO11]
12927         (REG_ERANGE): Expect.
12928         * conform/data/stdio.h-data [POSIX] (L_cuserid): Use
12929         optional-constant.
12930         [POSIX || XOPEN2K || XOPEN2K8 || POSIX2008] (getchar_unlocked):
12931         Use (void) in prototype.
12932         [POSIX] (*_t): Allow.
12933         * conform/data/sys/times.h-data [POSIX]: Enable whole file.
12934         * conform/data/wordexp.h-data [!ISO && !ISO99 && !ISO11]
12935         (WRDE_BADVAL): Expect.
12936
12937         * conform/data/fcntl.h-data [XPG3 || XPG4] (O_DSYNC): Do not
12938         expect.
12939         [XPG3 || XPG4] (O_RSYNC): Likewise.
12940         * conform/data/signal.h-data [XPG3 || XPG4] (pthread_kill):
12941         Likewise.
12942         [XPG3 || XPG4] (pthread_sigmask): Likewise.
12943         [XPG3 || XPG4] (sigqueue): Likewise.
12944         [XPG3 || XPG4] (sigtimedwait): Likewise.
12945         [XPG3 || XPG4] (sigwaitinfo): Likewise.
12946         * conform/data/stdio.h-data [XPG3 || XPG4] (snprintf): Likewise.
12947         [XPG3 || XPG4] (vsnprintf): Likewise.
12948         * conform/data/sys/stat.h-data [XPG3 || XPG4] (blkcnt_t):
12949         Likewise.
12950         [XPG3 || XPG4] (blksize_t): Likewise.
12951         * conform/data/time.h-data [XPG3 || XPG4] (struct timespec):
12952         Likewise.
12953         [XPG3 || XPG4] (CLOCK_PROCESS_CPUTIME_ID): Likewise.
12954         [XPG3 || XPG4] (CLOCK_THREAD_CPUTIME_ID): Likewise.
12955         [XPG3 || XPG4] (struct itimerspec): Likewise.
12956         [XPG3 || XPG4] (CLOCK_REALTIME): Likewise.
12957         [XPG3 || XPG4] (TIMER_ABSTIME): Likewise.
12958         [XPG3 || XPG4] (CLOCK_MONOTONIC): Likewise.
12959         [XPG3 || XPG4] (clockid_t): Likewise.
12960         [XPG3 || XPG4] (timer_t): Likewise.
12961         [XPG3 || XPG4] (clock_getres): Likewise.
12962         [XPG3 || XPG4] (clock_gettime): Likewise.
12963         [XPG3 || XPG4] (clock_settime): Likewise.
12964         [XPG3 || XPG4] (nanosleep): Likewise.
12965         [XPG3 || XPG4] (timer_create): Likewise.
12966         [XPG3 || XPG4] (timer_delete): Likewise.
12967         [XPG3 || XPG4] (timer_gettime): Likewise.
12968         [XPG3 || XPG4] (timer_getoverrun): Likewise.
12969         [XPG3 || XPG4] (timer_settime): Likewise.
12970         * conform/data/unistd.h-data [XPG3 || XPG4] (fdatasync): Likewise.
12971         [XPG3 || XPG4] (getlogin_r): Likewise.
12972         [XPG3 || XPG4] (pread): Likewise.
12973         [XPG3 || XPG4] (pthread_atfork): Likewise.
12974         [XPG3 || XPG4] (pwrite): Likewise.
12975
12976         [BZ #14835]
12977         * signal/signal.h [__USE_XOPEN_EXTENDED]: Include
12978         <bits/siginfo.h>.
12979
12980 2012-11-19  Pino Toscano  <toscano.pino@tiscali.it>
12981
12982         * malloc/mtrace.c (muntrace): Reset MALLSTREAM and the hooks before
12983         finalizing MALLSTREAM.
12984
12985         * sysdeps/mach/hurd/syncfs.c: New file.
12986
12987 2012-11-19  Siddhesh Poyarekar  <siddhesh@redhat.com>
12988
12989         [BZ #14719]
12990         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Set h_errno to
12991         NETDB_INTERNAL when NSS_STATUS_UNAVAIL.
12992         * resolv/nss_dns/dns-host.c (_nss_dns_gethostbyname3_r): Set
12993         h_errno to NETDB_INTERNAL when errno is EMFILE or ENFILE.
12994         (_nss_dns_gethostbyname4_r): Likewise.
12995         * sysdeps/posix/getaddrinfo.c (gaih_inet): Set result to
12996         EAI_SYSTEM if NSS_STATUS_UNAVAIL.
12997
12998 2012-11-19  Peng Haitao  <penght@cn.fujitsu.com>
12999
13000         [BZ #13763]
13001         * sunrpc/bindrsvprt.c: Add lock to protect static variable.
13002
13003 2012-11-19  Steve McIntyre  <steve.mcintyre@linaro.org>
13004
13005         * sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro.
13006         * elf/cache.c (print_entry): Print ",AArch64" for
13007         FLAG_AARCH64_LIB64
13008
13009         * sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro.
13010         * elf/cache.c (print_entry): Print ",hard-float" for
13011         FLAG_ARM_LIBHF.
13012
13013 2012-11-18  David S. Miller  <davem@davemloft.net>
13014
13015         With help from Joseph Myers.
13016         * sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
13017         cutoff to 2**-13.
13018         * sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
13019         cutoff to 2**-25.
13020         * sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
13021         ( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
13022         small.
13023         * sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
13024         * math/libm-test.inc (y0_test): New tests.
13025         (y1_test): New tests.
13026         * sysdeps/i386/fpu/libm-test-ulps: Update.
13027         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
13028         * sysdeps/sparc/fpu/libm-test-ulps: Update.
13029
13030 2012-11-18  Andreas Schwab  <schwab@linux-m68k.org>
13031
13032         * configure.in (libc_cv_ld_gnu_indirect_function): Use .quad on
13033         64-bit targets.
13034         * configure: Regenerated.
13035
13036 2012-11-17  David S. Miller  <davem@davemloft.net>
13037
13038         [BZ #14811]
13039         * sysdeps/ieee754/ldbl-128/e_powl.c (__ieee754_powl): Saturate
13040         nonzero exponents with absolute value below 0x1p-128 to +/-
13041         0x1p-128.
13042
13043 2012-11-17  Joseph Myers  <joseph@codesourcery.com>
13044
13045         * sysdeps/unix/sysv/linux/fxstatat.c: Include <string.h>.
13046
13047         * elf/dl-runtime.c [!ELF_MACHINE_NO_PLT]: Make code unconditional.
13048
13049         * posix/getconf-speclist.c: New file.
13050         * posix/posix-envs.def: Likewise.
13051         * posix/confstr.c (START_ENV_GROUP): New macro.
13052         (END_ENV_GROUP): Likewise.
13053         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
13054         (KNOWN_PRESENT_ENV_STRING): Likewise.
13055         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
13056         (UNKNOWN_ENVIRONMENT): Likewise.
13057         (confstr): Include posix-envs.def instead of handling
13058         _CS_V7_WIDTH_RESTRICTED_ENVS, _CS_V6_WIDTH_RESTRICTED_ENVS and
13059         _CS_V5_WIDTH_RESTRICTED_ENVS directly here.
13060         * sysdeps/posix/sysconf.c (START_ENV_GROUP): New macro.
13061         (END_ENV_GROUP): Likewise.
13062         (KNOWN_ABSENT_ENVIRONMENT): Likewise.
13063         (KNOWN_PRESENT_ENVIRONMENT): Likewise.
13064         (UNKNOWN_ENVIRONMENT): Likewise.
13065         (__sysconf): Include posix-envs.def instead of handling associated
13066         cases directly here.
13067         * posix/Makefile ($(objpfx)getconf.speclist): Generate by
13068         preprocessing getconf-speclist.c rather than running getconf or
13069         generating empty file.
13070
13071 2012-11-16  Pino Toscano  <toscano.pino@tiscali.it>
13072
13073         * scripts/check-local-headers.sh: Ignore 'mach' headers.
13074
13075 2012-11-16  Andrej Lajovic  <natrij@gmail.com>
13076
13077         [BZ #14672]
13078         * iconv/iconv_prog.c (main): Fix -c handling of '/'.
13079
13080 2012-11-16  David S. Miller  <davem@davemloft.net>
13081
13082         * sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): If xm1 is
13083         smaller than LDBL_EPSILON/2.0L, just return xm1.
13084
13085 2012-11-16  H.J. Lu  <hongjiu.lu@intel.com>
13086
13087         * elf/tst-array1.c (init): Set constructor priority to 1000.
13088         (fini): Set destructor priority to 1000.
13089         * elf/tst-array2dep.c: Likewise.
13090
13091 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
13092
13093         [BZ #11741]
13094         * libio/fileops.c (_IO_new_file_write): Correctly return error.
13095         (_IO_new_file_xsputn): Also return EOF if none of the input
13096         data was written when overflow failed.
13097         * libio/iopadn.c (_IO_padn): Likewise.
13098         * libio/iowpadn.c (_IO_wpadn): Likewise.
13099         * stdio-common/tst-put-error.c: Add copyright notice.
13100         (do_test): Add case for printing padded string.
13101         * stdio-common/vfprintf [!COMPILE_WPRINTF] (PAD): Flag error if
13102         _IO_padn returned error.
13103         [COMPILE_WPRINTF] (PAD): Flag error if _IO_wpadn returned error.
13104         * libio/libioP.h (_IO_xsputn_t): Note in comment that xsputn can
13105         return EOF.
13106
13107 2012-11-16  Siddhesh Poyarekar  <siddhesh@redhat.com>
13108
13109         * libio/libioP.h: Add comment note that the references to C++
13110         bits are now obsolete.
13111
13112 2012-11-15  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
13113
13114         * math/libm-test.inc (check_complex): Use asprintf.
13115
13116 2012-11-14  Joseph Myers  <joseph@codesourcery.com>
13117
13118         * debug/pcprofiledump.c (print_version): Update copyright year.
13119         * malloc/memusagestat.c (print_version): Likewise.
13120
13121 2012-11-14  H.J. Lu  <hongjiu.lu@intel.com>
13122
13123         [BZ #14831]
13124         * elf/Makefile (tests): Add tst-audit8.
13125         ($(objpfx)tst-audit8): Also depend on $(common-objpfx)math/libm.so.
13126         ($(objpfx)tst-audit8.out): New target.
13127         (tst-audit8-ENV): New variable.
13128         * elf/dl-runtime.c (_dl_profile_fixup): Call _dl_fixup to skip
13129         audit if l_reloc_result is NULL.
13130         (ELF_MACHINE_RUNTIME_FIXUP_PARAMS): Issue an error if it isn't
13131         defined and ELF_MACHINE_RUNTIME_FIXUP_ARGS is defined.
13132         * elf/tst-audit8.c: New file.
13133
13134 2012-11-14  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
13135
13136         * io/Makefile (CFLAGS-open.c, CFLAGS-open64.c): Define.
13137         * misc/Makefile (CFLAGS-select.c): Define.
13138         * posix/Makefile (CFLAGS-pause.c): Define.
13139
13140 2012-11-13  David S. Miller  <davem@davemloft.net>
13141
13142         * crypt/Makefile: Move test targets after toplevel Rules
13143         inclusion.  Grab any necessary sysdep routines when linking.
13144         * crypt/md5.c (md5_process_block): Remove define, we will always
13145         name it __md5_process_block.
13146         (md5_finish_ctx): Update md5_process_block call.
13147         (md5_stream): Likewise.
13148         (md5_process_bytes): Likewise.
13149         (md5_process_block): Rename to __md5_process_block and move to ...
13150         * crypt/md5-block.c: ... here.
13151         * crypt/sha256.c (sha256_process_block): Move to ...
13152         * crypt/sha256-block.c: ... here.
13153         * crypt/sha512.c (sha512_process_block): Move to ...
13154         * crypt/sha512-block.c: ... here.
13155         * locale/Makefile (CFLAGS-md5.c): Define to add crypt/ to include
13156         path.
13157         * sysdeps/sparc/sparc-ifunc.c (sparc_libc_ifunc): Define.
13158         * sysdeps/sparc/sparc64/multiarch/Makefile
13159         (libcrypt-sysdep_routines): Add crypto assembler sysdeps when in
13160         crypt subdir.
13161         (localedef-aux): Add md5 crypto assembler when in locale subdir.
13162         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Mirror sparc64
13163         multiarch changes.
13164         * sysdeps/sparc/sparc64/multiarch/md5-block.c: New file.
13165         * sysdeps/sparc/sparc64/multiarch/md5-crop.S: New file.
13166         * sysdeps/sparc/sparc64/multiarch/sha256-block.c: New file.
13167         * sysdeps/sparc/sparc64/multiarch/sha256-crop.S: New file.
13168         * sysdeps/sparc/sparc64/multiarch/sha512-block.c: New file.
13169         * sysdeps/sparc/sparc64/multiarch/sha512-crop.S: New file.
13170         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-block.c: New file.
13171         * sysdeps/sparc/sparc32/sparcv9/multiarch/md5-crop.S: New file.
13172         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-block.c: New
13173         file.
13174         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha256-crop.S: New file.
13175         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-block.c: New
13176         file.
13177         * sysdeps/sparc/sparc32/sparcv9/multiarch/sha512-crop.S: New file.
13178
13179 2012-11-13  Joseph Myers  <joseph@codesourcery.com>
13180
13181         * timezone/tzselect.ksh: Update from tzcode git revision
13182         a435f9f0ecafa56d9e0263835836bd0c64cd7307.
13183         * timezone/zdump.c: Likewise.
13184         * timezone/zic.c: Likewise.
13185         * timezone/Makefile ($(objpfx)version.h): Only include $(version)
13186         in TZVERSION setting, not $(PKGVERSION).
13187         ($(objpfx)tzselect): Likewise.  Also substitute PKGVERSION and
13188         REPORT_BUGS_TO settings.
13189
13190         [BZ #14838]
13191         * resolv/netdb.h [__USE_XOPEN_EXTENDED] (IPPORT_RESERVED): Define
13192         macro.
13193
13194 2012-11-13  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
13195
13196         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Move underflow
13197         detection to immediately after _FP_ROUND().
13198         * soft-fp/soft-fp.h (_FP_ROUND): Don't round if working
13199         bits are 0.
13200
13201 2012-11-11  David S. Miller  <davem@davemloft.net>
13202
13203         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Include
13204         inttypes.h
13205         (__get_clockfreq_via_proc_openprom): Use __open, __read, and
13206         __close rather than their public counterparts.
13207
13208 2012-11-10  Joseph Myers  <joseph@codesourcery.com>
13209
13210         * conform/data/semaphore.h-data [XPG3 || XPG4]: Disable whole
13211         file.
13212         [UNIX98] (sem_timedwait): Do not expect.
13213         * conform/data/sys/socket.h-data [XPG3]: Disable whole file.
13214         [XPG4 || UNIX98] (sockatmark): Do not expect.
13215         * conform/data/time.h-data [XPG3 || XPG4 || UNIX98]
13216         (clock_getcpuclockid): Do not expect.
13217         [XPG3 || XPG4 || UNIX98] (clock_nanosleep): Do not expect.
13218         * conform/data/unistd.h-data [XPG3 || XPG4 || UNIX98] (setegid):
13219         Do not expect.
13220         [XPG3 || XPG4 || UNIX98] (seteuid): Likewise.
13221         * conform/data/wchar.h-data [UNIX98] (vfwscanf): Do not expect.
13222         [UNIX98] (vwscanf): Likewise.
13223         [UNIX98] (vswscanf): Likewise.
13224
13225 2012-11-09  Joseph Myers  <joseph@codesourcery.com>
13226
13227         * timezone/version.h: Remove file.
13228         * timezone/README: Do not refer to version.h.
13229         * timezone/Makefile ($(objpfx)zic.o): New dependency on
13230         $(objpfx)version.h.
13231         ($(objpfx)zdump.o): Likewise.
13232         ($(objpfx)version.h): New target.
13233
13234         * timezone/tzselect.ksh: Change to verbatim copy from tzcode
13235         2012i.
13236         * timezone/README: Don't mention modification to tzselect.ksh.
13237         * timezone/Makefile ($(objpfx)tzselect): Update substitutions to
13238         work on unmodified tzselect.ksh.  Substitute version numbers in
13239         tzselect.ksh.
13240
13241         * Makefile (format-me): Remove.
13242         (INSTALL): Adjust indentation.  Use commands directly instead of
13243         using $(format-me).
13244
13245         * aclocal.m4 (ACX_PKGVERSION): New macro.
13246         (ACX_BUGURL): Likewise.
13247         * configure.in: Use ACX_PKGVERSION and ACX_BUGURL.
13248         (PKGVERSION): New AC_DEFINE_UNQUOTED.
13249         (REPORT_BUGS_TO): Likewise.
13250         * configure: Regenerated.
13251         * config.h.in (PKGVERSION): New macro.
13252         (REPORT_BUGS_TO): Likewise.
13253         * config.make.in (PKGVERSION): New variable.
13254         (PKGVERSION_TEXI): Likewise.
13255         (REPORT_BUGS_TO): Likewise.
13256         (REPORT_BUGS_TEXI): Likewise.
13257         * Makefile (format-me): Use -I$(common-objpfx)manual.
13258         (INSTALL): Depend on $(common-objpfx)manual/pkgvers.texi.
13259         ($(common-objpfx)manual/%): New target.
13260         (manual/%): Remove target.
13261         * catgets/gencat.c (more_help): Use REPORT_BUGS_TO.
13262         (print_version): Use PKGVERSION.
13263         * csu/version.c (banner): Use PKGVERSION and REPORT_BUGS_TO.
13264         * debug/Makefile ($(objpfx)catchsegv): Also substitute PKGVERSION
13265         and REPORT_BUGS_TO.
13266         ($(objpfx)xtrace): Likewise.
13267         * debug/catchsegv.sh: Use PKGVERSION and REPORT_BUGS_TO.
13268         * debug/pcprofiledump.c (more_help): Use REPORT_BUGS_TO.
13269         (print_version): Use PKGVERSION.
13270         * debug/xtrace.sh (do_help): Use REPORT_BUGS_TO.
13271         (do_version): Use PKGVERSION.
13272         * elf/Makefile ($(objpfx)sotruss): Also substitute PKGVERSION and
13273         REPORT_BUGS_TO.
13274         (common-ldd-rewrite): Likewise.
13275         * elf/dl-close.c (_dl_close_worker): Use REPORT_BUGS_TO.
13276         * elf/ldconfig.c (more_help): Use REPORT_BUGS_TO.
13277         (print_version): Use PKGVERSION.
13278         * elf/ldd.bash.in: Use PKGVERSION and REPORT_BUGS_TO.
13279         * elf/pldd.c (argp_program_bug_address): Remove variable.
13280         (more_help): New function.
13281         (argp): Use more_help.
13282         (print_version): Use PKGVERSION.
13283         * elf/sln.c (main): Use PKGVERSION.
13284         (usage): Use REPORT_BUGS_TO.
13285         * elf/sotruss.ksh (do_help): Use REPORT_BUGS_TO.
13286         (top level): Use PKGVERSION.
13287         * elf/sprof.c (more_help): Use REPORT_BUGS_TO.
13288         (print_version): Use PKGVERSION.
13289         * iconv/iconv_prog.c (more_help): Use REPORT_BUGS_TO.
13290         (print_version): Use PKGVERSION.
13291         * iconv/iconvconfig.c (more_help): Use REPORT_BUGS_TO.
13292         (print_version): Use PKGVERSION.
13293         * locale/programs/locale.c (more_help): Use REPORT_BUGS_TO.
13294         (print_version): Use PKGVERSION.
13295         * locale/programs/localedef.c (more_help): Use REPORT_BUGS_TO.
13296         (print_version): Use PKGVERSION.
13297         * login/programs/pt_chown.c (more_help): Use REPORT_BUGS_TO.
13298         (print_version): Use PKGVERSION.
13299         * malloc/Makefile ($(objpfx)mtrace): Also substitute PKGVERSION
13300         and BUGURL.
13301         ($(objpfx)memusage): Likewise.
13302         * malloc/memusage.sh (do_help): Use REPORT_BUGS_TO.
13303         (do_version): Use PKGVERSION.
13304         * malloc/memusagestat.c (more_help): Use REPORT_BUGS_TO.
13305         (print_version): Use PKGVERSION.
13306         * malloc/mtrace.pl ($PACKAGE): Remove variable.
13307         ($PKGVERSION): New variable.
13308         ($REPORT_BUGS_TO): Likewise.
13309         (usage): Use $REPORT_BUGS_TO.
13310         (top level): Use $PKGVERSION.
13311         * manual/Makefile (libc-texi-generated): Add pkgvers.texi.
13312         ($(objpfx)pkgvers.texi): New rule.
13313         ($(objpfx)stamp-pkgvers): Likewise.
13314         * manual/install.texi: Include pkgvers.texi.
13315         (--with-pkgversion): Document new configure option.
13316         (--with-bugurl): Likewise.
13317         (Reporting Bugs): Describe Bugzilla as upstream tracker rather
13318         than necessarily for this particular distribution.  Use
13319         REPORT_BUGS_TO for where to report bugs.
13320         * INSTALL: Regenerated.
13321         * manual/libc.texinfo: Include pkgvers.texi.
13322         [!PKGVERSION_DEFAULT]: Include PKGVERSION in version information.
13323         * nscd/nscd.c (more_help): Use REPORT_BUGS_TO.
13324         (print_version): Use PKGVERSION.
13325         * nss/getent.c (more_help): Use REPORT_BUGS_TO.
13326         (print_version): Use PKGVERSION.
13327         * nss/makedb.c (more_help): Use REPORT_BUGS_TO.
13328         (print_version): Use PKGVERSION.
13329         * posix/getconf.c (main): Use PKGVERSION and REPORT_BUGS_TO.
13330         * sunrpc/proto.h [IS_IN_build] (_libc_intl_domainname): Remove
13331         macro.
13332         * sunrpc/rpc_main.c (options_usage): Use REPORT_BUGS_TO.
13333         (print_version): Use PKGVERSION.
13334         * sunrpc/rpcinfo.c (usage): Use REPORT_BUGS_TO.
13335         (print_version): Use PKGVERSION.
13336         * sysdeps/unix/sysv/linux/lddlibc4.c (main): Use REPORT_BUGS_TO
13337         and PKGVERSION.
13338
13339         * timezone/checktab.awk: Update from tzcode 2012i.
13340         * timezone/ialloc.c: Likewise.
13341         * timezone/private.h: Likewise.
13342         * timezone/scheck.c: Likewise.
13343         * timezone/tzfile.h: Likewise.
13344         * timezone/tzselect.ksh: Merge in changes from tzcode 2012i.
13345         (TZVERSION): Hardcode tzcode version number.
13346         * timezone/zdump.c: Update from tzcode 2012i.
13347         * timezone/zic.c: Likewise.
13348         * timezone/version.h: New file.
13349         * timezone/README: Describe version.h.  Update upstream location.
13350
13351         [BZ #14824]
13352         * stdlib/stdlib.h [__USE_XOPEN_EXTENDED && __USE_XOPEN2K]
13353         (mktemp): Enable declaration.
13354         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (ecvt): Likewise.
13355         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (fcvt): Likewise.
13356         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K] (gcvt): Likewise.
13357         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qecvt):
13358         Likewise.
13359         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qfcvt):
13360         Likewise.
13361         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (qgcvt):
13362         Likewise.
13363         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (ecvt_r):
13364         Likewise.
13365         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (fcvt_r):
13366         Likewise.
13367         [__USE_XOPEN_EXTENDED && __USE_XOPEN2K && __USE_MISC] (gcvt_r):
13368         Likewise.
13369
13370         [BZ #14821]
13371         * sunrpc/clnt_tcp.c (clnttcp_control): Access values at fixed
13372         offset in buffer as u_int32_t not u_long.  Consistently use memcpy
13373         for copies of such integer values.
13374         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
13375         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
13376
13377 2012-11-09  Andreas Jaeger  <aj@suse.de>
13378
13379         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Remove all
13380         definitions and declarations that are provided by
13381         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
13382
13383 2012-11-08  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13384
13385         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Add "te".
13386         * sysdeps/s390/dl-procinfo.h (HWCAP_S390_TE): Add enum value.
13387         * sysdeps/unix/sysv/linux/s390/hwcap.h (HWCAP_S390_TE): Add macro
13388         definition.
13389
13390 2012-11-08  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
13391
13392         * elf/elf.h: Update comment before AArch64 relocations.
13393
13394 2012-11-07  David S. Miller  <davem@davemloft.net>
13395
13396         * sysdeps/unix/sysv/linux/sparc/sparc64/__start_context.S: New file.
13397         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
13398         (__start_context): Declare.
13399         (__makecontext_ret): Delete.
13400         (__makecontext): Hook up __start_context instead of
13401         __makecontext_ret.
13402         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile
13403         (sysdep_routines): Add __start_context when in stdlib.
13404
13405 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
13406
13407         * sysdeps/x86/Makefile ($(objpfx)tst-xmmymm.out): Pass $(NM),
13408         $(OBJDUMP) and $(READELF) to tst-xmmymm.sh.
13409         * sysdeps/x86/tst-xmmymm.sh (NM): New variable.  Use it instead of
13410         hardcoded "nm".
13411         (OBJDUMP): New variable.  Use it instead of hardcoded "objdump".
13412         (READELF): New variable.  Use it instead of hardcoded "readelf".
13413
13414 2012-11-07  H.J. Lu  <hongjiu.lu@intel.com>
13415
13416         * sysdeps/x86_64/Makefile ($(objpfx)tst-xmmymm.out): Moved to ...
13417         * sysdeps/x86/Makefile: Here.
13418         * sysdeps/x86_64/tst-xmmymm.sh: Renamed to ...
13419         * sysdeps/x86/tst-xmmymm.sh: This.
13420
13421 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
13422
13423         * conform/data/pthread.h-data [XPG3 || XPG4]: Disable all
13424         expectations.
13425         [UNIX98] (pthread_barrier_t): Do not expect.
13426         [UNIX98] (pthread_barrierattr_t): Likewise.
13427         [UNIX98] (pthread_spinlock_t): Likewise.
13428         [UNIX98] (pthread_barrier_destroy): Likewise.
13429         [UNIX98] (pthread_barrier_init): Likewise.
13430         [UNIX98] (pthread_barrier_wait): Likewise.
13431         [UNIX98] (pthread_barrierattr_destroy): Likewise.
13432         [UNIX98] (pthread_barrierattr_getpshared): Likewise.
13433         [UNIX98] (pthread_barrierattr_init): Likewise.
13434         [UNIX98] (pthread_barrierattr_setpshared): Likewise.
13435         [UNIX98] (pthread_getcpuclockid): Likewise.
13436         [UNIX98] (pthread_mutex_timedlock): Likewise.
13437         [UNIX98] (pthread_rwlock_timedrdlock): Likewise.
13438         [UNIX98] (pthread_rwlock_timedwrlock): Likewise.
13439         [UNIX98] (pthread_sigmask): Likewise.
13440         [UNIX98] (pthread_spin_destroy): Likewise.
13441         [UNIX98] (pthread_spin_init): Likewise.
13442         [UNIX98] (pthread_spin_lock): Likewise.
13443         [UNIX98] (pthread_spin_trylock): Likewise.
13444         [UNIX98] (pthread_spin_unlock): Likewise.
13445         * conform/data/sys/types.h-data [XPG3 || XPG4] (pthread_attr_t):
13446         Do not expect.
13447         [XPG3 || XPG4 || UNIX98] (pthread_barrier_t): Likewise.
13448         [XPG3 || XPG4 || UNIX98] (pthread_barrierattr_t): Likewise.
13449         [XPG3 || XPG4] (pthread_cond_t): Likewise.
13450         [XPG3 || XPG4] (pthread_condattr_t): Likewise.
13451         [XPG3 || XPG4] (pthread_key_t): Likewise.
13452         [XPG3 || XPG4] (pthread_mutex_t): Likewise.
13453         [XPG3 || XPG4] (pthread_mutexattr_t): Likewise.
13454         [XPG3 || XPG4] (pthread_once_t): Likewise.
13455         [XPG3 || XPG4] (pthread_rwlock_t): Likewise.
13456         [XPG3 || XPG4] (pthread_rwlockattr_t): Likewise.
13457         [XPG3 || XPG4 || UNIX98] (pthread_spinlock_t): Likewise.
13458         [XPG3 || XPG4] (pthread_t): Likewise.
13459
13460         * conform/data/stdlib.h-data [XPG3 || XPG4 || UNIX98] (setenv): Do
13461         not expect.
13462         [XPG3 || XPG4 || UNIX98] (unsetenv): Likewise.
13463
13464         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (isnan):
13465         Change function return type to int.
13466
13467         * conform/data/sys/mman.h-data [!POSIX] (POSIX_MADV_NORMAL):
13468         Change condition to [!POSIX && !XPG3 && !XPG4 && !UNIX98].
13469         [!POSIX] (POSIX_MADV_SEQUENTIAL): Likewise.
13470         [!POSIX] (POSIX_MADV_RANDOM): Likewise.
13471         [!POSIX] (POSIX_MADV_WILLNEED): Likewise.
13472         [!POSIX] (POSIX_MADV_DONTNEED): Likewise.
13473         [!POSIX] (posix_madvise): Likewise.
13474         (POSIX_TYPED_MEM_ALLOCATE): Condition on [!POSIX && !XPG3 && !XPG4
13475         && !UNIX98].
13476         (POSIX_TYPED_MEM_ALLOCATE_CONTIG): Likewise.
13477         (POSIX_TYPED_MEM_MAP_ALLOCATABLE): Likewise.
13478         (mode_t): Likewise.
13479         (posix_mem_offset): Likewise.
13480         (posix_typed_mem_get_info): Likewise.
13481         (posix_typed_mem_open): Likewise.
13482
13483         * conform/data/sys/stat.h-data [!POSIX && !POSIX2008] (mknodat):
13484         Change condition to [XOPEN2K8].
13485
13486         * conform/conformtest.pl: Preprocess allow-header data with -x c
13487         instead of from stdin.
13488         (@headers): Add stdalign.h, stdbool.h and stdnoreturn.h.
13489         * conform/data/complex.h-data [C99-based standards] (cerf): Allow.
13490         [C99-based standards] (cerfc): Likewise.
13491         [C99-based standards] (cexp2): Likewise.
13492         [C99-based standards] (cexpm1): Likewise.
13493         [C99-based standards] (clog10): Likewise.
13494         [C99-based standards] (clog1p): Likewise.
13495         [C99-based standards] (clog2): Likewise.
13496         [C99-based standards] (clgamma): Likewise.
13497         [C99-based standards] (ctgamma): Likewise.
13498         [C99-based standards] (cerff): Likewise.
13499         [C99-based standards] (cerfcf): Likewise.
13500         [C99-based standards] (cexp2f): Likewise.
13501         [C99-based standards] (cexpm1f): Likewise.
13502         [C99-based standards] (clog10f): Likewise.
13503         [C99-based standards] (clog1pf): Likewise.
13504         [C99-based standards] (clog2f): Likewise.
13505         [C99-based standards] (clgammaf): Likewise.
13506         [C99-based standards] (ctgammaf): Likewise.
13507         [C99-based standards] (cerfl): Likewise.
13508         [C99-based standards] (cerfcl): Likewise.
13509         [C99-based standards] (cexp2l): Likewise.
13510         [C99-based standards] (cexpm1l): Likewise.
13511         [C99-based standards] (clog10l): Likewise.
13512         [C99-based standards] (clog1pl): Likewise.
13513         [C99-based standards] (clog2l): Likewise.
13514         [C99-based standards] (clgammal): Likewise.
13515         [C99-based standards] (ctgammal): Likewise.
13516         * conform/data/inttypes.h-data [C99-based standards]: Include
13517         stdint.h-data.  Remove all expectations for stdint.h contents.
13518         [C99-based standards] (PRI*): Do not allow.
13519         [C99-based standards] (SCN*): Likewise.
13520         [C99-based standards] (*_t): Likewise.
13521         [C99-based-standards] (PRId8): Expect macro.
13522         [C99-based-standards] (PRIi8): Likewise.
13523         [C99-based-standards] (PRIo8): Likewise.
13524         [C99-based-standards] (PRIu8): Likewise.
13525         [C99-based-standards] (PRIx8): Likewise.
13526         [C99-based-standards] (PRIX8): Likewise.
13527         [C99-based-standards] (SCNd8): Likewise.
13528         [C99-based-standards] (SCNi8): Likewise.
13529         [C99-based-standards] (SCNo8): Likewise.
13530         [C99-based-standards] (SCNu8): Likewise.
13531         [C99-based-standards] (SCNx8): Likewise.
13532         [C99-based-standards] (PRIdLEAST8): Likewise.
13533         [C99-based-standards] (PRIiLEAST8): Likewise.
13534         [C99-based-standards] (PRIoLEAST8): Likewise.
13535         [C99-based-standards] (PRIuLEAST8): Likewise.
13536         [C99-based-standards] (PRIxLEAST8): Likewise.
13537         [C99-based-standards] (PRIXLEAST8): Likewise.
13538         [C99-based-standards] (SCNdLEAST8): Likewise.
13539         [C99-based-standards] (SCNiLEAST8): Likewise.
13540         [C99-based-standards] (SCNoLEAST8): Likewise.
13541         [C99-based-standards] (SCNuLEAST8): Likewise.
13542         [C99-based-standards] (SCNxLEAST8): Likewise.
13543         [C99-based-standards] (PRIdFAST8): Likewise.
13544         [C99-based-standards] (PRIiFAST8): Likewise.
13545         [C99-based-standards] (PRIoFAST8): Likewise.
13546         [C99-based-standards] (PRIuFAST8): Likewise.
13547         [C99-based-standards] (PRIxFAST8): Likewise.
13548         [C99-based-standards] (PRIXFAST8): Likewise.
13549         [C99-based-standards] (SCNdFAST8): Likewise.
13550         [C99-based-standards] (SCNiFAST8): Likewise.
13551         [C99-based-standards] (SCNoFAST8): Likewise.
13552         [C99-based-standards] (SCNuFAST8): Likewise.
13553         [C99-based-standards] (SCNxFAST8): Likewise.
13554         [C99-based-standards] (PRId16): Likewise.
13555         [C99-based-standards] (PRIi16): Likewise.
13556         [C99-based-standards] (PRIo16): Likewise.
13557         [C99-based-standards] (PRIu16): Likewise.
13558         [C99-based-standards] (PRIx16): Likewise.
13559         [C99-based-standards] (PRIX16): Likewise.
13560         [C99-based-standards] (SCNd16): Likewise.
13561         [C99-based-standards] (SCNi16): Likewise.
13562         [C99-based-standards] (SCNo16): Likewise.
13563         [C99-based-standards] (SCNu16): Likewise.
13564         [C99-based-standards] (SCNx16): Likewise.
13565         [C99-based-standards] (PRIdLEAST16): Likewise.
13566         [C99-based-standards] (PRIiLEAST16): Likewise.
13567         [C99-based-standards] (PRIoLEAST16): Likewise.
13568         [C99-based-standards] (PRIuLEAST16): Likewise.
13569         [C99-based-standards] (PRIxLEAST16): Likewise.
13570         [C99-based-standards] (PRIXLEAST16): Likewise.
13571         [C99-based-standards] (SCNdLEAST16): Likewise.
13572         [C99-based-standards] (SCNiLEAST16): Likewise.
13573         [C99-based-standards] (SCNoLEAST16): Likewise.
13574         [C99-based-standards] (SCNuLEAST16): Likewise.
13575         [C99-based-standards] (SCNxLEAST16): Likewise.
13576         [C99-based-standards] (PRIdFAST16): Likewise.
13577         [C99-based-standards] (PRIiFAST16): Likewise.
13578         [C99-based-standards] (PRIoFAST16): Likewise.
13579         [C99-based-standards] (PRIuFAST16): Likewise.
13580         [C99-based-standards] (PRIxFAST16): Likewise.
13581         [C99-based-standards] (PRIXFAST16): Likewise.
13582         [C99-based-standards] (SCNdFAST16): Likewise.
13583         [C99-based-standards] (SCNiFAST16): Likewise.
13584         [C99-based-standards] (SCNoFAST16): Likewise.
13585         [C99-based-standards] (SCNuFAST16): Likewise.
13586         [C99-based-standards] (SCNxFAST16): Likewise.
13587         [C99-based-standards] (PRId32): Likewise.
13588         [C99-based-standards] (PRIi32): Likewise.
13589         [C99-based-standards] (PRIo32): Likewise.
13590         [C99-based-standards] (PRIu32): Likewise.
13591         [C99-based-standards] (PRIx32): Likewise.
13592         [C99-based-standards] (PRIX32): Likewise.
13593         [C99-based-standards] (SCNd32): Likewise.
13594         [C99-based-standards] (SCNi32): Likewise.
13595         [C99-based-standards] (SCNo32): Likewise.
13596         [C99-based-standards] (SCNu32): Likewise.
13597         [C99-based-standards] (SCNx32): Likewise.
13598         [C99-based-standards] (PRIdLEAST32): Likewise.
13599         [C99-based-standards] (PRIiLEAST32): Likewise.
13600         [C99-based-standards] (PRIoLEAST32): Likewise.
13601         [C99-based-standards] (PRIuLEAST32): Likewise.
13602         [C99-based-standards] (PRIxLEAST32): Likewise.
13603         [C99-based-standards] (PRIXLEAST32): Likewise.
13604         [C99-based-standards] (SCNdLEAST32): Likewise.
13605         [C99-based-standards] (SCNiLEAST32): Likewise.
13606         [C99-based-standards] (SCNoLEAST32): Likewise.
13607         [C99-based-standards] (SCNuLEAST32): Likewise.
13608         [C99-based-standards] (SCNxLEAST32): Likewise.
13609         [C99-based-standards] (PRIdFAST32): Likewise.
13610         [C99-based-standards] (PRIiFAST32): Likewise.
13611         [C99-based-standards] (PRIoFAST32): Likewise.
13612         [C99-based-standards] (PRIuFAST32): Likewise.
13613         [C99-based-standards] (PRIxFAST32): Likewise.
13614         [C99-based-standards] (PRIXFAST32): Likewise.
13615         [C99-based-standards] (SCNdFAST32): Likewise.
13616         [C99-based-standards] (SCNiFAST32): Likewise.
13617         [C99-based-standards] (SCNoFAST32): Likewise.
13618         [C99-based-standards] (SCNuFAST32): Likewise.
13619         [C99-based-standards] (SCNxFAST32): Likewise.
13620         [C99-based-standards] (PRId64): Likewise.
13621         [C99-based-standards] (PRIi64): Likewise.
13622         [C99-based-standards] (PRIo64): Likewise.
13623         [C99-based-standards] (PRIu64): Likewise.
13624         [C99-based-standards] (PRIx64): Likewise.
13625         [C99-based-standards] (PRIX64): Likewise.
13626         [C99-based-standards] (SCNd64): Likewise.
13627         [C99-based-standards] (SCNi64): Likewise.
13628         [C99-based-standards] (SCNo64): Likewise.
13629         [C99-based-standards] (SCNu64): Likewise.
13630         [C99-based-standards] (SCNx64): Likewise.
13631         [C99-based-standards] (PRIdLEAST64): Likewise.
13632         [C99-based-standards] (PRIiLEAST64): Likewise.
13633         [C99-based-standards] (PRIoLEAST64): Likewise.
13634         [C99-based-standards] (PRIuLEAST64): Likewise.
13635         [C99-based-standards] (PRIxLEAST64): Likewise.
13636         [C99-based-standards] (PRIXLEAST64): Likewise.
13637         [C99-based-standards] (SCNdLEAST64): Likewise.
13638         [C99-based-standards] (SCNiLEAST64): Likewise.
13639         [C99-based-standards] (SCNoLEAST64): Likewise.
13640         [C99-based-standards] (SCNuLEAST64): Likewise.
13641         [C99-based-standards] (SCNxLEAST64): Likewise.
13642         [C99-based-standards] (PRIdFAST64): Likewise.
13643         [C99-based-standards] (PRIiFAST64): Likewise.
13644         [C99-based-standards] (PRIoFAST64): Likewise.
13645         [C99-based-standards] (PRIuFAST64): Likewise.
13646         [C99-based-standards] (PRIxFAST64): Likewise.
13647         [C99-based-standards] (PRIXFAST64): Likewise.
13648         [C99-based-standards] (SCNdFAST64): Likewise.
13649         [C99-based-standards] (SCNiFAST64): Likewise.
13650         [C99-based-standards] (SCNoFAST64): Likewise.
13651         [C99-based-standards] (SCNuFAST64): Likewise.
13652         [C99-based-standards] (SCNxFAST64): Likewise.
13653         [C99-based-standards] (PRIdMAX): Likewise.
13654         [C99-based-standards] (PRIiMAX): Likewise.
13655         [C99-based-standards] (PRIoMAX): Likewise.
13656         [C99-based-standards] (PRIuMAX): Likewise.
13657         [C99-based-standards] (PRIxMAX): Likewise.
13658         [C99-based-standards] (PRIXMAX): Likewise.
13659         [C99-based-standards] (SCNdMAX): Likewise.
13660         [C99-based-standards] (SCNiMAX): Likewise.
13661         [C99-based-standards] (SCNoMAX): Likewise.
13662         [C99-based-standards] (SCNuMAX): Likewise.
13663         [C99-based-standards] (SCNxMAX): Likewise.
13664         [C99-based-standards] (PRIdPTR): Likewise.
13665         [C99-based-standards] (PRIiPTR): Likewise.
13666         [C99-based-standards] (PRIoPTR): Likewise.
13667         [C99-based-standards] (PRIuPTR): Likewise.
13668         [C99-based-standards] (PRIxPTR): Likewise.
13669         [C99-based-standards] (PRIXPTR): Likewise.
13670         [C99-based-standards] (SCNdPTR): Likewise.
13671         [C99-based-standards] (SCNiPTR): Likewise.
13672         [C99-based-standards] (SCNoPTR): Likewise.
13673         [C99-based-standards] (SCNuPTR): Likewise.
13674         [C99-based-standards] (SCNxPTR): Likewise.
13675         * conform/data/iso646.h-data [ISO C standards] (*_t): Do not
13676         allow.
13677         * conform/data/stdint.h-data: Update comments to clarify
13678         requirements.
13679         [C99-based standards] (INT8_MIN): Use macro-int-constant.  Specify
13680         type.
13681         [C99-based standards] (INT8_MAX): Likewise.
13682         [C99-based standards] (INT16_MIN): Likewise.
13683         [C99-based standards] (INT16_MAX): Likewise.
13684         [C99-based standards] (INT32_MIN): Likewise.
13685         [C99-based standards] (INT32_MAX): Likewise.
13686         [C99-based standards] (INT64_MIN): Likewise.
13687         [C99-based standards] (INT64_MAX): Likewise.
13688         [C99-based standards] (UINT8_MAX): Likewise.
13689         [C99-based standards] (UINT16_MAX): Likewise.
13690         [C99-based standards] (UINT32_MAX): Likewise.
13691         [C99-based standards] (UINT64_MAX): Likewise.
13692         [C99-based standards] (INT_LEAST8_MIN): Likewise.
13693         [C99-based standards] (INT_LEAST8_MAX): Likewise.
13694         [C99-based standards] (INT_LEAST16_MIN): Likewise.
13695         [C99-based standards] (INT_LEAST16_MAX): Likewise.
13696         [C99-based standards] (INT_LEAST32_MIN): Likewise.
13697         [C99-based standards] (INT_LEAST32_MAX): Likewise.
13698         [C99-based standards] (INT_LEAST64_MIN): Likewise.
13699         [C99-based standards] (INT_LEAST64_MAX): Likewise.
13700         [C99-based standards] (UINT_LEAST8_MAX): Likewise.
13701         [C99-based standards] (UINT_LEAST16_MAX): Likewise.
13702         [C99-based standards] (UINT_LEAST32_MAX): Likewise.
13703         [C99-based standards] (UINT_LEAST64_MAX): Likewise.
13704         [C99-based standards] (INT_FAST8_MIN): Likewise.
13705         [C99-based standards] (INT_FAST8_MAX): Likewise.
13706         [C99-based standards] (INT_FAST16_MIN): Likewise.
13707         [C99-based standards] (INT_FAST16_MAX): Likewise.
13708         [C99-based standards] (INT_FAST32_MIN): Likewise.
13709         [C99-based standards] (INT_FAST32_MAX): Likewise.
13710         [C99-based standards] (INT_FAST64_MIN): Likewise.
13711         [C99-based standards] (INT_FAST64_MAX): Likewise.
13712         [C99-based standards] (UINT_FAST8_MAX): Likewise.
13713         [C99-based standards] (UINT_FAST16_MAX): Likewise.
13714         [C99-based standards] (UINT_FAST32_MAX): Likewise.
13715         [C99-based standards] (UINT_FAST64_MAX): Likewise.
13716         [C99-based standards] (INTPTR_MIN): Likewise.
13717         [C99-based standards] (INTPTR_MAX): Likewise.
13718         [C99-based standards] (UINTPTR_MAX): Likewise.
13719         [C99-based standards] (INTMAX_MIN): Likewise.
13720         [C99-based standards] (INTMAX_MAX): Likewise.
13721         [C99-based standards] (UINTMAX_MAX): Likewise.
13722         [C99-based standards] (PTRDIFF_MIN): Likewise.
13723         [C99-based standards] (PTRDIFF_MAX): Likewise.
13724         [C99-based standards] (SIG_ATOMIC_MAX): Likewise.
13725         [C99-based standards] (SIZE_MAX): Likewise.
13726         [C99-based standards] (WCHAR_MAX): Likewise.
13727         [C99-based standards] (WINT_MAX): Likewise.
13728         [C99-based standards] (SIG_ATOMIC_MIN): Likewise.  Do not specify
13729         constraint on value.
13730         [C99-based standards] (WCHAR_MIN): Likewise.
13731         [C99-based standards] (WINT_MIN): Likewise.
13732         [C99-based standards] (*_t): Allow.
13733         * conform/data/tgmath.h-data [XOPEN2K || POSIX2008]: Change
13734         condition to [!ISO && !POSIX && !XPG3 && !XPG4 && !UNIX98].
13735         Include math.h-data and complex.h-data.  Remove all expectations
13736         of math.h and complex.h contents.
13737         * conform/data/uchar.h-data [ISO11] (c16rtomb): Remove stray "16"
13738         at end of line.
13739         * conform/data/wchar.h-data [!ISO && !POSIX && !XPG3 && !XPG4]
13740         (struct tm): Expect tag.
13741         [C99-based-standards] (wcstof): Expect function.
13742         [C99-based-standards] (wcstold): Likewise.
13743         [C99-based-standards] (wcstoll): Likewise.
13744         [C99-based-standards] (wcstoull): Likewise.
13745         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MIN): Use
13746         macro-int-constant.  Specify type.
13747         [!ISO && !POSIX && !XPG3 && !XPG4] (WCHAR_MAX): Likewise.  Specify
13748         constraint on value.
13749         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
13750         Specify type.
13751         [!ISO && !POSIX && !XPG3 && !XPG4] (NULL): Use macro-constant.
13752         Specify value.
13753         [ISO C standards]: Do not allow headers.
13754         [!ISO && !POSIX && !XPG3 && !XPG4] (wcs*): Change to
13755         wcs[abcdefghijklmnopqrstuvwxyz]*.
13756         [ISO C standards] (*_t): Do not allow.
13757         * conform/data/wctype.h-data [C99-based standards] (iswblank):
13758         Expect function.
13759         [XOPEN2K8 || POSIX2008] (iswblank_l): Likewise.
13760         [!ISO && !POSIX && !XPG3 && !XPG4] (WEOF): Use macro-constant.
13761         Specify type.
13762         [ISO C standards]: Do not allow headers.
13763         [!ISO && !POSIX && !XPG3 && !XPG4] (is*): Change to
13764         is[abcdefghijklmnopqrstuvwxyz]*.
13765         [!ISO && !POSIX && !XPG3 && !XPG4] (to*): Change to
13766         to[abcdefghijklmnopqrstuvwxyz]*.
13767         [ISO C standards] (*_t): Do not allow.
13768         * conform/data/stdalign.h-data: New file.
13769         * conform/data/stdbool.h-data: Likewise.
13770         * conform/data/stdnoreturn.h-data: Likewise.
13771
13772 2012-11-07  Roland McGrath  <roland@hack.frob.com>
13773
13774         [BZ #14815]
13775         * manual/filesys.texi (Directory Entries): Typo fix.
13776         Reported by <h-iwamoto@kit.hi-ho.ne.jp>.
13777
13778 2012-11-07  Marcus Shawcroft  <marcus.shawcroft@linaro.org>
13779
13780         * elf/elf.h (EM_AARCH64): New macro.
13781         (R_AARCH64_NONE, R_AARCH64_ABS64, R_AARCH64_ABS32): Likewise.
13782         (R_AARCH64_COPY, R_AARCH64_GLOB_DAT, R_AARCH64_JUMP_SLOT): Likewise.
13783         (R_AARCH64_RELATIVE, R_AARCH64_TLS_DTPMOD64): Likewise.
13784         (R_AARCH64_TLS_DTPREL64, R_AARCH64_TLS_TPREL64): Likewise.
13785         (R_AARCH64_TLSDESC): Likewise.
13786         (NT_ARM_TLS): Likewise.
13787         (NT_ARM_HW_BREAK): Likewise.
13788         (NT_ARM_HW_WATCH): Likewise.
13789
13790 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
13791
13792         [BZ #14811]
13793         * sysdeps/i386/fpu/e_powl.S (pm79): New object.
13794         (__ieee754_powl): Saturate nonzero exponents with absolute value
13795         below 0x1p-79 to +/- 0x1p-79.
13796         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Saturate nonzero
13797         exponents with absolute value below 0x1p-64 to +/- 0x1p-64.
13798         * sysdeps/ieee754/flt-32/e_powf.c (__ieee754_powf): Saturate
13799         nonzero exponents with absolute value below 0x1p-32 to +/-
13800         0x1p-32.
13801         * sysdeps/x86_64/fpu/e_powl.S (pm79): New object.
13802         (__ieee754_powl): Saturate nonzero exponents with absolute value
13803         below 0x1p-79 to +/- 0x1p-79.
13804         * math/libm-test.inc (pow_test): Add more tests.
13805
13806 2012-11-07  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13807
13808         * sysdeps/s390/dl-procinfo.c (_dl_s390_cap_flags): Sync
13809         _dl_s390_cap_flags with kernel. Increase string length.
13810         (_dl_s390_platforms): Add z196 and zEC12.
13811
13812 2012-11-07  Joseph Myers  <joseph@codesourcery.com>
13813
13814         * conform/data/time.h-data [!XOPEN21K && !XOPEN2K8 && !POSIX2008]:
13815         Change XOPEN21K to XOPEN2K.
13816
13817 2012-11-06  Maxim Kuvyrkov  <maxim@codesourcery.com>
13818
13819         * string/memmove.c: Use memcpy when possible.
13820
13821 2012-11-06  Andreas Jaeger  <aj@suse.de>
13822
13823         * po/eo.po: Update from translation team.
13824
13825 2012-11-06  Joseph Myers  <joseph@codesourcery.com>
13826
13827         [BZ #14793]
13828         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): In case of large z
13829         exponent and small x and y exponents, scale x or y up.  Increase
13830         by 2 the exponent used in scaling up.
13831         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13832         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13833         * math/libm-test.inc (fma_test): Add more tests.
13834         (fma_test_towardzero): Likewise.
13835         (fma_test_downward): Likewise.
13836         (fma_test_upward): Likewise.
13837
13838 2012-11-05  Joseph Myers  <joseph@codesourcery.com>
13839
13840         [BZ #14805]
13841         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_DFL_ENV): Use cast to const
13842         fenv_t *.
13843
13844         [BZ #14801]
13845         * sysdeps/s390/fpu/bits/fenv.h (fenv_t): Use implementation
13846         namespace for names of struct fields.
13847         * sysdeps/s390/fpu/fegetenv.c (fegetenv): Update references to
13848         fenv_t fields.
13849         * sysdeps/s390/fpu/feholdexcpt.c (feholdexcept): Likewise.
13850         * sysdeps/s390/fpu/fesetenv.c (fesetenv): Likewise.
13851
13852 2012-11-04  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13853
13854         [BZ #3665]
13855         * sysdeps/mach/hurd/bits/errno.h: Regenerated.
13856
13857 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
13858
13859         * csu/libc-start.c (LIBC_START_MAIN): Conditionalize use of
13860         PTR_DEMANGLE.
13861
13862         [BZ #5246]
13863         * sysdeps/mach/hurd/i386/____longjmp_chk.S: Conditionalize use of
13864         PTR_DEMANGLE.
13865
13866 2012-11-04  Joseph Myers  <joseph@codesourcery.com>
13867
13868         [BZ #14797]
13869         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute cases that
13870         definitely overflow as x * y not x * y + z.
13871         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
13872         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
13873         * math/libm-test.inc (fma_test): Add more tests.
13874         (fma_test_towardzero): Likewise.
13875         (fma_test_downward): Likewise.
13876         (fma_test_upward): Likewise.
13877
13878 2012-11-04  Thomas Schwinge  <thomas@codesourcery.com>
13879
13880         [BZ #157]
13881
13882         * include/stub-tag.h: Remove file.
13883         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Don't emit
13884         '#include' of it.
13885         * manual/maint.texi (Porting): Don't reference it.
13886         * Makerules ($(objpfx)stubs): Likewise.
13887         * dirent/closedir.c: Don't include <stub-tag.h>.
13888         * dirent/dirfd.c: Likewise.
13889         * dirent/fdopendir.c: Likewise.
13890         * dirent/getdents.c: Likewise.
13891         * dirent/getdents64.c: Likewise.
13892         * dirent/opendir.c: Likewise.
13893         * dirent/readdir.c: Likewise.
13894         * dirent/readdir64.c: Likewise.
13895         * dirent/readdir64_r.c: Likewise.
13896         * dirent/readdir_r.c: Likewise.
13897         * dirent/rewinddir.c: Likewise.
13898         * dirent/seekdir.c: Likewise.
13899         * dirent/telldir.c: Likewise.
13900         * gmon/profil.c: Likewise.
13901         * grp/setgroups.c: Likewise.
13902         * inet/if_index.c: Likewise.
13903         * io/access.c: Likewise.
13904         * io/chdir.c: Likewise.
13905         * io/chmod.c: Likewise.
13906         * io/chown.c: Likewise.
13907         * io/close.c: Likewise.
13908         * io/dup.c: Likewise.
13909         * io/dup2.c: Likewise.
13910         * io/dup3.c: Likewise.
13911         * io/euidaccess.c: Likewise.
13912         * io/faccessat.c: Likewise.
13913         * io/fchdir.c: Likewise.
13914         * io/fchmod.c: Likewise.
13915         * io/fchmodat.c: Likewise.
13916         * io/fchown.c: Likewise.
13917         * io/fchownat.c: Likewise.
13918         * io/fcntl.c: Likewise.
13919         * io/flock.c: Likewise.
13920         * io/fstatfs.c: Likewise.
13921         * io/fstatfs64.c: Likewise.
13922         * io/fstatvfs.c: Likewise.
13923         * io/fstatvfs64.c: Likewise.
13924         * io/futimens.c: Likewise.
13925         * io/fxstat.c: Likewise.
13926         * io/fxstat64.c: Likewise.
13927         * io/fxstatat.c: Likewise.
13928         * io/fxstatat64.c: Likewise.
13929         * io/getcwd.c: Likewise.
13930         * io/isatty.c: Likewise.
13931         * io/lchmod.c: Likewise.
13932         * io/lchown.c: Likewise.
13933         * io/link.c: Likewise.
13934         * io/linkat.c: Likewise.
13935         * io/lseek.c: Likewise.
13936         * io/lseek64.c: Likewise.
13937         * io/lxstat64.c: Likewise.
13938         * io/mkdir.c: Likewise.
13939         * io/mkdirat.c: Likewise.
13940         * io/mkfifo.c: Likewise.
13941         * io/mkfifoat.c: Likewise.
13942         * io/open.c: Likewise.
13943         * io/open64.c: Likewise.
13944         * io/openat.c: Likewise.
13945         * io/openat64.c: Likewise.
13946         * io/pipe.c: Likewise.
13947         * io/pipe2.c: Likewise.
13948         * io/poll.c: Likewise.
13949         * io/posix_fadvise.c: Likewise.
13950         * io/posix_fadvise64.c: Likewise.
13951         * io/posix_fallocate.c: Likewise.
13952         * io/posix_fallocate64.c: Likewise.
13953         * io/read.c: Likewise.
13954         * io/readlink.c: Likewise.
13955         * io/readlinkat.c: Likewise.
13956         * io/rmdir.c: Likewise.
13957         * io/sendfile.c: Likewise.
13958         * io/sendfile64.c: Likewise.
13959         * io/statfs.c: Likewise.
13960         * io/statfs64.c: Likewise.
13961         * io/statvfs.c: Likewise.
13962         * io/statvfs64.c: Likewise.
13963         * io/symlink.c: Likewise.
13964         * io/symlinkat.c: Likewise.
13965         * io/ttyname.c: Likewise.
13966         * io/ttyname_r.c: Likewise.
13967         * io/umask.c: Likewise.
13968         * io/unlink.c: Likewise.
13969         * io/unlinkat.c: Likewise.
13970         * io/utime.c: Likewise.
13971         * io/utimensat.c: Likewise.
13972         * io/write.c: Likewise.
13973         * io/xmknod.c: Likewise.
13974         * io/xmknodat.c: Likewise.
13975         * io/xstat.c: Likewise.
13976         * io/xstat64.c: Likewise.
13977         * login/getpt.c: Likewise.
13978         * login/grantpt.c: Likewise.
13979         * login/unlockpt.c: Likewise.
13980         * math/e_acoshl.c: Likewise.
13981         * math/e_acosl.c: Likewise.
13982         * math/e_asinl.c: Likewise.
13983         * math/e_atan2l.c: Likewise.
13984         * math/e_atanhl.c: Likewise.
13985         * math/e_coshl.c: Likewise.
13986         * math/e_expl.c: Likewise.
13987         * math/e_fmodl.c: Likewise.
13988         * math/e_gammal_r.c: Likewise.
13989         * math/e_hypotl.c: Likewise.
13990         * math/e_j0l.c: Likewise.
13991         * math/e_j1l.c: Likewise.
13992         * math/e_jnl.c: Likewise.
13993         * math/e_lgammal_r.c: Likewise.
13994         * math/e_log10l.c: Likewise.
13995         * math/e_log2l.c: Likewise.
13996         * math/e_logl.c: Likewise.
13997         * math/e_powl.c: Likewise.
13998         * math/e_rem_pio2l.c: Likewise.
13999         * math/e_sinhl.c: Likewise.
14000         * math/e_sqrtl.c: Likewise.
14001         * math/fclrexcpt.c: Likewise.
14002         * math/fedisblxcpt.c: Likewise.
14003         * math/feenablxcpt.c: Likewise.
14004         * math/fegetenv.c: Likewise.
14005         * math/fegetexcept.c: Likewise.
14006         * math/fegetround.c: Likewise.
14007         * math/feholdexcpt.c: Likewise.
14008         * math/fesetenv.c: Likewise.
14009         * math/fesetround.c: Likewise.
14010         * math/feupdateenv.c: Likewise.
14011         * math/fgetexcptflg.c: Likewise.
14012         * math/fraiseexcpt.c: Likewise.
14013         * math/fsetexcptflg.c: Likewise.
14014         * math/ftestexcept.c: Likewise.
14015         * math/k_cosl.c: Likewise.
14016         * math/k_rem_pio2l.c: Likewise.
14017         * math/k_sinl.c: Likewise.
14018         * math/k_tanl.c: Likewise.
14019         * math/s_asinhl.c: Likewise.
14020         * math/s_atanl.c: Likewise.
14021         * math/s_cbrtl.c: Likewise.
14022         * math/s_erfl.c: Likewise.
14023         * math/s_expm1l.c: Likewise.
14024         * math/s_log1pl.c: Likewise.
14025         * math/s_tanhl.c: Likewise.
14026         * misc/acct.c: Likewise.
14027         * misc/brk.c: Likewise.
14028         * misc/chflags.c: Likewise.
14029         * misc/chroot.c: Likewise.
14030         * misc/fchflags.c: Likewise.
14031         * misc/fgetxattr.c: Likewise.
14032         * misc/flistxattr.c: Likewise.
14033         * misc/fremovexattr.c: Likewise.
14034         * misc/fsetxattr.c: Likewise.
14035         * misc/fsync.c: Likewise.
14036         * misc/ftruncate.c: Likewise.
14037         * misc/futimes.c: Likewise.
14038         * misc/futimesat.c: Likewise.
14039         * misc/getdomain.c: Likewise.
14040         * misc/getdtsz.c: Likewise.
14041         * misc/gethostid.c: Likewise.
14042         * misc/gethostname.c: Likewise.
14043         * misc/getloadavg.c: Likewise.
14044         * misc/getpagesize.c: Likewise.
14045         * misc/getsysstats.c: Likewise.
14046         * misc/getxattr.c: Likewise.
14047         * misc/gtty.c: Likewise.
14048         * misc/ioctl.c: Likewise.
14049         * misc/lgetxattr.c: Likewise.
14050         * misc/listxattr.c: Likewise.
14051         * misc/llistxattr.c: Likewise.
14052         * misc/lremovexattr.c: Likewise.
14053         * misc/lsetxattr.c: Likewise.
14054         * misc/lutimes.c: Likewise.
14055         * misc/madvise.c: Likewise.
14056         * misc/mincore.c: Likewise.
14057         * misc/mlock.c: Likewise.
14058         * misc/mlockall.c: Likewise.
14059         * misc/mmap.c: Likewise.
14060         * misc/mprotect.c: Likewise.
14061         * misc/msync.c: Likewise.
14062         * misc/munlock.c: Likewise.
14063         * misc/munlockall.c: Likewise.
14064         * misc/munmap.c: Likewise.
14065         * misc/preadv.c: Likewise.
14066         * misc/preadv64.c: Likewise.
14067         * misc/ptrace.c: Likewise.
14068         * misc/pwritev.c: Likewise.
14069         * misc/pwritev64.c: Likewise.
14070         * misc/readv.c: Likewise.
14071         * misc/reboot.c: Likewise.
14072         * misc/remap_file_pages.c: Likewise.
14073         * misc/removexattr.c: Likewise.
14074         * misc/revoke.c: Likewise.
14075         * misc/select.c: Likewise.
14076         * misc/setdomain.c: Likewise.
14077         * misc/setegid.c: Likewise.
14078         * misc/seteuid.c: Likewise.
14079         * misc/sethostid.c: Likewise.
14080         * misc/sethostname.c: Likewise.
14081         * misc/setregid.c: Likewise.
14082         * misc/setreuid.c: Likewise.
14083         * misc/setxattr.c: Likewise.
14084         * misc/sstk.c: Likewise.
14085         * misc/stty.c: Likewise.
14086         * misc/swapoff.c: Likewise.
14087         * misc/swapon.c: Likewise.
14088         * misc/sync.c: Likewise.
14089         * misc/syncfs.c: Likewise.
14090         * misc/syscall.c: Likewise.
14091         * misc/truncate.c: Likewise.
14092         * misc/ualarm.c: Likewise.
14093         * misc/usleep.c: Likewise.
14094         * misc/ustat.c: Likewise.
14095         * misc/utimes.c: Likewise.
14096         * misc/vhangup.c: Likewise.
14097         * misc/writev.c: Likewise.
14098         * posix/_exit.c: Likewise.
14099         * posix/alarm.c: Likewise.
14100         * posix/execve.c: Likewise.
14101         * posix/fexecve.c: Likewise.
14102         * posix/fork.c: Likewise.
14103         * posix/fpathconf.c: Likewise.
14104         * posix/getaddrinfo.c: Likewise.
14105         * posix/getegid.c: Likewise.
14106         * posix/geteuid.c: Likewise.
14107         * posix/getgid.c: Likewise.
14108         * posix/getgroups.c: Likewise.
14109         * posix/getlogin.c: Likewise.
14110         * posix/getlogin_r.c: Likewise.
14111         * posix/getpgid.c: Likewise.
14112         * posix/getpid.c: Likewise.
14113         * posix/getppid.c: Likewise.
14114         * posix/getresgid.c: Likewise.
14115         * posix/getresuid.c: Likewise.
14116         * posix/getsid.c: Likewise.
14117         * posix/getuid.c: Likewise.
14118         * posix/glob64.c: Likewise.
14119         * posix/nanosleep.c: Likewise.
14120         * posix/pathconf.c: Likewise.
14121         * posix/pause.c: Likewise.
14122         * posix/posix_madvise.c: Likewise.
14123         * posix/pread.c: Likewise.
14124         * posix/pread64.c: Likewise.
14125         * posix/pwrite.c: Likewise.
14126         * posix/pwrite64.c: Likewise.
14127         * posix/sched_getaffinity.c: Likewise.
14128         * posix/sched_getp.c: Likewise.
14129         * posix/sched_gets.c: Likewise.
14130         * posix/sched_primax.c: Likewise.
14131         * posix/sched_primin.c: Likewise.
14132         * posix/sched_rr_gi.c: Likewise.
14133         * posix/sched_setaffinity.c: Likewise.
14134         * posix/sched_setp.c: Likewise.
14135         * posix/sched_sets.c: Likewise.
14136         * posix/sched_yield.c: Likewise.
14137         * posix/setgid.c: Likewise.
14138         * posix/setlogin.c: Likewise.
14139         * posix/setpgid.c: Likewise.
14140         * posix/setresgid.c: Likewise.
14141         * posix/setresuid.c: Likewise.
14142         * posix/setsid.c: Likewise.
14143         * posix/setuid.c: Likewise.
14144         * posix/sleep.c: Likewise.
14145         * posix/spawni.c: Likewise.
14146         * posix/sysconf.c: Likewise.
14147         * posix/times.c: Likewise.
14148         * posix/wait.c: Likewise.
14149         * posix/wait3.c: Likewise.
14150         * posix/wait4.c: Likewise.
14151         * posix/waitpid.c: Likewise.
14152         * resolv/gai_sigqueue.c: Likewise.
14153         * resource/getpriority.c: Likewise.
14154         * resource/getrlimit.c: Likewise.
14155         * resource/getrusage.c: Likewise.
14156         * resource/nice.c: Likewise.
14157         * resource/setpriority.c: Likewise.
14158         * resource/setrlimit.c: Likewise.
14159         * resource/ulimit.c: Likewise.
14160         * rt/aio_cancel.c: Likewise.
14161         * rt/aio_fsync.c: Likewise.
14162         * rt/aio_read.c: Likewise.
14163         * rt/aio_sigqueue.c: Likewise.
14164         * rt/aio_suspend.c: Likewise.
14165         * rt/aio_write.c: Likewise.
14166         * rt/clock_getres.c: Likewise.
14167         * rt/clock_gettime.c: Likewise.
14168         * rt/clock_nanosleep.c: Likewise.
14169         * rt/clock_settime.c: Likewise.
14170         * rt/lio_listio.c: Likewise.
14171         * rt/mq_close.c: Likewise.
14172         * rt/mq_getattr.c: Likewise.
14173         * rt/mq_notify.c: Likewise.
14174         * rt/mq_open.c: Likewise.
14175         * rt/mq_receive.c: Likewise.
14176         * rt/mq_send.c: Likewise.
14177         * rt/mq_setattr.c: Likewise.
14178         * rt/mq_timedreceive.c: Likewise.
14179         * rt/mq_timedsend.c: Likewise.
14180         * rt/mq_unlink.c: Likewise.
14181         * rt/shm_open.c: Likewise.
14182         * rt/shm_unlink.c: Likewise.
14183         * rt/timer_create.c: Likewise.
14184         * rt/timer_delete.c: Likewise.
14185         * rt/timer_getoverr.c: Likewise.
14186         * rt/timer_gettime.c: Likewise.
14187         * rt/timer_settime.c: Likewise.
14188         * setjmp/__longjmp.c: Likewise.
14189         * setjmp/setjmp.c: Likewise.
14190         * signal/kill.c: Likewise.
14191         * signal/killpg.c: Likewise.
14192         * signal/raise.c: Likewise.
14193         * signal/sigaction.c: Likewise.
14194         * signal/sigaltstack.c: Likewise.
14195         * signal/sigblock.c: Likewise.
14196         * signal/sigignore.c: Likewise.
14197         * signal/sigintr.c: Likewise.
14198         * signal/signal.c: Likewise.
14199         * signal/sigpause.c: Likewise.
14200         * signal/sigpending.c: Likewise.
14201         * signal/sigqueue.c: Likewise.
14202         * signal/sigreturn.c: Likewise.
14203         * signal/sigset.c: Likewise.
14204         * signal/sigsetmask.c: Likewise.
14205         * signal/sigstack.c: Likewise.
14206         * signal/sigsuspend.c: Likewise.
14207         * signal/sigtimedwait.c: Likewise.
14208         * signal/sigvec.c: Likewise.
14209         * signal/sigwait.c: Likewise.
14210         * signal/sigwaitinfo.c: Likewise.
14211         * signal/sysv_signal.c: Likewise.
14212         * socket/accept.c: Likewise.
14213         * socket/accept4.c: Likewise.
14214         * socket/bind.c: Likewise.
14215         * socket/connect.c: Likewise.
14216         * socket/getpeername.c: Likewise.
14217         * socket/getsockname.c: Likewise.
14218         * socket/getsockopt.c: Likewise.
14219         * socket/isfdtype.c: Likewise.
14220         * socket/listen.c: Likewise.
14221         * socket/recv.c: Likewise.
14222         * socket/recvfrom.c: Likewise.
14223         * socket/recvmsg.c: Likewise.
14224         * socket/send.c: Likewise.
14225         * socket/sendmsg.c: Likewise.
14226         * socket/sendto.c: Likewise.
14227         * socket/setsockopt.c: Likewise.
14228         * socket/shutdown.c: Likewise.
14229         * socket/sockatmark.c: Likewise.
14230         * socket/socket.c: Likewise.
14231         * socket/socketpair.c: Likewise.
14232         * stdio-common/ctermid.c: Likewise.
14233         * stdio-common/cuserid.c: Likewise.
14234         * stdio-common/remove.c: Likewise.
14235         * stdio-common/rename.c: Likewise.
14236         * stdio-common/renameat.c: Likewise.
14237         * stdio-common/tempname.c: Likewise.
14238         * stdlib/getcontext.c: Likewise.
14239         * stdlib/makecontext.c: Likewise.
14240         * stdlib/setcontext.c: Likewise.
14241         * stdlib/swapcontext.c: Likewise.
14242         * stdlib/system.c: Likewise.
14243         * streams/fattach.c: Likewise.
14244         * streams/fdetach.c: Likewise.
14245         * streams/getmsg.c: Likewise.
14246         * streams/getpmsg.c: Likewise.
14247         * streams/putmsg.c: Likewise.
14248         * streams/putpmsg.c: Likewise.
14249         * sysdeps/unix/bsd/getpt.c: Likewise.
14250         * sysdeps/unix/sysv/linux/epoll_pwait.c: Likewise.
14251         * sysdeps/unix/sysv/linux/futimens.c: Likewise.
14252         * sysdeps/unix/sysv/linux/lutimes.c: Likewise.
14253         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
14254         Likewise.
14255         * sysdeps/unix/sysv/linux/readahead.c: Likewise.
14256         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
14257         * sysdeps/unix/sysv/linux/utimensat.c: Likewise.
14258         * sysvipc/msgctl.c: Likewise.
14259         * sysvipc/msgget.c: Likewise.
14260         * sysvipc/msgrcv.c: Likewise.
14261         * sysvipc/msgsnd.c: Likewise.
14262         * sysvipc/semctl.c: Likewise.
14263         * sysvipc/semget.c: Likewise.
14264         * sysvipc/semop.c: Likewise.
14265         * sysvipc/semtimedop.c: Likewise.
14266         * sysvipc/shmat.c: Likewise.
14267         * sysvipc/shmctl.c: Likewise.
14268         * sysvipc/shmdt.c: Likewise.
14269         * sysvipc/shmget.c: Likewise.
14270         * termios/tcdrain.c: Likewise.
14271         * termios/tcflow.c: Likewise.
14272         * termios/tcflush.c: Likewise.
14273         * termios/tcgetattr.c: Likewise.
14274         * termios/tcgetpgrp.c: Likewise.
14275         * termios/tcsendbrk.c: Likewise.
14276         * termios/tcsetattr.c: Likewise.
14277         * termios/tcsetpgrp.c: Likewise.
14278         * time/adjtime.c: Likewise.
14279         * time/clock.c: Likewise.
14280         * time/getitimer.c: Likewise.
14281         * time/gettimeofday.c: Likewise.
14282         * time/setitimer.c: Likewise.
14283         * time/settimeofday.c: Likewise.
14284         * time/stime.c: Likewise.
14285         * time/time.c: Likewise.
14286
14287 2012-11-04  Pino Toscano  <toscano.pino@tiscali.it>
14288
14289         * sysdeps/generic/paths.h (_PATH_STDPATH): Remove /usr/contrib/bin and
14290         /usr/old/bin.
14291
14292         * sysdeps/generic/paths.h (_PATH_MNTTAB, _PATH_MOUNTED): Use tabs
14293         instead of spaces.
14294         * sysdeps/unix/sysv/linux/paths.h (_PATH_UTMP, _PATH_WTMP): Likewise.
14295
14296 2012-11-03  Joseph Myers  <joseph@codesourcery.com>
14297
14298         [BZ #14796]
14299         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Set rounding mode to
14300         FE_TONEAREST before applying Dekker multiplication and Knuth
14301         addition.  Clear inexact exceptions and check for exact zero
14302         results afterwards.
14303         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
14304         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
14305         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14306         * math/libm-test.inc (fma_test): Add more tests.
14307         (fma_test_towardzero): Likewise.
14308         (fma_test_downward): Likewise.
14309         (fma_test_upward): Likewise.
14310         * sysdeps/generic/math_private.h (default_libc_fesetround): New
14311         function.
14312         (libc_fesetround): New macro.
14313         (libc_fesetroundf): Likewise.
14314         (libc_fesetroundl): Likewise.
14315         * sysdeps/i386/fpu/fenv_private.h (libc_fesetround_sse): New
14316         function.
14317         (libc_fesetround_387): Likewise.
14318         (libc_fesetroundf): New macro.
14319         (libc_fesetround): Likewise.
14320         (libc_fesetroundl): Likewise.
14321         * sysdeps/sparc/fpu/fenv_private.h (libc_fesetround): New
14322         function.
14323         (libc_fesetroundf): New macro.
14324         (libc_fesetround): Likewise.
14325         (libc_fesetroundl): Likewise.
14326         * include/fenv.h (feclearexcept): Add libm_hidden_proto.
14327         * math/fclrexcpt.c (feclearexcept): Add libm_hidden_ver.
14328         * sysdeps/i386/fpu/fclrexcpt.c (feclearexcept): Add
14329         libm_hidden_ver.
14330         * sysdeps/powerpc/fpu/fclrexcpt.c (feclearexcept): Likewise.
14331         * sysdeps/s390/fpu/fclrexcpt.c (feclearexcept): Add
14332         libm_hidden_def.
14333         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Likewise.
14334         * sysdeps/sparc/fpu/fclrexcpt.c (feclearexcept): Add
14335         libm_hidden_ver.
14336         * sysdeps/x86_64/fpu/fclrexcpt.c (feclearexcept): Add
14337         libm_hidden_def.
14338
14339         [BZ #3439]
14340         * sysdeps/powerpc/bits/fenv.h (FE_INEXACT): Define macro to
14341         integer constant usable in #if and use that to give value to enum
14342         constant.
14343         (FE_DIVBYZERO): Likewise.
14344         (FE_UNDERFLOW): Likewise.
14345         (FE_OVERFLOW): Likewise.
14346         (FE_INVALID): Likewise.
14347         (FE_INVALID_SNAN): Likewise.
14348         (FE_INVALID_ISI): Likewise.
14349         (FE_INVALID_IDI): Likewise.
14350         (FE_INVALID_ZDZ): Likewise.
14351         (FE_INVALID_IMZ): Likewise.
14352         (FE_INVALID_COMPARE): Likewise.
14353         (FE_INVALID_SOFTWARE): Likewise.
14354         (FE_INVALID_SQRT): Likewise.
14355         (FE_INVALID_INTEGER_CONVERSION): Likewise.
14356         (FE_TONEAREST): Likewise.
14357         (FE_TOWARDZERO): Likewise.
14358         (FE_UPWARD): Likewise.
14359         (FE_DOWNWARD): Likewise.
14360         * sysdeps/s390/fpu/bits/fenv.h (FE_INVALID): Likewise.
14361         (FE_DIVBYZERO): Likewise.
14362         (FE_OVERFLOW): Likewise.
14363         (FE_UNDERFLOW): Likewise.
14364         (FE_INEXACT): Likewise.
14365         (FE_TONEAREST): Likewise.
14366         (FE_DOWNWARD): Likewise.
14367         (FE_UPWARD): Likewise.
14368         (FE_TOWARDZERO): Likewise.
14369         * sysdeps/sh/sh4/fpu/bits/fenv.h (FE_INEXACT): Likewise.
14370         (FE_UNDERFLOW): Likewise.
14371         (FE_OVERFLOW): Likewise.
14372         (FE_DIVBYZERO): Likewise.
14373         (FE_INVALID): Likewise.
14374         (FE_TONEAREST): Likewise.
14375         (FE_TOWARDZERO): Likewise.
14376         * sysdeps/sparc/fpu/bits/fenv.h (FE_INVALID): Likewise.
14377         (FE_OVERFLOW): Likewise.
14378         (FE_UNDERFLOW): Likewise.
14379         (FE_DIVBYZERO): Likewise.
14380         (FE_INEXACT): Likewise.
14381         (FE_TONEAREST): Likewise.
14382         (FE_TOWARDZERO): Likewise.
14383         (FE_UPWARD): Likewise.
14384         (FE_DOWNWARD): Likewise.
14385         * sysdeps/x86/fpu/bits/fenv.h (FE_INVALID): Likewise.
14386         (FE_DIVBYZERO): Likewise.
14387         (FE_OVERFLOW): Likewise.
14388         (FE_UNDERFLOW): Likewise.
14389         (FE_INEXACT): Likewise.
14390         (FE_TONEAREST): Likewise.
14391         (FE_DOWNWARD): Likewise.
14392         (FE_UPWARD): Likewise.
14393         (FE_TOWARDZERO): Likewise.
14394
14395 2012-11-02  Chris Metcalf  <cmetcalf@tilera.com>
14396
14397         * elf/elf.h (R_TILEGX_IMM16_X[01]_HW[012]_(|LAST_)PLT_PCREL): Add.
14398
14399 2012-11-03  Andreas Schwab  <schwab@linux-m68k.org>
14400
14401         * scripts/cross-test-ssh.sh (command): Use newlines to separate
14402         commands.  Quote $PWD.
14403         (blacklist_exports): Don't use remove_newlines.  Replace "declare
14404         -x" by "export".
14405         (remove_newlines): Remove.
14406
14407 2012-11-02  H.J. Lu  <hongjiu.lu@intel.com>
14408
14409         * stdlib/Makefile (headers): Add bits/stdlib-float.h.
14410         * stdlib/stdlib.h (atof): Moved to ...
14411         * include/bits/stdlib-float.h: Here.  New file.
14412         * stdlib/stdlib.h: Include <bits/stdlib-float.h>.
14413         * stdlib/bits/stdlib-float.h: New file.
14414         * sysdeps/x86/Makefile (CFLAGS-.os): Compile rtld routines with
14415         -mno-sse -mno-mmx.
14416         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: Include
14417         <xmmintrin.h>.
14418
14419 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
14420
14421         * conform/conformtest.pl (@headers): Add fenv.h.
14422         * conform/data/fenv.h-data: New file.
14423         * include/fenv.h [_ISOMAC]: Disable all contents of file except
14424         include of <math/fenv.h>.
14425
14426         * conform/data/complex.h-data [ISO99 || ISO11 || XOPEN2K ||
14427         POSIX2008]: Change condition to [!ISO && !POSIX && !XPG3 && !XPG4
14428         && !UNIX98].  Enables tests for XOPEN2K8.
14429         * conform/data/inttypes.h-data [ISO99 || ISO11 || XOPEN2K ||
14430         POSIX2008]: Likewise.
14431
14432         * conform/data/sys/wait.h-data [XPG3 || XOPEN2K8 || POSIX2008]
14433         (struct rusage): Do not expect type or its members.
14434
14435         [BZ #3439]
14436         * math/math.h (FP_NAN): Define macro to integer constant usable in
14437         #if and use that to give value to enum constant.
14438         (FP_INFINITE): Likewise.
14439         (FP_ZERO): Likewise.
14440         (FP_SUBNORMAL): Likewise.
14441         (FP_NORMAL): Likewise.
14442
14443 2012-11-02  Andreas Schwab  <schwab@linux-m68k.org>
14444
14445         * iconvdata/bug-iconv8.c (do_test): Use %z for size_t arguments.
14446         * iconvdata/bug-iconv9.c (do_test): Use %t for ptrdiff_t
14447         arguments.
14448
14449 2012-11-02  Roland McGrath  <roland@hack.frob.com>
14450
14451         * aclocal.m4 (GLIBC_AUTOCONF_VERSION): New macro.
14452         Check that AC_AUTOCONF_VERSION matches it and m4_fatal at
14453         autoconf-time if not.
14454         * configure.in: Remove AC_PREREQ.
14455
14456 2012-11-02  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14457
14458         * sysdeps/powerpc/sys/platform/ppc.h (__ppc_get_timebase): Use
14459         __builtin_ppc_get_timebase when building with GCC >= 4.8 instead
14460         of the internal implementation.
14461
14462 2012-11-02  Joseph Myers  <joseph@codesourcery.com>
14463
14464         * include/sys/syslog.h [_ISOMAC]: Disable all contents of file
14465         except include of <misc/sys/syslog.h>.
14466
14467 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14468
14469         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S: If the
14470         function returns with a NULL context exit with zero.
14471
14472 2012-11-01  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14473
14474         * sysdeps/powerpc/Makefile (cflags): Remove -mnew-mnemonics.
14475
14476 2012-11-01  H.J. Lu  <hongjiu.lu@intel.com>
14477
14478         * catgets/test-gencat.sh (run_program_prefix): Renamed to ...
14479         (run_program_cmd): This.
14480         * localedata/tst-langinfo.sh (run_program_prefix): Removed.
14481         (tst_langinfo): New variable.  Use it.
14482
14483 2012-11-01  Sebastan Andrzej Siewior  <bigeasy@linutronix.de>
14484
14485         * sysdeps/powerpc/powerpc32/dl-trampoline.S: Put __NO_FPRS__ around
14486         floating point opcodes.
14487
14488 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
14489
14490         * sysdeps/mach/hurd/Makefile (link-libc-static-tests): New
14491         variable.
14492
14493         * elf/dl-support.c: Unconditionally include "setup-vdso.h".
14494
14495         * sysdeps/mach/hurd/powerpc: Remove directory.
14496         * sysdeps/mach/powerpc: Likewise.
14497
14498 2012-11-01  Andreas Schwab  <schwab@linux-m68k.org>
14499
14500         * scripts/check-local-headers.sh: Ignore c++ headers.
14501
14502 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
14503
14504         * libio/genops.c (_IO_flush_all_lockp): Use NULL rather than 0 for
14505         __libc_cleanup_region_start argument.
14506
14507 2012-11-01  Joseph Myers  <joseph@codesourcery.com>
14508
14509         [BZ #14784]
14510         [BZ #14785]
14511         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle cases with small
14512         x * y using scaling, not as x * y + z.
14513         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
14514         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14515         * math/libm-test.inc (fma_test): Add more tests.
14516         (fma_test_towardzero): Likewise.
14517         (fma_test_downward): Likewise.
14518         (fma_test_upward): Likewise.
14519
14520 2012-11-01  Thomas Schwinge  <thomas@codesourcery.com>
14521
14522         * sysdeps/mach/hurd/bits/param.h: Remove stray #endif.
14523
14524 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
14525
14526         * sysdeps/sh/Makefile [$(subdir) = debug] (CFLAGS-backtrace.c):
14527         New variable.
14528
14529 2012-10-31  Thomas Schwinge  <thomas@codesourcery.com>
14530
14531         * rt/tst-shm.c (worker): Correct checking for mmap failure.
14532
14533 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
14534
14535         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14536         Fix sort order.
14537         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
14538         Likewise.
14539
14540 2012-10-31  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
14541
14542         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14543         Fix the order of the list for glibc 2.17.
14544         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
14545         Likewise.
14546
14547 2012-10-31  Andreas Schwab  <schwab@linux-m68k.org>
14548
14549         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
14550
14551 2012-10-31  Joseph Myers  <joseph@codesourcery.com>
14552
14553         [BZ #14610]
14554         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c (__ieee754_atan2l): Check
14555         for low part of x being zero before using __atanl (y).
14556         * math/libm-test.inc (atan2_test): Add another test.
14557
14558         * manual/install.texi (Configuring and compiling): Document
14559         general use of test-wrapper and test-wrapper-env.
14560         * INSTALL: Regenerated.
14561
14562         * sysdeps/ieee754/dbl-64/s_fma.c: Include <tininess.h>.
14563         (__fma): Do not extract and scale down low bits on after-rounding
14564         systems when result rounded to normal precision would have normal
14565         exponent.
14566         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <tininess.h>.
14567         (__fmal): Do not extract and scale down low bits on after-rounding
14568         systems when result rounded to normal precision would have normal
14569         exponent.
14570         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <tininess.h>.
14571         (__fmal): Do not extract and scale down low bits on after-rounding
14572         systems when result rounded to normal precision would have normal
14573         exponent.
14574         * math/libm-test.inc (UNDERFLOW_EXCEPTION_BEFORE_ROUNDING): New
14575         macro.
14576         (fma_test): Add more tests.
14577         (fma_test_towardzero): Likewise.
14578         (fma_test_downward): Likewise.
14579         (fma_test_upward): Likewise.
14580
14581 2012-10-30  H.J. Lu  <hongjiu.lu@intel.com>
14582
14583         * sysdeps/i386/tininess.h: Renamed to ...
14584         * sysdeps/x86/tininess.h: This.
14585         * sysdeps/x86_64/tininess.h: Removed.
14586
14587 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
14588
14589         * elf/Makefile ($(objpfx)tst-array1.out): Depend on comparison
14590         input.  Use $(build-program-cmd).
14591         ($(objpfx)tst-array1-static.out): Likewise.
14592         ($(objpfx)tst-array2.out): Likewise.
14593         ($(objpfx)tst-array3.out): Likewise.
14594         ($(objpfx)tst-array4.out): Likewise.
14595         ($(objpfx)tst-array5.out): Likewise.
14596         ($(objpfx)tst-array5-static.out): Likewise.
14597
14598 2012-10-30  Chris Metcalf  <cmetcalf@tilera.com>
14599
14600         * elf/dl-load.c (_dl_map_object_from_fd): Call DL_AFTER_LOAD
14601         if defined.
14602
14603         * nss/nsswitch.h (nss_interface_function): Provide new
14604         macro for use with NSS functions.
14605         * grp/initgroups.c: Use new macro.
14606         * nss/getXXbyYY.c: Likewise.
14607         * nss/getXXbyYY_r.c: Likewise.
14608         * nss/getXXent.c: Likewise.
14609         * nss/getXXent_r.c: Likewise.
14610         * sysdeps/posix/getaddrinfo.c: Likewise.
14611
14612 2012-10-30  Andreas Jaeger  <aj@suse.de>
14613
14614         * po/ru.po: Update Russion translation from translation project.
14615
14616 2012-10-30  Joseph Myers  <joseph@codesourcery.com>
14617
14618         [BZ #14152]
14619         [BZ #14783]
14620         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Extract low bits of
14621         result and shift together with sticky bit instead of replicating
14622         round-to-nearest rounding.
14623         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
14624         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
14625         * math/libm-test.inc (fma_test): Add more tests.  Do not permit
14626         missing underflow exceptions.
14627         (fma_test_towardzero): Add more tests.
14628         (fma_test_downward): Likewise.
14629         (fma_test_upward): Likewise.
14630
14631         [BZ #14047]
14632         * sysdeps/generic/tininess.h: New file.
14633         * sysdeps/i386/tininess.h: Likewise.
14634         * sysdeps/sh/tininess.h: Likewise.
14635         * sysdeps/x86_64/tininess.h: Likewise.
14636         * stdlib/tst-strtod-underflow.c: Likewise.
14637         * stdlib/tst-tininess.c: Likewise.
14638         * stdlib/strtod_l.c: Include <tininess.h>.
14639         (round_and_return): Do not set errno for exact underflow cases.
14640         Force an underflow exception when setting errno for underflow.
14641         Determine underflow based on rounding to normal precision if
14642         TININESS_AFTER_ROUNDING.
14643         * stdlib/tst-strtod.c (tests): Do not expect errno to be set to
14644         ERANGE for exact underflow cases.
14645         * stdlib/Makefile (tests): Add tst-tininess and
14646         tst-strtod-underflow.
14647         ($(objpfx)tst-tininess): Use $(link-libm).
14648         ($(objpfx)tst-strtod-underflow): Likewise.
14649
14650 2012-10-30  Andreas Jaeger  <aj@suse.de>
14651
14652         [BZ#14767]
14653         * elf/Makefile (tests): Remove conditional for have-initfini-array
14654         since this is now always required and the variable does not exist
14655         anymore.
14656         (tests-static): Likewise.
14657         (modules-names): Likewise.
14658
14659         * po/eo.po: Add Esperanto translation from translation project.
14660
14661         * elf/tst-array1.c (fini_array): Make writeable so that it can be
14662         merged with constructor/destructor.
14663         (init_array): Likewise.
14664         * elf/tst-array2dep.c (fini_array): Likewise.
14665         (init_array): Likewise.
14666
14667 2012-10-29  Mike Frysinger  <vapier@gentoo.org>
14668
14669         * manual/message.texi: Delete @cartouche tags.
14670
14671 2012-10-29  Pino Toscano  <toscano.pino@tiscali.it>
14672
14673         * sysdeps/mach/hurd/fdatasync.c: Turn ERR into EINVAL if it is
14674         EOPNOTSUPP.
14675         * sysdeps/mach/hurd/fsync.c: Likewise.
14676
14677         * sysdeps/pthread/aio_notify.c (__aio_notify_only)
14678         [_POSIX_REALTIME_SIGNALS]: Change condition to
14679         [_POSIX_REALTIME_SIGNALS > 0].
14680
14681 2012-10-27  Andreas Jaeger  <aj@suse.de>
14682
14683         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (__O_LARGEFILE)
14684         [!__x86_64]: Do not define, take value from <bits/fcntl-linux.h>.
14685         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE):
14686         [__WORDSIZE != 64]: Likewise.
14687
14688 2012-10-26  H.J. Lu  <hongjiu.lu@intel.com>
14689
14690         *  iconvdata/tst-table.sh: Remove ${SHELL}.
14691         *  iconvdata/tst-tables.sh: Likewise.
14692
14693 2012-10-25  David S. Miller  <davem@davemloft.net>
14694
14695         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14696         (__get_clockfreq_via_proc_openprom): Use strtoumax instead
14697         of strtoull.
14698
14699         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add comments for
14700         ifunc-impl-list.c
14701         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
14702         * sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c: New file.
14703         * sysdeps/sparc/sparc32/sparcv9/multiarch/ifunc-impl-list.c: New
14704         file.
14705
14706 2012-10-25  Roland McGrath  <roland@hack.frob.com>
14707
14708         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14709         (__get_clockfreq_via_proc_openprom): Use __getdents instead of
14710         __getdirentries.
14711
14712 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
14713             Jim Blandy  <jimb@codesourcery.com>
14714
14715         * scripts/cross-test-ssh.sh: New file.
14716         * manual/install.texi (Configuring and compiling): Document use of
14717         cross-test-ssh.sh.
14718         * INSTALL: Regenerated.
14719
14720 2012-10-25  Pino Toscano  <toscano.pino@tiscali.it>
14721
14722         * sysdeps/mach/hurd/ptrace.c (ptrace): Use __hurd_fail to return
14723         EOPNOTSUPP.
14724
14725 2012-10-25  Joseph Myers  <joseph@codesourcery.com>
14726
14727         * Makeconfig (run-program-prefix): Fix comment.
14728
14729 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
14730             Jim Blandy  <jimb@codesourcery.com>
14731
14732         * Makeconfig (test-wrapper): New variable,
14733         (test-wrapper-env): Likewise.
14734         [$(cross-compiling) = yes && $(test-wrapper) != ""]
14735         (run-built-tests): Define to yes.
14736         (run-program-prefix): Use $(test-wrapper).
14737         (built-program-cmd): Likewise.
14738         * Rules (make-test-out): Use $(test-wrapper-env) and
14739         $(host-built-program-cmd).
14740         * elf/Makefile ($(objpfx)order.out): Use $(test-wrapper).
14741         ($(objpfx)tst-pathopt.out): Pass $(test-wrapper-env) to
14742         tst-pathopt.sh.
14743         ($(objpfx)tst-rtld-load-self.out): Pass $(test-wrapper) and
14744         $(test-wrapper-env) to tst-rtld-load-self.sh.
14745         ($(objpfx)order2.out): Use $(test-wrapper).
14746         ($(objpfx)tst-initorder.out): Likewise.
14747         ($(objpfx)tst-initorder2.out): Likewise.
14748         ($(objpfx)tst-unused-dep.out): Use $(test-wrapper-env).
14749         * elf/tst-pathopt.sh (run_program_prefix): Remove unused variable.
14750         (test_wrapper_env): New variable.  Use it to run ld.so.
14751         * elf/tst-rtld-load-self.sh (test_wrapper): New variable.
14752         Use it to run ld.so.
14753         (test_wrapper_env): Likewise.
14754         * iconvdata/Makefile ($(objpfx)iconv-test.out): Pass
14755         $(test-wrapper) to run-iconv-test.sh.
14756         * iconvdata/run-iconv-test.sh (test_wrapper): New variable.
14757         (ICONV): Use $test_wrapper.
14758         * posix/Makefile ($(objpfx)globtest.out): Pass
14759         $(run-via-rtld-prefix), $(test-wrapper) and $(test-wrapper-env) to
14760         globtest.sh, not $(run-program-prefix).
14761         * posix/globtest.sh (run_via_rtld_prefix): New variable.
14762         (test_wrapper): Likewise.
14763         (test_wrapper_env): Likewise.  Use it to run globtest with HOME
14764         set together with run_via_rtld_prefix.
14765         (run_program_prefix): Define in terms of test_wrapper and
14766         run_via_rtld_prefix.
14767
14768 2012-10-24  Roland McGrath  <roland@hack.frob.com>
14769
14770         * nscd/Makefile ($(objpfx)nscd): Remove librt dependency.
14771         * posix/Makefile ($(objpfx)tst-regex, $(objpfx)tst-regex2):
14772         Targets removed.
14773
14774         [BZ #14743]
14775         * include/time.h: Remove librt_hidden_proto (clock_gettime).
14776         Declare __clock_getres, __clock_gettime, __clock_settime,
14777         __clock_nanosleep, and __clock_getcpuclockid.
14778         * rt/clock_gettime.c: Define __clock_gettime as an alias.
14779         Remove librt_hidden_def (clock_gettime).
14780         * sysdeps/unix/clock_gettime.c: Likewise.
14781         * rt/clock_getcpuclockid.c: Define __clock_getcpuclockid as an alias.
14782         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c: Likewise.
14783         * rt/clock_getres.c: Define __clock_getres as an alias.
14784         * sysdeps/posix/clock_getres.c: Likewise.
14785         * rt/clock_settime.c: Define __clock_settime as an alias.
14786         * sysdeps/unix/clock_settime.c: Likewise.
14787         * rt/clock_nanosleep.c: Define __clock_nanosleep as an alias.
14788         * sysdeps/unix/clock_nanosleep.c: Likewise.
14789         * sysdeps/unix/sysv/linux/clock_nanosleep.c: Likewise.
14790         * rt/clock-compat.c: New file.
14791         * rt/Makefile (librt-routines): Add clock-compat and move
14792         $(clock-routines) to ...
14793         (routines): ... here, new variable.
14794         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_routines):
14795         Don't add get_clockfreq here.
14796         * rt/Versions (libc: GLIBC_2.17): New version set.
14797         Add clock_* symbols here.
14798         (libc: GLIBC_PRIVATE): New version set.  Add __clock_* symbols here.
14799         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist
14800         (GLIBC_2.17): Add clock_* symbols.
14801         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
14802         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
14803         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
14804         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
14805         Likewise.
14806         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
14807         Likewise.
14808         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
14809         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
14810         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
14811         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
14812         * NEWS: Mention the move.
14813
14814         * sysdeps/unix/sysv/linux/i386/get_clockfreq.c (__get_clockfreq):
14815         Use __open, __read, __close rather than their public counterparts.
14816         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
14817         (__get_clockfreq_via_cpuinfo): Likewise.
14818         (__get_clockfreq_via_proc_openprom): Likewise, and __getdirentries.
14819         (__get_clockfreq_via_dev_openprom): Likewise, and __ioctl.
14820
14821         * config.h.in (HAVE_IFUNC): New #undef.
14822         * configure.in: Define it if libc_cv_ld_gnu_indirect_function
14823         was successful.
14824         * configure: Regenerated.
14825
14826 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
14827
14828         * configure.in: Move READELF check to start of file.
14829         (libc_cv_ld_gnu_indirect_function): Change to a link test. Rename from
14830         libc_cv_asm_gnu_indirect_function in the process.
14831         * configure: Regenerated.
14832
14833 2012-10-24  Mike Frysinger  <vapier@gentoo.org>
14834
14835         * configure.in (libc_cv_gcc_static_libgcc): Drop -q flag to grep and
14836         send the output to /dev/null.
14837         (libc_cv_cc_with_libunwind): Likewise.
14838         (libc_cv_as_noexecstack): Likewise.
14839         * configure: Regenerate.
14840
14841 2012-10-24  Joseph Myers  <joseph@codesourcery.com>
14842
14843         * io/ftwtest-sh (tmp): Define to ${objpfx}io, not using `pwd`.
14844
14845         * posix/globtest.sh (TMPDIR): Do not set.
14846         (testdir): Define using ${common_objpfx}posix not $TMPDIR.
14847         (testout): Likewise.
14848
14849 2012-10-24  Andreas Jaeger  <aj@suse.de>
14850
14851         * io/fcntl.h: Always define mode_t, off_t, pid_t and use these
14852         types for creat, creat64, lockf, posix_fadvise, posix_fallocate.
14853         [__USE_LARGEFILE64 && !__off64_t_defined]: Define off64_t.
14854         [__USE_LARGEFILE64]: Use off64_t in declaration of lock64,
14855         posix_fadvise64, posix_fallocate64.
14856
14857         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h (F_GETLK, F_SETLK)
14858         (F_SETLKW) [__x86_64]: Remove, provided by <bits/fcntl-linux.h>.
14859         (F_GETLK, F_SETLK, F_SETLKW) [!__USE_FILE_OFFSET64 && !__x86_64__]:
14860         Likewise.
14861         (F_GETLK, F_SETLK, F_SETLKW) [__USE_FILE_OFFSET64 && ! __x86_64__]:
14862         Likewise.
14863         (F_GETLK64, F_SETLK64, F_SETLKW64) [!__x86_64__]: Likewise.
14864
14865         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (F_GETLK, F_SETLK)
14866         (F_SETLKW) [__USE_FILE_OFFSET64]: Remove, provided by
14867         <bits/fcntl-linux.h>.
14868         (F_GETLK64, F_SETLK64, F_SETLKW64) [__WORDSIZE == 64]: Likewise.
14869
14870         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (F_DUPFD, F_GETFD)
14871         (F_SETFD, F_GETFL, F_SETFL): Remove, provided by <bits/fcntl-linux.h>.
14872         (F_GETLK, F_SETLK, F_SETLKW) [__WORDSIZE == 64]: Likewise.
14873         (F_GETLK, F_SETLK, F_SETLKW, F_GETLK64, F_SETLK64, F_SETLKW64)
14874         [__WORDSIZE != 64]: Likewise.
14875
14876 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
14877
14878         * Makeconfig (run-built-tests): New variable.
14879         * Rules [$(cross-compiling) = yes]: Change condition to
14880         [$(run-built-tests) = no].
14881         * catgets/Makefile [$(cross-compiling) != yes]: Change condition
14882         to [$(run-built-tests) = yes].
14883         * elf/Makefile [$(cross-compiling) = no]: Likewise
14884         * grp/Makefile [$(cross-compiling) = no]: Likewise.
14885         * iconv/Makefile [$(cross-compiling) != yes]: Likewise.
14886         * iconvdata/Makefile [$(cross-compiling) = no]: Likewise.
14887         * intl/Makefile [$(cross-compiling) = no]: Likewise.
14888         * io/Makefile [$(cross-compiling) = no]: Likewise.
14889         * libio/Makefile [$(cross-compiling) = no]: Likewise.
14890         * malloc/Makefile [$(cross-compiling) = no]: Likewise.
14891         * misc/Makefile [$(cross-compiling) = no]: Likewise.
14892         * posix/Makefile [$(cross-compiling) = no]: Likewise.
14893         * resolv/Makefile [$(cross-compiling) = no]: Likewise.
14894         * stdio-common/Makefile [$(cross-compiling) = no]: Likewise.
14895         * stdlib/Makefile [$(cross-compiling) = no]: Likewise.
14896         * string/Makefile [$(cross-compiling) = no]: Likewise.
14897
14898         * posix/Makefile ($(objpfx)globtest.out): Pass
14899         $(run-program-prefix) to globtest.sh, not $(elf-objpfx) and
14900         $(rtld-installed-name).
14901         * posix/globtest.sh (elf_objpfx): Remove variable.
14902         (rtld_installed_name): Likewise.
14903         (library_path): Likewise.
14904         (run_program_prefix): New variable.  Use for running globtest
14905         binary.
14906
14907 2012-10-23  Jim Blandy  <jimb@codesourcery.com>
14908             Joseph Myers  <joseph@codesourcery.com>
14909
14910         * Makeconfig (host-built-program-cmd): New variable.
14911         * elf/Makefile (tst-stackguard1-ARGS): Use
14912         $(host-built-program-cmd).
14913         * posix/Makefile (tst-exec-ARGS): Use $(host-built-program-cmd).
14914         (tst-spawn-ARGS): Likewise.
14915         * rt/Makefile (tst-mqueue7-ARGS): Use $(host-built-program-cmd).
14916
14917 2012-10-23  Joseph Myers  <joseph@codesourcery.com>
14918             Jim Blandy  <jimb@codesourcery.com>
14919
14920         * Makeconfig (run-via-rtld-prefix): New variable.
14921         (run-program-prefix): Define in terms of $(run-via-rtld-prefix).
14922         (built-program-cmd): Likewise.
14923
14924 2012-10-22  Andreas Jaeger  <aj@suse.de>
14925
14926         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (O_RSYNC): Define to
14927         __O_RSYNC if it exists, otherwise to O_SYNC.
14928
14929 2012-10-22  Jim Blandy  <jimb@codesourcery.com>
14930             Joseph Myers  <joseph@codesourcery.com>
14931
14932         * iconvdata/run-iconv-test.sh: Redirect iconv stdin in loops from
14933         /dev/null.
14934         * iconvdata/tst-tables.sh: Redirect tst-table.sh stdin in loop
14935         from /dev/null
14936         * posix/tst-getconf.sh: Redirect getconf stdin in loop from
14937         /dev/null.
14938
14939 2012-10-22  Andreas Jaeger  <aj@suse.de>
14940
14941         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (__O_LARGEFILE):
14942         Define always.
14943         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (__O_LARGEFILE): Likewise.
14944
14945         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
14946         bits/fcntl-linux.h.
14947
14948         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h (F_GETLK, F_SETLK)
14949         (F_SETLKW) [!F_GETLK]: Define values for [!__USE_FILE_OFFSET64].
14950
14951         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h (O_LARGEFILE): Rename
14952         to __O_LARGEFILE.
14953         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_LARGEFILE): Rename
14954         to __O_LARGEFILE.
14955
14956 2012-10-21  Jim Blandy  <jimb@codesourcery.com>
14957             Joseph Myers  <joseph@codesourcery.com>
14958
14959         * config.make.in (NM): New variable.
14960
14961 2012-10-21  Andreas Jaeger  <aj@suse.de>
14962
14963         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Remove all
14964         definitions and declarations that are provided by
14965         <bits/fcntl-linux.h> and include <bits/fcntl-linux.h>.
14966
14967 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
14968
14969         [BZ #14683]
14970         * elf/Makefile (tests-static): Add tst-leaks1-static.
14971         (tests): Also depend on $(objpfx)tst-leaks1-static-mem.
14972         ($(objpfx)tst-leaks1-static): New rule.
14973         ($(objpfx)tst-leaks1-static-mem): Likewise.
14974         (tst-leaks1-static-ENV): New macro.
14975         * elf/dl-open.c (dl_open_worker): Check the main application
14976         only if SHARED is defined.
14977         * elf/tst-leaks1-static.c: New file.
14978
14979 2012-10-20  Andreas Jaeger  <aj@suse.de>
14980
14981         * sysdeps/unix/sysv/linux/bits/fcntl-linux.h: New file, contains
14982         generic values for Linux.
14983         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: Remove all definitions
14984         and declarations that are provided by <bits/fcntl-linux.h> and
14985         include <bits/fcntl-linux.h>.
14986         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
14987         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
14988
14989 2012-10-20  Roland McGrath  <roland@hack.frob.com>
14990
14991         * io/fcntl.h: Move include of <bits/types.h> to the top and
14992         include it unconditionally.
14993
14994 2012-10-20  H.J. Lu  <hongjiu.lu@intel.com>
14995
14996         * wcsmbs/Makefile (tests-ifunc): New variable.
14997         (tests): Add $(tests-ifunc).
14998         * wcsmbs/test-wcschr-ifunc.c: New file.
14999         * wcsmbs/test-wcscmp-ifunc.c: Likewise.
15000         * wcsmbs/test-wcscpy-ifunc.c: Likewise.
15001         * wcsmbs/test-wcslen-ifunc.c: Likewise.
15002         * wcsmbs/test-wcsrchr-ifunc.c: Likewise.
15003         * wcsmbs/test-wmemcmp-ifunc.c: Likewise.
15004
15005         * string/Makefile (tests-ifunc): New variable.
15006         (tests): Add $(tests-ifunc).
15007         * string/test-memccpy.c (TEST_NAME): New macro.
15008         * string/test-memchr.c (TEST_NAME): Likewise.
15009         * string/test-memcmp.c (TEST_NAME): Likewise.
15010         * string/test-memcpy.c (TEST_NAME): Likewise.
15011         * string/test-memmem.c (TEST_NAME): Likewise.
15012         * string/test-memmove.c (TEST_NAME): Likewise.
15013         * string/test-memset.c (TEST_NAME): Likewise.
15014         * string/test-rawmemchr.c (TEST_NAME): Likewise.
15015         * string/test-stpcpy.c (TEST_NAME): Likewise.
15016         * string/test-stpncpy.c (TEST_NAME): Likewise.
15017         * string/test-strcasecmp.c (TEST_NAME): Likewise.
15018         * string/test-strcasestr.c (TEST_NAME): Likewise.
15019         * string/test-strcat.c (TEST_NAME): Likewise.
15020         * string/test-strchr.c (TEST_NAME): Likewise.
15021         * string/test-strcmp.c(TEST_NAME): Likewise.
15022         * string/test-strcpy.c (TEST_NAME): Likewise.
15023         * string/test-strcspn.c (TEST_NAME): Likewise.
15024         * string/test-strlen.c (TEST_NAME): Likewise.
15025         * string/test-strncasecmp.c (TEST_NAME): Likewise.
15026         * string/test-strncmp.c (TEST_NAME): Likewise.
15027         * string/test-strncpy.c (TEST_NAME): Likewise.
15028         * string/test-strnlen.c (TEST_NAME): Likewise.
15029         * string/test-strpbrk.c (TEST_NAME): Likewise.
15030         * string/test-strrchr.c (TEST_NAME): Likewise.
15031         * string/test-strspn.c (TEST_NAME): Likewise.
15032         * string/test-strstr.c (TEST_NAME): Likewise.
15033         * string/test-bcopy-ifunc.c: New file.
15034         * string/test-bzero-ifunc.c: Likewise.
15035         * string/test-memccpy-ifunc.c: Likewise.
15036         * string/test-memchr-ifunc.c: Likewise.
15037         * string/test-memcmp-ifunc.c: Likewise.
15038         * string/test-memcpy-ifunc.c: Likewise.
15039         * string/test-memmem-ifunc.c: Likewise.
15040         * string/test-memmove-ifunc.c: Likewise.
15041         * string/test-mempcpy-ifunc.c: Likewise.
15042         * string/test-memset-ifunc.c: Likewise.
15043         * string/test-rawmemchr-ifunc.c: Likewise.
15044         * string/test-stpcpy-ifunc.c: Likewise.
15045         * string/test-stpncpy-ifunc.c: Likewise.
15046         * string/test-strcasecmp-ifunc.c: Likewise.
15047         * string/test-strcasestr-ifunc.c: Likewise.
15048         * string/test-strcat-ifunc.c: Likewise.
15049         * string/test-strchr-ifunc.c: Likewise.
15050         * string/test-strchrnul-ifunc.c: Likewise.
15051         * string/test-strcmp-ifunc.c: Likewise.
15052         * string/test-strcpy-ifunc.c: Likewise.
15053         * string/test-strcspn-ifunc.c: Likewise.
15054         * string/test-strlen-ifunc.c: Likewise.
15055         * string/test-strncasecmp-ifunc.c: Likewise.
15056         * string/test-strncat-ifunc.c: Likewise.
15057         * string/test-strncmp-ifunc.c: Likewise.
15058         * string/test-strncpy-ifunc.c: Likewise.
15059         * string/test-strnlen-ifunc.c: Likewise.
15060         * string/test-strpbrk-ifunc.c: Likewise.
15061         * string/test-strrchr-ifunc.c: Likewise.
15062         * string/test-strspn-ifunc.c: Likewise.
15063         * string/test-strstr-ifunc.c: Likewise.
15064
15065         * debug/Makefile (tests-ifunc): New variable.
15066         (tests): Add $(tests-ifunc).
15067         * debug/test-stpcpy_chk.c (TEST_NAME): New macro.
15068         * debug/test-strcpy_chk.c (TEST_NAME): Likewise.
15069         * debug/test-stpcpy_chk-ifunc.c: New file.
15070         * debug/test-strcpy_chk-ifunc.c: Likewise.
15071
15072 2012-10-20  Siddhesh Poyarekar  <siddhesh@redhat.com>
15073
15074         [BZ #13601]
15075         * elf/dl-load.c (open_verify): Retry read if the entire ELF
15076         header is not read in.
15077
15078 2012-10-19  Joseph Myers  <joseph@codesourcery.com>
15079
15080         * io/Makefile ($(objpfx)ftwtest.out): Depend on ftwtest-sh.  Pass
15081         script to $(SHELL) as $<.  Pass $(common-objpfx) to script
15082         directly.  Pass built executable to script as
15083         $(built-program-cmd).
15084         * io/ftwtest-sh (ldso): Remove variable.  Run ftwtest directly as
15085         $testprogram without using LD_LIBRARY_PATH and $ldso.
15086
15087         * grp/Makefile ($(objpfx)tst_fgetgrent.out): Pass
15088         $(run-program-prefix) to tst_fgetgrent.sh, not $(elf-objpfx) and
15089         $(rtld-installed-name).
15090         * grp/tst_fgetgrent.sh (elf_objpfx): Remove variable.
15091         (rtld_installed_name): Likewise.
15092         (library_path): Likewise.
15093         (run_program_prefix): New variable.  Use it to run tst_fgetgrent.
15094         * iconvdata/Makefile ($(objpfx)tst-tables.out): Pass
15095         $(run-program-prefix) to tst-tables.sh.
15096         * iconvdata/tst-table.sh (run_program_prefix): New variable.  Use
15097         it to run tst-table-from and tst-table-to.
15098         * iconvdata/tst-tables.sh (run_program_prefix): New variable.
15099         Pass it to tst-table.sh.
15100         * intl/Makefile ($(objpfx)tst-gettext.out): Pass
15101         $(run-program-prefix) to tst-gettext.sh.
15102         ($(objpfx)tst-translit.out): Pass $(run-program-prefix) to
15103         tst-translit.sh.
15104         ($(objpfx)tst-gettext2.out): Pass $(run-program-prefix) to
15105         tst-gettext2.sh.
15106         * intl/tst-gettext.sh (run_program_prefix): New variable.  Use it
15107         to run tst-gettext.
15108         * intl/tst-gettext2.sh (run_program_prefix): New variable.  Use it
15109         to run tst-gettext2.
15110         * intl/tst-translit.sh (run_program_prefix): New variable.  Use it
15111         to run tst-translit.
15112         * malloc/Makefile ($(objpfx)tst-mtrace.out): Pass
15113         $(run-program-prefix) to tst-mtrace.sh.
15114         * malloc/tst-mtrace.sh (run_program_prefix): New variable.  Use it
15115         to run tst-mtrace.
15116         * posix/Makefile ($(objpfx)wordexp-tst.out): Pass
15117         $(run-program-prefix) to wordexp-tst.sh, not $(elf-objpfx) and
15118         $(rtld-installed-name).
15119         * posix/wordexp-tst.sh (elf_objpfx): Remove variable.
15120         (rtld_installed_name): Likewise.
15121         (run_program_prefix): New variable.  Use it to run wordexp-test.
15122
15123         * Makeconfig (ARCH): Remove all definitions.
15124         (machine): Likewise.
15125         [ARCH]: Remove conditional code.
15126         [!objdir]: Give error.
15127         [!objdir] (objpfx): Remove.
15128         [!objdir] (common-objpfx): Likewise.
15129         [!objdir] (common-objdir): Likewise.
15130         * configure.in (config_makefile): Remove.  Hardcode Makefile in
15131         AC_CONFIG_FILES call.
15132         * configure: Regenerated.
15133
15134         [BZ #13888]
15135         * io/ftwtest-sh (tmp): Set to use the working directory, not /tmp
15136         or TMPDIR.
15137         (testout): Likewise.
15138
15139         * posix/Makefile ($(objpfx)tst-getconf.out): Pass
15140         $(built-program-cmd) to tst-getconf.sh, not $(elf-objpfx) and
15141         $(rtld-installed-name).
15142         * posix/tst-getconf.sh (elf_objpfx): Remove variable.
15143         (rtld_installed_name): Likwise.
15144         (runit): Remove function.
15145         (run_getconf): New variable,  Use it for running getconf binary.
15146
15147 2012-10-18  H.J. Lu  <hongjiu.lu@intel.com>
15148
15149         [BZ #14716]
15150         * string/test-memmem.c (check_result): New function.
15151         (do_one_test): Use it.
15152         (check1): New function.
15153         (test_main): Use it.
15154
15155 2012-10-18  Markus Trippelsdorf  <markus@trippelsdorf.de>
15156
15157         * math/Makefile: Comment on slow compilation of test-tgmath2.c.
15158
15159 2012-10-18  Joseph Myers  <joseph@codesourcery.com>
15160
15161         * sysdeps/generic/_G_config.h (_G_OPEN64): Remove.
15162         (_G_LSEEK64): Likewise.
15163         (_G_MMAP64): Likewise.
15164         (_G_FSTAT64): Likewise.
15165         * sysdeps/unix/sysv/linux/_G_config.h (_G_OPEN64): Remove.
15166         (_G_LSEEK64): Likewise.
15167         (_G_MMAP64): Likewise.
15168         (_G_FSTAT64): Likewise.
15169         * libio/fileops.c (mmap_remap_check) [_G_MMAP64]: Make code
15170         unconditional.  Call __mmap64 directly.
15171         (mmap_remap_check) [!_G_MMAP64]: Remove conditional code.
15172         (mmap_remap_check) [_G_LSEEK64]: Make code unconditional.  Call
15173         __lseek64 directly.
15174         (mmap_remap_check) [!_G_LSEEK64]: Remove conditional code.
15175         (decide_maybe_mmap) [_G_MMAP64]: Make code unconditional.  Call
15176         __mmap64 directly.
15177         (decide_maybe_mmap) [!_G_MMAP64]: Remove conditional code.
15178         (decide_maybe_mmap) [_G_LSEEK64]: Make code unconditional.  Call
15179         __lseek64 directly.
15180         (decide_maybe_mmap) [!_G_LSEEK64]: Remove conditional code.
15181         (_IO_file_sync_mmap) [_G_LSEEK64]: Make code unconditional.  Call
15182         __lseek64 directly.
15183         (_IO_file_sync_mmap) [!_G_LSEEK64]: Remove conditional code.
15184         (_IO_file_seek) [_G_LSEEK64]: Make code unconditional.  Call
15185         __lseek64 directly.
15186         (_IO_file_seek) [!_G_LSEEK64]: Remove conditional code.
15187         (_IO_file_stat) [_G_FSTAT64]: Make code unconditional.  Call
15188         __fxstat64 directly.
15189         (_IO_file_stat) [!_G_FSTAT64]: Remove conditional code.
15190         * libio/freopen64.c (freopen64) [_G_OPEN64]: Make code
15191         unconditional.
15192         (freopen64) [!_G_OPEN64]: Remove conditional code.
15193         * libio/fseeko64.c (fseeko64) [_G_LSEEK64]: Make code
15194         unconditional.
15195         (fseeko64) [!_G_LSEEK64]: Remove conditional code.
15196         * libio/ftello64.c (ftello64) [_G_LSEEK64]: Make code
15197         unconditional.
15198         (ftello64) [!_G_LSEEK64]: Remove conditional code.
15199         * libio/iofgetpos64.c (_IO_new_fgetpos64) [_G_LSEEK64]: Make code
15200         unconditional.
15201         (_IO_new_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
15202         * libio/iofopen64.c (_IO_fopen64) [_G_OPEN64]: Make code
15203         unconditional.
15204         (_IO_fopen64) [!_G_OPEN64]: Remove conditional code.
15205         * libio/iofsetpos64.c (_IO_new_fsetpos64) [_G_LSEEK64]: Make code
15206         unconditional.
15207         (_IO_new_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
15208         * libio/oldiofgetpos64.c (_IO_old_fgetpos64) [_G_LSEEK64]: Make code
15209         unconditional.
15210         (_IO_old_fgetpos64) [!_G_LSEEK64]: Remove conditional code.
15211         * libio/oldiofsetpos64.c (_IO_old_fsetpos64) [_G_LSEEK64]: Make code
15212         unconditional.
15213         (_IO_old_fsetpos64) [!_G_LSEEK64]: Remove conditional code.
15214
15215 2012-10-18  Siddhesh Poyarekar  <siddhesh@redhat.com>
15216
15217         [BZ #12140]
15218         * manual/memory.texi (Malloc Tunable Parameters): Add note
15219         about free list pointers overwriting some perturb bytes.
15220         Wording suggested by Roland McGrath.
15221
15222 2012-10-17  Joseph Myers  <joseph@codesourcery.com>
15223
15224         * math/libm-test.inc (gamma_test): Do not call feclearexcept.
15225         (lgamma_test): Likewise.
15226         (tgamma_test): Likewise.
15227
15228 2012-10-16  Florian Weimer  <fweimer@redhat.com>
15229
15230         [BZ #14700]
15231         * sysdeps/posix/opendir.c (MAX_DIR_BUFFER_SIZE): New constant.
15232         (__alloc_dir): Limit buffer to MAX_DIR_BUFFER_SIZE.
15233
15234 2012-10-16  Maxim Kuvyrkov  <maxim@codesourcery.com>
15235
15236         * NEWS: Mention BZ #14716.
15237         * string/str-two-way.h (two_way_short_needle): Fix thinko introduced
15238         when removing AVAILABLE1_USES_J macro.
15239
15240 2012-10-12  H.J. Lu  <hongjiu.lu@intel.com>
15241
15242         * sysdeps/x86/bits/byteswap.h: Include <bits/types.h>.
15243         (__bswap_64): __uint64_t for unsigned 64-bit int.
15244
15245 2012-10-12  Andreas Schwab  <schwab@linux-m68k.org>
15246
15247         * include/string.h (memmem): Declare libc hidden alias.
15248         * string/memmem.c (memmem): Define libc hidden alias.
15249         * sysdeps/unix/sysv/linux/powerpc/get_clockfreq.c: Use __open,
15250         __read, __close instead of open, read, close.
15251
15252 2012-10-11  H.J. Lu  <hongjiu.lu@intel.com>
15253
15254         * sysdeps/x86_64/multiarch/ifunc-impl-list.c: New file.
15255         * sysdeps/x86_64/multiarch/memcmp.S (__memcmp_sse2): Make it
15256         global and hidden.
15257         * sysdeps/x86_64/multiarch/memcpy.S (__memcpy_sse2): Likewise.
15258         * sysdeps/x86_64/multiarch/mempcpy.S (__mempcpy_sse2): Likewise.
15259         * sysdeps/x86_64/multiarch/rawmemchr.S (__rawmemchr_sse42):
15260         Likewise.
15261         (__rawmemchr_sse2): Likewise.
15262         * sysdeps/x86_64/multiarch/strcat.S (STRCAT_SSE2): Likewise.
15263         * sysdeps/x86_64/multiarch/strchr.S (__strchr_sse42): Likewise.
15264         (__strchr_sse2): Likewise.
15265         * sysdeps/x86_64/multiarch/strcmp-sse42.S (STRCMP_SSE42): Likewise.
15266         * sysdeps/x86_64/multiarch/strcmp.S (STRCMP_SSE2): Likewise.
15267         (__strcasecmp_sse2): Likewise.
15268         (__strncasecmp_sse2): Likewise.
15269         * sysdeps/x86_64/multiarch/strcpy.S (STRCPY_SSE2): Likewise.
15270         * sysdeps/x86_64/multiarch/strlen.S (__strlen_sse2): Likewise.
15271         * sysdeps/x86_64/multiarch/strnlen.S (__strnlen_sse2): Likewise.
15272         * sysdeps/x86_64/multiarch/strrchr.S (__strrchr_sse42): Likewise.
15273         (__strrchr_sse2): Likewise.
15274         * sysdeps/x86_64/multiarch/memcmp.S: Add comments for
15275         ifunc-impl-list.c.
15276         * sysdeps/x86_64/multiarch/memcpy.S: Likewise.
15277         * sysdeps/x86_64/multiarch/memcpy_chk.S: Likewise.
15278         * sysdeps/x86_64/multiarch/memmove.c: Likewise.
15279         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
15280         * sysdeps/x86_64/multiarch/mempcpy.S: Likewise.
15281         * sysdeps/x86_64/multiarch/mempcpy_chk.S: Likewise.
15282         * sysdeps/x86_64/multiarch/memset.S: Likewise.
15283         * sysdeps/x86_64/multiarch/memset_chk.S: Likewise.
15284         * sysdeps/x86_64/multiarch/rawmemchr.S: Likewise.
15285         * sysdeps/x86_64/multiarch/stpcpy.S: Likewise.
15286         * sysdeps/x86_64/multiarch/stpncpy.S: Likewise.
15287         * sysdeps/x86_64/multiarch/strcasecmp_l.S: Likewise.
15288         * sysdeps/x86_64/multiarch/strcasestr-c.c: Likewise.
15289         * sysdeps/x86_64/multiarch/strcat.S: Likewise.
15290         * sysdeps/x86_64/multiarch/strchr.S: Likewise.
15291         * sysdeps/x86_64/multiarch/strcmp.S: Likewise.
15292         * sysdeps/x86_64/multiarch/strcpy.S: Likewise.
15293         * sysdeps/x86_64/multiarch/strcspn.S: Likewise.
15294         * sysdeps/x86_64/multiarch/strlen.S: Likewise.
15295         * sysdeps/x86_64/multiarch/strncase_l.S: Likewise.
15296         * sysdeps/x86_64/multiarch/strncat.S: Likewise.
15297         * sysdeps/x86_64/multiarch/strncmp.S: Likewise.
15298         * sysdeps/x86_64/multiarch/strncpy.S: Likewise.
15299         * sysdeps/x86_64/multiarch/strnlen.S: Likewise.
15300         * sysdeps/x86_64/multiarch/strpbrk.S: Likewise.
15301         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
15302         * sysdeps/x86_64/multiarch/strspn.S: Likewise.
15303         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
15304         * sysdeps/x86_64/multiarch/wcscpy.S: Likewise.
15305         * sysdeps/x86_64/multiarch/wmemcmp.S: Likewise.
15306
15307         * sysdeps/i386/i686/multiarch/bcopy.S (__bcopy_ia32): Make it
15308         global and hidden.
15309         * sysdeps/i386/i686/multiarch/bzero.S (__bzero_ia32): Likewise.
15310         * sysdeps/i386/i686/multiarch/memcmp.S (__memcmp_ia32): Likewise.
15311         * sysdeps/i386/i686/multiarch/memcpy.S (__memcpy_ia32): Likewise.
15312         * sysdeps/i386/i686/multiarch/memmove.S (__memmove_ia32):
15313         Likewise.
15314         * sysdeps/i386/i686/multiarch/mempcpy.S (__mempcpy_ia32):
15315         Likewise.
15316         * sysdeps/i386/i686/multiarch/strcat.S (STRCAT_IA32): Likewise.
15317         * sysdeps/i386/i686/multiarch/strcmp.S (__STRCMP_IA32): Likewise.
15318         * sysdeps/i386/i686/multiarch/strcpy.S (STRCPY_IA32): Likewise.
15319         * sysdeps/i386/i686/multiarch/bcopy.S: Add comments for
15320         ifunc-impl-list.c.
15321         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
15322         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
15323         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
15324         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
15325         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
15326         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
15327         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
15328         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
15329         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
15330         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
15331         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
15332         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
15333         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
15334         * sysdeps/i386/i686/multiarch/stpcpy.S: Likewise.
15335         * sysdeps/i386/i686/multiarch/stpncpy.S: Likewise.
15336         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
15337         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: Likewise.
15338         * sysdeps/i386/i686/multiarch/strcasestr-c.c: Likewise.
15339         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
15340         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
15341         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
15342         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
15343         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
15344         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
15345         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
15346         * sysdeps/i386/i686/multiarch/strncase_l.S: Likewise.
15347         * sysdeps/i386/i686/multiarch/strncat.S: Likewise.
15348         * sysdeps/i386/i686/multiarch/strncmp.S: Likewise.
15349         * sysdeps/i386/i686/multiarch/strncpy.S: Likewise.
15350         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
15351         * sysdeps/i386/i686/multiarch/strpbrk.S: Likewise.
15352         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
15353         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
15354         * sysdeps/i386/i686/multiarch/strstr-c.c: Likewise.
15355         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
15356         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
15357         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
15358         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
15359         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
15360         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
15361         * sysdeps/i386/i686/multiarch/ifunc-impl-list.c: New file.
15362
15363         * Rules [$(multi-arch) = no] (tests): Filter out $(tests-ifunc).
15364         [$(multi-arch) = no] (xtests): Filter out $(xtests-ifunc).
15365         * include/ifunc-impl-list.h: New file.
15366         * misc/ifunc-impl-list.c: Likewise.
15367         * misc/Makefile (routines): Add ifunc-impl-list.
15368         * misc/Versions (GLIBC_PRIVATE): Add __libc_ifunc_impl_list.
15369         * string/test-string.h: Include <ifunc-impl-list.h>.
15370         [TEST_IFUNC && TEST_NAME] (func_list, func_count, impl_count,
15371         impl_array): New variables.
15372         (FOR_EACH_IMPL): Support func_list if TEST_IFUNC and TEST_NAME
15373         are defined.
15374         (test_init): Call __libc_ifunc_impl_list to initialize
15375         func_list if TEST_IFUNC and TEST_NAME are defined.
15376
15377         * string/Makefile (strop-tests): Add bcopy and bzero.
15378         * string/test-bcopy.c: New file.
15379         * string/test-bzero.c: Likewise.
15380         * string/test-memmove.c: Support bcopy test if TEST_BCOPY is
15381         defined.
15382         * string/test-memset.c: Support bzero test if TEST_BZERO is
15383         defined.
15384         * sysdeps/x86_64/multiarch/bcopy.S (bcopy): Jump to
15385         __libc_memmove.
15386         * sysdeps/x86_64/multiarch/bzero.S (__bzero): Jump to
15387         __libc_memset.
15388         * sysdeps/x86_64/multiarch/memset.S (__libc_memset): New alias
15389         of memset.
15390
15391 2012-10-10  Joseph Myers  <joseph@codesourcery.com>
15392
15393         * configure.in: Run $CXX, not cc1plus, to locate C++ headers.
15394         * configure: Regenerated.
15395
15396         * Makeconfig (+link-static-before-libc): Don't include
15397         $(link-static-libc).
15398
15399         * libio/libio.h (_IO_pos_t): Remove.
15400
15401 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
15402
15403         * NEWS: Add note about FIPS mode.  Wording suggested by Roland
15404         McGrath.
15405
15406 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
15407
15408         * crypt/crypt-entry.c: Include fips-private.h.
15409         (__crypt_r, __crypt): Disable MD5 and DES if FIPS is enabled.
15410         * crypt/md5c-test.c (main): Tolerate disabled MD5.
15411         * sysdeps/unix/sysv/linux/fips-private.h: New file.
15412         * sysdeps/generic/fips-private.h: New file, dummy fallback.
15413
15414 2012-10-10  Alexandre Oliva <aoliva@redhat.com>
15415
15416         * crypt/crypt-private.h: Include stdbool.h.
15417         (_ufc_setup_salt_r): Return bool.
15418         * crypt/crypt-entry.c: Include errno.h.
15419         (__crypt_r): Return NULL with EINVAL for bad salt.
15420         * crypt/crypt_util.c (bad_for_salt): New.
15421         (_ufc_setup_salt_r): Check that salt is long enough and within
15422         the specified alphabet.
15423         * crypt/badsalttest.c: New file.
15424         * crypt/Makefile (tests): Add it.
15425         ($(objpfx)badsalttest): New.
15426
15427 2012-10-09  Maxim Kuvyrkov  <maxim@codesourcery.com>
15428
15429         * NEWS: Add entry for BZ #14602.
15430
15431 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
15432
15433         * math/gen-libm-test.pl (parse_args): Handle comparison macros as
15434         type-generic.
15435         * math/libm-test.inc: Update comment listing what functions and
15436         macros are tested.
15437         (isgreater_test): New function.
15438         (isgreaterequal_test): Likewise.
15439         (isless_test): Likewise.
15440         (islessequal_test): Likewise.
15441         (islessgreater_test): Likewise.
15442         (isunordered_test): Likewise.
15443         (main): Call the new functions.
15444
15445 2012-10-09  Roland McGrath  <roland@hack.frob.com>
15446
15447         * aclocal.m4 (GLIBC_PROVIDES): Provide _AS_BASENAME_PREPARE,
15448         _AS_ME_PREPARE, _AS_VAR_ARITH_PREPARE, AS_SHELL_FN_as_fn_set_status,
15449         AS_SHELL_FN_as_fn_exit, AS_SHELL_FN_ac_fn_c_try_compile.
15450         * sysdeps/i386/configure: Regenerated.
15451         * sysdeps/ieee754/ldbl-opt/configure: Regenerated.
15452         * sysdeps/mach/configure: Regenerated.
15453         * sysdeps/mach/hurd/configure: Regenerated.
15454         * sysdeps/powerpc/configure: Regenerated.
15455         * sysdeps/powerpc/powerpc32/configure: Regenerated.
15456         * sysdeps/powerpc/powerpc64/configure: Regenerated.
15457         * sysdeps/s390/s390-32/configure: Regenerated.
15458         * sysdeps/s390/s390-64/configure: Regenerated.
15459         * sysdeps/sh/configure: Regenerated.
15460         * sysdeps/sparc/configure: Regenerated.
15461         * sysdeps/unix/sysv/linux/configure: Regenerated.
15462         * sysdeps/unix/sysv/linux/powerpc/configure: Regenerated.
15463         * sysdeps/x86_64/configure: Regenerated.
15464
15465         * dlfcn/dlerror.c (check_free): Call _dl_addr only if SHARED is
15466         defined.  Don't check if MAP is NULL.
15467
15468 2012-10-09  Joseph Myers  <joseph@codesourcery.com>
15469
15470         * sysdeps/generic/_G_config.h (_G_off64_t): Remove.
15471         (_G_stat64): Likewise.
15472         * sysdeps/unix/sysv/linux/_G_config.h (_G_off64_t): Remove.
15473         (_G_stat64): Likewise.
15474         * libio/filedoalloc.c (_IO_file_doallocate): Use struct stat64
15475         instead of struct _G_stat64.
15476         * libio/fileops.c (mmap_remap_check): Likewise.
15477         (decide_maybe_mmap): Likewise.
15478         (_IO_new_file_seekoff): Likewise.
15479         (_IO_file_stat): Likewise.
15480         * libio/libio.h (_IO_off64_t): Define to __off64_t, not
15481         _G_off64_t.
15482         * libio/oldfileops.c (_IO_old_file_seekoff): Use struct stat64
15483         instead of struct _G_stat64.
15484         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
15485
15486 2012-10-08  Maxim Kuvyrkov  <maxim@codesourcery.com>
15487
15488         [BZ #14602]
15489         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
15490         Replace with ...
15491         (CHECK_EOL): New macro.
15492         (two_way_short_needle): Check beginning of haystack for EOL.  Use
15493         CHECK_EOL.
15494         * string/strcasestr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
15495         Replace with CHECK_EOL.
15496         * string/strstr.c (AVAILABLE1, AVAILABLE2, AVAILABLE1_USES_J):
15497         Replace with CHECK_EOL.
15498
15499 2012-10-08  Joseph Myers  <joseph@codesourcery.com>
15500
15501         * math/gen-libm-test.pl (parse_args): Handle isinf and isnan as
15502         type-generic.
15503         * math/libm-test.inc: Update comment listing what functions and
15504         macros are tested.
15505         (finite_test): New function.
15506         (isinf_test): Likewise.
15507         (isnan_test): Likewise.
15508         (fpclassify_test): Test subnormal input.
15509         (isfinite_test): Likewise.
15510         (isnormal_test): Likewise.
15511         (main): Call the new functions.
15512
15513 2012-10-08  Jonathan Nieder  <jrnieder@gmail.com>
15514
15515         [BZ #14660]
15516         * Makerules (%.dynsym): Force C locale when running
15517         $(OBJDUMP) --dynamic-syms.
15518
15519 2012-10-08  Andreas Schwab  <schwab@linux-m68k.org>
15520
15521         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Include
15522         <stdint.h>.
15523
15524 2012-10-06  David S. Miller  <davem@davemloft.net>
15525
15526         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: On 32-bit, clear
15527         upper 32-bits of the length value in %o2 since we use branch-on-register
15528         tests which consider the entire 64-bit register.
15529
15530 2012-10-06  H.J. Lu  <hongjiu.lu@intel.com>
15531
15532         * string/test-strstr.c (check2): Add a test for page boundary.
15533
15534 2012-10-05  David S. Miller  <davem@davemloft.net>
15535
15536         * sysdeps/sparc/sparc64/multiarch/memset-niagara4.S: New file.
15537         * sysdeps/sparc/sparc32/sparcv9/multiarch/memset-niagara4.S: New
15538         file.
15539         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
15540         sysdep_routines.
15541         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
15542         * sysdeps/sparc/sparc64/multiarch/memset.S: Use Niagara-4 memset
15543         and bzero when HWCAP_SPARC_CRYPTO is present.
15544
15545 2012-10-05  H.J. Lu  <hongjiu.lu@intel.com>
15546
15547         [BZ #14602]
15548         * string/test-strstr.c (check2): New function.
15549         (test_main): Call check2.
15550
15551         * string/Makefile (tests): Remove bug-strstr1, bug-strcasestr1
15552         and bug-strchr1.
15553         * string/bug-strcasestr1.c (do_test): Moved to ...
15554         * string/test-strcasestr.c (check1): Here.  New function.
15555         (do_one_test): Break out result checking code into ...
15556         (check_result): This.  New function.
15557         (do_one_test): Call check_result.
15558         (test_main): Call check1.
15559         * string/bug-strchr1.c (do_test): Moved to ...
15560         * string/test-strchr.c (check1): Here.  New function.
15561         (do_one_test): Break out result checking code into ...
15562         (check_result): This.  New function.
15563         (do_one_test): Call check_result.
15564         (test_main): Call check1.
15565         * string/bug-strstr1.c (main): Moved to ...
15566         * string/test-strstr.c (check1): Here.  New function.
15567         (do_one_test): Break out result checking code into ...
15568         (check_result): This.  New function.
15569         (do_one_test): Call check_result.
15570         (test_main): Call check1.
15571         * string/bug-strcasestr1.c: Removed.
15572         * string/bug-strchr1.c: Likewise.
15573         * string/bug-strstr1.c: Likewise.
15574
15575         * elf/Makefile (dl-routines): Add hwcaps.
15576         * elf/dl-support.c (_dl_important_hwcaps): Removed.
15577         * elf/dl-sysdep.c (_DL_FIRST_EXTRA): Likewise.
15578         (_dl_important_hwcaps): Moved to ...
15579         * elf/dl-hwcaps.c: Here.  New file.
15580         * sysdeps/mach/hurd/dl-sysdep.c (_dl_important_hwcaps): Removed.
15581
15582         [BZ #14557]
15583         * elf/setup-vdso.h (setup_vdso): Set GL(dl_nns) to 1 for vDSO
15584         if IS_IN_rtld isn't defined.
15585
15586         * elf/dl-support.c (_dl_sysinfo_map): New.
15587         Include "get-dynamic-info.h" and "setup-vdso.h".
15588         (_dl_non_dynamic_init): Call setup_vdso.
15589         * elf/dynamic-link.h: Don't include <assert.h>.
15590         (elf_get_dynamic_info): Moved to ...
15591         * elf/get-dynamic-info.h: Here.  New file.
15592         * elf/dynamic-link.h: Include "get-dynamic-info.h".
15593         * elf/rtld.c (dl_main): Break out vDSO setup code into ...
15594         * elf/setup-vdso.h: Here.  New file.
15595         * elf/rtld.c: Include "setup-vdso.h".
15596         (dl_main): Call setup_vdso.
15597
15598 2012-10-05  Joseph Myers  <joseph@codesourcery.com>
15599
15600         * math/libm-test.inc: List nexttoward, cimag, clog10, conf and
15601         creal in comment listing functions tested.  List finite, isinf,
15602         isnan, isless, islessequal, isgreater, isgreaterequal,
15603         islessgreater, isunordered, lgamma_r and pow10 as functions and
15604         macros not tested.  Mention which functions not tested are aliases
15605         for other functions.  Fix typo.  Note that signs of NaNs are not
15606         tested.
15607
15608         * scripts/config.guess: Update from config.git.
15609         * scripts/config.sub: Likewise.
15610
15611 2012-10-04  Roland McGrath  <roland@hack.frob.com>
15612
15613         * misc/Versions (GLIBC_PRIVATE): New set, add __madvise.
15614         * misc/madvise.c (madvise): Renamed to __madvise.
15615         Make madvise a weak alias.
15616         * include/sys/mman.h: Declare __madvise.
15617         Replace libc_hidden_proto (madvise) with libc_hidden_proto (__madvise).
15618         * sysdeps/unix/syscalls.list
15619         (madvise): Make __madvise the strong name, and madvise a weak alias.
15620         * sysdeps/unix/sysv/linux/syscalls.list
15621         (madvise, mmap): Remove redundant entries.
15622         * malloc/arena.c (shrink_heap): Use __madvise, not madvise.
15623         * malloc/malloc.c (mtrim): Likewise.
15624         * sysdeps/mach/hurd/malloc-machine.h (madvise): Renamed to __madvise.
15625
15626 2012-10-03  Roland McGrath  <roland@hack.frob.com>
15627
15628         * sysdeps/mach/hurd/dl-cache.c: File removed.
15629         * config.h.in (USE_LDCONFIG): New #undef.
15630         * configure.in (use_ldconfig): If set, define USE_LDCONFIG.
15631         * configure: Regenerated.
15632         * elf/Makefile (dl-routines): Add dl-cache only under
15633         [$(use-ldconfig) = yes].
15634         * elf/dl-load.c (_dl_map_object): Conditionalize code consulting the
15635         cache on [USE_LDCONFIG].
15636         * elf/dl-open.c (_dl_open): Call _dl_unload_cache only under
15637         [USE_LDCONFIG].
15638         * elf/rtld.c (dl_main): Likewise.
15639
15640 2012-10-03  Pino Toscano  <toscano.pino@tiscali.it>
15641
15642         * sysdeps/posix/sysconf.c (__sysconf): Return 0 also for
15643         _SC_LEVEL4_CACHE_LINESIZE.
15644
15645 2012-10-03  Roland McGrath  <roland@hack.frob.com>
15646
15647         * sysdeps/unix/bsd/confstr.h: File removed.
15648
15649 2012-10-02  Alexandre Oliva <aoliva@redhat.com>
15650
15651         * scripts/check-local-headers.sh: Exclude sys/sdt.h and
15652         sys/sdt-config.h.
15653
15654 2012-10-02  Roland McGrath  <roland@hack.frob.com>
15655
15656         * elf/dl-load.c (_dl_map_object_from_fd: struct loadcmd):
15657         Make 'mapoff' field ElfW(Off) rather than off_t.
15658
15659 2012-10-02  Dmitry V. Levin  <ldv@altlinux.org>
15660
15661         * nscd/Makefile: Remove nscd-cflags and all its users.
15662         (CPPFLAGS-nonlib): Add preprocessor flags for nscd modules.
15663         (CFLAGS-nonlib): Add compiler flags for nscd modules.
15664
15665         [BZ #10631]
15666         * malloc.c (malloc_printerr): Clarify error message.
15667
15668 2012-10-02  H.J. Lu  <hongjiu.lu@intel.com>
15669
15670         [BZ #14648]
15671         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15672         Set bit_FMA_Usable if FMA is supported.
15673         * sysdeps/x86_64/multiarch/init-arch.h (bit_FMA_Usable): New
15674         macro.
15675         (bit_FMA4_Usable): Updated.
15676         (index_FMA_Usable): New macro.
15677         (CPUID_FMA): Likewise
15678         (HAS_FMA): Defined with bit_FMA_Usable.
15679
15680 2012-10-01  Roland McGrath  <roland@hack.frob.com>
15681
15682         * bits/types.h (__swblk_t): Type removed.
15683         * bits/typesizes.h (__SWBLK_T_TYPE): Macro removed.
15684         * sysdeps/mach/hurd/bits/typesizes.h (__SWBLK_T_TYPE): Likewise.
15685         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
15686         (__SWBLK_T_TYPE): Likewise.
15687         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
15688         (__SWBLK_T_TYPE): Likewise.
15689         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
15690         (__SWBLK_T_TYPE): Likewise.
15691         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
15692         (__SWBLK_T_TYPE): Likewise.
15693
15694 2012-10-01  Patsy Franklin <pfrankli@redhat.com>
15695             Honza Horak <hhorak@redhat.com>
15696
15697         * nis/yp_xdr.c (xdr_domainname): Use YPMAXDOMAIN as maxsize.
15698         (xdr_mapname): Use YPMAXMAP as maxsize.
15699         (xdr_peername): Use YPMAXPEER as maxsize.
15700         (xdr_keydat): Use YPAXRECORD as maxsize.
15701         (xdr_valdat): Use YPMAXRECORD as maxsize.
15702
15703 2012-10-01  Roland McGrath  <roland@hack.frob.com>
15704
15705         * io/openat.c [!__ASSUME_ATFCTS] (__have_atfcts): New global variable.
15706
15707         * sysdeps/unix/sysv/linux/init-first.c: Moved to ...
15708         * csu/init-first.c: ... here.
15709         * sysdeps/unix/sysv/linux/powerpc/init-first.c: Update #include.
15710         * sysdeps/unix/sysv/linux/s390/init-first.c: Likewise.
15711         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Likewise.
15712         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: Likewise.
15713         * sysdeps/i386/init-first.c: File removed.
15714         * sysdeps/sh/init-first.c: File removed.
15715
15716 2012-10-01  Joseph Myers  <joseph@codesourcery.com>
15717
15718         [BZ #14645]
15719         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Compute result as x * y
15720         if x * y might underflow to zero and z is zero.
15721         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Likewise.
15722         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
15723         * math/libm-test.inc (min_subnorm_value): New variable.
15724         (fma_test): Add more tests.
15725         (fma_test_towardzero): Likewise.
15726         (fma_test_downward): Likewise
15727         (fma_test_upward): Likewise.
15728         (initialize): Set min_subnorm_value.
15729
15730 2012-09-29  Joseph Myers  <joseph@codesourcery.com>
15731
15732         [BZ #14638]
15733         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use x * y + z for exact
15734         0 + 0.
15735         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Use original rounding
15736         mode for addition resulting in exact zero.
15737         * sysdeps/ieee754/ldbl-128/s_fma.c (__fma): Likewise.
15738         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Use x * y + z for
15739         exact 0 + 0.
15740         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
15741         * sysdeps/ieee754/ldbl-96/s_fmal.c (__fmal): Likewise.
15742         * math/libm-test.inc (fma_test): Add more tests.
15743         (fma_test_towardzero): New function.
15744         (fma_test_downward): Likewise.
15745         (fma_test_upward): Likewise.
15746         (main): Call the new functions.
15747
15748 2012-09-28  David S. Miller  <davem@davemloft.net>
15749
15750         * sysdeps/sparc/fpu/libm-test-ulps: Fix garbage in file.
15751
15752 2012-09-28  Roland McGrath  <roland@hack.frob.com>
15753
15754         * sysdeps/posix/sleep.c (__sleep): Rewritten using __nanosleep
15755         instead of SIGALRM.
15756
15757         * sysdeps/gnu/_G_config.h: Moved to ...
15758         * sysdeps/unix/sysv/linux/_G_config.h: ... here.
15759         * sysdeps/mach/hurd/_G_config.h: Moved to ...
15760         * sysdeps/generic/_G_config.h: ... here.
15761
15762         * io/open.c (__open): Renamed to __libc_open.  Make __open an alias.
15763
15764         * posix/Makefile ($(objpfx)config-name.h): Do $(make-target-directory).
15765
15766         * nss/Makefile ($(objpfx)/libnss_test1.so$(libnss_test1.so-version)):
15767         Conditionalize target on [libnss_test1.so-version].
15768
15769         * elf/dl-sysdep.c: Conditionalize whole contents on [SHARED].
15770
15771         * Makeconfig (nssobjdir, resolvobjdir): Remove variables.
15772         (elfobjdir): Move out of conditionals.
15773
15774         * nss/nsswitch.c (nss_new_service): Conditionalize definition and
15775         declaration on [!DO_STATIC_NSS || SHARED], matching its only caller.
15776         (__nss_lookup_function): Conditionalize label remove_from_tree on
15777         [!DO_STATIC_NSS || SHARED], matching its only use.
15778
15779 2012-09-28  David S. Miller  <davem@davemloft.net>
15780
15781         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara4.S: New file.
15782         * sysdeps/sparc/sparc32/sparcv9/multiarch/memcpy-niagara4.S: New
15783         file.
15784         * sysdeps/sparc/sparc64/multiarch/Makefile: Add to
15785         sysdep_routines.
15786         * sysdeps/sparc/sparc32/sparcv9/multiarch/Makefile: Likewise.
15787         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use Niagara-4 memcpy
15788         when HWCAP_SPARC_CRYPTO is present.
15789
15790 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
15791
15792         * io/tst-mknodat.c: Create a FIFO instead of a socket.
15793
15794 2012-09-28  Andreas Schwab  <schwab@linux-m68k.org>
15795
15796         [BZ #6530]
15797         * stdio-common/vfprintf.c (process_string_arg): Revert
15798         2000-07-22 change.
15799
15800 2011-09-28  Jonathan Nieder  <jrnieder@gmail.com>
15801
15802         * stdio-common/Makefile (tst-sprintf-ENV): Set environment
15803         for testcase.
15804         * stdio-common/tst-sprintf.c: Include <locale.h>
15805         (main): Test sprintf's handling of incomplete multibyte
15806         characters.
15807
15808 2012-09-28  H.J. Lu  <hongjiu.lu@intel.com>
15809
15810         * elf/dl-runtime.c (VERSYMIDX): Removed.
15811         * elf/dl-version.c (VERSYMIDX): Likewise.
15812         * elf/do-rel.h (VERSYMIDX): Likewise.
15813         (VALIDX): Likewise.
15814         * elf/dynamic-link.h (VERSYMIDX): Likewise.
15815         * elf/rtld.c (VALIDX): Likewise.
15816         (ADDRIDX): Likewise.
15817         * sysdeps/sparc/sparc32/dl-machine.h (VALIDX): Likewise.
15818         * sysdeps/sparc/sparc64/dl-machine.h (VALIDX): Likewise.
15819         * sysdeps/x86_64/dl-tlsdesc.h (ADDRIDX): Likewise.
15820         * sysdeps/generic/ldsodefs.h (VERSYMIDX): New macro.
15821         (VALIDX): Likewise.
15822         (ADDRIDX): Likewise.
15823
15824 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
15825
15826         * sysdeps/pthread/aio_fsync.c: Fix the file mode checking.
15827
15828 2012-09-28  Dmitry V. Levin  <ldv@altlinux.org>
15829
15830         [BZ #11438]
15831         * sysdeps/posix/getaddrinfo.c (default_scopes): Map RFC 1918 addresses
15832         to global scope.
15833         * posix/tst-rfc3484.c: Verify 10/8, 172.16/12 and 196.128/16
15834         addresses are in the same scope as 192.0.2/24.
15835         * posix/gai.conf: Document new scope table defaults.
15836
15837 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15838
15839         [BZ #5298]
15840         * libio/fileops.c (_IO_new_file_seekoff): Don't flush buffer
15841         for ftell.  Compute offsets from write pointers instead.
15842         * libio/wfileops.c (_IO_wfile_seekoff): Likewise.
15843
15844 2012-09-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
15845
15846         [BZ #14543]
15847         * libio/Makefile (tests): New test case tst-fseek.
15848         * libio/tst-fseek.c: New test case to verify that fseek/ftell
15849         combination works in wide mode.
15850         * libio/wfileops.c (_IO_wfile_seekoff): Adjust internal buffer
15851         state when the external buffer state changes.
15852
15853 2012-09-27  David S. Miller  <davem@davemloft.net>
15854
15855         [BZ #14376]
15856         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Do not
15857         pass reloc->r_addend in as the 'high' argument to
15858         sparc64_fixup_plt when handling R_SPARC_JMP_IREL relocations.
15859
15860         * sysdeps/sparc/fpu/libm-test-ulps: Update.
15861
15862 2012-09-28  Pino Toscano  <toscano.pino@tiscali.it>
15863
15864         * rt/tst-aio2.c: Include <pthread.h>.
15865         * rt/tst-aio3.c: Likewise.
15866
15867 2012-09-27  Steve Ellcey  <sellcey@mips.com>
15868
15869         * sysdeps/ieee754/ldbl-128/bits/huge_vall.h: Remove.
15870
15871 2012-09-27  H.J. Lu  <hongjiu.lu@intel.com>
15872
15873         * sysdeps/x86_64/multiarch/strncmp-ssse3.S: Conditionalize
15874         contents on [SHARED].
15875
15876 2012-09-26  Marek Polacek  <polacek@redhat.com>
15877
15878         [BZ #14530]
15879         [BZ #13741]
15880         * misc/sys/cdefs.h: Define __extern_inline and __extern_always_inline
15881         for C++ and GCC <4.3 as well as for non GCC compilers.
15882
15883 2012-09-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
15884
15885         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15886
15887 2012-09-25  Roland McGrath  <roland@hack.frob.com>
15888
15889         * Makefile.in (all, install): Declare with .PHONY.
15890         Reported by Michael Hope <michael.hope@linaro.org>.
15891
15892 2012-09-25  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
15893
15894         * manual/platform.texi (PowerPC): Document __ppc_get_timebase_freq.
15895         * sysdeps/powerpc/sys/platform/ppc.h: Include the operating
15896         system header.
15897         * sysdeps/unix/sysv/linux/powerpc/Makefile (sysdep_headers):
15898         Likewise.
15899         (sydep_routines): Add the new and the internal functions.
15900         * sysdeps/unix/sysv/linux/powerpc/bits/ppc.h: New file.
15901         * sysdeps/unix/sysv/linux/powerpc/get_timebase_freq.c: Likewise.
15902         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Versions
15903         (GLIBC_2.17): Add the new function.
15904         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
15905         (GLIBC_2.17): Likewise.
15906         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Versions
15907         (GLIBC_2.17): Likewise.
15908         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist
15909         (GLIBC_2.17): Likewise.
15910         * sysdeps/unix/sysv/linux/powerpc/test-gettimebasefreq.c: New file.
15911
15912 2012-09-25  Alan Modra  <amodra@gmail.com>
15913
15914         * sysdeps/unix/sysv/linux/powerpc/pthread_once.c (__pthread_once):
15915         Add release barrier before setting once_control to say
15916         initialisation is done.  Add hints on lwarx.  Use macro in
15917         place of isync.
15918         (clear_once_control): Add release barrier.
15919
15920 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
15921
15922         [BZ #13629]
15923         * math/s_clog.c (__clog): Handle more values close to |z| = 1
15924         specially.
15925         * math/s_clog10.c (__clog10): Likewise.
15926         * math/s_clog10f.c (__clog10f): Likewise.
15927         * math/s_clog10l.c (__clog10l): Likewise.
15928         * math/s_clogf.c (__clogf): Likewise.
15929         * math/s_clogl.c (__clogl): Likewise.
15930         * math/Makefile (libm-calls): Add x2y2m1.
15931         * sysdeps/generic/math_private.h (__x2y2m1f): Declare.
15932         (__x2y2m1): Likewise.
15933         (__x2y2m1l): Likewise.
15934         * sysdeps/ieee754/dbl-64/x2y2m1.c: New file.
15935         * sysdeps/ieee754/dbl-64/x2y2m1f.c: Likewise.
15936         * sysdeps/ieee754/ldbl-128/x2y2m1l.c: Likewise.
15937         * sysdeps/ieee754/ldbl-128ibm/x2y2m1l.c: Likewise.
15938         * sysdeps/ieee754/ldbl-96/x2y2m1.c: Likewise.
15939         * sysdeps/ieee754/ldbl-96/x2y2m1l.c: Likewise.
15940         * math/libm-test.inc (clog_test, clog10_test): Add more tests.
15941         * sysdeps/i386/fpu/libm-test-ulps: Update.
15942         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
15943
15944         [BZ #14621]
15945         * posix/glob.c (next_brace_sub): Use size_t instead of unsigned
15946         int as type of variable DEPTH.
15947         (glob): Use size_t instead of int as type of variables NEWCOUNT
15948         and OLD_PATHC.
15949
15950 2012-09-25  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
15951
15952         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
15953         Add s_sincosf-sse2.
15954         * sysdeps/i386/i686/fpu/multiarch/s_sincosf.c: New file.
15955         * sysdeps/i386/i686/fpu/multiarch/s_sincosf-sse2.S: New file.
15956         * sysdeps/ieee754/flt-32/s_sincosf.c (SINCOSF, SINCOSF_FUNC): Add
15957         macros for using routine as __sincosf_ia32.
15958         Use macro for function declaration and weak_alias.
15959         * sysdeps/i386/fpu/libm-test-ulps: Update.
15960
15961         * sysdeps/x86_64/fpu/s_sincosf.S: New file.
15962         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
15963
15964         * math/s_ccoshf.c (__ccoshf): Fix wrong usage of sincos for
15965         subnormal argument.
15966         * math/s_cexpf.c (__cexpf): Likewise.
15967         * math/s_csinf.c (__csinf): Likewise.
15968         * math/s_csinhf.c (__csinhf): Likewise.
15969         * math/s_ctanf.c (__ctanf): Likewise.
15970         * math/s_ctanhf.c (__ctanhf): Likewise.
15971         * math/s_ccosh.c (__ccoshf): Likewise.
15972         * math/s_cexp.c (__cexpl): Likewise.
15973         * math/s_csin.c (__csin): Likewise.
15974         * math/s_csinh.c (__csinh): Likewise.
15975         * math/s_ctan.c (__ctan): Likewise.
15976         * math/s_ctanh.c (ctanh): Likewise.
15977         * math/s_ccoshl.c (__ccoshl): Likewise.
15978         * math/s_cexpl.c (__cexpl): Likewise.
15979         * math/s_csinl.c (__csinl): Likewise.
15980         * math/s_csinhl.c (__csinhl): Likewise.
15981         * math/s_ctanl.c (__ctanl): Likewise.
15982         * math/s_ctanhl.c (__ctanhl): Likewise.
15983
15984 2012-09-25  Joseph Myers  <joseph@codesourcery.com>
15985
15986         * libio/libio.h (_IO_size_t): Define to size_t, not _G_size_t.
15987         (_IO_ssize_t): Define to __ssize_t, not _G_ssize_t.
15988         (_IO_off_t): Define to __off_t, not _G_off_t.
15989         (_IO_pid_t): Define to __pid_t, not _G_pid_t.
15990         (_IO_uid_t): Define to __uid_t, not _G_uid_t.
15991         (_IO_wint_t): Define to wint_t, not _G_wint_t.
15992         * libio/libioP.h (struct _IO_jump_t): Use size_t not _G_size_t as
15993         type of __dummy and __dummy2 fields.
15994         * sysdeps/generic/_G_config.h (_G_size_t): Remove.
15995         (_G_ssize_t): Likewise.
15996         (_G_off_t): Likewise.
15997         (_G_pid_t): Likewise.
15998         (_G_uid_t): Likewise.
15999         (_G_wchar_t): Likewise.
16000         (_G_wint_t): Likewise.
16001         * sysdeps/gnu/_G_config.h (_G_size_t): Remove.
16002         (_G_ssize_t): Likewise.
16003         (_G_off_t): Likewise.
16004         (_G_pid_t): Likewise.
16005         (_G_uid_t): Likewise.
16006         (_G_wchar_t): Likewise.
16007         (_G_wint_t): Likewise.
16008         * sysdeps/mach/hurd/_G_config.h (_G_size_t): Remove.
16009         (_G_ssize_t): Likewise.
16010         (_G_off_t): Likewise.
16011         (_G_pid_t): Likewise.
16012         (_G_uid_t): Likewise.
16013         (_G_wchar_t): Likewise.
16014         (_G_wint_t): Likewise.
16015
16016 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
16017
16018         * malloc/arena.c: Include malloc-sysdep.h.
16019         (shrink_heap): Use check_may_shrink_heap to decide if madvise
16020         is sufficient to shrink the heap or an unmap is needed.
16021         * sysdeps/generic/malloc-sysdep.h: New file.  Define
16022         new function check_may_shrink_heap.
16023         * sysdeps/unix/sysv/linux/malloc-sysdep.h: New file.  Define
16024         new function check_may_shrink_heap.
16025
16026 2012-09-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
16027
16028         * libio/fileops.c (_IO_new_file_seekoff): Fix typos in
16029         comments.
16030
16031 2012-09-24  Dmitry V. Levin  <ldv@altlinux.org>
16032
16033         * catgets/test-gencat.sh: Add "set -e".
16034         * elf/tst-pathopt.sh: Likewise.
16035         * grp/tst_fgetgrent.sh: Likewise.
16036         * iconvdata/run-iconv-test.sh: Likewise.
16037         * intl/tst-gettext.sh: Likewise.
16038         * intl/tst-gettext2.sh: Likewise.
16039         * intl/tst-gettext4.sh: Likewise.
16040         * intl/tst-gettext6.sh: Likewise.
16041         * intl/tst-translit.sh: Likewise.
16042         * io/ftwtest-sh: Likewise.
16043         * libio/test-freopen.sh: Likewise.
16044         * malloc/tst-mtrace.sh: Likewise.
16045         * posix/globtest.sh: Likewise.
16046         * posix/tst-getconf.sh: Likewise.
16047         * posix/wordexp-tst.sh: Likewise.
16048         * stdio-common/tst-printf.sh: Likewise.
16049         * stdio-common/tst-unbputc.sh: Likewise.
16050         * stdlib/tst-fmtmsg.sh: Likewise.
16051         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
16052         * catgets/Makefile: Do not specify -e option when running
16053         testsuite shell scripts.
16054         * elf/Makefile: Likewise.
16055         * grp/Makefile: Likewise.
16056         * iconvdata/Makefile: Likewise.
16057         * intl/Makefile: Likewise.
16058         * io/Makefile: Likewise.
16059         * libio/Makefile: Likewise.
16060         * malloc/Makefile: Likewise.
16061         * posix/Makefile: Likewise.
16062         * stdio-common/Makefile: Likewise.
16063         * stdlib/Makefile: Likewise.
16064         * sysdeps/x86_64/Makefile: Likewise.
16065
16066         * io/ftwtest-sh: Add copyright header.
16067         * posix/globtest.sh: Likewise.
16068         * posix/tst-getconf.sh: Likewise.
16069         * posix/wordexp-tst.sh: Likewise.
16070         * sysdeps/x86_64/tst-xmmymm.sh: Likewise.
16071
16072 2012-09-24  H.J. Lu  <hongjiu.lu@intel.com>
16073
16074         [BZ #13679]
16075         * Makeconfig (+link): Defined as $(+link-static) if
16076         $(build-shared) isn't yes.
16077         (link-tests): Defined as $(+link-static-tests) if $(build-shared)
16078         isn't yes.
16079         (static-gnulib): Add -lgcc_eh if $(build-shared) isn't yes.
16080
16081         * Makeconfig (+postctorT): Replace crtendS.o with crtend.o.
16082
16083         [BZ #14562]
16084         * malloc/arena.c (heap_trim): Properly get fencepost and adjust
16085         new chunk size with MALLOC_ALIGN_MASK.
16086
16087 2012-09-24  Joseph Myers  <joseph@codesourcery.com>
16088
16089         [BZ #5044]
16090         * stdio-common/printf_fphex.c: Include <stdbool.h> and
16091         <rounding-mode.h>.
16092         (__printf_fphex): Determine rounding using get_rounding_mode and
16093         round_away.
16094         * stdio-common/tst-printf-round.c (struct hex_test): New
16095         structure.
16096         (hex_tests): New variable.
16097         (test_hex_in_one_mode): New function.
16098         (do_test): Also run tests for hex float output.
16099
16100 2012-09-21  Joseph Myers  <joseph@codesourcery.com>
16101
16102         * libio/iopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
16103         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
16104         * libio/libio.h (_IO_HAVE_SYS_WAIT): Remove.
16105         * libio/oldiopopen.c [_IO_HAVE_SYS_WAIT]: Make code unconditional.
16106         [!_IO_HAVE_SYS_WAIT]: Remove conditional code.
16107         * sysdeps/generic/_G_config.h (_G_HAVE_SYS_WAIT): Remove.
16108         * sysdeps/gnu/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
16109         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_SYS_WAIT): Likewise.
16110
16111 2012-09-20  Joseph Myers  <joseph@codesourcery.com>
16112
16113         * libio/libio.h [_G_NEED_STDARG_H]: Make code unconditional.
16114         * sysdeps/generic/_G_config.h (_G_NEED_STDARG_H): Remove.
16115         * sysdeps/gnu/_G_config.h (_G_NEED_STDARG_H): Remove.
16116         * sysdeps/mach/hurd/_G_config.h (_G_NEED_STDARG_H): Remove.
16117
16118 2012-09-19  Dmitry V. Levin  <ldv@altlinux.org>
16119
16120         [BZ #14579]
16121         * elf/rtld.c (dl_main): Limit the check for self loading to normal
16122         mode only.
16123         * elf/tst-rtld-load-self.sh: New test.
16124         * elf/Makefile: Run it.
16125
16126 2012-09-18  Joseph Myers  <joseph@codesourcery.com>
16127
16128         * sysdeps/wordsize-64/Makefile [$(subdir) = misc]
16129         (tst-writev-ENV): Remove.
16130         * sysdeps/wordsize-64/tst-writev.c (TIMEOUT): Define.
16131
16132 2012-09-17  Chris Metcalf  <cmetcalf@tilera.com>
16133
16134         * crypt/md5test-giant.c (TIMEOUT): Increase to 8 minutes for tilegx.
16135
16136 2012-09-17  Joseph Myers  <joseph@codesourcery.com>
16137
16138         * libio/iogetline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]: Make code
16139         unconditional.
16140         * libio/iogetwline.c [_LIBC || !_G_HAVE_IO_GETLINE_INFO]:
16141         Likewise.
16142         * sysdeps/generic/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Remove.
16143         * sysdeps/gnu/_G_config.h (_G_HAVE_IO_GETLINE_INFO): Likewise.
16144         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_IO_GETLINE_INFO):
16145         Likewise.
16146
16147 2012-09-14  H.J. Lu  <hongjiu.lu@intel.com>
16148
16149         [BZ #14587]
16150         * Makeconfig (ASFLAGS): Remove $(have-cpp-asm-debuginfo) check.
16151         * config.make.in (have-cpp-asm-debuginfo): Removed.
16152         * configure.in: Don't substitute libc_cv_cpp_asm_debuginfo.
16153         * configure: Regenerated.
16154
16155 2012-09-14  Joseph Myers  <joseph@codesourcery.com>
16156
16157         [BZ #5044]
16158         * stdio-common/printf_fp.c: Include <stdbool.h> and
16159         <rounding-mode.h>.
16160         (___printf_fp): Determine rounding using get_rounding_mode and
16161         round_away.
16162         * stdio-common/tst-printf-round.c: New file.
16163         * stdio-common/Makefile (tests): Add tst-printf-round.
16164         (link-libm): New variable.
16165         ($(objpfx)tst-printf-round): Depend in $(link-libm).
16166
16167 2012-09-13  H.J. Lu  <hongjiu.lu@intel.com>
16168
16169         [BZ #14576]
16170         * bits/libc-lock.h (__rtld_lock_init_recursive): Removed.
16171         * sysdeps/mach/bits/libc-lock.h (__rtld_lock_init_recursive):
16172         Likewise.
16173         * sysdeps/mach/hurd/bits/libc-lock.h (__rtld_lock_init_recursive):
16174         Likewise.
16175
16176 2012-09-13  Joseph Myers  <joseph@codesourcery.com>
16177
16178         * libio/libio.h [!_G_HAVE_PRINTF_FP] (_IO_USE_DTOA): Remove.
16179         * sysdeps/generic/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
16180         * sysdeps/gnu/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
16181         * sysdeps/mach/hurd/_G_config.h (_G_HAVE_PRINTF_FP): Likewise.
16182
16183 2012-09-12  Joseph Myers  <joseph@codesourcery.com>
16184
16185         [BZ #14518]
16186         * include/rounding-mode.h: New file.
16187         * sysdeps/generic/get-rounding-mode.h: Likewise.
16188         * sysdeps/s390/fpu/get-rounding-mode.h: Likewise.
16189         * stdlib/strtod_l.c: Include <rounding-mode.h>.
16190         (MAX_VALUE): New macro.
16191         (MIN_VALUE): Likewise.
16192         (overflow_value): New function.
16193         (underflow_value): Likewise.
16194         (round_and_return): Use overflow_value and underflow_value to
16195         determine return values in overflow and underflow cases.  Use
16196         round_away to determine rounding depending on rounding mode.
16197         (____STRTOF_INTERNAL): Use overflow_value and underflow_value to
16198         determine return values in overflow and underflow cases.
16199         * stdlib/tst-strtod-round.c: Include <fenv.h>.
16200         (struct test_results): New structure.
16201         (struct test): Use struct test_results to store expected results
16202         for all rounding modes.
16203         (TEST): Include expected results for all rounding modes.
16204         (test_in_one_mode): New function.
16205         (do_test): Use test_in_one_mode to compute and check results.
16206         Check results for all rounding modes.
16207         * stdlib/Makefile ($(objpfx)tst-strtod-round): Depend on
16208         $(link-libm).
16209
16210 2012-12-09  Allan McRae  <allan@archlinux.org>
16211
16212         * sysdeps/i386/fpu/libm-test-ulps: Update
16213
16214 2012-09-11  Joseph Myers  <joseph@codesourcery.com>
16215
16216         * sysdeps/generic/_G_config.h (_G_int16_t): Remove.
16217         (_G_int32_t): Likewise.
16218         (_G_uint16_t): Likewise.
16219         (_G_uint32_t): Likewise.
16220         (_G_HAVE_BOOL): Likewise.
16221         (_G_HAVE_ATEXIT): Likewise.
16222         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
16223         (_G_HAVE_IO_FILE_OPEN): Likewise.
16224         * sysdeps/gnu/_G_config.h (_G_int16_t): Remove.
16225         (_G_int32_t): Likewise.
16226         (_G_uint16_t): Likewise.
16227         (_G_uint32_t): Likewise.
16228         (_G_HAVE_BOOL): Likewise.
16229         (_G_HAVE_ATEXIT): Likewise.
16230         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
16231         (_G_HAVE_IO_FILE_OPEN): Likewise.
16232         * sysdeps/mach/hurd/_G_config.h (_G_int16_t): Remove.
16233         (_G_int32_t): Likewise.
16234         (_G_uint16_t): Likewise.
16235         (_G_uint32_t): Likewise.
16236         (_G_HAVE_BOOL): Likewise.
16237         (_G_HAVE_ATEXIT): Likewise.
16238         (_G_HAVE_LONG_DOUBLE_IO): Likewise.
16239         (_G_HAVE_IO_FILE_OPEN): Likewise.
16240
16241 2012-09-11  H.J. Lu  <hongjiu.lu@intel.com>
16242
16243         * csu/libc-tls.c: Update copyright years.
16244
16245 2012-09-10  Joseph Myers  <joseph@codesourcery.com>
16246
16247         * libioP.h [_G_USING_THUNKS]: Make code unconditional.
16248         [!_G_USING_THUNKS]: Remove conditional code.
16249         * sysdeps/gnu/_G_config.h (_G_USING_THUNKS): Remove.
16250         * sysdeps/mach/hurd/_G_config.h (_G_USING_THUNKS): Likewise.
16251
16252         * libio/libioP.h [__GNUC__] (VTABLE_LABEL): Remove.
16253         [!builtinbuf_vtable && __cplusplus] (builtinbuf_vtable): Likewise.
16254         * sysdeps/generic/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
16255         (_G_VTABLE_LABEL_PREFIX): Likewise.
16256         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
16257         * sysdeps/gnu/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
16258         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
16259         (_G_VTABLE_LABEL_PREFIX): Likewise.
16260         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
16261         * sysdeps/mach/hurd/_G_config.h (_G_NAMES_HAVE_UNDERSCORE): Remove.
16262         (_G_VTABLE_LABEL_HAS_LENGTH): Likewise.
16263         (_G_VTABLE_LABEL_PREFIX): Likewise.
16264         (_G_VTABLE_LABEL_PREFIX_ID): Likewise.
16265
16266 2012-09-10  H.J. Lu  <hongjiu.lu@intel.com>
16267
16268         * libio/Makefile: Include ../Makeconfig before tests.
16269         (tests): Add tst-fopenloc and depend on $(objpfx)tst-fopenloc.check
16270         only if $(build-shared) is yes.
16271
16272         * iconv/gconv_db.c: Update copyright years.
16273
16274 2012-09-10  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16275
16276         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: Fix
16277         unwind info if defined PIC. Fix special cases description.
16278         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: Likewise.
16279
16280         * sysdeps/x86_64/fpu/s_sinf.S: Fix special cases description, fix
16281         DP_HI_MASK entry.
16282         * sysdeps/x86_64/fpu/s_cosf.S: Likewise.
16283
16284 2012-09-07  H.J. Lu  <hongjiu.lu@intel.com>
16285
16286         * scripts/check-local-headers.sh: Add "shopt -s nullglob".
16287
16288         * iconv/gconv_db.c (free_derivation): Check if deriv->steps
16289         is NULL.
16290
16291         * debug/Makefile (LDFLAGS-tst-chk4): Renamed to ...
16292         (LDLIBS-tst-chk4): This.
16293         (LDFLAGS-tst-chk5): Renamed to ...
16294         (LDLIBS-tst-chk5): This.
16295         (LDFLAGS-tst-chk6): Renamed to ...
16296         (LDLIBS-tst-chk6): This.
16297         (LDFLAGS-tst-lfschk4): Renamed to ...
16298         (LDLIBS-tst-lfschk4): This.
16299         (LDFLAGS-tst-lfschk5): Renamed to ...
16300         (LDLIBS-tst-lfschk5): This.
16301         (LDFLAGS-tst-lfschk6): Renamed to ...
16302         (LDLIBS-tst-lfschk6): This.
16303
16304         * Makefile ($(inst_includedir)/gnu/stubs.h): Remove dependency
16305         on $(common-objpfx)soversions.mk.
16306
16307 2012-09-07  Joseph Myers  <joseph@codesourcery.com>
16308
16309         [BZ #10014]
16310         * manual/examples/inetcli.c (SERVERHOST): Use www.gnu.org as
16311         example host name.
16312
16313 2012-09-07  Siddhesh Poyarekar  <siddhesh@redhat.com>
16314
16315         * malloc/arena.c (arena_get_retry): New function that gets
16316         another arena for the caller to try its request on.
16317         * malloc/malloc.c (__libc_malloc): Use get_another_arena if the
16318         current arena cannot fulfill the request.
16319         (__libc_memalign): Likewise.
16320         (__libc_memalign): Likewise.
16321         (__libc_pvalloc): Likewise.
16322         (__libc_calloc): Likewise.
16323
16324 2012-09-05  John Tobey  <john.tobey@gmail.com>
16325
16326         [BZ #13542]
16327         * manual/arith.texi (Operations on Complex): Fix description
16328         of carg branch cut.
16329
16330 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
16331
16332         [BZ #10014]
16333         * manual/socket.texi (Host Addresses): Use www.gnu.org as example
16334         host name.
16335
16336         [BZ #10038]
16337         * manual/memory.texi (Memory): Make order of menu items match
16338         order of sections.
16339
16340 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
16341
16342         * elf/dl-tls.c (DL_INITIAL_DTV): Removed.
16343         (_dl_initial_dtv): New.  Defined if SHARED isn't defined.
16344         (_dl_deallocate_tls): Restore GL(dl_initial_dtv).
16345
16346 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
16347
16348         * csu/libc-tls.c (static_dtv): Renamed to ...
16349         (_dl_static_dtv): This.  Make it global.
16350         (_dl_initial_dtv): Removed.
16351         (__libc_setup_tls): Updated.
16352         * elf/dl-tls.c (DL_INITIAL_DTV): New macro.
16353         (_dl_deallocate_tls): Replace GL(dl_initial_dtv) with
16354         DL_INITIAL_DTV.
16355
16356 2012-09-06  Petr Machata  <pmachata@redhat.com>
16357
16358         * elf/elf.h (NT_S390_HIGH_GPRS): New macro.
16359         (NT_S390_TIMER, NT_S390_TODCMP, NT_S390_TODPREG): Likewise.
16360         (NT_S390_CTRS, NT_S390_PREFIX, NT_S390_LAST_BREAK): Likewise.
16361         (NT_S390_SYSTEM_CALL, NT_ARM_VFP): Likewise.
16362
16363 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
16364
16365         [BZ #14545]
16366         * csu/libc-tls.c (_dl_initial_dtv): New variable.
16367         * elf/dl-tls.c (_dl_deallocate_tls): Always check dtv before
16368         freeing dtv[-1].
16369
16370 2012-09-06  H.J. Lu  <hongjiu.lu@intel.com>
16371
16372         [BZ #14544]
16373         * Makeconfig (link-static-before-libc): Replace $(+prector)
16374         with $(+prectorT).
16375         (link-static-after-libc): Replace $(+postctor) with
16376         $(+postctorT).
16377         (link-bounded): Replace $(+prector)/$(+postctor) with
16378         $(+prectorT)/$(+postctorT).
16379         (+prectorT): New macro.
16380         (+postctorT): Likewise.
16381
16382 2012-09-06  Joseph Myers  <joseph@codesourcery.com>
16383
16384         * stdlib/gen-tst-strtod-round.c: Include <assert.h>.
16385         (round_str): Handle values above the maximum for IBM long double
16386         as inexact.
16387         * stdlib/tst-strtod-round.c (tests): Regenerated.
16388
16389 2012-09-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16390
16391         * sysdeps/s390/s390-32/multiarch/Makefile: Remove -mzarch
16392         assembler flag.
16393         * sysdeps/s390/s390-32/multiarch/memcmp.S: Use .machinemode
16394         zarch_nohighgprs around the zarch optimized routines.
16395         * sysdeps/s390/s390-32/multiarch/memcpy.S: Likewise.
16396         * sysdeps/s390/s390-32/multiarch/memset.S: Likewise.
16397         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: Explicitly check
16398         for zarch.
16399
16400 2012-09-05  David S. Miller  <davem@davemloft.net>
16401
16402         * sysdeps/sparc/fpu/libm-test-ulps: Update.
16403
16404         * sysdeps/sparc/bits/hwcap.h (HWCAP_SPARC_PAUSE,
16405         HWCAP_SPARC_CBCOND, HWCAP_SPARC_CRYPTO): Define.
16406         * sysdeps/sparc/dl-procinfo.h (_DL_HWCAP_COUNT): Increase to 27.
16407         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
16408         entries.
16409
16410 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
16411
16412         * malloc/arena.c: Fold copyright years.
16413         * malloc/mcheck.c, malloc/memusage.c: Likewise.
16414
16415 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
16416
16417         * malloc/malloc.c (__libc_mallopt) <M_MMAP_MAX>: Fix indentation.
16418
16419 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
16420
16421         * manual/contrib.texi (Contributors): Fix typo.  Complete entry.
16422
16423 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
16424
16425         * malloc/malloc.c (__libc_mallopt) <M_MMAP_THRESHOLD>: Do not
16426         change internal state upon failure.
16427
16428 2012-09-05  Alexandre Oliva  <aoliva@redhat.com>
16429
16430         * malloc/mcheck.c (mcheck_check_all): Fix typo.
16431         * malloc/memusage.c (mmap): Likewise.
16432         (mmap64, mremap): Likewise.  Adjust name in comment.
16433
16434 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
16435
16436         * libio/fileops.c: Fix typos in comments.
16437         * libio/oldfileops.c: Likewise.
16438         * libio/wfileops.c: Likewise.
16439
16440 2012-09-05  Siddhesh Poyarekar  <siddhesh@redhat.com>
16441
16442         [BZ #1349]
16443         * malloc/Makefile (tests): Add tst-malloc-usable test case.
16444         (tst-malloc-usable-ENV): Set environment for test case.
16445         * malloc/hooks.c (malloc_check_get_size): New function to get
16446         requested size.
16447         * malloc/malloc.c (musable): Use malloc_check_get_size.
16448         * malloc/tst-malloc-usable.c: New test case.
16449
16450 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
16451
16452         * stdlib/tst-strtod-overflow.c (TIMEOUT): Define.
16453
16454 2012-09-05  Allan McRae  <allan@archlinux.org>
16455
16456         [BZ #13966]
16457         * configure.in (CXX_SYSINCLUDES): Use compiler output to
16458         determine header location.
16459         * configure: Regenerated.
16460
16461 2012-09-05  Andreas Schwab  <schwab@linux-m68k.org>
16462
16463         * stdlib/gen-tst-strtod-round.c (formats): Add Motorola extended
16464         float format.
16465         * stdlib/tst-strtod-round.c (TEST) [LDBL_MANT_DIG == 64 &&
16466         LDBL_MAX_EXP == 16384]: Add case for Motorola extended float
16467         format.
16468         (test): Regenerate.
16469
16470 2012-09-04  David S. Miller  <davem@davemloft.net>
16471
16472         * sysdeps/sparc/sparc32/sparcv9/addmul_1.S: New file.
16473         * sysdeps/sparc/sparc32/sparcv9/submul_1.S: New file.
16474         * sysdeps/sparc/sparc32/sparcv9/mul_1.S: New file.
16475
16476 2012-09-04  Florian Weimer  <fweimer@redhat.com>
16477
16478         * stdlib/tst-secure-getenv.c (alternative_main): Only warn on SGID
16479         failures.
16480
16481         * stdlib/tst-secure-getenv.c: Fix whitespace in comments.
16482
16483 2012-09-04  Joseph Myers  <joseph@codesourcery.com>
16484
16485         [BZ #9914]
16486         * libio/iogetdelim.c: Include <limits.h>.
16487         (_IO_getdelim): Avoid integer overflow in testing whether cur_len
16488         + len + 1 would overflow.
16489
16490 2012-09-03  Andreas Jaeger  <aj@suse.de>
16491
16492         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16493         * sysdeps/i386/fpu/libm-test-ulps: Update.
16494
16495 2012-09-03  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
16496
16497         * sysdeps/i386/i686/fpu/multiarch/Makefile (sysdep_routines):
16498         Add s_sinf-sse2, s_conf-sse2.
16499
16500         * sysdeps/i386/i686/fpu/multiarch/s_sinf-sse2.S: New file.
16501         * sysdeps/i386/i686/fpu/multiarch/s_cosf-sse2.S: New file.
16502         * sysdeps/i386/i686/fpu/multiarch/s_sinf.c: New file.
16503         * sysdeps/i386/i686/fpu/multiarch/s_cosf.c: New file.
16504
16505         * sysdeps/ieee754/flt-32/s_sinf.c (SINF, SINF_FUNC): Add macros
16506         for using routine as __sinf_ia32.
16507         Use macro for function declaration and weak_alias.
16508         * sysdeps/ieee754/flt-32/s_cosf.c (COSF, COSF_FUNC): Add macros
16509         for using routine as __cosf_ia32.
16510         Use macro for function declaration and weak_alias.
16511
16512         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Fix Copyright.
16513         * sysdeps/i386/i686/fpu/multiarch/e_expf.c: Fix Copyright.
16514
16515         * sysdeps/x86_64/fpu/s_sinf.S: New file.
16516         * sysdeps/x86_64/fpu/s_cosf.S: New file.
16517         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
16518
16519         * math/libm-test.inc (cos_test): Add more test cases.
16520         (sin_test): Likewise.
16521         (sincos_test): Likewise.
16522
16523 2012-09-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16524
16525         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c
16526         (IFUNC_RESOLVE): Make pointers to the specialized implementations
16527         hidden.
16528         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: Likewise.
16529
16530 2012-09-02  H.J. Lu  <hongjiu.lu@intel.com>
16531
16532         [BZ #14538]
16533         * sysdeps/x86_64/dl-machine.h (elf_machine_dynamic): Use the
16534         first element of the GOT.
16535         (elf_machine_load_address): Return the difference between
16536         the runtime address of _DYNAMIC and elf_machine_dynamic ().
16537
16538 2012-09-01  Allan McRae  <allan@archlinux.org>
16539
16540         [BZ #13412]
16541         * configure.in (AWK): Require gawk version 3.0 or later.
16542         * configure: Regenerated.
16543
16544 2012-09-01  Joseph Myers  <joseph@codesourcery.com>
16545
16546         * sysdeps/unix/sysv/linux/kernel-features.h
16547         (__ASSUME_POSIX_CPU_TIMERS): Remove.
16548         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
16549         [__NR_clock_getres]: Make code unconditional.
16550         [!__ASSUME_POSIX_CPU_TIMERS]: Remoce conditional code.
16551         (clock_getcpuclockid): Remove code left unreachable by removal of
16552         conditionals.
16553         * sysdeps/unix/sysv/linux/clock_getres.c [__NR_clock_getres]: Make
16554         code unconditional.
16555         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
16556         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
16557         * sysdeps/unix/sysv/linux/clock_gettime.c [__NR_clock_gettime]:
16558         Make code unconditional.
16559         [__ASSUME_POSIX_CPU_TIMERS]: Likewise.
16560         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
16561         * sysdeps/unix/sysv/linux/clock_settime.c
16562         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]: Remove
16563         conditional code.
16564         [__ASSUME_POSIX_CPU_TIMERS]: Make code unconditional.
16565         [!__ASSUME_POSIX_CPU_TIMERS]: Remove conditional code.
16566
16567 2012-08-29  H.J. Lu  <hongjiu.lu@intel.com>
16568
16569         [BZ #14476]
16570         * Makefile (install): Also pass LD_SO=$(ld.so-version) to
16571         scripts/test-installation.pl.
16572
16573         * scripts/test-installation.pl: Use LD_SO to get $ld_so_name
16574         and $ld_so_version if it is set.
16575
16576 2012-08-29  Siddhesh Poyarekar  <siddhesh@redhat.com>
16577
16578         [BZ #14516]
16579         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Don't return
16580         failure if reading from procfs failed.
16581         * sysdeps/unix/sysv/linux/ttyname_r.c (ttyname_r): Likewise.
16582
16583 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
16584
16585         * sysdeps/unix/sysv/linux/kernel-features.h
16586         (__ASSUME_STAT64_SYSCALL): Remove all definitions.
16587         * sysdeps/unix/sysv/linux/fxstat64.c [!__ASSUME_STAT64_SYSCALL]:
16588         Remove conditional code.
16589         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
16590         * sysdeps/unix/sysv/linux/fxstatat64.c [!__ASSUME_STAT64_SYSCALL]:
16591         Remove conditional code.
16592         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
16593         * sysdeps/unix/sysv/linux/i386/fxstat.c
16594         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
16595         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
16596         * sysdeps/unix/sysv/linux/i386/fxstatat.c
16597         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
16598         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
16599         * sysdeps/unix/sysv/linux/i386/lxstat.c
16600         [!__ASSUME_STAT64_SYSCALL]: Remove conditional code.
16601         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
16602         * sysdeps/unix/sysv/linux/i386/xstat.c [!__ASSUME_STAT64_SYSCALL]:
16603         Remove conditional code.
16604         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
16605         * sysdeps/unix/sysv/linux/lxstat64.c [!__ASSUME_STAT64_SYSCALL]:
16606         Remove conditional code.
16607         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
16608         * sysdeps/unix/sysv/linux/sparc/sparc64/xstat.c: Do not include
16609         <kernel-features.h>.
16610         [__NR_stat64 && !__ASSUME_STAT64_SYSCALL] (__have_no_stat64):
16611         Remove.
16612         * sysdeps/unix/sysv/linux/xstat64.c [!__ASSUME_STAT64_SYSCALL]:
16613         Remove conditional code.
16614         [__ASSUME_STAT64_SYSCALL]: Make code unconditional.
16615         * sysdeps/unix/sysv/linux/xstatconv.c [!__ASSUME_STAT64_SYSCALL]:
16616         Remove conditional.
16617
16618 2012-08-27  Mike Frysinger  <vapier@gentoo.org>
16619
16620         [BZ #5400]
16621         * NEWS: Add fixed bug number.
16622
16623 2012-08-27  Joseph Myers  <joseph@codesourcery.com>
16624
16625         [BZ #14519]
16626         * stdlib/strtod_l.c (round_and_return): Return -0.0 for
16627         underflowing exponent in case of negative sign.
16628         * stdlib/tst-strtod-round-data: Add more tests.
16629         * stdlib/tst-strtod-round.c (tests): Regenerated.
16630
16631         [BZ #3479]
16632         * stdlib/strtod_l.c (NDIG): Remove.
16633         (HEXNDIG): Likewise.
16634         (MPNSIZE): Increase to represent 10^n where 2^-n is 1/4 ulp of the
16635         smallest representable value.
16636         (____STRTOF_INTERNAL): Use all fractional decimal digits that may
16637         lie within an exact representation of 1/2 ulp of the result.
16638         * stdlib/fpioconst.c (__tens): Include 10^2^9 and 10^2^10
16639         unconditionally.
16640         (TENS_P9_IDX): Define unconditionally.
16641         (TENS_P9_SIZE): Likewise.
16642         (TENS_P10_IDX): Likewise.
16643         (TENS_P10_SIZE): Likewise.
16644         [BITS_PER_MP_LIMB == 32]: Change condition for larger powers of 10
16645         to !defined __NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024.
16646         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024] (__tens): Add
16647         entries for 10^2^13 and 10^2^14.
16648         [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ > 1024]
16649         (TENS_P13_IDX): Define.
16650         (TENS_P13_SIZE): Likewise.
16651         (TENS_P14_IDX): Likewise.
16652         (TENS_P14_SIZE): Likewise.
16653         (_fpioconst_pow10): Change array size to
16654         FPIOCONST_POW10_ARRAY_SIZE.  Make entries for 10^2^9 and 10^2^10
16655         unconditional.
16656         (_fpioconst_pow10) [!__NO_LONG_DOUBLE_MATH && __LDBL_MAX_EXP__ >
16657         1024]: Add entries for 10^2^13 and 10^2^14.
16658         [LAST_POW10 > _LAST_POW10]: Remove #error.
16659         * stdlib/fpioconst.h (FPIOCONST_POW10_ARRAY_SIZE): Define.
16660         (_fpioconst_pow10): Change array size to
16661         FPIOCONST_POW10_ARRAY_SIZE.
16662         * stdlib/gen-fpioconst.c: New file.
16663         * stdlib/gen-tst-strtod-round.c: Likewise.
16664         * stdlib/tst-strtod-round-data: Likewise.
16665         * stdlib/tst-strtod-round.c: Likewise.
16666         * stdlib/Makefile (tests): Add tst-strtod-round.
16667
16668         [BZ #14459]
16669         * stdlib/strtod_l.c: Include <stdint.h>.
16670         (NDEBUG): Do not define.
16671         (round_and_return): Change EXPONENT parameter to type intmax_t.
16672         Rearrange calculations to avoid internal overflow possibilities.
16673         (str_to_mpn): Change EXPONENT parameter to type intmax_t *.
16674         Rearrange calculations to avoid internal overflow possibilities.
16675         Assert that number fits inside MPNSIZE limbs.
16676         (____STRTOF_INTERNAL): Change EXPONENT variable to type intmax_t.
16677         Change DIG_NO, INT_NO and LEAD_ZERO to type size_t.  Rearrange
16678         calculations and add assertions to avoid internal overflow
16679         possibilities.  Add casts to avoid signed/unsigned operations.
16680         * stdlib/tst-strtod-overflow.c: New file.
16681         * stdlib/Makefile (tests): Add tst-strtod-overflow.
16682
16683 2012-08-25  Marek Polacek  <polacek@redhat.com>
16684
16685         * time/time.h: Fix some typos in comments.
16686
16687 2012-08-23  Roland McGrath  <roland@hack.frob.com>
16688
16689         * posix/tst-rfc3484.c: #undef USE_NSCD before including getaddrinfo.c.
16690         * posix/tst-rfc3484-2.c: Likewise.
16691         * posix/tst-rfc3484-3.c: Likewise.
16692
16693 2012-08-23  Steve McIntyre  <steve.mcintyre@linaro.org>
16694
16695         * elf/elf.h (EF_ARM_ABI_FLOAT_SOFT): New macro.
16696         (EF_ARM_ABI_FLOAT_HARD): Likewise.
16697
16698 2012-08-23  Joseph Myers  <joseph@codesourcery.com>
16699
16700         * sysdeps/unix/sysv/linux/dl-fxstatat64.c: Use <> instead of "" in
16701         #include of fxstatat64.c.
16702
16703 2012-08-22  Roland McGrath  <roland@hack.frob.com>
16704
16705         * shadow/getspent.c: #undef USE_NSCD before #include that gets the code.
16706         * shadow/getspent_r.c: Likewise.
16707         * shadow/getspnam.c: Likewise.
16708         * shadow/getspnam_r.c: Likewise.
16709         * gshadow/getsgent.c: Likewise.
16710         * gshadow/getsgent_r.c: Likewise.
16711         * gshadow/getsgnam.c: Likewise.
16712         * gshadow/getsgnam_r.c: Likewise.
16713         * inet/getnetbyad.c: Likewise.
16714         * inet/getnetbyad_r.c: Likewise.
16715         * inet/getnetbynm.c: Likewise.
16716         * inet/getnetbynm_r.c: Likewise.
16717         * inet/getnetent.c: Likewise.
16718         * inet/getnetent_r.c: Likewise.
16719         * inet/getproto.c: Likewise.
16720         * inet/getproto_r.c: Likewise.
16721         * inet/getprtent.c: Likewise.
16722         * inet/getprtent_r.c: Likewise.
16723         * inet/getprtname.c: Likewise.
16724         * inet/getprtname_r.c: Likewise.
16725         * inet/getrpcbyname.c: Likewise.
16726         * inet/getrpcbyname_r.c: Likewise.
16727         * inet/getrpcbynumber.c: Likewise.
16728         * inet/getrpcbynumber_r.c: Likewise.
16729         * inet/getrpcent.c: Likewise.
16730         * inet/getrpcent_r.c: Likewise.
16731         * inet/getaliasent.c: Likewise.
16732         * inet/getaliasent_r.c: Likewise.
16733         * inet/getaliasname.c: Likewise.
16734         * inet/getaliasname_r.c: Likewise.
16735         * nscd/getgrgid_r.c: Likewise.
16736         * nscd/getgrnam_r.c: Likewise.
16737         * nscd/gethstbyad_r.c: Likewise.
16738         * nscd/gethstbynm3_r.c: Likewise.
16739         * nscd/getpwnam_r.c: Likewise.
16740         * nscd/getpwuid_r.c: Likewise.
16741         * nscd/getsrvbynm_r.c: Likewise.
16742         * nscd/getsrvbypt_r.c: Likewise.
16743         * nscd/gai.c: Likewise.
16744
16745         * configure.in (build_nscd): New substituted variable, set
16746         by --disable-build-nscd and defaults to $use_nscd.
16747         * configure: Regenerated.
16748         * config.make.in (build-nscd): New substituted variable.
16749         * nscd/Makefile (others, others-pie, install-sbin, extra-objs):
16750         Change conditional to require [$(build-nscd) = yes] as well.
16751         * NEWS: Mention --disable-build-nscd in the --disable-nscd item.
16752
16753         [BZ# 13696]
16754         * configure.in (use_nscd): New substituted variable, set by
16755         --disable-nscd.  If enabled, define USE_NSCD.
16756         * configure: Regenerated.
16757         * config.h.in: Add USE_NSCD.
16758         * config.make.in (use-nscd): New substituted variable.
16759         * inet/Makefile (CFLAGS-gethstbyad_r.c): Likewise.
16760         (CFLAGS-gethstbynm_r.c, CFLAGS-gethstbynm2_r.c): Likewise.
16761         (CFLAGS-getsrvbynm_r.c, CFLAGS-getsrvbypt_r.c): Variables removed.
16762         * grp/Makefile (CFLAGS-getgrgid_r.c): Remove -DUSE_NSCD.
16763         (CFLAGS-getgrnam_r.c): Likewise.
16764         (CFLAGS-initgroups.c): Likewise.
16765         * posix/Makefile (CFLAGS-getaddrinfo.c): Remove -DUSE_NSCD.
16766         * pwd/Makefile (CFLAGS-getpwuid_r.c, CFLAGS-getpwnam_r.c):
16767         Variables removed.
16768         * inet/getnetgrent_r.c
16769         (nscd_setnetgrent): New function, broken out of ...
16770         (setnetgrent): ... here.  Call it.
16771         (innetgr): Conditionalize nscd bits on [USE_NSCD].
16772         (nscd_getnetgrent): Conditionalize on [USE_NSCD].
16773         (__internal_getnetgrent_r): Conditionalize its use on [USE_NSCD].
16774         * nscd/Makefile (routines, aux): Move definitions after include of
16775         Makeconfig.  Conditionalize on [$(use-nscd) != no].
16776         * nss/nsswitch.c (nss_load_all_libraries, __nss_disable_nscd):
16777         Conditionalize on [USE_NSCD].
16778         (is_nscd, nscd_init_cb): Likewise.
16779         (nss_load_library): Conditionalize init callback on [USE_NSCD].
16780         * nss/nss_files/files-init.c: Conditionalize body on [USE_NSCD].
16781         * nss/nss_db/db-init.c: Likewise.
16782         * nscd/nscd.c (main): Conditionalize __nss_disable_nscd call on
16783         [USE_NSCD].
16784         * sysdeps/unix/sysv/linux/check_pf.c (get_nl_timestamp): New function.
16785         (make_request): Use it.
16786         (cache_valid_p): New function.
16787         (__check_pf): Use it.
16788         * NEWS: Add item for --disable-nscd.
16789
16790 2012-08-22  Dmitry V. Levin  <ldv@altlinux.org>
16791
16792         * configure.in (SED): Update AC_CHECK_PROG_VER's version extract regexp
16793         to support sed >= 4.2.1-20-ga9bf076.
16794         * configure: Regenerated.
16795
16796 2012-08-22  Roland McGrath  <roland@hack.frob.com>
16797
16798         * csu/libc-start.c (apply_irel): Move extern declarations inside here.
16799         Conditionalize whole body on [IREL].
16800
16801 2012-08-22  Jeff Law <law@redhat.com>
16802
16803         [BZ #14505]
16804         * sysdeps/posix/getaddrinfo.c (gaih_inet): Only use gethostbyname4_r
16805         if the family is PF_UNSPEC.
16806
16807 2012-08-22  Mike Frysinger  <vapier@gentoo.org>
16808
16809         * Makerules (lib-version): Rename from V.
16810         (install-lib-nosubdir): Change V to lib-version.
16811
16812 2012-08-22  Will Schmidt  <will_schmidt@vnet.ibm.com>
16813
16814         [BZ #14252]
16815         * powerpc32/power6/wcschr.c: New file.
16816         * powerpc32/power6/wcscpy.c: New file.
16817         * powerpc32/power6/wcsrchr.c: New file.
16818         * powerpc64/power6/wcschr.c: New file.
16819         * powerpc64/power6/wcscpy.c: New file.
16820         * powerpc64/power6/wcsrchr.c: New file.
16821
16822 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
16823
16824         * string/str-two-way.h (AVAILABLE1_USES_J): New macro, define default.
16825         (two_way_short_needle): Use it.
16826         * string/strstr.c (AVAILABLE1_USES_J): Define.
16827         * string/strcasestr.c: Likewise.
16828
16829         * string/str-two-way.h (two_way_short_needle): Use pointers instead of
16830         array references.
16831         * string/strcasestr.c (TOLOWER): Make side-effect safe.
16832
16833         [BZ #11607]
16834         * NEWS: Add an entry.
16835         * string/str-two-way.h (AVAILABLE1, AVAILABLE2, RET0_IF_0): New macros,
16836         define their defaults.
16837         (two_way_short_needle): Detect end-of-string on-the-fly.
16838         * string/strcasestr.c, string/strstr.c (AVAILABLE): Update.
16839         (AVAILABLE1, AVAILABLE2, RET0_IF_0, AVAILABLE_USES_J): Define.
16840         * string/bug-strcasestr1.c: New test.
16841         * string/Makefile: Run it.
16842
16843 2012-08-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
16844
16845         [BZ #11607]
16846         * string/str-two-way.h (two_way_short_needle): Optimize matching of
16847         the first character.
16848
16849 2012-08-21  Roland McGrath  <roland@hack.frob.com>
16850
16851         * csu/elf-init.c (__libc_csu_irel): Function removed.
16852         * csu/libc-start.c (apply_irel): New function.
16853         (LIBC_START_MAIN): Call it instead of __libc_csu_irel.
16854
16855 2012-08-21  Joseph Myers  <joseph@codesourcery.com>
16856
16857         * sysdeps/unix/sysv/linux/kernel-features.h
16858         (__ASSUME_FADVISE64_64_SYSCALL): Remove.
16859         * sysdeps/unix/sysv/linux/i386/posix_fadvise64.S: Do not include
16860         <kernel-features.h>.
16861         [__NR_fadvise64_64]: Make code unconditional.
16862         [!__ASSUME_FADVISE64_64_SYSCALL]: Remove conditional code.
16863         [__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
16864         !__NR_fadvise64_64)]: Likewise.
16865         [!(__NR_fadvise64 && (!__ASSUME_FADVISE64_64_SYSCALL ||
16866         !__NR_fadvise64_64))]: Likewise.
16867         [__NR_fadvise64]: Make code unconditional.
16868         [!__NR_fadvise64]: Remove conditional code.
16869         * sysdeps/unix/sysv/linux/posix_fadvise64.c: Do not include
16870         <kernel-features.h>.
16871         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
16872         unconditional.
16873         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
16874         conditional code.
16875         * sysdeps/unix/sysv/linux/powerpc/powerpc32/posix_fadvise64.c: Do
16876         not include <kernel-features.h>.
16877         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
16878         unconditional.
16879         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
16880         conditional code.
16881         * sysdeps/unix/sysv/linux/s390/s390-32/posix_fadvise64.c: Do not
16882         include <kernel-features.h>.
16883         (__posix_fadvise64_l64) [__NR_fadvise64_64]: Make code
16884         unconditional.
16885         (_posix_fadvise64_l64) [!__ASSUME_FADVISE64_64_SYSCALL]: Remove
16886         conditional code.
16887
16888 2012-08-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
16889
16890         * sysdeps/powerpc/powerpc64/power7/memchr.S: Unrolled short loop and
16891         slight instruction rearrangements per scrollpipe analysis.
16892         * sysdeps/powerpc/powerpc64/power7/memchr.S: Likewise.
16893
16894 2012-08-20  Roland McGrath  <roland@hack.frob.com>
16895
16896         * manual/syslog.texi (syslog; vsyslog, closelog):
16897         Fix typo repeated twice: @file{dev/log} -> @file{/dev/log}.
16898         Reported by Ricardo Catalinas Jiménez <jimenezrick@gmail.com>.
16899
16900         * elf/dl-sysdep.c (_dl_important_hwcaps): Fix conditional on using
16901         DSOCAPS to match condition on defining it.
16902
16903 2012-08-20  Joseph Myers  <joseph@codesourcery.com>
16904
16905         * sysdeps/unix/sysv/linux/kernel-features.h
16906         (__ASSUME_SWAPCONTEXT_SYSCALL): Remove.
16907         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S
16908         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
16909         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
16910         * sysdeps/unix/sysv/linux/powerpc/powerpc32/setcontext.S
16911         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
16912         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
16913         * sysdeps/unix/sysv/linux/powerpc/powerpc32/swapcontext.S
16914         [__ASSUME_SWAPCONTEXT_SYSCALL]: Make code unconditional.
16915         [!__ASSUME_SWAPCONTEXT_SYSCALL]: Remove conditional code.
16916
16917         * sysdeps/unix/sysv/linux/kernel-features.h [__s390__ &&
16918         __LINUX_KERNEL_VERSION >= 0x020616] (__ASSUME_UTIMES): Define.
16919
16920         * sysdeps/unix/sysv/linux/kernel-features.h
16921         (__ASSUME_MMAP2_SYSCALL): Remove all definitions.
16922         * sysdeps/unix/sysv/linux/mmap64.c [__NR_mmap2]: Make code
16923         unconditional.
16924         [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16925         * sysdeps/unix/sysv/linux/i386/mmap.S (__mmap)
16926         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
16927         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16928         * sysdeps/unix/sysv/linux/i386/mmap64.S (__mmap64) [__NR_mmap2]:
16929         Make code unconditional.
16930         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16931         (__mmap64) [!__NR_mmap2]: Likewise.
16932         * sysdeps/unix/sysv/linux/s390/s390-32/mmap.S (__mmap)
16933         [__ASSUME_MMAP2_SYSCALL]: Make code unconditional.
16934         (__mmap) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16935         * sysdeps/unix/sysv/linux/s390/s390-32/mmap64.S (__mmap64)
16936         [__NR_mmap2]: Make code unconditional.
16937         (__mmap64) [!__ASSUME_MMAP2_SYSCALL]: Remove conditional code.
16938         (__mmap64) [!__NR_mmap2]: Likewise.
16939
16940 2012-08-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
16941
16942         * sysdeps/unix/sysv/linux/s390/s390-32/getrlimit.c: Remove.
16943
16944 2012-08-18  Andreas Jaeger  <aj@suse.de>
16945
16946         * stdio-common/_itoa.c (_itoa): Add missing DUMMY variable.
16947
16948 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
16949
16950         * include/sys/socket.h (__have_sock_cloexec): Add attribute_hidden.
16951         * include/unistd.h (__have_sock_cloexec): Likewise.
16952         (__have_pipe2): Likewise.
16953         (__have_dup3): Likewise.
16954
16955 2012-08-18  Mike Frysinger  <vapier@gentoo.org>
16956
16957         [BZ #9685]
16958         * include/unistd.h (__have_pipe2): Change define into an extern int.
16959         (__have_dup3): Likewise.
16960         * socket/have_sock_cloexec.c: Include fcntl.h.
16961         (__have_pipe2): New variable.
16962         (__have_dup3): Likewise.
16963
16964 2012-08-17  Mike Frysinger  <vapier@gentoo.org>
16965
16966         * sysdeps/unix/sysv/linux/nice.c: Adjust #include.
16967
16968 2012-08-17  Marek Polacek  <polacek@redhat.com>
16969
16970         * sysdeps/ieee754/ldbl-96/s_sincosl.c (__sincosl): Use __attribute__
16971         ((unused)) on I1, which is set by GET_LDOUBLE_WORDS but never used.
16972
16973 2012-08-17  Roland McGrath  <roland@hack.frob.com>
16974
16975         * configure.in: Add AC_SUBST for sysheaders.
16976         * configure: Regenerated.
16977         * config.make.in (sysheaders): New substituted variable.
16978
16979         * sysdeps/unix/mkfifo.c: Moved ...
16980         * sysdeps/posix/mkfifo.c: ... here.
16981         * sysdeps/unix/mkfifoat.c: Moved ...
16982         * sysdeps/posix/mkfifoat.c: ... here.
16983
16984         * sysdeps/unix/utime.c: Moved ...
16985         * sysdeps/posix/utime.c: ... here.
16986
16987         * sysdeps/unix/time.c: Moved ...
16988         * sysdeps/posix/time.c: ... here.
16989         * sysdeps/unix/sysv/linux/time.c: Adjust #include.
16990         * sysdeps/unix/sysv/linux/sparc/sparc64/time.c: Likewise.
16991
16992         * sysdeps/unix/nice.c: Moved ...
16993         * sysdeps/posix/nice.c: ... here.
16994
16995         * sysdeps/unix/alarm.c: Moved ...
16996         * sysdeps/posix/alarm.c: ... here.
16997
16998         * intl/Makefile ($(codeset_mo)): Depend on the input file.
16999
17000 2012-08-17  Jeff Law <law@redhat.com>
17001
17002         * intl/Makefile (codeset_mo): New variable.
17003         ($(codeset_mo)): New target.
17004         (tst-codeset.out): Depend on that.  Remove explicit rule.
17005         (tst-gettext3.out, tst-gettext5.out): Likewise.
17006         (LOCPATH-ENV, tst-codeset-ENV): New variables.
17007         (tst-gettext3-ENV, tst-gettext5-ENV): Likewise.
17008         * intl/tst-codeset.sh: Remove.
17009         * intl/tst-gettext3.sh: Likewise.
17010         * intl/tst-gettext5.sh: Likewise.
17011
17012 2012-08-17  Roland McGrath  <roland@hack.frob.com>
17013
17014         * sysdeps/unix/inet/syscalls.list: File removed.  Move contents into ...
17015         * sysdeps/unix/syscalls.list: ... here.
17016
17017         * sysdeps/posix/getaddrinfo.c
17018         (save_gaiconf_mtime, check_gaiconf_mtime): New functions.
17019         (gaiconf_init, gaiconf_reload): Use them.
17020         [!_STATBUF_ST_NSEC]
17021         (gaiconf_mtime, save_gaiconf_mtime, check_gaiconf_mtime):
17022         Define using time_t rather than struct timespec.
17023
17024         * sysdeps/generic/malloc-machine.h (MUTEX_INITIALIZER): New macro.
17025         (atomic_full_barrier, atomic_read_barrier, atomic_write_barrier):
17026         Macros removed.
17027         * malloc/arena.c (save_malloc_hook, save_free_hook): Conditionalize on
17028         [!NO_THREADS].
17029         (malloc_atfork, free_atfork, atfork_recursive_cntr): Likewise.
17030         (ptmalloc_lock_all, ptmalloc_unlock_all, ptmalloc_unlock_all2):
17031         Likewise.
17032
17033         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Use NULL rather than 0 for
17034         __libc_cleanup_push argument.
17035
17036         * bits/param.h: New file.
17037         * misc/sys/param.h: New file.
17038         * include/sys/param.h: New file.
17039         * misc/Makefile (headers): Add bits/param.h.
17040         * sysdeps/generic/sys/param.h: File removed.
17041         * sysdeps/unix/sysv/linux/bits/param.h: New file.
17042         * sysdeps/unix/sysv/linux/sys/param.h: File removed.
17043         * sysdeps/mach/hurd/bits/param.h: New file.
17044         * sysdeps/mach/hurd/sys/param.h: File removed.
17045
17046         * elf/dl-close.c (_dl_close_worker): Add a cast and a comment to the
17047         last change.
17048
17049         * libio/genops.c (_IO_unbuffer_write): Conditionalize locking code on
17050         [_IO_MTSAFE_IO].
17051         * libio/libioP.h [!_IO_MTSAFE_IO && !NOT_IN_libc]
17052         (_IO_acquire_lock, _IO_acquire_lock_clear_flags2, _IO_release_lock):
17053         New macros.
17054
17055         * Makeconfig [$(libc-reentrant) = yes] (libio-mtsafe): New variable.
17056         * libio/Makefile (CPPFLAGS): Append $(libio-mtsafe) unconditionally
17057         rather than -D_IO_MTSAFE_IO conditionally.
17058         * stdio-common/Makefile (CPPFLAGS): Likewise.
17059         * wcsmbs/Makefile (CPPFLAGS): Likewise.
17060         * stdlib/Makefile (CFLAGS-strfmon.c, CFLAGS-strfmon_l.c):
17061         Use $(libio-mtsafe).
17062         * debug/Makefile (CFLAGS-sprintf_chk.c): Use $(libio-mtsafe) instead
17063         of -D_IO_MTSAFE_IO.
17064         (CFLAGS-snprintf_chk.c, CFLAGS-vsprintf_chk.c): Likewise.
17065         (CFLAGS-vsnprintf_chk.c, CFLAGS-asprintf_chk.c): Likewise.
17066         (CFLAGS-vasprintf_chk.c, CFLAGS-obprintf_chk.c): Likewise.
17067         (CFLAGS-dprintf_chk.c, CFLAGS-vdprintf_chk.c): Likewise.
17068         (CFLAGS-printf_chk.c, CFLAGS-fprintf_chk.c): Likewise.
17069         (CFLAGS-vprintf_chk.c, CFLAGS-vfprintf_chk.c): Likewise.
17070         (CFLAGS-gets_chk.c, CFLAGS-fgets_chk.c): Likewise.
17071         (CFLAGS-fgets_u_chk.c, CFLAGS-fread_chk.c): Likewise.
17072         (CFLAGS-fread_u_chk.c): Likewise.
17073         (CFLAGS-swprintf_chk.c, CFLAGS-vswprintf_chk.c): Likewise.
17074         (CFLAGS-wprintf_chk.c, CFLAGS-fwprintf_chk.c): Likewise.
17075         (CFLAGS-vwprintf_chk.c, CFLAGS-vfwprintf_chk.c): Likewise.
17076         (CFLAGS-fgetws_chk.c, CFLAGS-fgetws_u_chk.c): Likewise.
17077         * grp/Makefile (CFLAGS-fgetgrent_r.c, CFLAGS-putgrent.c): Likewise.
17078         * gshadow/Makefile (CFLAGS-fgetsgent_r.c, CFLAGS-putsgent.c): Likewise.
17079         * misc/Makefile (CFLAGS-mntent_r.c): Likewise.
17080         * pwd/Makefile (CFLAGS-fgetpwent_r.c): Likewise.
17081         * shadow/Makefile (CFLAGS-fgetspent_r.c, CFLAGS-putspent.c): Likewise.
17082
17083         * libio/Makefile: Test [$(libc-reentrant) = yes]
17084         instead of [$(filter %REENTRANT, $(defines)) nonempty].
17085
17086         * Makeconfig
17087         [$(libc-reentrant) = yes] (defines): Append -D_LIBC_REENTRANT.
17088         * sysdeps/pthread/configure: File removed.
17089         * sysdeps/pthread/Makeconfig: New file.
17090         * sysdeps/mach/hurd/Makeconfig (libc-reentrant): New variable.
17091         * sysdeps/mach/hurd/configure.in: Don't touch DEFINES here.
17092
17093 2012-08-16  Gary Benson  <gbenson@redhat.com>
17094
17095         * elf/dl-close.c (_dl_close_worker): Also set r->r_map when
17096         unmapping the first object in a namespace.
17097
17098 2012-08-16  Roland McGrath  <roland@hack.frob.com>
17099
17100         * inet/getnetgrent_r.c (internal_setnetgrent): Renamed to ...
17101         (__internal_setnetgrent): ... this.  Add internal_function to
17102         definition.  Add libc_hidden_def.
17103         (setnetgrent): Update caller.
17104         (internal_endnetgrent): Renamed to ...
17105         (__internal_endnetgrent): ... this.  Add internal_function to
17106         definition.  Add libc_hidden_def.
17107         (endnetgrent): Update caller.
17108         (internal_getnetgrent_r): Renamed to ...
17109         (__internal_getnetgrent_r): ... this.  Add internal_function to
17110         definition.  Add libc_hidden_def.
17111         (__getnetgrent_r): Update caller.
17112         * inet/netgroup.h: Update declarations.  Add libc_hidden_proto uses.
17113
17114 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
17115
17116         * stdlib/longlong.h: Update from GCC.
17117
17118 2012-08-16  Roland McGrath  <roland@hack.frob.com>
17119
17120         * stdlib/gmp-impl.h (udiv_qrnnd_preinv): Use __attribute__ ((unused))
17121         on _QL, which is set by umul_ppmm but never used.
17122         * stdio-common/_itoa.c (_itoa): Use __attribute__ ((unused)) on DUMMY
17123         variables, which are set by GMP macros but never used.
17124         * stdio-common/_itowa.c (_itowa): Likewise.
17125         * stdlib/divmod_1.c (mpn_divmod_1): Likewise.
17126         * stdlib/mod_1.c (mpn_mod_1): Likewise.
17127
17128 2012-08-16  Carlos O'Donell  <carlos_odonell@mentor.com>
17129
17130         * sysdeps/sh/ldsodefs.h (ARCH_PLTENTER_MEMBERS) <sh_gnu_pltenter>:
17131         struct La_sh_regs is not constant.
17132         * sysdeps/sparc/ldsodefs.h (ARCH_PLTENTER_MEMBERS)
17133         <sparc32_gnu_pltenter, sparc64_gnu_pltenter>: struct La_sparc32_regs
17134         and struct La_sparc64_regs are not constant.
17135
17136 2012-08-16  Joseph Myers  <joseph@codesourcery.com>
17137
17138         * sysdeps/unix/sysv/linux/kernel-features.h
17139         (__ASSUME_POSIX_TIMERS): Remove.
17140         * sysdeps/unix/sysv/linux/clock_getcpuclockid.c
17141         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
17142         * sysdeps/unix/sysv/linux/clock_getres.c [__ASSUME_POSIX_TIMERS]:
17143         Make code unconditional.
17144         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
17145         * sysdeps/unix/sysv/linux/clock_gettime.c [__ASSUME_POSIX_TIMERS]:
17146         Make code unconditional.
17147         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
17148         * sysdeps/unix/sysv/linux/clock_nanosleep.c
17149         [__ASSUME_POSIX_TIMERS]: Make code unconditional.
17150         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
17151         * sysdeps/unix/sysv/linux/clock_settime.c [__ASSUME_POSIX_TIMERS]:
17152         Make code unconditional.
17153         [!__ASSUME_POSIX_TIMERS]: Remove conditional code.
17154         [__ASSUME_POSIX_CPU_TIMERS <= 0 && __NR_clock_settime]
17155         (__libc_missing_posix_timers): Remove.
17156
17157 2012-08-15  Roland McGrath  <roland@hack.frob.com>
17158
17159         * elf/dl-load.c (_dl_map_object_from_fd) [SHARED]: Conditionalize
17160         check of GL(dl_error_catch_tsd) on [_LIBC_REENTRANT].
17161
17162         * bits/libc-lock.h (__rtld_lock_initialize): New macro.
17163
17164         * elf/dl-sym.c: Include <stdlib.h>.
17165
17166         * posix/regcomp.c (init_word_char): Use temporaries to hold the 64-bit
17167         constants, which avoids warnings in 32-bit builds.
17168
17169         * bits/fcntl.h [__USE_POSIX199309 || __USE_UNIX98]:
17170         (O_DSYNC, O_RSYNC): New macros (with NetBSD values).
17171
17172         * misc/lseek.c: File moved to ...
17173         * io/lseek.c: ... here.
17174
17175         * rt/clock_nanosleep.c: Include <time.h>, not <sys/time.h>.
17176
17177         * crypt/sha512.c (sha512_process_block) [!USE_TOTAL128]: Avoid
17178         shifting LEN more than 31 bits at once.
17179
17180 2012-08-15  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
17181
17182         [BZ #14195]
17183         * sysdeps/i386/i686/multiarch/strcmp-sssse3.S: Fix
17184         segmentation fault for a case of two empty input strings.
17185         * string/test-strncasecmp.c (check1): Renamed to...
17186         (bz12205): ...this.
17187         (bz14195): Add new testcase for two empty input strings and N > 0.
17188         (test_main): Call new testcase, adapt for renamed function.
17189
17190 2012-08-15  Andreas Jaeger  <aj@suse.de>
17191
17192         [BZ #14090]
17193         * crypt/md5test2.c: New test, based on test supplied by Serge
17194         Belyshev <belyshev@depni.sinp.msu.ru>.
17195         * crypt/Makefile (xtests): Add md5test-giant..
17196         * crypt/Makefile ($(objpfx)md5test-giant): Add.
17197
17198 2012-08-15  Paul Eggert  <eggert@cs.ucla.edu>
17199
17200         [BZ #14090]
17201         * crypt/md5.c (md5_process_block): Don't assume the buffer
17202         length is less than 2**32.
17203         * crypt/sha512.c (sha512_process_block): Don't assume the buffer
17204         length is less than 2**64.
17205
17206 2012-08-15  Roland McGrath  <roland@hack.frob.com>
17207
17208         * string/str-two-way.h: Include <sys/param.h>.
17209         (MAX): Macro removed.
17210
17211         * sysdeps/x86_64/multiarch/strstr-c.c: Add copyright header.
17212         Move #define and #undef of memmove to just before and after
17213         including <string.h>.
17214
17215         * sysdeps/x86_64/multiarch/memmove.c: Don't include <stddef.h>.
17216         [!NOT_IN_libc]: Move #define and #undef of memmove to just before
17217         and after including <string.h>.  Move declarations of
17218         __memmove_sse2, __memmove_ssse3, and __memmove_ssse3_back
17219         to before #include "string/memmove.c".
17220
17221         * include/dirent.h: Declare __getdirentries.
17222
17223         * sysdeps/posix/system.c (do_system): Cast SUB_REF () to void when not
17224         using its value, to avoid warnings in the [!_LIBC_REENTRANT] case.
17225
17226 2012-08-14  Mike Frysinger  <vapier@gentoo.org>
17227
17228         * config.h.in (HAVE_CPP_ASM_DEBUGINFO): Delete.
17229         * sysdeps/i386/configure.in: Remove assembler-with-cpp debug check.
17230         * sysdeps/i386/configure: Regenerated.
17231         * sysdeps/i386/sysdep.h (ENTRY): Remove calls to STABS_CURRENT_FILE1,
17232         STABS_CURRENT_FILE, and STABS_FUN.
17233         (END): Remove call to STABS_FUN_END.
17234         (STABS_CURRENT_FILE1): Delete.
17235         (STABS_CURRENT_FILE): Likewise.
17236         (STABS_FUN): Likewise.
17237         (STABS_FUN_END): Likewise.
17238         (STABS_FUN2): Likewise.
17239         * sysdeps/x86_64/configure.in: Remove assembler-with-cpp debug check.
17240         * sysdeps/x86_64/configure: Regenerated.
17241
17242 2012-08-14  Roland McGrath  <roland@hack.frob.com>
17243
17244         * elf/dl-open.c: Include <atomic.h>.
17245         * elf/dl-lookup.c: Likewise.
17246
17247 2012-08-14  Joseph Myers  <joseph@codesourcery.com>
17248
17249         * sysdeps/unix/sysv/linux/kernel-features.h
17250         (__ASSUME_CLONE_THREAD_FLAGS): Remove.
17251         * sysdeps/unix/sysv/linux/s390/system.c (FORK): Define
17252         unconditionally.
17253         * sysdeps/unix/sysv/linux/sparc/system.c (FORK): Define
17254         unconditionally.
17255         * sysdeps/unix/sysv/linux/system.c [!FORK] (FORK): Do not
17256         condition on __ASSUME_CLONE_THREAD_FLAGS.
17257
17258 2012-08-14  Andreas Jaeger  <aj@suse.de>
17259
17260         * sysdeps/i386/fpu/libm-test-ulps: Update.
17261
17262 2012-08-13  Maxim Kuvyrkov  <maxim@codesourcery.com>
17263
17264         * include/atomic.h (atomic_exchange_and_add): Split into ...
17265         (atomic_exchange_and_add_acq, atomic_exchange_and_add_rel): ... these.
17266         New atomic macros.
17267
17268 2012-08-13  Markus Trippelsdorf  <markus@trippelsdorf.de>
17269
17270         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
17271
17272 2012-08-13  Jeff Law <law@redhat.com>
17273
17274         * manual/stdio.texi (snprintf): Clarify handling of the trailing
17275         null byte in the output string.
17276
17277 2012-08-10  Joseph Myers  <joseph@codesourcery.com>
17278
17279         * sysdeps/unix/sysv/linux/kernel-features.h
17280         (__LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL): Define.
17281         [__LINUX_KERNEL_VERSION >= __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL]
17282         (__ASSUME_ARG_MAX_STACK_BASED): Define.
17283         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf)
17284         [__LINUX_KERNEL_VERSION < 0x020617]: Change condition to
17285         !__ASSUME_ARG_MAX_STACK_BASED.  Compare version with
17286         __LINUX_ARG_MAX_STACK_BASED_MIN_KERNEL.
17287
17288 2012-08-09  Jeff Law <law@redhat.com>
17289
17290         [BZ #13939]
17291         * malloc.c/arena.c (reused_arena): New parameter, avoid_arena.
17292         When avoid_arena is set, don't retry in the that arena.  Pick the
17293         next one, whatever it might be.
17294         (arena_get2): New parameter avoid_arena, pass through to reused_arena.
17295         (arena_lock): Pass in new parameter to arena_get2.
17296         * malloc/malloc.c (__libc_memalign): Pass in new parameter to
17297         arena_get2.
17298         (__libc_malloc): Unify retrying after main arena failure with
17299         __libc_memalign version.
17300         (__libc_valloc, __libc_pvalloc, __libc_calloc): Likewise.
17301
17302 2012-08-09  H.J. Lu  <hongjiu.lu@intel.com>
17303
17304         [BZ #14166]
17305         * sysdeps/i386/i686/multiarch/strstr-c.c (strstr): Redefined
17306         to __redirect_strstr.
17307         (__strstr_sse42): Use typeof __redirect_strstr.
17308         (__strstr_ia32): Likewise.
17309         (__libc_strstr): New prototype.
17310         (strstr): Renamed to ...
17311         (__libc_strstr): This.
17312         (strstr): New strong alias of __libc_strstr.
17313         * sysdeps/x86_64/multiarch/strstr-c.c: Likewise.
17314         * sysdeps/unix/sysv/linux/x86_64/time.c (time): Redefined to
17315         __redirect_time.
17316         Include <time.h>.
17317         (__libc_time): New prototype.
17318         (time_ifunc): Replace time with __libc_time.
17319         (time): New strong alias and hidden definition of __libc_time.
17320         (__GI_time): Remove strong alias.
17321         * sysdeps/x86_64/multiarch/memmove.c: Don't include <string.h>.
17322         Include <stddef.h>.
17323         (memmove): Redefined to __redirect_memmove.
17324         (__memmove_sse2): Use typeof __redirect_memmove.
17325         (__memmove_ssse3): Likewise.
17326         (__memmove_ssse3_back): Likewise.
17327         (__libc_memmove): New prototype.
17328         (memmove): Renamed to ...
17329         (__libc_memmove): This.
17330         (memmove): New strong alias of __libc_memmove.
17331
17332 2012-08-08  Mark Salter  <msalter@redhat.com>
17333
17334         * elf/elf.h
17335         (R_MN10300_TLS_GD): Define.
17336         (R_MN10300_TLS_LD): Likewise.
17337         (R_MN10300_TLS_LDO): Likewise.
17338         (R_MN10300_TLS_GOTIE): Likewise.
17339         (R_MN10300_TLS_IE): Likewise.
17340         (R_MN10300_TLS_LE): Likewise.
17341         (R_MN10300_TLS_DTPMOD): Likewise.
17342         (R_MN10300_TLS_DTPOFF): Likewise.
17343         (R_MN10300_TLS_TPOFF): Likewise.
17344         (R_MN10300_SYM_DIFF): Likewise.
17345         (R_MN10300_ALIGN): Likewise.
17346         (R_MN10300_NUM): Update.
17347
17348 2012-08-08  Joseph Myers  <joseph@codesourcery.com>
17349
17350         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_TGKILL):
17351         Remove.
17352
17353 2012-08-08  Roland McGrath  <roland@hack.frob.com>
17354
17355         * sysdeps/posix/fdopendir.c: Include <stddef.h>.
17356
17357         * sysdeps/unix/sysv/linux/readdir64_r.c: Update #include for
17358         sysdeps/unix -> sysdeps/posix move.
17359         * sysdeps/unix/sysv/linux/i386/readdir64_r.c: Likewise.
17360
17361 2012-08-07      Allan McRae     <allan@archlinux.org>
17362
17363         [BZ #14303]
17364         * sunrpc/rpc_main.c (SVR4_CPP): Remove.
17365         (SUNOS_CPP): Likewise.
17366         (find_cpp): Fall back to selecting system cpp when /lib/cpp is
17367         not found.
17368         (open_input): Call CPP using execvp.
17369
17370 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
17371
17372         * sysdeps/unix/sysv/linux/kernel-features.h
17373         (__ASSUME_PROT_GROWSUPDOWN): Remove.
17374         (__ASSUME_NO_CLONE_DETACHED): Likewise.
17375         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
17376         (__ASSUME_WAITID_SYSCALL): Likewise.
17377         * sysdeps/unix/sysv/linux/dl-execstack.c
17378         (_dl_make_stack_executable) [PROT_GROWSDOWN || PROT_GROWSUP]: Make
17379         code unconditional.
17380         (_dl_make_stack_executable) [!__ASSUME_PROT_GROWSUPDOWN]: Remove
17381         conditional code.
17382         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS)
17383         [__ASSUME_GETDENTS32_D_TYPE]: Make code unconditional.
17384         (__GETDENTS) [!__ASSUME_GETDENTS32_D_TYPE]: Remove conditional
17385         code.
17386         * sysdeps/unix/sysv/linux/waitid.c [__NR_waitid]: Make code
17387         unconditional.
17388         [__ASSUME_WAITID_SYSCALL]: Likewise.
17389         [!__ASSUME_WAITID_SYSCALL]: Remove conditional code.
17390
17391 2012-08-07  Roland McGrath  <roland@hack.frob.com>
17392
17393         * sysdeps/unix/closedir.c: Renamed to ...
17394         * sysdeps/posix/closedir.c: ... here.
17395         * sysdeps/unix/dirfd.c: Renamed to ...
17396         * sysdeps/posix/dirfd.c: ... here.
17397         * sysdeps/unix/dirstream.h: Renamed to ...
17398         * sysdeps/posix/dirstream.h: ... here.
17399         * sysdeps/unix/fdopendir.c: Renamed to ...
17400         * sysdeps/posix/fdopendir.c: ... here.
17401         * sysdeps/unix/opendir.c: Renamed to ...
17402         * sysdeps/posix/opendir.c: ... here.
17403         * sysdeps/unix/readdir.c: Renamed to ...
17404         * sysdeps/posix/readdir.c: ... here.
17405         * sysdeps/unix/readdir_r.c: Renamed to ...
17406         * sysdeps/posix/readdir_r.c: ... here.
17407         * sysdeps/unix/rewinddir.c: Renamed to ...
17408         * sysdeps/posix/rewinddir.c: ... here.
17409         * sysdeps/unix/seekdir.c: Renamed to ...
17410         * sysdeps/posix/seekdir.c: ... here.
17411         * sysdeps/unix/telldir.c: Renamed to ...
17412         * sysdeps/posix/telldir.c: ... here.
17413         * sysdeps/unix/sysv/linux/opendir.c: Update #include.
17414         * sysdeps/unix/sysv/linux/readdir64.c: Likewise.
17415         * sysdeps/unix/sysv/linux/i386/readdir64.c: Likewise.
17416         * sysdeps/unix/sysv/linux/wordsize-64/readdir.c: Likewise.
17417
17418         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h: Renamed to ...
17419         * bits/fcntl.h: ... here.
17420
17421         * sysdeps/unix/bsd/bsd4.4/bits/fcntl.h (O_NOCTTY): Define to 0x8000,
17422         not 0.
17423         (O_ASYNC, O_FSYNC, O_SYNC): Move outside [__USE_MISC].
17424         [__USE_XOPEN2K8] (O_DIRECTORY, O_NOFOLLOW, O_CLOEXEC): New macros.
17425         (FCREAT, FEXCL, FTRUNC, FNOCTTY, FNONBLOCK): Macros removed.
17426         (struct flock): Move l_start, l_len to the beginning.
17427         Use __pid_t for l_pid.
17428         [__USE_XOPEN2K] (POSIX_FADV_NORMAL, POSIX_FADV_RANDOM): New macros.
17429         [__USE_XOPEN2K] (POSIX_FADV_SEQUENTIAL, POSIX_FADV_WILLNEED): Likewise.
17430         [__USE_XOPEN2K] (POSIX_FADV_DONTNEED, POSIX_FADV_NOREUSE): Likewise.
17431         (F_GETLK64, F_SETLK64, F_SETLKW64): New macros.
17432         [__USE_XOPEN2K8] (F_DUPFD_CLOEXEC): New macro.
17433         [__USE_LARGEFILE64] (struct flock64): New type.
17434         (F_GETOWN, F_SETOWN): Also define for [__USE_XOPEN2K8].
17435
17436         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h: Renamed to ...
17437         * bits/dirent.h: ... here.
17438
17439         * sysdeps/unix/bsd/bsd4.4/bits/dirent.h
17440         [__INO_T_MATCHES_INO64_T] (_DIRENT_MATCHES_DIRENT64): New macro.
17441
17442 2012-08-07  Joseph Myers  <joseph@codesourcery.com>
17443
17444         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
17445         Change from 2.6.0 to 2.6.16.
17446         * sysdeps/unix/sysv/linux/configure: Regenerated.
17447         * sysdeps/unix/sysv/linux/kernel-features.h
17448         (__ASSUME_POSIX_CPU_TIMERS): Define unconditionally.
17449         (__ASSUME_TGKILL): Define conditional on architectures, not kernel
17450         version.
17451         (__ASSUME_UTIMES): Likewise.
17452         (__ASSUME_CLONE_STOPPED): Remove.
17453         (__ASSUME_FADVISE64_64_SYSCALL): Define conditional on
17454         architectures, not kernel version.
17455         (__ASSUME_PROT_GROWSUPDOWN): Define unconditionally.
17456         (__ASSUME_NO_CLONE_DETACHED): Likewise.
17457         (__ASSUME_GETDENTS32_D_TYPE): Likewise.
17458         (__ASSUME_WAITID_SYSCALL): Likewise.
17459         [__sparc__ && __arch64__] (__ASSUME_STAT64_SYSCALL): Do not
17460         condition definition on __LINUX_KERNEL_VERSION >= 0x02060c.
17461         * README: State 2.6.16 as minimum Linux kernel version.  Do not
17462         refer to older versions.
17463
17464 2012-08-06  Roland McGrath  <roland@hack.frob.com>
17465
17466         * dirent/alphasort.c [_DIRENT_MATCHES_DIRENT64]:
17467         Define alphasort64 as an alias.
17468         * dirent/versionsort.c [_DIRENT_MATCHES_DIRENT64]:
17469         Define versionsort64 as an alias.
17470         * dirent/scandir.c [_DIRENT_MATCHES_DIRENT64]:
17471         Define scandir64 as an alias.
17472         * dirent/scandirat.c [_DIRENT_MATCHES_DIRENT64]:
17473         Define scandirat64 as an alias.
17474         * dirent/alphasort64.c (alphasort64):
17475         Conditionalize on [!_DIRENT_MATCHES_DIRENT64].
17476         * dirent/versionsort64.c: Likewise.
17477         * dirent/scandir64.c: Likewise.
17478         * dirent/scandirat64.c: Likewise.
17479         * sysdeps/wordsize-64/alphasort.c: File removed.
17480         * sysdeps/wordsize-64/alphasort64.c: File removed.
17481         * sysdeps/wordsize-64/scandir.c: File removed.
17482         * sysdeps/wordsize-64/scandir64.c: File removed.
17483         * sysdeps/wordsize-64/scandirat.c: File removed.
17484         * sysdeps/wordsize-64/scandirat64.c: File removed.
17485         * sysdeps/wordsize-64/versionsort.c: File removed.
17486         * sysdeps/wordsize-64/versionsort64.c: File removed.
17487         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: File removed.
17488         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: File removed.
17489         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: File removed.
17490         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: File removed.
17491         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: File removed.
17492         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: File removed.
17493         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: File removed.
17494         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: File removed.
17495
17496         * bits/typesizes.h [__LP64__] (__INO_T_MATCHES_INO64_T): New macros.
17497         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
17498         [__s390x__] (__INO_T_MATCHES_INO64_T): New macro.
17499         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
17500         [defined __arch64__ || defined __sparcv9]
17501         (__INO_T_MATCHES_INO64_T): New macro.
17502         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
17503         [__x86_64__] (__INO_T_MATCHES_INO64_T): New macro.
17504         * bits/dirent.h (_DIRENT_MATCHES_DIRENT64): New macro.
17505         * sysdeps/unix/sysv/linux/bits/dirent.h
17506         [defined __OFF_T_MATCHES_OFF64_T && defined __INO_T_MATCHES_INO64_T]
17507         (_DIRENT_MATCHES_DIRENT64): New macro.
17508
17509         * io/lockf.c [__OFF_T_MATCHES_OFF64_T]:
17510         Define lockf64 as an alias.
17511         * libio/fseeko.c [__OFF_T_MATCHES_OFF64_T]:
17512         Define fseeko64 as an alias.
17513         * libio/ftello.c [__OFF_T_MATCHES_OFF64_T]:
17514         Define ftello64 as an alias.
17515         * libio/iofgetpos.c [__OFF_T_MATCHES_OFF64_T]:
17516         Define _IO_fgetpos64 and fgetpos64 as aliases.
17517         * libio/iofsetpos.c [__OFF_T_MATCHES_OFF64_T]:
17518         Define _IO_fsetpos64 and fsetpos64 as aliases.
17519         * io/lockf64.c [!__OFF_T_MATCHES_OFF64_T]:
17520         Conditionalize body on this.
17521         * libio/fseeko64.c: Likewise.
17522         * libio/ftello64.c: Likewise.
17523         * libio/iofgetpos64.c: Likewise.
17524         * libio/iofsetpos64.c: Likewise.
17525         * sysdeps/wordsize-64/lockf.c: File removed.
17526         * sysdeps/wordsize-64/lockf64.c: File removed.
17527         * sysdeps/wordsize-64/fseeko.c: File removed.
17528         * sysdeps/wordsize-64/fseeko64.c: File removed.
17529         * sysdeps/wordsize-64/ftello.c: File removed.
17530         * sysdeps/wordsize-64/ftello64.c: File removed.
17531         * sysdeps/wordsize-64/iofgetpos.c: File removed.
17532         * sysdeps/wordsize-64/iofgetpos64.c: File removed.
17533         * sysdeps/wordsize-64/iofsetpos.c: File removed.
17534         * sysdeps/wordsize-64/iofsetpos64.c: File removed.
17535         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: File removed.
17536         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: File removed.
17537         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: File removed.
17538         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: File removed.
17539         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: File removed.
17540         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: File removed.
17541         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: File removed.
17542         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: File removed.
17543         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: File removed.
17544         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: File removed.
17545
17546         * bits/typesizes.h [__LP64__] (__OFF_T_MATCHES_OFF64_T): New macro.
17547         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h:
17548         [__s390x__] (__OFF_T_MATCHES_OFF64_T): New macro.
17549         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
17550         [defined __arch64__ || defined __sparcv9]
17551         (__OFF_T_MATCHES_OFF64_T): New macro.
17552         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h
17553         [__x86_64__] (__OFF_T_MATCHES_OFF64_T): New macro.
17554         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
17555         (__OFF_T_MATCHES_OFF64_T): New macro.
17556
17557 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
17558
17559         * stdlib/secure-getenv.c (__secure_getenv): Replace
17560         GLIBC_2_16 with GLIBC_2_17.
17561
17562 2012-08-06  H.J. Lu  <hongjiu.lu@intel.com>
17563
17564         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Removed.
17565         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
17566
17567 2012-08-03  David S. Miller  <davem@davemloft.net>
17568
17569         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17570
17571 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
17572
17573         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_AT_SECURE):
17574         Remove.
17575         (__ASSUME_CORRECT_SI_PID): Likewise.
17576         (__ASSUME_BRK_PAGE_ROUNDED): Likewise.
17577         (__ASSUME_TMPFS_NAME): Likewise.
17578         * sysdeps/unix/sysv/linux/dl-sysdep.c (frob_brk)
17579         [!__ASSUME_BRK_PAGE_ROUNDED]: Remove conditional code.
17580         * sysdeps/unix/sysv/linux/ldsodefs.h [__ASSUME_AT_SECURE]
17581         (HAVE_AUX_SECURE): Make definition unconditional.
17582         * sysdeps/unix/sysv/linux/shm_open.c (where_is_shmfs)
17583         [!__ASSUME_TMPFS_NAME]: Remove conditional code.
17584
17585 2012-08-03  Roland McGrath  <roland@hack.frob.com>
17586
17587         * sysdeps/mach/hurd/sys/param.h (MAXSYMLINKS): Macro removed.
17588         * sysdeps/mach/hurd/bits/local_lim.h (SYMLOOP_MAX): Macro removed.
17589         * sysdeps/mach/hurd/eloop-threshold.h: New file.
17590         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
17591         __eloop_threshold instead of SYMLOOP_MAX.
17592
17593         * sysdeps/generic/eloop-threshold.h: New file.
17594         * stdlib/canonicalize.c (__realpath): Use __eloop_threshold instead
17595         of MAXSYMLINKS.
17596         * elf/chroot_canon.c (chroot_canon): Likewise.
17597
17598 2012-08-03  Joseph Myers  <joseph@codesourcery.com>
17599
17600         [BZ #13717]
17601         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
17602         Change to 2.6.0 everywhere.
17603         * sysdeps/unix/sysv/linux/configure: Regenerated.
17604         * sysdeps/unix/sysv/linux/kernel-features.h
17605         (__ASSUME_SET_THREAD_AREA_SYSCALL): Remove.
17606         (__ASSUME_CLONE_THREAD_FLAGS): Condition on architectures, not
17607         kernel versions.
17608         (__ASSUME_POSIX_TIMERS): Define unconditionally.
17609         (__ASSUME_FUTEX_REQUEUE): Remove.
17610         (__ASSUME_STATFS64): Define unconditionally.
17611         (__ASSUME_AT_SECURE): Likewise.
17612         (__ASSUME_CORRECT_SI_PID): Likewise.
17613         (__ASSUME_TGKILL): Define without depending on kernel version for
17614         i386.
17615         (__ASSUME_UTIMES): Likewise.
17616         (__ASSUME_SWAPCONTEXT_SYSCALL): Condition on architecture, not
17617         kernel version.
17618         (__ASSUME_BRK_PAGE_ROUNDED): Define unconditionally.
17619         (__ASSUME_TMPFS_NAME): Likewise.
17620         * README: Update reference to Linux kernel versions.
17621
17622 2012-08-02  Marek Polacek  <polacek@redhat.com>
17623
17624         [BZ# 14150]
17625         * configure.in (libc_cv_asm_type_prefix): Remove test.  Replace
17626         libc_cv_asm_type_prefix with %.
17627         * configure: Regenerated.
17628         * include/libc-symbols.h: Remove comment about
17629         ASM_TYPE_DIRECTIVE_PREFIX.  Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
17630         (declare_symbol_alias_1_paste) [__ASSEMBLER__]: Do not define.
17631         (declare_symbol_alias_1_paste_1) [__ASSEMBLER__]: Likewise.
17632         (declare_symbol_alias_1_stringify) [!__ASSEMBLER__]: Likewise.
17633         (declare_symbol_alias_1_stringify_1) [!__ASSEMBLER__]: Likewise.
17634         * elf/tst-unique2mod2.c: Replace ASM_TYPE_DIRECTIVE_PREFIX with %.
17635         [HAVE_ASM_UNIQUE_OBJECT]: Do not define S.
17636         [HAVE_ASM_UNIQUE_OBJECT]: Do not define _S.
17637         * elf/tst-unique2mod1.c: Likewise.
17638         * elf/tst-unique1mod2.c: Likewise.
17639         * elf/tst-unique1mod1.c: Likewise.
17640         * config.h.in: Do not undef ASM_TYPE_DIRECTIVE_PREFIX.
17641         * sysdeps/s390/s390-32/sysdep.h: Do not define ASM_TYPE_DIRECTIVE.
17642         Replace ASM_TYPE_DIRECTIVE with .type.
17643         * sysdeps/s390/s390-64/sysdep.h: Likewise.
17644         * sysdeps/i386/sysdep.h: Likewise.
17645         * sysdeps/x86_64/sysdep.h: Likewise.
17646         * sysdeps/sh/sysdep.h: Likewise.
17647         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
17648         Do not define ASM_TYPE_DIRECTIVE.
17649         * sysdeps/powerpc/sysdep.h: Likewise.
17650         * sysdeps/powerpc/powerpc32/sysdep.h:
17651         Replace ASM_TYPE_DIRECTIVE with .type.
17652         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
17653         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
17654         * sysdeps/i386/fpu/e_powf.S: Likewise.
17655         * sysdeps/i386/fpu/e_expl.S: Likewise.
17656         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
17657         * sysdeps/i386/fpu/e_acosh.S: Likewise.
17658         * sysdeps/i386/fpu/e_pow.S: Likewise.
17659         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
17660         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
17661         * sysdeps/i386/fpu/s_expm1.S: Likewise.
17662         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
17663         * sysdeps/i386/fpu/e_log2.S: Likewise.
17664         * sysdeps/i386/fpu/e_log2l.S: Likewise.
17665         * sysdeps/i386/fpu/e_scalb.S: Likewise.
17666         * sysdeps/i386/fpu/e_powl.S: Likewise.
17667         * sysdeps/i386/fpu/e_log10f.S: Likewise.
17668         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
17669         * sysdeps/i386/fpu/e_logl.S: Likewise.
17670         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
17671         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
17672         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
17673         * sysdeps/i386/fpu/e_log2f.S: Likewise.
17674         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
17675         * sysdeps/i386/fpu/e_log.S: Likewise.
17676         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
17677         * sysdeps/i386/fpu/e_logf.S: Likewise.
17678         * sysdeps/i386/fpu/e_log10l.S: Likewise.
17679         * sysdeps/i386/fpu/e_atanh.S: Likewise.
17680         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
17681         * sysdeps/i386/fpu/e_log10.S: Likewise.
17682         * sysdeps/i386/fpu/s_frexp.S: Likewise.
17683         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
17684         * sysdeps/i386/fpu/s_asinh.S: Likewise.
17685         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
17686         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
17687         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: Likewise.
17688         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
17689         * sysdeps/i386/i686/strtok.S: Likewise.
17690         * sysdeps/i386/i386-mcount.S: Likewise.
17691         * sysdeps/i386/strtok.S: Likewise.
17692         * sysdeps/x86_64/fpu/e_expl.S: Likewise.
17693         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
17694         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
17695         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
17696         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
17697         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
17698         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
17699         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
17700         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
17701         * sysdeps/x86_64/_mcount.S: Likewise.
17702         * sysdeps/x86_64/strtok.S: Likewise.
17703         * sysdeps/sh/_mcount.S: Likewise.
17704
17705 2012-08-01  Roland McGrath  <roland@hack.frob.com>
17706
17707         * libio/iofopen.c: Include <fcntl.h>.
17708         [_LIBC] [!defined O_LARGEFILE || O_LARGEFILE == 0]
17709         (_IO_fopen64, fopen64): Define as aliases.
17710         * libio/iofopen64.c: Include <fcntl.h>.
17711         [!defined _LIBC || (defined O_LARGEFILE && O_LARGEFILE != 0)]:
17712         Conditionalize body on this.
17713         * sysdeps/wordsize-64/iofopen.c: File removed.
17714         * sysdeps/wordsize-64/iofopen64.c: File removed.
17715
17716 2012-08-01  Marek Polacek  <polacek@redhat.com>
17717
17718         * libc/Makeconfig: Use elf in place of binfmt-subdir.
17719         Use dlfcn directly instead of a variable.
17720         (binfmt-subdir): Do not define.
17721         (dlfcn): Likewise.
17722
17723 2012-08-01  Joseph Myers  <joseph@codesourcery.com>
17724
17725         * sysdeps/unix/sysv/linux/kernel-features.h (__ASSUME_FCNTL64):
17726         Remove all definitions.
17727         * sysdeps/unix/sysv/linux/i386/fcntl.c: Do not include
17728         <kernel-features.h>.
17729         [!__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
17730         (miss_F_GETOWN_EX): Remove all definitions.
17731         [NO_CANCELLATION && !__ASSUME_FCNTL64] (__fcntl_nocancel): Remove
17732         macro definition.
17733         [!__ASSUME_FCNTL64]: Remove conditional code.
17734         [__ASSUME_FCNTL64]: Make code unconditional.
17735         * sysdeps/unix/sysv/linux/i386/lockf64.c: Do not include
17736         <kernel-features.h>.
17737         [__NR_fcntl64 && !__ASSUME_FCNTL64] (__have_no_fcntl64): Remove.
17738         (lockf64) [!__ASSUME_FCNTL64]: Remove conditional code.
17739         (lockf64) [__NR_fcntl64]: Make code unconditional.
17740         (lockf64) [__ASSUME_FCNTL64]: Likewise.
17741
17742         * sysdeps/unix/sysv/linux/kernel-features.h
17743         (__ASSUME_VFORK_SYSCALL): Remove all definitions.
17744         * sysdeps/unix/sysv/linux/i386/vfork.S (__vfork) [__NR_vfork]:
17745         Make code unconditional.
17746         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
17747         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
17748         * sysdeps/unix/sysv/linux/powerpc/powerpc32/vfork.S (__vfork)
17749         [__NR_vfork]: Make code unconditional.
17750         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
17751         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
17752         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork)
17753         [__NR_vfork]: Make code unconditional.
17754         (__vfork) [__ASSUME_VFORK_SYSCALL]: Likewise.
17755         (__vfork) [!__ASSUME_VFORK_SYSCALL]: Remove conditional code.
17756
17757 2012-08-01  Roland McGrath  <roland@hack.frob.com>
17758
17759         * sysdeps/generic/sys/param.h (NGROUPS): Define only if [NGROUPS_MAX].
17760         (MAXSYMLINKS): Define only if [SYMLOOP_MAX].
17761
17762         * misc/mkstemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
17763         Define mkstemp64 as an alias.
17764         * misc/mkstemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
17765         Define mkstemps64 as an alias.
17766         * misc/mkostemp.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
17767         Define mkostemp64 as an alias.
17768         * misc/mkostemps.c [!defined O_LARGEFILE || O_LARGEFILE == 0]:
17769         Define mkostemps64 as an alias.
17770         * misc/mkstemp64.c [defined O_LARGEFILE && O_LARGEFILE != 0]:
17771         Conditionalize body on this.
17772         * misc/mkostemp64.c: Likewise.
17773         * misc/mkostemps64.c: Likewise.
17774         * misc/mkstemps64.c: Likewise.
17775         * sysdeps/wordsize-64/mkstemp64.c: File removed.
17776         * sysdeps/wordsize-64/mkostemp64.c: File removed.
17777         * sysdeps/wordsize-64/mkostemp.c: File removed.
17778         * sysdeps/wordsize-64/mkstemp.c: File removed.
17779         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: File removed.
17780         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: File removed.
17781         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: File removed.
17782         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: File removed.
17783
17784         [BZ #14138]
17785         * sysdeps/unix/sysv/linux/syscalls.list: Add getrlimit/ugetrlimit line.
17786         * sysdeps/unix/sysv/linux/i386/getrlimit.c: File removed.
17787         * sysdeps/unix/sysv/linux/powerpc/getrlimit.c: File removed.
17788         * sysdeps/unix/sysv/linux/sh/getrlimit.c: File removed.
17789
17790         * sysdeps/unix/make-syscalls.sh: Emit uses of the versioned_symbol and
17791         compat_symbol macros from <shlib-compat.h> rather than the underlying
17792         default_symbol_version and symbol_version macros, so that DEFAULT
17793         lines in shlib-versions are respected.
17794         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Likewise.
17795
17796 2012-08-01  Florian Weimer  <fweimer@redhat.com>
17797
17798         * posix/unistd.h (setuid, setreuid, seteuid, setresuid):
17799         Declare with warn_unused_result.
17800         (setgid, setregid, setegid, setresgid): Likewise.
17801         * sysdeps/unix/sysv/linux/sys/fsuid.h (setfsuid, setfsgid):
17802         Likewise.
17803         * WUR-REPORT: Remove set*id functions.
17804
17805 2012-07-31  Pino Toscano  <toscano.pino@tiscali.it>
17806
17807         * sysdeps/mach/hurd/renameat.c: New file, mostly copied from rename.c.
17808
17809 2012-07-31  Roland McGrath  <roland@hack.frob.com>
17810
17811         [BZ #10191]
17812         * include/sys/socket.h (__libc_accept, __libc_accept4):
17813         Add attribute_hidden.
17814         * socket/accept4.c (__libc_accept4): Remove libc_hidden_def.
17815
17816         * nss/getXXbyYY_r.c (INTERNAL (REENTRANT_NAME)): Conditionalize
17817         use of PTR_MANGLE.
17818         * inet/getnetgrent_r.c (setup): Likewise.
17819
17820         * sysdeps/generic/siglist.h: Put SIGWINCH under #ifdef.
17821
17822 2012-07-31  David S. Miller  <davem@davemloft.net>
17823
17824         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17825
17826 2012-07-31  Joseph Myers  <joseph@codesourcery.com>
17827
17828         [BZ #13629]
17829         * math/s_clog.c (__clog): Use __log1p if larger part has absolute
17830         value between 1.0 and 2.0 and smaller part has absolute value less
17831         than 1.0.
17832         * math/s_clog10.c (__clog10): Likewise.
17833         * math/s_clog10f.c (__clog10f): Likewise.
17834         * math/s_clog10l.c (__clog10l): Likewise.
17835         * math/s_clogf.c (__clogf): Likewise.
17836         * math/s_clogl.c (__clogl): Likewise.
17837         * math/libm-test.inc (clog_test): Add more tests.
17838         (clog10_test): Likewise.
17839         * sysdeps/i386/fpu/libm-test-ulps: Update.
17840         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17841
17842 2012-07-31  Florian Weimer  <fweimer@redhat.com>
17843
17844         * stdlib/tst-secure-getenv.c: Use printf for error reporting.
17845         Exit with zero in case no suitable GID is found, and write a
17846         message to standard error.
17847
17848 2012-07-30  Roland McGrath  <roland@hack.frob.com>
17849
17850         * sysdeps/generic/sys/param.h (MAXSYMLINKS): Define to SYMLOOP_MAX
17851         rather than to 1.
17852         (NBBY, NGROUPS, CANBSIZ, NCARGS): New macros.
17853         (MAXPATHLEN): Removed.
17854         (NOGROUP, NODEV): New macros.
17855         (setbit, clrbit, isset, isclr): New macros.
17856         (howmany, roundup, powerof2): New macros.
17857         (DEV_BSIZE): New macro.
17858
17859         * include/unistd.h: Add attribute_hidden on __libc_pwrite64.
17860         * sysdeps/posix/pwrite64.c: Remove libc_hidden_def (__libc_pwrite64).
17861
17862         * sysdeps/ieee754/k_standard.c (__kernel_standard_l): Conditionalize
17863         definition on [!__NO_LONG_DOUBLE_MATH].
17864
17865         * nss/nsswitch.c (__nss_lookup_function): Conditionalize use of
17866         PTR_MANGLE and PTR_DEMANGLE.
17867
17868         * socket/accept4.c (accept4): Rename to __libc_accept4.
17869         Define accept4 as a weak alias.
17870
17871         * sysdeps/posix/getcwd.c (__getcwd): Conditionalize d_type field use
17872         on [_DIRENT_HAVE_D_TYPE].
17873         * io/ftw.c (ftw_dir): Likewise.
17874
17875         * io/xmknod.c (__xmknod): Don't check PATH for being null.
17876
17877         * libio/genops.c (flush_cleanup): Move inside [_IO_MTSAFE_IO].
17878
17879         * bits/signum.h (SIGSTOP, SIGCONT, SIGTSTP, SIGTTIN, SIGTTOU, SIGCHLD):
17880         Use the BSD numbers rather than the arbitrary ones we had.
17881         (SIGBUS, SIGIO, SIGPOLL, SIGPROF, SIGSYS): New macros.
17882         (SIGTRAP, SIGURG, SIGUSR1, SIGUSR2, SIGVTALRM): New macros.
17883         (SIGXCPU, SIGXFSZ): New macros.
17884         (_NSIG): Now 32.
17885
17886         * elf/rtld.c (_rtld_global): Conditionalize .dl_ns[LM_ID_BASE]
17887         initializer on [_LIBC_REENTRANT].
17888
17889         * iconv/iconv_charmap.c (charmap_conversion): Move ST, ADDR
17890         definitions inside [_POSIX_MAPPED_FILES].
17891
17892         * posix/regex.c: Include <sys/param.h> for MIN/MAX.
17893
17894         * dirent/opendir.c: Include <fcntl.h>.
17895
17896         * bits/libc-lock.h (__libc_setspecific): Evaluate arguments.
17897         (__libc_getspecific): Likewise.
17898         (__libc_key_create): Likewise.
17899
17900         * stdio-common/tmpfile64.c: Include <fcntl.h> first.
17901         [defined O_LARGEFILE && O_LARGEFILE != 0]: Conditionalize on this.
17902         * stdio-common/tmpfile.c [!defined O_LARGEFILE || O_LARGEFILE == 0]
17903         (tmpfile64): Define as alias.
17904         * sysdeps/wordsize-64/tmpfile.c: File removed.
17905         * sysdeps/wordsize-64/tmpfile64.c: File removed.
17906         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: File removed.
17907         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: File removed.
17908
17909         * stdio-common/vfscanf.c: Include <stdbool.h>.
17910         * nss/makedb.c: Likewise.
17911         * stdio-common/_i18n_number.h: Likewise.
17912         * argp/argp-help.c: Likewise.
17913         * posix/wordexp.c: Likewise.
17914         * sysdeps/posix/spawni.c: Likewise.
17915         * nss/nss_files/files-initgroups.c: Likewise.
17916         * stdio-common/reg-modifier.c: Include <stdlib.h>.
17917         * nss/nss_files/files-initgroups.c: Likewise.
17918         * nss/nss_db/db-netgrp.c: Likewise.
17919         * nss/nss_db/db-initgroups.c: Likewise.
17920         * io/fchmodat.c: Include <sys/stat.h>.
17921
17922         * sysdeps/generic/ldsodefs.h (struct rtld_global): Use
17923         __rtld_lock_define_recursive macro instead of __rtld_lock_recursive_t.
17924
17925         * intl/loadmsgcat.c (_nl_load_domain): Don't use MAP_FAILED outside of
17926         [HAVE_MMAP].
17927
17928         * bits/stat.h: Fix inclusion guard to accept _FCNTL_H too.
17929         Add multiple inclusion protection.
17930
17931 2012-07-27  David S. Miller  <davem@davemloft.net>
17932
17933         * sysdeps/sparc/fpu/libm-test-ulps: Update.
17934
17935 2012-07-27  Gary Benson  <gbenson@redhat.com>
17936
17937         [BZ #14298]
17938         * elf/rtld.c: Include <stap-probe.h>.
17939         (dl_main): Added static probes "init_start" and "init_complete".
17940         * elf/dl-load.c: Include <stap-probe.h>.
17941         (lose): Take new parameter "nsid".
17942         Added static probe "map_failed".
17943         (_dl_map_object_from_fd): Pass namespace id to lose.
17944         Added static probe "map_start".
17945         (open_verify): Pass namespace id to lose.
17946         * elf/dl-open.c: Include <stap-probe.h>.
17947         (dl_open_worker) Added static probes "map_complete", "reloc_start"
17948         and "reloc_complete".
17949         * elf/dl-close.c: Include <stap-probe.h>.
17950         (_dl_close_worker): Added static probes "unmap_start" and
17951         "unmap_complete".
17952         * elf/rtld-debugger-interface.txt: New file documenting the above.
17953
17954 2012-07-26  Roland McGrath  <roland@hack.frob.com>
17955
17956         * sunrpc/rpc_hout.c (pdeclaration): Call f_print with a "%s" format
17957         rather than a string variable.
17958         * sunrpc/rpc_main.c (h_output): Likewise.
17959         * sunrpc/rpc_svcout.c (write_real_program): Likewise.
17960
17961 2012-07-26  Pino Toscano  <toscano.pino@tiscali.it>
17962
17963         * inet/check_native.c: New file.
17964
17965 2012-07-26  Joseph Myers  <joseph@codesourcery.com>
17966
17967         [BZ #13629]
17968         * math/s_clog.c (__clog): Use __log1p or direct log1p calculation
17969         if larger part has absolute value 1.0.
17970         * math/s_clog10.c (__clog10): Likewise.
17971         * math/s_clog10f.c (__clog10f): Likewise.
17972         * math/s_clog10l.c (__clog10l): Likewise.
17973         * math/s_clogf.c (__clogf): Likewise.
17974         * math/s_clogl.c (__clogl): Likewise.
17975         * math/libm-test.inc (clog_test): Add more tests.
17976         (clog10_test): Likewise.
17977         * sysdeps/i386/fpu/libm-test-ulps: Update.
17978         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
17979
17980         * elf/tst-auditmod1.c (pltenter): Remove all definitions of macro.
17981         (pltexit): Likewise.
17982         (La_regs): Likewise.
17983         (La_retval): Likewise.
17984         (int_retval): Likewise.
17985         Update #error for removed macros to refer only to definitions in
17986         tst-audit.h.
17987         * elf/tst-auditmod3b.c (pltenter): Remove all definitions of
17988         macro.
17989         (pltexit): Likewise.
17990         (La_regs): Likewise.
17991         (La_retval): Likewise.
17992         (int_retval): Likewise.
17993         * elf/tst-auditmod4b.c (pltenter): Remove all definitions of
17994         macro.
17995         (pltexit): Likewise.
17996         (La_regs): Likewise.
17997         (La_retval): Likewise.
17998         (int_retval): Likewise.
17999         * elf/tst-auditmod5b.c (pltenter): Remove all definitions of
18000         macro.
18001         (pltexit): Likewise.
18002         (La_regs): Likewise.
18003         (La_retval): Likewise.
18004         (int_retval): Likewise.
18005         * elf/tst-auditmod6b.c (pltenter): Remove all definitions of
18006         macro.
18007         (pltexit): Likewise.
18008         (La_regs): Likewise.
18009         (La_retval): Likewise.
18010         (int_retval): Likewise.
18011         * elf/tst-auditmod6c.c (pltenter): Remove all definitions of
18012         macro.
18013         (pltexit): Likewise.
18014         (La_regs): Likewise.
18015         (La_retval): Likewise.
18016         (int_retval): Likewise.
18017         * elf/tst-auditmod7b.c (pltenter): Remove all definitions of
18018         macro.
18019         (pltexit): Likewise.
18020         (La_regs): Likewise.
18021         (La_retval): Likewise.
18022         (int_retval): Likewise.
18023         * sysdeps/generic/tst-audit.h: Update comment to refer only to
18024         macro definitions in tst-audit.h.
18025         * sysdeps/i386/tst-audit.h: New file.
18026         * sysdeps/powerpc/powerpc32/tst-audit.h: Likewise.
18027         * sysdeps/powerpc/powerpc64/tst-audit.h: Likewise.
18028         * sysdeps/s390/s390-32/tst-audit.h: Likewise.
18029         * sysdeps/s390/s390-64/tst-audit.h: Likewise.
18030         * sysdeps/sh/tst-audit.h: Likewise.
18031         * sysdeps/sparc/sparc32/tst-audit.h: Likewise.
18032         * sysdeps/sparc/sparc64/tst-audit.h: Likewise.
18033         * sysdeps/x86_64/tst-audit.h: Likewise.
18034
18035 2012-07-26  Andreas Jaeger  <aj@suse.de>
18036
18037         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Add __THROW for
18038         ptrace.
18039
18040         * sysdeps/unix/sysv/linux/sys/ptrace.h (__ptrace_eventcodes): Add
18041         new value PTRACE_EVENT_SECCOMP from Linux 3.5.
18042         (__ptrace_setoptions): Add new value PTRACE_O_TRACESECCOMP, adjust
18043         PTRACE_O_MASK.
18044         * sysdeps/unix/sysv/linux/s390/bits/ptrace.h: Likewise.
18045         * sysdeps/unix/sysv/linux/sparc/bits/ptrace.h: Likewise.
18046         * sysdeps/unix/sysv/linux/powerpc/bits/ptrace.h: Likewise.
18047
18048         * sysdeps/unix/sysv/linux/sys/epoll.h (EPOLLWAKEUP): Add new
18049         value.
18050
18051         * sysdeps/unix/sysv/linux/bits/siginfo.h (siginfo_t): Add
18052         _sigsys.
18053         (si_call_addr, si_syscall, si_arch): Define new macro.
18054         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h (siginfo_t): Add
18055         _sigsys.
18056         (si_call_addr, si_syscall, si_arch): Define new marcro.
18057         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h (siginfo_t): Add
18058         _sigsys.
18059         (si_call_addr, si_syscall, si_arch): Define new macro.
18060         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h (struct): Add
18061         _sigsys.
18062         (si_call_addr, si_syscall, si_arch): Define new macro.
18063
18064 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
18065
18066         [BZ #13717]
18067         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
18068         Change to 2.4.21 where previously 2.4.1.
18069         * sysdeps/unix/sysv/linux/configure: Regenerated.
18070         * sysdeps/unix/sysv/linux/kernel-features.h [(__powerpc__ ||
18071         __sh__) && !__powerpc64__] (__ASSUME_FCNTL64): Do not condition on
18072         Linux kernel version.
18073         (__ASSUME_STD_AUXV): Remove.
18074         [__powerpc__] (__ASSUME_VFORK_SYSCALL): Do not condition on Linux
18075         kernel version.
18076         [__powerpc__ && !__powerpc64] (__ASSUME_MMAP2_SYSCALL): Likewise.
18077         (__ASSUME_NEW_PRCTL_SYSCALL): Remove.
18078         (__ASSUME_FIXED_CLONE_SYSCALL): Likewise.
18079         (__ASSUME_NEW_RT_SIGRETURN_SYSCALL): Likewise.
18080         (__ASSUME_NETLINK_SUPPORT): Likewise.
18081         * nscd/gai.c [NEED_NETLINK && __ASSUME_NETLINK_SUPPORT == 0]
18082         (__no_netlink_support): Remove conditional definition.
18083         * sysdeps/unix/sysv/linux/check_pf.c (__no_netlink_support):
18084         Remove.
18085         (__check_pf) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
18086         [__ASSUME_NETLINK_SUPPORT]: Make code unconditional.
18087         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_NETLINK_SUPPORT]
18088         (if_nameindex_ioctl): Remove.
18089         (if_nameindex_netlink): Do not handle __no_netlink_support.
18090         (if_nameindex) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
18091         code.
18092         * sysdeps/unix/sysv/linux/ifaddrs.c [!__ASSUME_NETLINK_SUPPORT]:
18093         Remove conditional code.
18094         (__netlink_open) [!__ASSUME_NETLINK_SUPPORT]: Remove conditional
18095         code.
18096         (getifaddrs_internal) [__ASSUME_NETLINK_SUPPORT]: Make code
18097         unconditional.
18098         [!__ASSUME_NETLINK_SUPPORT]: Remove conditional code.
18099         [__ASSUME_NETLINK_SUPPORT] (freeifaddrs): Make code unconditional.
18100         * sysdeps/unix/sysv/linux/netlinkaccess.h (__no_netlink_support):
18101         Remove.
18102         * sysdeps/unix/sysv/linux/powerpc/dl-sysdep.c
18103         [!__ASSUME_STD_AUXV]: Remove conditional code.
18104         * sysdeps/unix/sysv/linux/powerpc/powerpc32/clone.S (__clone)
18105         [!__ASSUME_FIXED_CLONE_SYSCALL]: Remove conditional code.
18106         [__ASSUME_FIXED_CLONE_SYSCALL]: Make code unconditional.
18107         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_mask.c
18108         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_mask_handler): Remove.
18109         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
18110         code.
18111         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
18112         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/fe_nomask.c
18113         [!__ASSUME_NEW_PRCTL_SYSCALL] (fe_nomask_handler): Remove.
18114         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
18115         conditional code.
18116         [__ASSUME_NEW_PRCTL_SYSCALL]: Make code unconditional.
18117         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_mask.c
18118         (__fe_mask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove conditional
18119         code.
18120         * sysdeps/unix/sysv/linux/powerpc/powerpc64/fpu/fe_nomask.c
18121         (__fe_nomask_env) [!__ASSUME_NEW_PRCTL_SYSCALL]: Remove
18122         conditional code.
18123         * sysdeps/unix/sysv/linux/powerpc/powerpc64/getcontext.S
18124         (__novec_getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
18125         code unconditional.
18126         (__novec_getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
18127         conditional code.
18128         (__getcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
18129         unconditional.
18130         (__getcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
18131         conditional code.
18132         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
18133         (__makecontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
18134         unconditional.
18135         (__makecontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
18136         conditional code.
18137         * sysdeps/unix/sysv/linux/powerpc/powerpc64/setcontext.S
18138         (__novec_setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
18139         code unconditional.
18140         (__novec_setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
18141         conditional code.
18142         (__setcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
18143         unconditional.
18144         (__setcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
18145         conditional code.
18146         * sysdeps/unix/sysv/linux/powerpc/powerpc64/swapcontext.S
18147         (__novec_swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make
18148         code unconditional.
18149         (__novec_swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
18150         conditional code.
18151         (__swapcontext) [__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Make code
18152         unconditional.
18153         (__swapcontext) [!__ASSUME_NEW_RT_SIGRETURN_SYSCALL]: Remove
18154         conditional code.
18155
18156 2012-07-25  Andreas Schwab  <schwab@linux-m68k.org>
18157
18158         * sysdeps/unix/sysv/linux/i386/accept4.S: Remove pseudo_end label.
18159         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: Likewise.
18160         * sysdeps/unix/sysv/linux/i386/clone.S: Likewise.
18161         * sysdeps/unix/sysv/linux/i386/epoll_pwait.S: Likewise.
18162         * sysdeps/unix/sysv/linux/i386/getcontext.S: Likewise.
18163         * sysdeps/unix/sysv/linux/i386/mmap.S: Likewise.
18164         * sysdeps/unix/sysv/linux/i386/mmap64.S: Likewise.
18165         * sysdeps/unix/sysv/linux/i386/semtimedop.S: Likewise.
18166         * sysdeps/unix/sysv/linux/i386/setcontext.S: Likewise.
18167         * sysdeps/unix/sysv/linux/i386/socket.S: Likewise.
18168         * sysdeps/unix/sysv/linux/i386/swapcontext.S: Likewise.
18169         * sysdeps/unix/sysv/linux/i386/syscall.S: Likewise.
18170         * sysdeps/unix/sysv/linux/i386/sysdep.h (PSEUDO): Likewise.
18171         * sysdeps/unix/sysv/linux/i386/vfork.S: Likewise.
18172         * sysdeps/unix/sysv/linux/x86_64/clone.S: Likewise.
18173         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Likewise.
18174         * sysdeps/unix/sysv/linux/x86_64/setcontext.S: Likewise.
18175         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Likewise.
18176         * sysdeps/unix/sysv/linux/x86_64/syscall.S: Likewise.
18177         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PSEUDO): Likewise.
18178         * sysdeps/unix/sysv/linux/x86_64/swapcontext.S: Likewise.
18179         * sysdeps/unix/sysv/linux/x86_64/vfork.S: Likewise.
18180         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
18181
18182 2012-07-25  Florian Weimer  <fweimer@redhat.com>
18183
18184         * Versions.def: Add GLIBC_2.17.
18185         * stdlib/stdlib.h: Rename __secure_getenv to secure_getenv.
18186         * include/stdlib.h: Rename __secure_getenv to secure_getenv.
18187         Introduce __libc_secure_getenv.
18188         * stdlib/Versions (2.17): Add secure_getenv
18189         (GLIBC_PRIVATE): Add __libc_secure_getenv.
18190         * stdlib/secure-getenv.c: Rename __secure_getenv to
18191         __libc_secure_getenv.  Add secure_getenv alias.  Add compatibility
18192         symbol __secure_getenv for GLIBC_2.0.
18193         * stdlib/tst-secure-getenv.c: New.
18194         * stdlib/Makefile (tests): Add testcase.
18195         * manual/startup.texi (Environment Access): Document
18196         secure_getenv.
18197         * hesiod/hesiod.c (hesiod_init): Rename __secure_getenv to
18198         __libc_secure_getenv.
18199         * inet/ruserpass.c (ruserpass): Likewise.
18200         * malloc/mtrace.c (mtrace): Likewise.
18201         * sysdeps/mach/hurd/tmpfile.c (__tmpfile): Likewise.
18202         * sysdeps/posix/libc_fatal.c (__libc_fatal): Likewise.
18203         * sysdeps/posix/sysconf.c (__sysconf__check_spec): Likewise.
18204         * sysdeps/posix/tempname.c: Likewise.  Evaluate
18205         HAVE_SECURE_GETENV.
18206         * sysdeps/unix/sysv/linux/libc_fatal.c (__libc_message): Rename
18207         __secure_getenv to __libc_secure_getenv.
18208         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Add secure_getenv.
18209         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
18210         Likewise.
18211         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
18212         Likewise.
18213         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Likewise.
18214         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Likewise.
18215         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Likewise.
18216         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Likewise.
18217         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Likewise.
18218         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Likewise.
18219         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist: Likewise.
18220
18221 2012-07-25  Joseph Myers  <joseph@codesourcery.com>
18222
18223         * sysdeps/generic/ldsodefs.h (struct La_i86_regs): Remove.
18224         (struct La_i86_retval): Likewise.
18225         (struct La_x86_64_regs): Likewise.
18226         (struct La_x86_64_retval): Likewise.
18227         (struct La_x32_regs): Likewise.
18228         (struct La_x32_retval): Likewise.
18229         (struct La_ppc32_regs): Likewise.
18230         (struct La_ppc32_retval): Likewise.
18231         (struct La_ppc64_regs): Likewise.
18232         (struct La_ppc64_retval): Likewise.
18233         (struct La_sh_regs): Likewise.
18234         (struct La_sh_retval): Likewise.
18235         (struct La_s390_32_regs): Likewise.
18236         (struct La_s390_32_retval): Likewise.
18237         (struct La_s390_64_regs): Likewise.
18238         (struct La_s390_64_retval): Likewise.
18239         (struct La_sparc32_regs): Likewise.
18240         (struct La_sparc32_retval): Likewise.
18241         (struct La_sparc64_regs): Likewise.
18242         (struct La_sparc64_retval): Likewise.
18243         (struct audit_ifaces): Remove architecture-specific pltenter and
18244         pltexit members.
18245         * sysdeps/i386/ldsodefs.h: New file.
18246         * sysdeps/powerpc/ldsodefs.h: Likewise.
18247         * sysdeps/s390/ldsodefs.h: Likewise.
18248         * sysdeps/sh/ldsodefs.h: Likewise.
18249         * sysdeps/sparc/ldsodefs.h: Likewise.
18250         * sysdeps/x86_64/ldsodefs.h: Likewise.
18251
18252 2012-07-25  Marek Polacek  <polacek@redhat.com>
18253
18254         [BZ #6808]
18255         * math/libm-test.inc (yn_test): Add another test.
18256         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c (__ieee754_ynl): Set errno
18257         to ERANGE when the result is +-Inf.
18258         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Likewise.
18259         * sysdeps/ieee754/flt-32/e_jnf.c (__ieee754_ynf): Likewise.
18260         * sysdeps/ieee754/ldbl-128/e_jnl.c (__ieee754_ynl): Likewise.
18261         * sysdeps/ieee754/dbl-64/e_jn.c (__ieee754_yn): Likewise.
18262
18263 2012-07-24  Joseph Myers  <joseph@codesourcery.com>
18264
18265         * conform/data/time.h-data (NULL): Use macro-constant.  Require
18266         equal to 0.
18267         (CLOCKS_PER_SEC): Use macro instead of constant.  Specify type as
18268         clock_t.
18269         [ISO11] (TIME_UTC): Use macro-int-constant.  Require value > 0.
18270
18271 2012-07-23  Thomas Schwinge  <thomas@codesourcery.com>
18272
18273         * configure.in <sysdeps resolving>: Correct printing
18274         Implies_before.
18275         * configure: Regenerate.
18276
18277 2012-07-22  Thomas Schwinge  <thomas@codesourcery.com>
18278
18279         * math/w_ilogb.c: Include <limits.h>.
18280         * math/w_ilogbl.c: Likewise.
18281
18282 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
18283
18284         * manual/lang.texi (__va_copy): Document primarily as ISO C99
18285         va_copy.  Document allowing for unavailable va_copy only as
18286         pre-C99 compatibility.
18287         * manual/string.texi (Copying and Concatenation): Use va_copy
18288         instead of __va_copy in concat example.
18289
18290 2012-07-20  Pino Toscano  <toscano.pino@tiscali.it>
18291
18292         * sysdeps/mach/hurd/sendto.c (create_address_port): New subroutine.
18293         (__sendto): Use create_address_port.  Initialize APORT and deallocate
18294         it if not null.
18295
18296         * sysdeps/mach/hurd/llistxattr.c: New file, copied from listxattr.c
18297         with O_NOLINK passed to __file_name_lookup.
18298
18299         * sysdeps/mach/hurd/lremovexattr.c: New file, copied from removexattr.c
18300         with O_NOLINK passed to __file_name_lookup.
18301
18302         * sysdeps/mach/hurd/getgroups.c: Return -1 and set EINVAL for
18303         negative N or less than NGIDS.
18304
18305         * sysdeps/mach/hurd/getlogin_r.c: Make LOGIN non-static and change its
18306         type to string_t.  Set ERANGE as errno and return it if NAME is not big
18307         enough.  Use memcpy instead of strncpy.
18308
18309 2012-07-20  Joseph Myers  <joseph@codesourcery.com>
18310
18311         * elf/Makefile (check-data): Remove.
18312         (localplt.data): New vpath directive.
18313         ($(objpfx)check-localplt.out): Use localplt.data from vpath
18314         instead of $(check-data).
18315         * scripts/data/localplt-generic.data: Move to ...
18316         * sysdeps/generic/localplt.data: ... here.
18317         * scripts/data/localplt-i386-linux-gnu.data: Move to ...
18318         * sysdeps/unix/sysv/linux/i386/nptl/localplt.data: ... here.
18319         * scripts/data/localplt-powerpc-linux-gnu.data: Move to ...
18320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/localplt.data:
18321         ... here.
18322         * scripts/data/localplt-powerpc64-linux-gnu.data: Move to ...
18323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/localplt.data:
18324         ... here.
18325         * scripts/data/localplt-s390-linux-gnu.data: Move to ...
18326         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/localplt.data:
18327         ... here.
18328         * scripts/data/localplt-s390x-linux-gnu.data: Move to ...
18329         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/localplt.data:
18330         ... here.
18331         * scripts/data/localplt-sparc-linux-gnu.data: Move to ...
18332         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/localplt.data:
18333         ... here.
18334         * scripts/data/localplt-sparc64-linux-gnu.data: Move to ...
18335         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/localplt.data:
18336         ... here.
18337
18338 2012-07-19 Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18339
18340         * sysdeps/powerpc/tls-macros.h: Split PowerPC definitions in
18341         PPC32 and PPC64 files.
18342         * sysdeps/powerpc/powerpc32/tls-macros.h: New file.
18343         * sysdeps/powerpc/powerpc64/tls-macros.h: Likewise.
18344
18345 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18346
18347         * sysdeps/unix/sysv/linux/s390/s390-32/makecontext.c: Move
18348         __makecontext_ret to ...
18349         * sysdeps/unix/sysv/linux/s390/s390-32/__makecontext_ret.S:
18350         ... here and call exit if uc_link is NULL.  New file.
18351         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile: Add
18352         __makecontext_ret.S.
18353         * sysdeps/unix/sysv/linux/s390/s390-64/makecontext.c: Move
18354         __makecontext_ret to ...
18355         * sysdeps/unix/sysv/linux/s390/s390-64/__makecontext_ret.S:
18356         ... here and call exit if uc_link is NULL.  New file.
18357         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile: Add
18358         __makecontext_ret.S.
18359
18360 2012-07-19  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18361
18362         * elf/elf.h (R_390_IRELATIVE): New definition.
18363         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Invoke the
18364         resolver function for IFUNC symbols.  Support R_390_IRELATIVE.
18365         (elf_machine_lazy_rel): Support R_390_IRELATIVE.
18366         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela):
18367         (elf_machine_lazy_rel): Likewise.
18368         * sysdeps/s390/dl-irel.h: New file.
18369         * sysdeps/s390/s390-64/memcpy.S: New asm code.
18370         * sysdeps/s390/s390-64/memset.S: New asm code.
18371         * sysdeps/s390/s390-64/memcmp.S: New asm code.
18372         * sysdeps/s390/s390-64/multiarch/memset.S: New file.
18373         * sysdeps/s390/s390-64/multiarch/ifunc-resolve.c: New file.
18374         * sysdeps/s390/s390-64/multiarch/memcmp.S: New file.
18375         * sysdeps/s390/s390-64/multiarch/memcpy.S: New file.
18376         * sysdeps/s390/s390-64/multiarch/Makefile: New file.
18377         * sysdeps/s390/s390-32/multiarch/ifunc-resolve.c: New file.
18378         * sysdeps/s390/s390-32/multiarch/Makefile: New file.
18379         * sysdeps/s390/s390-32/multiarch/memcmp.S: New file.
18380         * sysdeps/s390/s390-32/multiarch/memcpy.S: New file.
18381         * sysdeps/s390/s390-32/multiarch/memset.S: New file.
18382         * sysdeps/s390/s390-32/memcpy.S: New asm code.
18383         * sysdeps/s390/s390-32/memset.S: New asm code.
18384         * sysdeps/s390/s390-32/memcmp.S: New asm code.
18385
18386 2012-07-17  Marek Polacek  <polacek@redhat.com>
18387
18388         [BZ #14349]
18389         * sysdeps/s390/s390-32/configure.in: Remove TLS check.
18390         * sysdeps/s390/s390-64/configure.in: Likewise.
18391         * sysdeps/sparc/configure.in: Likewise.
18392         * sysdeps/powerpc/powerpc32/configure.in: Likewise.
18393         * sysdeps/powerpc/powerpc64/configure.in: Likewise.
18394         * sysdeps/i386/configure.in: Likewise.
18395         * sysdeps/x86_64/configure.in: Likewise.
18396         * sysdeps/sh/configure.in: Likewise.
18397         * sysdeps/s390/s390-32/configure: Regenerated.
18398         * sysdeps/s390/s390-64/configure: Likewise.
18399         * sysdeps/x86_64/configure: Likewise.
18400         * sysdeps/sh/configure: Likewise.
18401         * sysdeps/powerpc/powerpc64/configure: Likewise.
18402         * sysdeps/powerpc/powerpc32/configure: Likewise.
18403         * sysdeps/sparc/configure: Likwise.
18404         * sysdeps/i386/configure: Likewise.
18405
18406         * elf/dl-open.c: Comment fixes.
18407
18408 2012-07-17  Joseph Myers  <joseph@codesourcery.com>
18409
18410         * Makefile [CXX] (check-data): Remove.
18411         [CXX] (c++-types.data): New vpath directive.
18412         [CXX] ($(objpfx)c++-types-check.out): Use c++-types.data from
18413         vpath.  Do not allow for C++ type data being missing.
18414         * scripts/data/c++-types-alpha-linux-gnu.data: Move to
18415         ports/sysdeps/unix/sysv/linux/alpha/nptl/c++-types.data.
18416         * scripts/data/c++-types-ia64-linux-gnu.data: Move to
18417         ports/sysdeps/unix/sysv/linux/ia64/nptl/c++-types.data.
18418         * scripts/data/c++-types-i386-linux-gnu.data: Move to ...
18419         * sysdeps/unix/sysv/linux/i386/nptl/c++-types.data: ... here.
18420         * scripts/data/c++-types-powerpc-linux-gnu.data: Move to ...
18421         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/c++-types.data:
18422         ... here.
18423         * scripts/data/c++-types-powerpc64-linux-gnu.data: Move to ...
18424         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/c++-types.data:
18425         ... here.
18426         * scripts/data/c++-types-s390-linux-gnu.data: Move to ...
18427         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/c++-types.data:
18428         ... here.
18429         * scripts/data/c++-types-s390x-linux-gnu.data: Move to ...
18430         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/c++-types.data:
18431         ... here.
18432         * scripts/data/c++-types-sparc-linux-gnu.data: Move to ...
18433         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/c++-types.data:
18434         ... here.
18435         * scripts/data/c++-types-sparc64-linux-gnu.data: Move to ...
18436         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/c++-types.data:
18437         ... here.
18438         * scripts/data/c++-types-x32-linux-gnu.data: Move to ...
18439         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/c++-types.data:
18440         ... here.
18441         * scripts/data/c++-types-x86_64-linux-gnu.data: Move to ...
18442         * sysdeps/unix/sysv/linux/x86_64/64/nptl/c++-types.data: ... here.
18443
18444         * elf/tls-macros.h (TLS_LE): Move architecture-specific
18445         definitions to architecture-specific files.
18446         (TLS_IE): Likewise.
18447         (TLS_LD): Likewise.
18448         (TLS_GD): Likewise.
18449         * sysdeps/i386/tls-macros.h: New file.
18450         * sysdeps/powerpc/tls-macros.h: Likewise.
18451         * sysdeps/s390/s390-32/tls-macros.h: Likewise.
18452         * sysdeps/s390/s390-64/tls-macros.h: Likewise.
18453         * sysdeps/sh/tls-macros.h: Likewise.
18454         * sysdeps/sparc/sparc32/tls-macros.h: Likewise.
18455         * sysdeps/sparc/sparc64/tls-macros.h: Likewise.
18456         * sysdeps/x86_64/tls-macros.h: Likewise.
18457
18458 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
18459
18460         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Preserve
18461         zero value for regular exit case.
18462
18463         * sysdeps/unix/sysv/linux/x86_64/__start_context.S
18464         (__start_context): Preserve zero value for regular exit case.
18465
18466 2012-07-17  Thomas Schwinge  <thomas@codesourcery.com>
18467             Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
18468
18469         * manual/setjmp.texi (setcontext): Clarify normal process
18470         termination when uc_link is the null pointer.
18471         * stdlib/tst-makecontext.c (cf): Exercise this: remove explicit
18472         exit call.
18473
18474 2012-07-16  Andreas Schwab  <schwab@linux-m68k.org>
18475
18476         * stdlib/bug-getcontext.c (do_test): Don't test FE_ALL_EXCEPT in
18477         preprocessor.  Test for each exception mask separately.
18478
18479 2012-07-16  Andreas Jaeger  <aj@suse.de>
18480
18481         * po/ru.po: Update from translation team.
18482
18483 2012-07-15  Joseph Myers  <joseph@codesourcery.com>
18484
18485         * conform/data/string.h-data (NULL): Use macro-constant.  Require
18486         equal to 0.
18487         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
18488         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
18489         (wcs*): Change to wcs[abcdefghijklmnopqrstuvwxyz]*.
18490         (mem[abcdefghijklmnopqrstuvwxyz]*): Allow.
18491         [ISO || ISO99 || ISO11] (*_t): Do not allow.
18492
18493 2012-07-13  Andreas Jaeger  <aj@suse.de>
18494
18495         * po/fr.po: Update from translation team.
18496
18497 2012-07-12  Marek Polacek  <polacek@redhat.com>
18498
18499         [BZ #14173]
18500         * math/libm-test.inc (yn_test): Add test for BZ #14173.
18501         * sysdeps/ieee754/ldbl-96/e_jnl.c (__ieee754_ynl): Correct
18502         loop condition.
18503
18504 2012-07-12  Joseph Myers  <joseph@codesourcery.com>
18505
18506         [BZ #13717]
18507         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel):
18508         Change to 2.4.1 where previously 2.4.0.
18509         * sysdeps/unix/sysv/linux/configure: Regenerated.
18510         * sysdeps/unix/sysv/linux/kernel-features.h [!__sh__]
18511         (__ASSUME_ST_INO_64_BIT): Do not condition definition on kernel
18512         version.
18513         [__i386__ || __sparc__] (__ASSUME_FCNTL64): Likewise.
18514         (__ASSUME_AT_CLKTCK): Remove.
18515         (__ASSUME_AT_PAGESIZE): Likewise.
18516         (__ASSUME_AT_XID): Likewise.
18517         (__ASSUME_GETDENTS64_SYSCALL): Define unconditionally.
18518         [__i386__] (__ASSUME_VFORK_SYSCALL): Define unconditionally.
18519         * sysdeps/unix/sysv/linux/ldsodefs.h (HAVE_AUX_XID): Define
18520         unconditionally.
18521         (HAVE_AUX_PAGESIZE): Likewise.
18522         * sysdeps/unix/sysv/linux/prof-freq.c (__profile_frequency)
18523         [__ASSUME_AT_CLKTCK]: Make code unconditional.
18524         [!__ASSUME_AT_CLKTCK]: Remove conditional code.
18525
18526 2012-07-12  Jeroen van Bemmel  <jvb127@gmail.com>
18527
18528         [BZ #14307]
18529         * sysdeps/posix/getaddrinfo.c (gaih_inet): Increase the size of
18530         the temporary buffer used to invoke __gethostbyname2_r,
18531         __gethostbyaddr_r and gethostbyname4_r to make room for struct
18532         host_data / struct gaih_addrtuple.
18533         * resolv/nss_dns/dns-host.c (global scope): Move definition of
18534         implementation constants MAX_NR_ALIASES and MAX_NR_ADDRS to
18535         header file nss/nsswitch.h.
18536         * nss/nsswitch.h (global scope): Add definition of implementation
18537         constants MAX_NR_ALIASES and MAX_NR_ADDRS (moved from
18538         resolv/nss_dns/dns-host.c).
18539
18540 2012-07-11  Andreas Jaeger  <aj@suse.de>
18541
18542         * po/fr.po: Update from translation team.
18543
18544         * po/sv.po: Update from translation team
18545         * po/fr.po: Another update from translation team.
18546
18547 2012-07-11  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
18548
18549         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Do not call sinh and cosh
18550         for subnormals or multiply small sinh result by itself.
18551         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
18552         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
18553
18554 2012-07-11  David S. Miller  <davem@davemloft.net>
18555
18556         * sysdeps/sparc/fpu/libm-test-ulps: Update.
18557
18558 2012-07-10  Andreas Schwab  <schwab@linux-m68k.org>
18559
18560         [BZ #14347]
18561         * misc/sys/syslog.h (LOG_MAKEPRI): Don't shift first argument.
18562         (INTERNAL_MARK): Shift it here.
18563
18564 2012-07-10  Marek Polacek  <polacek@redhat.com>
18565
18566         [BZ #14151]
18567         * configure.in (libc_cv_asm_global_directive): Remove test.  Replace
18568         libc_cv_asm_global_directive with .globl.
18569         * configure: Regenerated.
18570         * sysdeps/i386/configure.in: Replace libc_cv_asm_global_directive
18571         with .globl.
18572         * sysdeps/i386/configure: Regenerated.
18573         * sysdeps/x86_64/configure.in: Replace libc_cv_asm_global_directive
18574         with .globl.
18575         * sysdeps/x86_64/configure: Regenerated.
18576         * config.h.in: Do not undefine ASM_GLOBAL_DIRECTIVE.
18577         * include/libc-symbols.h: Replace ASM_GLOBAL_DIRECTIVE with .globl.
18578         * elf/tst-unique2mod2.c: Likewise.
18579         * elf/tst-unique2mod1.c: Likewise.
18580         * elf/tst-unique1mod2.c: Likewise.
18581         * elf/tst-unique1mod1.c: Likewise.
18582         * sysdeps/s390/s390-32/sysdep.h: Likewise.
18583         * sysdeps/s390/s390-32/s390-mcount.S: Likewise.
18584         * sysdeps/s390/s390-64/sysdep.h: Likewise.
18585         * sysdeps/s390/s390-64/s390x-mcount.S: Likewise.
18586         * sysdeps/mach/sysdep.h: Likewise.
18587         * sysdeps/i386/sysdep.h: Likewise.
18588         * sysdeps/i386/i386-mcount.S: Likewise.
18589         * sysdeps/x86_64/_mcount.S: Likewise.
18590         * sysdeps/x86_64/sysdep.h: Likewise.
18591         * sysdeps/sh/_mcount.S: Likewise.
18592         * sysdeps/sh/sysdep.h: Likewise.
18593         * sysdeps/powerpc/powerpc32/gprsave1.S: Likewise.
18594         * sysdeps/powerpc/powerpc32/fpu/fprrest.S: Likewise.
18595         * sysdeps/powerpc/powerpc32/fpu/fprsave.S: Likewise.
18596         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
18597         * sysdeps/powerpc/powerpc32/gprrest1.S: Likewise.
18598         * sysdeps/powerpc/powerpc32/gprsave0.S: Likewise.
18599         * sysdeps/powerpc/powerpc32/gprrest0.S: Likewise.
18600         * locale/localeinfo.h: Likewise.
18601         (_NL_CURRENT_DEFINE_STRINGIFY): Delete macro.
18602         (_NL_CURRENT_DEFINE_STRINGIFY_1): Likewise.
18603
18604 2012-07-09  Roland McGrath  <roland@hack.frob.com>
18605
18606         [BZ #14336]
18607         * manual/charset.texi (Extended Char Intro): Word use fix, "operating
18608         system".
18609         * manual/message.texi (The Uniforum approach): Likewise.
18610         * manual/charset.texi (Extended Char Intro): Spelling fix, "affected".
18611         (glibc iconv Implementation): Likewise.
18612
18613 2012-07-09  Joseph Myers  <joseph@codesourcery.com>
18614
18615         [BZ #14337]
18616         * math/s_clog.c (__clog): Avoid scaling a value down where that
18617         could result in underflow.
18618         * math/s_clog10.c (__clog10): Likewise.
18619         * math/s_clog10f.c (__clog10f): Likewise.
18620         * math/s_clog10l.c (__clog10l): Likewise.
18621         * math/s_clogf.c (__clogf): Likewise.
18622         * math/s_clogl.c (__clogl): Likewise.
18623         * math/libm-test.inc (clog_test): Add more tests.
18624         (clog10_test): Likewise.
18625         * sysdeps/i386/fpu/libm-test-ulps: Update.
18626         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18627
18628 2012-07-06  Andreas Schwab  <schwab@linux-m68k.org>
18629
18630         [BZ #14283]
18631         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Shift
18632         by 7 not 8 to examine high bit of fractional part.
18633
18634         [BZ #14042]
18635         * sysdeps/powerpc/powerpc32/ppc-mcount.S [SHARED]: Don't use PLT
18636         for call to __mcount_internal.
18637         * sysdeps/powerpc/powerpc32/Makefile (sysdep_routines)
18638         (shared-only-routines) [$(subdir) = gmon]: Add compat-ppc-mcount.
18639         * sysdeps/powerpc/powerpc32/compat-ppc-mcount.S: New file.
18640
18641 2012-07-06  Joseph Myers  <joseph@codesourcery.com>
18642
18643         [BZ #14154]
18644         * sysdeps/ieee754/flt-32/k_tanf.c (__kernel_tanf): Use linear
18645         approximation for values within 0x1p-13f of an odd multiple of
18646         pi/4.
18647         * math/libm-test.inc (tan_test): Do not allow spurious underflow
18648         exception.  Add more tests.
18649         * sysdeps/i386/fpu/libm-test-ulps: Update.
18650
18651         [BZ #6778]
18652         * sysdeps/i386/fpu/s_expm1.S (__expm1): Check for large negative
18653         inputs and return -1 for them.  Do not check for +Inf in case not
18654         reachable for +Inf.
18655         * sysdeps/i386/fpu/s_expm1f.S (__expm1f): Likewise.
18656         * sysdeps/i386/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not define.
18657         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
18658         and return -1 for them.  Do not check for +Inf in case not
18659         reachable for +Inf.
18660         * sysdeps/x86_64/fpu/e_expl.S [USE_AS_EXPM1L] (csat): Do not
18661         define.
18662         (IEEE754_EXPL) [USE_AS_EXPM1L]: Check for large negative inputs
18663         and return -1 for them.  Do not check for +Inf in case not
18664         reachable for +Inf.
18665         * math/libm-test.inc (expm1_test): Add more tests.  Do not allow
18666         spurious underflow.
18667         * sysdeps/i386/fpu/libm-test-ulps: Update.
18668         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18669
18670 2012-07-06  Mike Frysinger  <vapier@gentoo.org>
18671
18672         * sunrpc/rpc_clntout.c: Change <rpc/types.h> to "rpc/types.h".
18673
18674 2012-07-05  Joseph Myers  <joseph@codesourcery.com>
18675
18676         [BZ #14157]
18677         [BZ #14331]
18678         * math/s_csqrt.c (__csqrt): Avoid multiplying by 0.5 where this
18679         could result in spurious underflow.  Scale down values above
18680         DBL_MAX / 4.0 instead of DBL_MAX / 2.0.
18681         * math/s_csqrtf.c (__csqrtf): Likewise.
18682         * math/s_csqrtl.c (__csqrtl): Likewise.
18683         * math/libm-test.inc (csqrt_test): Add more tests.  Do not allow
18684         spurious underflow.
18685         * sysdeps/i386/fpu/libm-test-ulps: Update.
18686         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18687
18688 2012-07-04  Andreas Schwab  <schwab@linux-m68k.org>
18689
18690         * catgets/Makefile ($(objpfx)de.msg): Use xopen-msg.awk instead of
18691         xopen-msg.sed.
18692         * catgets/xopen-msg.awk: New file.
18693         * catgets/xopen-msg.sed: Removed.
18694
18695         * intl/Makefile ($(objpfx)msgs.h): Use po2test.awk instead of
18696         po2text.sed.
18697         * intl/po2test.awk: New file.
18698         * intl/po2test.sed: Removed.
18699
18700 2012-07-04  Joseph Myers  <joseph@codesourcery.com>
18701
18702         [BZ #14328]
18703         * math/s_ctan.c (__ctan): Do not call sinh and cosh for subnormals
18704         or multiply small sinh result by itself.
18705         * math/s_ctanf.c (__ctanf): Likewise.
18706         * math/s_ctanh.c (__ctanh): Likewise.
18707         * math/s_ctanhf.c (__ctanhf): Likewise.
18708         * math/s_ctanhl.c (__ctanhl): Likewise.
18709         * math/s_ctanl.c (__ctanl): Likewise.
18710         * math/libm-test.inc (ctan_test_tonearest): New function.
18711         (ctan_test_towardzero): Likewise.
18712         (ctan_test_downward): Likewise.
18713         (ctan_test_upward): Likewise.
18714         (ctanh_test_tonearest): Likewise.
18715         (ctanh_test_towardzero): Likewise.
18716         (ctanh_test_downward): Likewise.
18717         (ctanh_test_upward): Likewise.
18718         (main): Call these new functions.
18719         * sysdeps/i386/fpu/libm-test-ulps: Update.
18720         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
18721
18722 2012-07-03  Mike Frysinger  <vapier@gentoo.org>
18723
18724         * .gitignore: Delete /ports entry.
18725
18726 2012-07-03  Andreas Jaeger  <aj@suse.de>
18727
18728         * po/bg.po: Update from translation team.
18729         * po/cs.po: Likewise.
18730         * po/de.po: Likewise.
18731         * po/hr.po: Likewise.
18732         * po/nl.pl: Likewise.
18733         * po/pl.po: Likewise.
18734         * po/vi.po: Likewise.
18735
18736 2012-07-03  Joseph Myers  <joseph@codesourcery.com>
18737
18738         * Makeconfig [!+link] (+link-before-libc): New variable.
18739         [!+link] (+link-after-libc): Likewise.
18740         [!+link] (+link-tests): Likewise.
18741         [!+link] (+link): Define in terms of $(+link-before-libc) and
18742         $(+link-after-libc).
18743         [!+link-static] (+link-static-before-libc): New variable.
18744         [!+link-static] (+link-static-after-libc): Likewise.
18745         [!+link-static] (+link-static-tests): Likewise.
18746         [!+link-static] (+link-static): Define in terms of
18747         $(+link-static-before-libc) and $(+link-static-after-libc).
18748         [build-shared] (link-libc-before-gnulib): New variable.
18749         [build-shared] (link-libc-tests): Likewise.
18750         [build-shared] (link-libc): Define in terms of
18751         $(link-libc-before-gnulib).
18752         [!build-shared] (link-libc-tests): New variable.
18753         (link-libc-static-tests): New variable.
18754         [!gnulib] (gnulib-arch): New variable.
18755         [!gnulib] (gnulib-tests): Likewise.
18756         [!gnulib] (static-gnulib-arch): Likewise.
18757         [!gnulib] (static-gnulib-tests): Likewise.
18758         [!gnulib] (gnulib): Use $(gnulib-arch).  Do not use $(libgcc_eh).
18759         Define with "=" instead of ":=".
18760         [!gnulib] (static-gnulib): Use $(static-gnulib-arch).  Do not use
18761         -lgcc_eh $(libunwind).  Define with "=" instead of ":=".
18762         * Rules (binaries-all-notests): New variable.
18763         (binaries-all-tests): Likewise.
18764         (binaries-static-notests): Likewise.
18765         (binaries-static-tests): Likewise.
18766         (binaries-all): Define using $(binaries-all-notests) and
18767         $(binaries-all-tests).
18768         (binaries-static): Define using $(binaries-static-notests) and
18769         $(binaries-static-tests).
18770         (binaries-shared-tests): New variable.
18771         (binaries-shared-notests): Likewise.
18772         (binaries-shared): Remove variable.
18773         ($(addprefix $(objpfx),$(binaries-shared-notests))): New rule.
18774         ($(addprefix $(objpfx),$(binaries-shared-tests))): Likewise.
18775         ($(addprefix $(objpfx),$(binaries-shared))): Remove rule.
18776         ($(addprefix $(objpfx),$(binaries-static-notests))): New rule.
18777         ($(addprefix $(objpfx),$(binaries-static-tests))): Likewise.
18778         ($(addprefix $(objpfx),$(binaries-static))): Remove rule.
18779         * elf/Makefile (sln-modules): New variable.
18780         (extra-objs): Add $(sln-modules:=.o).
18781         (ldconfig-modules): Add static-stubs.
18782         ($(objpfx)sln): Depend on $(sln-modules:%=$(objpfx)%.o).
18783         * elf/static-stubs.c: New file.
18784
18785         [BZ #14283]
18786         * sysdeps/ieee754/flt-32/k_rem_pio2f.c (__kernel_rem_pio2f): Shift
18787         by 7 not 8 to examine high bit of fractional part.  Use volatile
18788         variables when splitting into final array of floats if
18789         __FLT_EVAL_METHOD__ != 0.
18790         * math/libm-test.inc (cos_test): Add another test.
18791         (sin_test): Likewise.
18792         * sysdeps/i386/fpu/libm-test-ulps: Update.
18793
18794         [BZ #14273]
18795         * math/libm-test.inc (cosh_test): Add more tests.
18796
18797         * version.h (RELEASE): Set to "development".
18798         (VERSION): Set to "2.16.90".
18799
18800 2012-06-30  Carlos O'Donell  <carlos_odonell@mentor.com>
18801
18802         * NEWS: Update copyright. Remove last-updated date.
18803         Mention math library bug fixes and timezone data changes.
18804         * README: Mention GNU/Hurd, x32, and HPPA support status.
18805
18806 2012-06-28  Thomas Schwinge  <thomas@codesourcery.com>
18807
18808         * manual/contrib.texi (Contributors): Sort alphabetically by last name.
18809
18810 2012-06-27  Andreas Jaeger  <aj@suse.de>
18811
18812         * manual/contrib.texi (Contributors): Add Samuel Thibault.
18813
18814 2012-06-25  Andreas Jaeger  <aj@suse.de>
18815
18816         * sysdeps/s390/fpu/libm-test-ulps: Update.
18817
18818 2012-06-23  Andreas Schwab  <schwab@linux-m68k.org>
18819             Thomas Schwinge  <thomas@codesourcery.com>
18820
18821         * sysdeps/unix/sysv/linux/sh/syscalls.list: Add fanotify_mark.
18822         * sysdeps/unix/sysv/linux/sh/Versions (GLIBC_2.16): Add fanotify_mark.
18823         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist (GLIBC_2.16): Add
18824         fanotify_mark.
18825
18826 2012-06-23  Thomas Schwinge  <thomas@codesourcery.com>
18827
18828         * sysdeps/mach/start.c: Remove file.
18829         * sysdeps/mach/hurd/i386/static-start.S: Fix start.S include.
18830         * sysdeps/i386/init-first.c: Fix comment regarding start.S.
18831         * sysdeps/sh/init-first.c: Likewise.
18832
18833         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Preserve r12 and pr
18834         registers for frame unwinding purposes, add CFI directives.
18835         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
18836         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Likewise
18837         * sysdeps/unix/sysv/linux/sh/sysdep.h (SYSCALL_ERROR_HANDLER):
18838         Likewise.
18839
18840         * sysdeps/sh/____longjmp_chk.S (CALL_FAIL): Don't plan for the call to
18841         __fortify_fail returning.
18842         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S (CALL_FAIL): Likewise.
18843
18844         * sysdeps/unix/sysv/linux/sh/____longjmp_chk.S: New file, based on
18845         sysdeps/sh/____longjmp_chk.S.
18846         * sysdeps/unix/sysv/linux/sh/sigaltstack-offsets.sym: New file, based
18847         on sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym.
18848         * sysdeps/unix/sysv/linux/sh/Makefile [subdir=misc]
18849         (gen-as-const-headers): Append sigaltstack-offsets.sym.
18850
18851         * sysdeps/sh/abort-instr.h: New file.
18852         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Terminate the
18853         process in case exit returns.
18854
18855         * sysdeps/unix/sysv/linux/sh/makecontext.S (.Lexitcode): Always
18856         initialize the GOT register before use.
18857
18858         * sysdeps/unix/sysv/linux/sh/makecontext.S (__makecontext): Fix
18859         calculation of ARGC > 4.
18860
18861         * sysdeps/unix/sysv/linux/sh/makecontext.S: Add comments and give more
18862         meaningful names to some local labels.
18863
18864 2012-06-22  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
18865             Kaz Kojima  <kkojima@rr.iij4u.or.jp>
18866
18867         * sysdeps/unix/sysv/linux/sh/bits/atomic.h
18868         (__arch_compare_and_exchange_val_8_acq): Remove explicit nop.
18869         (__arch_compare_and_exchange_val_16_acq): Likewise.
18870         (__arch_compare_and_exchange_val_32_acq): Likewise.
18871         (atomic_exchange_and_add): Fix gUSA sequence.
18872         (atomic_add): Likewise.
18873         (atomic_add_negative): Likewise.
18874         (atomic_add_zero): Likewise.
18875         (atomic_bit_test_set): Likewise.
18876
18877 2012-06-22  Andreas Schwab  <schwab@redhat.com>
18878
18879         [BZ #13579]
18880         * include/link.h (struct link_map): Add l_free_initfini.
18881         * elf/dl-deps.c (_dl_map_object_deps): Set it when assigning
18882         l_initfini.
18883         * elf/dl-close.c (_dl_close_worker): Don't free l_initfini.
18884         * elf/rtld.c (dl_main): Clear it on all objects loaded on startup.
18885         * elf/dl-libc.c (free_mem): Free l_initfini if l_free_initfini is
18886         set.
18887
18888 2012-06-22  Carlos O'Donell  <carlos_odonell@mentor.com>
18889
18890         * configure.in: Use AC_LANG_SOURCE.
18891         * configure: Regenerate.
18892
18893 2012-06-22  Roland McGrath  <roland@hack.frob.com>
18894
18895         * configure.in (libc_cv_localstatedir): New substituted variable.
18896         * configure: Regenerated.
18897         * config.make.in (localstatedir): New variable, substituted from
18898         libc_cv_localstatedir.
18899         * Makeconfig (vardbdir): Use $(localstatedir) in place of /var.
18900         * sysdeps/gnu/configure.in (libc_cv_localstatedir): Change
18901         ${prefix}/var to /var when we change ${prefix}/etc to /etc.
18902         * sysdeps/gnu/configure: Regenerated.
18903
18904 2012-06-21  Jeff Law  <law@redhat.com>
18905
18906         [BZ #14277]
18907         * intl/dcigettext.c (_nl_find_msg): Avoid use after potential
18908         free.  Simplify list management for _LIBC case.
18909
18910 2012-06-21  Joseph Myers  <joseph@codesourcery.com>
18911
18912         [BZ #14273]
18913         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c (__ieee754_cosh):
18914         Clear sign bit of 64-bit integer value before comparing against
18915         overflow value.
18916
18917         * sysdeps/mach/configure: Regenerated.
18918
18919 2012-06-21  H.J. Lu  <hongjiu.lu@intel.com>
18920
18921         [BZ #14278]
18922         * sysdeps/i386/sysdep.h (SYSCALL_PIC_SETUP): Fix a typo.
18923
18924 2012-06-21  Jeff Law  <law@redhat.com>
18925
18926         [BZ #13882]
18927         * elf/dl-deps.c (_dl_map_object_deps): Fix cycle detection.  Use
18928         uint16_t for elements in the "seen" array to avoid char overflows.
18929         * elf/dl-fini.c (_dl_sort_fini): Likewise.
18930         * elf/dl-open.c (dl_open_worker): Likewise.
18931
18932 2012-06-21  Carlos O'Donell  <carlos_odonell@mentor.com>
18933
18934         * scripts/list-sources.sh: Scan PORTS for translations.
18935         * po/libc.pot: Regenerated.
18936
18937 2012-06-21  Andreas Jaeger  <aj@suse.de>
18938
18939         [BZ #12194]
18940         * sysdeps/s390/bits/byteswap-16.h (__bswap_16): Avoid -Wconversion
18941         warning.
18942         * sysdeps/s390/bits/byteswap.h (__bswap_constant_16): Likewise.
18943         * bits/byteswap-16.h (__bswap_16): Likewise.
18944         * bits/byteswap.h (__bswap_constant_16): Likewise.
18945
18946 2012-06-18  H.J. Lu  <hongjiu.lu@intel.com>
18947
18948         [BZ #14117]
18949         * sysdeps/i386/fpu_control.h: Removed.
18950         * sysdeps/x86_64/fpu_control.h: Moved to ...
18951         * sysdeps/x86/fpu_control.h: Here.
18952
18953         * sysdeps/x86_64/fpu_control.h (_FPU_GETCW): Add __volatile__.
18954         (_FPU_SETCW): Likewise.
18955
18956 2012-06-15  H.J. Lu  <hongjiu.lu@intel.com>
18957
18958         [BZ #14117]
18959         * sysdeps/i386/fpu/bits/mathinline.h: Renamed to ...
18960         * sysdeps/x86/fpu/bits/mathinline.h: This.
18961         * sysdeps/x86_64/fpu/bits/mathinline.h: Removed.
18962
18963         [BZ #14050]
18964         [BZ #14117]
18965         * sysdeps/i386/fpu/bits/mathinline.h: Disable x87 inline
18966         functions if __x86_64__ is defined.
18967
18968 2012-06-15  Chung-Lin Tang  <cltang@codesourcery.com>
18969
18970         * string/endian.h: Add !__ASSEMBLER__ condition for including
18971         conversion interfaces.
18972
18973 2012-06-15  Joseph Myers  <joseph@codesourcery.com>
18974
18975         [BZ #14241]
18976         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Use 0.0 instead
18977         of ABS(x) in calculating zero to negative powers other than odd
18978         integers.
18979         * math/libm-test.inc (pow_test): Add more tests.
18980
18981 2012-06-15  Andreas Jaeger  <aj@suse.de>
18982
18983         * manual/contrib.texi (Contributors): Update entry of Liubov
18984         Dmitrieva and add entries for Will Schmidt and Tulio Magno Quites
18985         Machado Filho.
18986
18987 2012-06-15  Cyril Hrubis  <metan@ucw.cz>
18988
18989         * string/string.h: Add __wur to GNU version of strerror_r.
18990
18991 2012-06-14  H.J. Lu  <hongjiu.lu@intel.com>
18992
18993         [BZ #14229]
18994         * string/Makefile (tests): Add tst-strtok_r.
18995         * string/tst-strtok_r.c: New file.
18996         * sysdeps/x86_64/strtok.S: Use LP_SIZE on save_ptr and use
18997         RAX_LP/RDX_LP on SAVE_PTR.
18998
18999 2012-06-14  Roland McGrath  <roland@hack.frob.com>
19000
19001         * manual/Makefile ($(objpfx)texis): Do $(make-target-directory).
19002
19003 2012-06-14  Joseph Myers  <joseph@codesourcery.com>
19004
19005         * libm_test.inc (csqrt_test): Allow more spurious underflow
19006         exceptions.
19007         (j0_test): Likewise.
19008         (j1_test): Likewise.
19009         (y0_test): Likewise.
19010         (y1_test): Likewise.
19011
19012 2012-06-13  Carlos O'Donell  <carlos_odonell@mentor.com>
19013
19014         * po/Makefile (libc.pot): Use UTF-8 charset.
19015
19016 2012-06-13  Paul Pluzhnikov  <ppluzhnikov@google.com>
19017
19018         [BZ #14210]
19019         Suppress sign-conversion warning from FD_SET.
19020         See <http://sourceware.org/ml/libc-alpha/2012-05/msg01794.html>.
19021         * debug/fdelt_chk.c (__fdelt_chk): Accept and return long int,
19022         not unsigned long int.
19023         * misc/bits/select2.h (__fdelt_chk, __fdelt_warn, __FD_ELT): Likewise.
19024
19025 2012-06-12  H.J. Lu  <hongjiu.lu@intel.com>
19026
19027         [BZ #14050]
19028         [BZ #14117]
19029         * sysdeps/i386/fpu/bits/mathinline.h (__MATH_INLINE): Check
19030         __extern_always_inline instead of __extern_inline.
19031         (__signbitf): Support __SSE2_MATH__ and C++ namespace.
19032         (__signbit): Likewise.
19033         (__signbitl): Support C++ namespace.
19034         (lrintf): New inline function.
19035         (lrint): Likewise.
19036         (llrintf): Likewise.
19037         (llrint): Likewise.
19038         (fmaxf): Likewise.
19039         (fmax): Likewise.
19040         (fminf): Likewise.
19041         (fmin): Likewise.
19042         (rint): Likewise.
19043         (rintf): Likewise.
19044         (ceil): Likewise.
19045         (ceilf): Likewise.
19046         (floor): Likewise.
19047         (floorf): Likewise.
19048         (nearbyint): Likewise.
19049         (nearbyintf): Likewise.
19050
19051 2012-06-12  Thomas Schwinge  <thomas@codesourcery.com>
19052
19053         * sysdeps/unix/Makefile ($(objpfx)stub-syscalls.c): Fix case for
19054         non-default versions.
19055
19056 2012-06-11  Roland McGrath  <roland@hack.frob.com>
19057
19058         [BZ #14218]
19059         * manual/argp.texi (Argp): Reword argp_parse description slightly.
19060
19061 2012-06-09  Thomas Schwinge  <thomas@codesourcery.com>
19062
19063         * sysdeps/sh/sh4/fpu/bits/fenv.h (__FE_UNDEFINED): Define.
19064         (FE_UPWARD, FE_DOWNWARD): Don't define.
19065         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Adapt to that.
19066         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
19067
19068         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Do not re-write fpscr after
19069         reading it.
19070         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
19071         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19072
19073 2012-06-09  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
19074
19075         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
19076         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Refreshed.
19077         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: Refreshed.
19078         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: Refreshed.
19079
19080 2012-06-06  H.J. Lu  <hongjiu.lu@intel.com>
19081
19082         [BZ #14117]
19083         * sysdeps/i386/fpu/bits/fenv.h: Removed.
19084         * sysdeps/i386/fpu/Implies: New file.
19085         * sysdeps/x86_64/fpu/Implies: Likewise.
19086         * sysdeps/x86_64/fpu/bits/fenv.h: Renamed to ...
19087         * sysdeps/x86/fpu/bits/fenv.h: This.
19088
19089         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Check
19090         __SSE_MATH__.
19091
19092 2012-06-06  Siddhesh Poyarekar  <siddhesh@redhat.com>
19093
19094         [BZ #14134]
19095         * iconvdata/ibm930.c (BODY) [FROM_LOOP]: Check for invalid
19096         character 0xffff that matches the last element of the
19097         conversion table.
19098
19099 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19100
19101         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Fix for wrong ldbl128-ibm
19102         fmodl commit.
19103
19104 2012-06-05  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19105
19106         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Fix spurious underflow for
19107         values higher than 25.6283.
19108
19109 2012-06-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19110
19111         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c (__ieee754_fmodl): Fix
19112         subnormal exponent extraction and add some __builtin_expect.
19113         * sysdeps/ieee754/ldbl-128ibm/math_ldbl.h (ldbl_extract_mantissa):
19114         Fix for subnormal mantissa calculation.
19115
19116 2012-06-04  Mike Frysinger  <vapier@gentoo.org>
19117
19118         * sysdeps/unix/sysv/linux/tst-getcpu.c (do_test): Call perror when
19119         cpu2 is -1 and errno is not ENOSYS.
19120
19121 2012-06-04  H.J. Lu  <hongjiu.lu@intel.com>
19122
19123         [BZ #14117]
19124         * sysdeps/i386/i486/bits/string.h: Renamed to ...
19125         * sysdeps/x86/bits/string.h: This.
19126         * sysdeps/x86_64/bits/string.h: Removed.
19127
19128         * sysdeps/i386/i486/bits/string.h: Define inline functions only
19129         if not compiling for x86-64, but compiling for >= i486.
19130
19131         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Renamed to ...
19132         * sysdeps/unix/sysv/linux/x86/bits/sigcontext.h: This.
19133
19134         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h (FP_XSTATE_MAGIC1):
19135         New macro from Linux kernel 3.4.0.
19136         (FP_XSTATE_MAGIC2): Likewise.
19137         (FP_XSTATE_MAGIC2_SIZE): Likewise.
19138         (X86_FXSR_MAGIC): New macro from Linux i386 kernel.
19139         (struct _fpx_sw_bytes): New struct.
19140         (struct _xsave_hdr): Likewise.
19141         (struct _ymmh_state): Likewise.
19142         (struct _xstate): Likewise.
19143
19144         * sysdeps/unix/sysv/linux/i386/sys/debugreg.h: Removed.
19145         * sysdeps/unix/sysv/linux/i386/sys/reg.h: Likewise.
19146         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Renamed to ...
19147         * sysdeps/unix/sysv/linux/x86/sys/debugreg.h: This.
19148         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Renamed to ...
19149         * sysdeps/unix/sysv/linux/x86/sys/reg.h: This.
19150
19151         * sysdeps/unix/sysv/linux/i386/sys/io.h: Removed.
19152         * sysdeps/unix/sysv/linux/x86_64/sys/io.h: Renamed to ...
19153         * sysdeps/unix/sysv/linux/x86/sys/io.h: This.
19154         * sysdeps/unix/sysv/linux/i386/sys/perm.h: Removed.
19155         * sysdeps/unix/sysv/linux/x86_64/sys/perm.h: Renamed to ...
19156         * sysdeps/unix/sysv/linux/x86/sys/perm.h: This.
19157
19158 2012-06-04  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
19159
19160         [BZ #13743]
19161         * sysdeps/powerpc/sys/platform/ppc.h: New file for PowerPC features.
19162         * sysdeps/powerpc/Makefile (tests): Add test-gettimebase.
19163         (sysdep_headers): Include sys/platform/ppc.h.
19164         * sysdeps/powerpc/test-gettimebase.c: Test for
19165         __ppc_get_timebase() to catch future ISA opcode/insn changes.
19166         * manual/Makefile (appendices): Include platform.texi.
19167         * manual/contrib.texi (Contributors): Update @node pointers.
19168         * manual/maint.texi (Maintenance): Likewise.
19169         (Platform): New node.
19170         * manual/platform.texi: New file.  Document the new features.
19171
19172 2012-06-04  Siddhesh Poyarekar  <siddhesh@redhat.com>
19173             Jakub Jelinek  <jakub@redhat.com>
19174
19175         [BZ #14188]
19176         * misc/sys/cdefs.h (__glibc_unlikely): New macro to wrap cases
19177         where __builtin_expect is unavailable.
19178
19179 2012-06-03  David S. Miller  <davem@davemloft.net>
19180
19181         * stdlib/longlong.h: Updated from GCC.
19182
19183 2012-06-02  Andreas Schwab  <schwab@linux-m68k.org>
19184
19185         [BZ #14042]
19186         * sysdeps/powerpc/powerpc32/mcount.c: New file.
19187         * sysdeps/powerpc/powerpc32/Versions (GLIBC_2.16): Add
19188         __mcount_internal.
19189         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist
19190         (GLIBC_2.16): Likewise.
19191
19192 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
19193
19194         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (outsw): Fix a typo.
19195
19196 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
19197
19198         * sysdeps/unix/sysv/linux/powerpc/powerpc32/Makefile
19199         (default-abi): New variable.
19200         * sysdeps/unix/sysv/linux/powerpc/powerpc64/Makefile: New file.
19201         * sysdeps/unix/sysv/linux/s390/s390-32/Makefile (default-abi): New
19202         variable.
19203         * sysdeps/unix/sysv/linux/s390/s390-64/Makefile (default-abi):
19204         Likewise.
19205         * sysdeps/unix/sysv/linux/sparc/sparc32/Makefile (default-abi):
19206         Likewise.
19207         * sysdeps/unix/sysv/linux/sparc/sparc64/Makefile (default-abi):
19208         Likewise.
19209
19210         * Makeconfig [abi-variants && !default-abi] (default-abi): Remove
19211         definition.  Document in comment.
19212
19213 2012-06-01  David S. Miller  <davem@davemloft.net>
19214
19215         * stdlib/longlong.h: Updated from GCC.
19216
19217 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
19218
19219         [BZ #14117]
19220         * sysdeps/unix/sysv/linux/i386/Makefile (sysdep_headers):
19221         Don't add sys/elf.h sys/perm.h sys/reg.h sys/vm86.h
19222         sys/debugreg.h sys/io.h here.
19223         * sysdeps/unix/sysv/linux/x86/Makefile (sysdep_headers): Add
19224         sys/elf.h sys/perm.h sys/reg.h sys/vm86.h sys/debugreg.h
19225         sys/io.h.
19226         * sysdeps/unix/sysv/linux/x86_64/Makefile (sysdep_headers):
19227         Don't add sys/perm.h sys/reg.h sys/debugreg.h sys/io.h here.
19228         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Renamed to ...
19229         * sysdeps/unix/sysv/linux/x86/sys/elf.h: This.
19230         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Renamed to ...
19231         * sysdeps/unix/sysv/linux/x86/sys/vm86.h: This.
19232
19233         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h (DR_LEN_8):
19234         Define only if __x86_64__ is defined.
19235
19236 2012-06-01  Joseph Myers  <joseph@codesourcery.com>
19237
19238         [BZ #14048]
19239         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c (__ieee754_fmod):
19240         Use int64_t for variable i.
19241         * math/libm-test.inc (fmod_test): Add more tests.
19242
19243         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Ensure temp + (double)
19244         z computation is not scheduled after fetestexcept.
19245         * sysdeps/ieee754/ldbl-128/s_fmal.c: Include <math_private.h>.
19246         Use math_force_eval instead of asm to ensure calculation scheduled
19247         before exception test.
19248         * sysdeps/ieee754/ldbl-96/s_fmal.c: Include <math_private.h>.
19249         Ensure a1 + u.d computation is not scheduled after fetestexcept.
19250
19251 2012-06-01  Aurelien Jarno  <aurelien@aurel32.net>
19252
19253         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Ensure a1 + u.d
19254         computation is not scheduled after fetestexcept.
19255
19256 2012-06-01  H.J. Lu  <hongjiu.lu@intel.com>
19257
19258         [BZ #14117]
19259         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Renamed to ...
19260         * sysdeps/unix/sysv/linux/x86/bits/wchar.h: This.
19261
19262 2012-06-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
19263
19264         * sysdeps/powerpc/fpu/k_cosf.c: Fix underflow generation.
19265         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
19266
19267 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
19268
19269         [BZ #14117]
19270         * sysdeps/unix/sysv/linux/i386/bits/wchar.h: Include
19271         <bits/wordsize.h>.
19272         (__WCHAR_MIN): Support __WORDSIZE == 64.
19273         (__WCHAR_MAX): Likewise.
19274
19275         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: Renamed to ...
19276         * sysdeps/unix/sysv/linux/x86/bits/typesizes.h: This.
19277
19278         [BZ #14183]
19279         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__FSWORD_T_TYPE):
19280         Defined with __SWORD_TYPE if __x86_64__ isn't defined.
19281
19282         [BZ #14117]
19283         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: Renamed to ...
19284         * sysdeps/unix/sysv/linux/x86/bits/siginfo.h: This.
19285
19286         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h: Renamed to ...
19287         * sysdeps/unix/sysv/linux/x86/bits/stat.h: This.
19288
19289         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_KERNEL):
19290         Defined to 1 if __x86_64__ isn't defined.
19291         (_STAT_VER_LINUX_OLD): New.
19292         (st_atime): Remove duplicate.
19293         (st_mtime): Likewise.
19294         (st_ctime): Likewise.
19295
19296 2012-05-31  David S. Miller  <davem@davemloft.net>
19297
19298         * sysdeps/sparc/fpu/libm-test-ulps: Remove sqrt(2) and sqrt test
19299         entries.
19300
19301 2012-06-01  Andreas Schwab  <schwab@linux-m68k.org>
19302
19303         * sysdeps/powerpc/fpu/libm-test-ulps: Sort through
19304         gen-libm-test.pl.
19305
19306         [BZ #14132]
19307         * elf/dl-reloc.c: Include <_itoa.h>.
19308         (_dl_reloc_bad_type): Remove use of INTUSE.
19309         * elf/dl-minimal.c (_itoa, _itoa_lower_digits): Likewise.
19310         * stdio-common/_itoa.c (_itoa_word, _itoa): Likewise.
19311         * stdio-common/psiginfo.c (psiginfo): Likewise.
19312         * stdio-common/psignal.c (psignal): Likewise.
19313         * string/strsignal.c (strsignal): Likewise.
19314         * include/signal.h (_sys_siglist): Declare hidden proto.
19315         * stdio-common/itoa-digits.c: Include <_itoa.h>.  Replace
19316         INTVARDEF with libc_hidden_data_def.
19317         * stdio-common/itoa-udigits.c: Likewise.
19318         * sysdeps/generic/_itoa.h (_itoa_upper_digits_internal)
19319         (_itoa_lower_digits_internal): Remove declaration.
19320         (_itoa_upper_digits, _itoa_lower_digits): Declare hidden proto.
19321         * sysdeps/gnu/siglist.c (_sys_siglist_internal)
19322         (_sys_sigabbrev_internal): Remove aliases.
19323         (_sys_siglist): Define hidden alias.
19324
19325 2012-05-31  Markus Trippelsdorf  <markus@trippelsdorf.de>
19326
19327         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
19328         bits/sysctl.h.
19329
19330 2012-05-31  H.J. Lu  <hongjiu.lu@intel.com>
19331
19332         [BZ #14117]
19333         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Renamed to ...
19334         * sysdeps/unix/sysv/linux/x86/bits/sysctl.h: This.
19335
19336         * sysdeps/unix/sysv/linux/i386/sys/ucontext.h: Removed.
19337         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Renamed to ...
19338         * sysdeps/unix/sysv/linux/x86/sys/ucontext.h: This.
19339         * sysdeps/unix/sysv/linux/i386/sys/user.h: Removed.
19340         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Renamed to ...
19341         * sysdeps/unix/sysv/linux/x86/sys/user.h: This.
19342
19343         * sysdeps/unix/sysv/linux/i386/sys/procfs.h: Removed.
19344         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Renamed to ...
19345         * sysdeps/unix/sysv/linux/x86/sys/procfs.h: This.
19346
19347         * sysdeps/unix/sysv/linux/x86_64/sys/io.h (insb): Replace addr
19348         with __addr.
19349         (insw): Likewise.
19350         (insl): Likewise.
19351         (outsb): Likewise.
19352         (outsw): Likewise.
19353         (outsl): Likewise.
19354
19355         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Removed.
19356         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Renamed to ...
19357         * sysdeps/unix/sysv/linux/x86/bits/mman.h: This.
19358
19359         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Renamed to ...
19360         * sysdeps/unix/sysv/linux/x86/bits/msq.h: This.
19361         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h: Renamed to ...
19362         * sysdeps/unix/sysv/linux/x86/bits/sem.h: This.
19363         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h: Renamed to ...
19364         * sysdeps/unix/sysv/linux/x86/bits/shm.h: This.
19365
19366         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: Renamed to ...
19367         * sysdeps/unix/sysv/linux/x86/bits/ipctypes.h: This.
19368
19369         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Renamed to ...
19370         * sysdeps/unix/sysv/linux/x86/bits/epoll.h: This.
19371
19372         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Removed.
19373         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Renamed to ...
19374         * sysdeps/unix/sysv/linux/x86/bits/fcntl.h: This.
19375
19376         * sysdeps/unix/sysv/linux/i386/bits/environments.h: Removed.
19377         * sysdeps/unix/sysv/linux/x86_64/bits/environments.h: Renamed
19378         to ...
19379         * sysdeps/unix/sysv/linux/x86/bits/environments.h: This.
19380
19381         * sysdeps/unix/sysv/linux/i386/bits/a.out.h: Removed.
19382         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Renamed to ...
19383         * sysdeps/unix/sysv/linux/x86/bits/a.out.h: This.
19384
19385         * sysdeps/unix/sysv/linux/i386/sys/elf.h: Error when compiling
19386         for x86-64.
19387         * sysdeps/unix/sysv/linux/i386/sys/vm86.h: Likewise.
19388
19389 2012-05-31  Joseph Myers  <joseph@codesourcery.com>
19390
19391         * math/math.h (M_El): Use two more decimal places.
19392         (M_LOG2El): Likewise.
19393         (M_LOG10El): Likewise.
19394         (M_LN2l): Likewise.
19395         (M_LN10l): Likewise.
19396         (M_PIl): Likewise.
19397         (M_PI_2l): Likewise.
19398         (M_PI_4l): Likewise.
19399         (M_1_PIl): Likewise.
19400         (M_2_PIl): Likewise.
19401         (M_2_SQRTPIl): Likewise.
19402         (M_SQRT2l): Likewise.
19403         (M_SQRT1_2l): Likewise.
19404
19405 2012-05-31  David S. Miller  <davem@davemloft.net>
19406
19407         * sysdeps/sparc/sparc64/memcpy.S: Use fsrc2 to move 64-bit
19408         values between float registers.
19409         * sysdeps/sparc/sparc64/memset.S: Likewise.
19410         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
19411
19412 2012-05-31  Mike Frysinger  <vapier@gentoo.org>
19413
19414         * debug/Makefile (CFLAGS-tst-longjmp_chk.c): Delete
19415         -D_FORTIFY_SOURCE=1.
19416         (CPPFLAGS-tst-longjmp_chk.c): Define.
19417         (CFLAGS-tst-longjmp_chk2.c): Delete -D_FORTIFY_SOURCE=1.
19418         (CPPFLAGS-tst-longjmp_chk2.c): Define.
19419         * wcsmbs/Makefile (CPPFLAGS-tst-wchar-h.c): Rename from
19420         CFLAGS-tst-wchar-h.c.
19421
19422 2012-05-31  Marek Polacek  <polacek@redhat.com>
19423
19424         [BZ #14132]
19425         * include/mntent.h (__setmntent_internal, __getmntent_r_internal
19426         __endmntent_internal): Remove declaration.
19427         (__setmntent, __endmntent, __getmntent_r) [NOT_IN_libc]: Remove macro.
19428         (__setmntent, __endmntent, __getmntent_r): Declare hidden proto.
19429         * misc/mntent_r.c: Replace INTDEF with libc_hidden_def.
19430
19431 2012-05-30  David S. Miller  <davem@davemloft.net>
19432
19433         * sysdeps/sparc/sparc32/soft-fp/q_util.c
19434         (___Q_simulate_exceptions): Use real FP ops rather than writing
19435         into the %fsr.
19436         * sysdeps/sparc/sparc32/soft-fp/q_util.c (__Qp_handle_exceptions):
19437         Likewise.
19438
19439 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
19440
19441         [BZ #14117]
19442         * sysdeps/x86_64/bits/xtitypes.h: Renamed to ...
19443         * sysdeps/x86/bits/xtitypes.h: This.
19444
19445         * sysdeps/x86_64/bits/wordsize.h: Renamed to ...
19446         * sysdeps/x86/bits/wordsize.h: This.
19447
19448         * sysdeps/i386/bits/huge_vall.h: Renamed to ...
19449         * sysdeps/x86/bits/huge_vall.h: This.
19450
19451         * sysdeps/i386/bits/select.h: Removed.
19452         * sysdeps/x86_64/bits/select.h: Renamed to ...
19453         * sysdeps/x86/bits/select.h: This.
19454
19455         * sysdeps/i386/bits/setjmp.h: Removed.
19456         * sysdeps/x86_64/bits/setjmp.h: Renamed to ...
19457         * sysdeps/x86/bits/setjmp.h: This.
19458
19459         * sysdeps/i386/bits/mathdef.h: Removed.
19460         * sysdeps/x86_64/bits/mathdef.h: Renamed to ...
19461         * sysdeps/x86/bits/mathdef.h: This.
19462
19463 2012-05-30  Andreas Schwab  <schwab@linux-m68k.org>
19464
19465         [BZ #14132]
19466         * include/sys/socket.h (__connect_internal)
19467         (__libc_sa_len_internal): Remove declaration.
19468         (__connect, __libc_sa_len): Declare hidden_proto.
19469         (SA_LEN): Remove use of INTUSE.
19470         * socket/connect.c: Add libc_hidden_def.
19471         * sysdeps/mach/hurd/connect.c: Replace INTDEF by libc_hidden_def.
19472         * sysdeps/unix/sysv/linux/sa_len.c: Likewise.
19473         * sysdeps/unix/inet/syscalls.list: Remove __connect_internal
19474         alias.
19475         * sysdeps/unix/sysv/linux/s390/s390-64/syscalls.list: Likewise.
19476         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Likewise.
19477         * sysdeps/unix/sysv/linux/connect.S: Use libc_hidden_weak instead
19478         of adding _internal alias.
19479
19480 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
19481
19482         [BZ #14117]
19483         * sysdeps/i386/bits/link.h: Removed.
19484         * sysdeps/i386/bits/linkmap.h: Likewise.
19485         * sysdeps/x86_64/bits/link.h: Renamed to ...
19486         * sysdeps/x86/bits/link.h: This.
19487         * sysdeps/x86_64/bits/linkmap.h: Renamed to ...
19488         * sysdeps/x86/bits/linkmap.h: This.
19489
19490         * sysdeps/i386/bits/endian.h: Removed.
19491         * sysdeps/x86_64/bits/endian.h: Renamed to ...
19492         * sysdeps/x86/bits/endian.h: This.
19493
19494         * sysdeps/i386/bits/byteswap.h: Removed.
19495         * sysdeps/i386/bits/byteswap-16.h: Likewise.
19496         * sysdeps/x86_64/bits/byteswap.h: Renamed to ...
19497         * sysdeps/x86/bits/byteswap.h: This.
19498         * sysdeps/x86_64/bits/byteswap-16.h: Renamed to ...
19499         * sysdeps/x86/bits/byteswap-16.h: This.
19500         * sysdeps/i386/Implies: Add x86.
19501         * sysdeps/x86_64/Implies: Likewise.
19502
19503 2012-05-30  David S. Miller  <davem@davemloft.net>
19504
19505         * soft-fp/soft-fp.h (FP_CUR_EXCEPTIONS): Define.
19506         (FP_TRAPPING_EXCEPTIONS): Provide default implementation.
19507         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h
19508         (FP_TRAPPING_EXCEPTIONS): Define.
19509         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h
19510         (FP_TRAPPING_EXCEPTIONS): Define.
19511         * soft-fp/op-common.h (_FP_PACK_SEMIRAW): Signal underflow for
19512         subnormals only when inexact has been signalled or underflow
19513         exceptions are enabled.
19514         (_FP_PACK_CANONICAL): Likewise.
19515
19516 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
19517
19518         [BZ #14183]
19519         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h (__NLINK_T_TYPE):
19520         Defined with __UWORD_TYPE if __x86_64__ isn't defined.
19521
19522 2012-05-30  Richard Henderson  <rth@twiddle.net>
19523
19524         * sysdeps/unix/make-syscalls.sh: Protect symbol_version output
19525         with #ifndef NOT_IN_libc.
19526
19527         * scripts/abilist.awk: Accept 8 fields.  Handle Alpha functions
19528         marked to avoid plt entry.
19529
19530 2012-05-30  H.J. Lu  <hongjiu.lu@intel.com>
19531
19532         [BZ #14112]
19533         * Makeconfig (default-abi): New macro.
19534         (abi-includes): Likewise.
19535         ($(common-objpfx)soversions.mk): Remove WORDSIZE check.  Use
19536         $(abi-$(default-abi)-lib-soname) for soname if defined.
19537         ($(common-objpfx)gnu/lib-names.stmp): Generate from
19538         abi-variants.
19539         * Makefile (installed-stubs): Likewise.
19540         * include/stubs-biarch.h: Removed.
19541         * scripts/lib-names.awk: Only handle one library at a time.
19542         * scripts/soversions.awk: Remove WORDSIZE support.
19543         * shlib-versions: Remove WORDSIZE and i.86/s390x/powerpc64 ld
19544         entries.
19545         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants):
19546         Removed.
19547         (syscall-list-default-condition): Likewise.
19548         (syscall-list-default-condition): Likewise.
19549         (syscall-list-includes): Likewise.
19550         ($(objpfx)bits/syscall%h $(objpfx)bits/syscall%d): Replace
19551         syscall-list-* with abi-*.  Handle undefined abi-variants.
19552         * sysdeps/unix/sysv/linux/i386/Makefile (default-abi): New macro.
19553         * sysdeps/unix/sysv/linux/i386/Implies: New file.
19554         * sysdeps/unix/sysv/linux/x86/Makefile: Likewise.
19555         * sysdeps/unix/sysv/linux/x86_64/64/Makefile: Likewise.
19556         * sysdeps/unix/sysv/linux/x86_64/Implies: Add unix/sysv/linux/x86.
19557         * sysdeps/unix/sysv/linux/x86_64/Makefile (syscall-list-variants):
19558         Removed.
19559         (syscall-list-32-options): Likewise.
19560         (syscall-list-32-condition): Likewise.
19561         (syscall-list-64-options): Likewise.
19562         (syscall-list-64-condition): Likewise.
19563         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (default-abi): New
19564         macro.
19565         * sysdeps/unix/sysv/linux/powerpc/Makefile (syscall-list-*):
19566         Renamed to ...
19567         (abi-*): This.
19568         (abi-64-ld-soname): New macro.
19569         * sysdeps/unix/sysv/linux/s390/Makefile: Likewise.
19570         * sysdeps/unix/sysv/linux/sparc/Makefile (syscall-list-*):
19571         Renamed to ...
19572         (abi-*): This.
19573         * sysdeps/x86_64/64/shlib-versions: Remove ld entry.
19574         * sysdeps/x86_64/x32/shlib-versions: Likewise.
19575
19576 2012-05-30  Joseph Myers  <joseph@codesourcery.com>
19577
19578         * sysdeps/unix/sysv/linux/kernel-features.h
19579         (__ASSUME_TRUNCATE64_SYSCALL): Remove all definitions.
19580         * sysdeps/unix/sysv/linux/ftruncate64.c: Do not
19581         include <kernel-features.h>.
19582         [!__NR_ftruncate64]: Remove conditional code.
19583         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
19584         [__NR_ftruncate64]: Make code unconditional.
19585         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
19586         * sysdeps/unix/sysv/linux/truncate64.c: Do not
19587         include <kernel-features.h>.
19588         [!__NR_ftruncate64]: Remove conditional code.
19589         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
19590         [__NR_ftruncate64]: Make code unconditional.
19591         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
19592         * sysdeps/unix/sysv/linux/powerpc/powerpc32/ftruncate64.c: Do not
19593         include <kernel-features.h>.
19594         [!__NR_ftruncate64]: Remove conditional code.
19595         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
19596         [__NR_ftruncate64]: Make code unconditional.
19597         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
19598         * sysdeps/unix/sysv/linux/powerpc/powerpc32/truncate64.c: Do not
19599         include <kernel-features.h>.
19600         [!__NR_ftruncate64]: Remove conditional code.
19601         [!__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
19602         [__NR_ftruncate64]: Make code unconditional.
19603         [__ASSUME_TRUNCATE64_SYSCALL]: Likewise.
19604
19605         * configure.in (libc_cv_fpie): Weaken to a compile test using
19606         LIBC_TRY_CC_OPTION.
19607         * configure: Regenerated.
19608
19609 2012-05-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
19610
19611         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: Refreshed.
19612         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Refreshed.
19613         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: Refreshed.
19614         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
19615         Refreshed.
19616         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: Refreshed.
19617         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: Refreshed.
19618         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: Refreshed.
19619         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Refreshed.
19620         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: Refreshed.
19621         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
19622         Refreshed.
19623
19624 2012-05-27  David S. Miller  <davem@davemloft.net>
19625
19626         * sysdeps/sparc/sparc32/soft-fp/q_util.c (___Q_numbers): Delete.
19627         (___Q_zero): New.
19628         (__Q_simulate_exceptions): Return void.  Change to simulate
19629         exceptions by writing into the %fsr.
19630         * sysdeps/sparc/sparc64/soft-fp/qp_util.c
19631         (__Qp_handle_exceptions): Likewise.
19632         (numbers): Delete.
19633         * sysdeps/sparc/sparc64/soft-fp/Versions: Remove entry for
19634         __Qp_handle_exceptions.
19635         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Remove
19636         __Qp_handle_exceptions.
19637         * sysdeps/sparc/sparc32/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
19638         as unused and give dummy FP_RND_NEAREST initializer.
19639         (FP_INHIBIT_RESULTS): Define.
19640         (___Q_simulate_exceptions): Update declaration.
19641         (FP_HANDLE_EXCEPTIONS): Use ___Q_zero and tidy inline asm
19642         formatting.
19643         * sysdeps/sparc/sparc64/soft-fp/sfp-machine.h (_FP_DECL_EX): Mark
19644         as unused and give dummy FP_RND_NEAREST initializer.
19645         (__Qp_handle_exceptions): Update declaration.
19646         (FP_HANDLE_EXCEPTIONS, QP_NO_EXCEPTIONS): Tidy inline asm
19647         formatting.
19648
19649 2012-05-27  Thomas Schwinge  <thomas@codesourcery.com>
19650
19651         * sysdeps/sh/sh4/fpu/fclrexcpt.c (feclearexcept): Use fpu_control_t for
19652         the temporary FPU control word.
19653         * sysdeps/sh/sh4/fpu/fedisblxcpt.c (fedisableexcept): Likewise.
19654         * sysdeps/sh/sh4/fpu/feenablxcpt.c (feenableexcept): Likewise.
19655         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Likewise.
19656         * sysdeps/sh/sh4/fpu/fegetexcept.c (fegetexcept): Likewise.
19657         * sysdeps/sh/sh4/fpu/fegetround.c (fegetround): Likewise.
19658         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Likewise.
19659         * sysdeps/sh/sh4/fpu/fesetenv.c (fesetenv): Likewise.
19660         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Likewise.
19661         * sysdeps/sh/sh4/fpu/feupdateenv.c (feupdateenv): Likewise.
19662         * sysdeps/sh/sh4/fpu/fsetexcptflg.c (fesetexceptflag): Likewise.
19663         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
19664
19665 2012-05-27  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
19666
19667         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Restore fpscr flag
19668         fields.
19669
19670 2012-05-27  Chung-Lin Tang  <cltang@codesourcery.com>
19671
19672         * sysdeps/sh/_mcount.S (_mount): Add CFI directives.
19673         * sysdeps/unix/sh/sysdep.S (__syscall_error): Likewise.
19674         * sysdeps/unix/sysv/linux/sh/sh3/setcontext.S (__setcontext): Likewise.
19675         * sysdeps/unix/sysv/linux/sh/sh3/swapcontext.S (__swapcontext):
19676         Likewise.
19677         * sysdeps/unix/sysv/linux/sh/sh4/setcontext.S (__setcontext): Likewise.
19678         * sysdeps/unix/sysv/linux/sh/sh4/swapcontext.S (__swapcontext):
19679         Likewise.
19680
19681 2012-05-27  Ulrich Drepper  <drepper@gmail.com>
19682
19683         * po/h.po: Update from translation team.
19684
19685 2012-05-26  Andreas Schwab  <schwab@linux-m68k.org>
19686
19687         * sysdeps/powerpc/powerpc32/dl-irel.h: Include <ldsodefs.h>.
19688
19689         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Optimize
19690         handling of denormals.
19691         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
19692         * sysdeps/ieee754/flt-32/s_logbf.c (__logbf): Likewise.
19693         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
19694         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
19695         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
19696         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c (_logb): Likewise.
19697         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c (_logbl):
19698         Likewise.
19699
19700 2012-05-26  Marek Polacek  <polacek@redhat.com>
19701
19702         [BZ #14152]
19703         * math/libm-test.inc (fma_test): Don't always expect underflow
19704         exception.
19705
19706 2012-05-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
19707
19708         [BZ #12416]
19709         * elf/tst-execstack.c: Include stackinfo.h.
19710         (do_test): Adjust test case to ensure that pthread_getattr_np
19711         behaviour remains the same after marking stack executable.
19712
19713 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
19714
19715         * sysdeps/unix/sysv/linux/kernel-features.h
19716         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Remove all definitions.
19717         * sysdeps/unix/sysv/linux/i386/getrlimit.c: Do not include
19718         kernel-features.h.
19719         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
19720         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
19721         * sysdeps/unix/sysv/linux/i386/setrlimit.c Do not include
19722         kernel-features.h.
19723         [!__ASSUME_NEW_GETRLIMIT_SYSCALL]: Remove conditional code.
19724         [__ASSUME_NEW_GETRLIMIT_SYSCALL]: Make code unconditional.
19725
19726 2012-05-25  H.J. Lu  <hongjiu.lu@intel.com>
19727
19728         * configure.in: Define the default includes to being none.
19729         * configure: Regenerated.
19730
19731 2012-05-25  Roland McGrath  <roland@hack.frob.com>
19732
19733         * sysdeps/x86_64/__longjmp.S: Add a static probe here.
19734         * sysdeps/x86_64/setjmp.S: Likewise.
19735         * sysdeps/i386/bsd-setjmp.S: Likewise.
19736         * sysdeps/i386/bsd-_setjmp.S: Likewise.
19737         * sysdeps/i386/setjmp.S: Likewise.
19738         * sysdeps/i386/__longjmp.S: Likewise.
19739         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
19740         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S: Likewise.
19741
19742         * include/stap-probe.h: New file.
19743         * configure.in: Handle --enable-systemtap.
19744         * configure: Regenerated.
19745         * config.h.in (USE_STAP_PROBE): New #undef.
19746         * extra-lib.mk (CPPFLAGS-$(lib)): Add -DIN_LIB=$(lib).
19747         * elf/Makefile (CPPFLAGS-.os): Add -DIN_LIB=rtld.
19748         * elf/rtld-Rules (rtld-CPPFLAGS): Likewise.
19749
19750 2012-05-25  Joseph Myers  <joseph@codesourcery.com>
19751
19752         [BZ #13717]
19753         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
19754         to 2.4.0 where earlier.
19755         * sysdeps/unix/sysv/linux/configure: Regenerated.
19756         * sysdeps/unix/sysv/linux/i386/chown.c: Do not include
19757         <kernel-features.h>.
19758         [__ASSUME_32BITUIDS]: Make code unconditional.
19759         [!__ASSUME_32BITUIDS]: Remove conditional code.
19760         * sysdeps/unix/sysv/linux/i386/fchown.c: Do not include
19761         <kernel-features.h>.
19762         [__ASSUME_32BITUIDS]: Make code unconditional.
19763         [!__ASSUME_32BITUIDS]: Remove conditional code.
19764         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat)
19765         [__ASSUME_32BITUIDS]: Make code unconditional.
19766         (fchownat) [!__ASSUME_32BITUIDS]: Remove conditional code.
19767         * sysdeps/unix/sysv/linux/i386/getegid.c: Do not include
19768         <kernel-features.h>.
19769         [__ASSUME_32BITUIDS]: Make code unconditional.
19770         [!__ASSUME_32BITUIDS]: Remove conditional code.
19771         * sysdeps/unix/sysv/linux/i386/geteuid.c: Do not include
19772         <kernel-features.h>.
19773         [__ASSUME_32BITUIDS]: Make code unconditional.
19774         [!__ASSUME_32BITUIDS]: Remove conditional code.
19775         * sysdeps/unix/sysv/linux/i386/getgid.c: Do not include
19776         <kernel-features.h>.
19777         [__ASSUME_32BITUIDS]: Make code unconditional.
19778         [!__ASSUME_32BITUIDS]: Remove conditional code.
19779         * sysdeps/unix/sysv/linux/i386/getgroups.c: Do not include
19780         <kernel-features.h>.
19781         [__ASSUME_32BITUIDS]: Make code unconditional.
19782         [!__ASSUME_32BITUIDS]: Remove conditional code.
19783         * sysdeps/unix/sysv/linux/i386/getresgid.c: Do not include
19784         <kernel-features.h>.
19785         [__ASSUME_32BITUIDS]: Make code unconditional.
19786         [!__ASSUME_32BITUIDS]: Remove conditional code.
19787         * sysdeps/unix/sysv/linux/i386/getresuid.c: Do not include
19788         <kernel-features.h>.
19789         [__ASSUME_32BITUIDS]: Make code unconditional.
19790         [!__ASSUME_32BITUIDS]: Remove conditional code.
19791         * sysdeps/unix/sysv/linux/i386/getuid.c: Do not include
19792         <kernel-features.h>.
19793         [__ASSUME_32BITUIDS]: Make code unconditional.
19794         [!__ASSUME_32BITUIDS]: Remove conditional code.
19795         * sysdeps/unix/sysv/linux/i386/lchown.c: Do not include
19796         <kernel-features.h>.
19797         [__ASSUME_32BITUIDS]: Make code unconditional.
19798         [!__ASSUME_32BITUIDS]: Remove conditional code.
19799         * sysdeps/unix/sysv/linux/i386/msgctl.c: Do not include
19800         <kernel-features.h>.
19801         [__ASSUME_32BITUIDS]: Make code unconditional.
19802         [!__ASSUME_32BITUIDS]: Remove conditional code.
19803         * sysdeps/unix/sysv/linux/i386/semctl.c: Do not include
19804         <kernel-features.h>.
19805         [__ASSUME_32BITUIDS]: Make code unconditional.
19806         [!__ASSUME_32BITUIDS]: Remove conditional code.
19807         * sysdeps/unix/sysv/linux/i386/setegid.c: Do not include
19808         <kernel-features.h>.
19809         [__NR_setresgid] (__setresgid): Do not declare.
19810         [__ASSUME_32BITUIDS]: Make code unconditional.
19811         [!__ASSUME_32BITUIDS]: Remove conditional code.
19812         * sysdeps/unix/sysv/linux/i386/seteuid.c: Do not include
19813         <kernel-features.h>.
19814         [__NR_setresuid] (__setresuid): Do not declare.
19815         [__ASSUME_32BITUIDS]: Make code unconditional.
19816         [!__ASSUME_32BITUIDS]: Remove conditional code.
19817         * sysdeps/unix/sysv/linux/i386/setfsgid.c: Do not include
19818         <kernel-features.h>.
19819         [__ASSUME_32BITUIDS]: Make code unconditional.
19820         [!__ASSUME_32BITUIDS]: Remove conditional code.
19821         * sysdeps/unix/sysv/linux/i386/setfsuid.c: Do not include
19822         <kernel-features.h>.
19823         [__ASSUME_32BITUIDS]: Make code unconditional.
19824         [!__ASSUME_32BITUIDS]: Remove conditional code.
19825         * sysdeps/unix/sysv/linux/i386/setgid.c: Do not include
19826         <kernel-features.h>.
19827         [__ASSUME_32BITUIDS]: Make code unconditional.
19828         [!__ASSUME_32BITUIDS]: Remove conditional code.
19829         * sysdeps/unix/sysv/linux/i386/setgroups.c: Do not include
19830         <kernel-features.h>.
19831         [__ASSUME_32BITUIDS]: Make code unconditional.
19832         [!__ASSUME_32BITUIDS]: Remove conditional code.
19833         * sysdeps/unix/sysv/linux/i386/setregid.c: Do not include
19834         <kernel-features.h>.
19835         [__ASSUME_32BITUIDS]: Make code unconditional.
19836         [!__ASSUME_32BITUIDS]: Remove conditional code.
19837         * sysdeps/unix/sysv/linux/i386/setresgid.c: Do not include
19838         <kernel-features.h>.
19839         [__ASSUME_32BITUIDS]: Make code unconditional.
19840         [!__ASSUME_32BITUIDS]: Remove conditional code.
19841         * sysdeps/unix/sysv/linux/i386/setresuid.c: Do not include
19842         <kernel-features.h>.
19843         [__ASSUME_32BITUIDS]: Make code unconditional.
19844         [!__ASSUME_32BITUIDS]: Remove conditional code.
19845         * sysdeps/unix/sysv/linux/i386/setreuid.c: Do not include
19846         <kernel-features.h>.
19847         [__ASSUME_32BITUIDS]: Make code unconditional.
19848         [!__ASSUME_32BITUIDS]: Remove conditional code.
19849         * sysdeps/unix/sysv/linux/i386/setuid.c: Do not include
19850         <kernel-features.h>.
19851         [__ASSUME_32BITUIDS]: Make code unconditional.
19852         [!__ASSUME_32BITUIDS]: Remove conditional code.
19853         * sysdeps/unix/sysv/linux/i386/shmctl.c: Do not include
19854         <kernel-features.h>.
19855         [__ASSUME_32BITUIDS]: Make code unconditional.
19856         [!__ASSUME_32BITUIDS]: Remove conditional code.
19857         * sysdeps/unix/sysv/linux/kernel-features.h
19858         (__ASSUME_SETRESUID_SYSCALL): Remove.
19859         (__ASSUME_SETRESGID_SYSCALL): Likewise.
19860         (__ASSUME_32BITUIDS): Likewise.
19861         (__ASSUME_LDT_WORKS): Likewise.
19862         (__ASSUME_O_DIRECTORY): Likewise.
19863         (__ASSUME_NEW_GETRLIMIT_SYSCALL): Define conditional on
19864         architecture but not kernel version.
19865         (__ASSUME_TRUNCATE64_SYSCALL): Likewise.
19866         (__ASSUME_MMAP2_SYSCALL): Likewise.
19867         (__ASSUME_STAT64_SYSCALL): Likewise.
19868         (__ASSUME_IPC64): Likewise.
19869         * sysdeps/unix/sysv/linux/local-setxid.h: Do not include
19870         <kernel-features.h>.
19871         [__ASSUME_32BITUIDS]: Make code unconditional.
19872         [!__ASSUME_32BITUIDS]: Remove conditional code.
19873         * sysdeps/unix/sysv/linux/opendir.c: Do not include
19874         <kernel-features.h>.
19875         [__ASSUME_O_DIRECTORY]: Make code unconditional.
19876         * sysdeps/unix/sysv/linux/opensock.c [__LINUX_KERNEL_VERSION <
19877         132096]: Remove conditional code.
19878         [__LINUX_KERNEL_VERSION >= 132096]: Make code unconditional.
19879         * sysdeps/unix/sysv/linux/s390/s390-32/chown.c: Do not include
19880         <kernel-features.h>.
19881         [__ASSUME_32BITUIDS]: Make code unconditional.
19882         [!__ASSUME_32BITUIDS]: Remove conditional code.
19883         * sysdeps/unix/sysv/linux/s390/s390-32/lchown.c: Do not include
19884         <kernel-features.h>.
19885         [__ASSUME_32BITUIDS]: Make code unconditional.
19886         [!__ASSUME_32BITUIDS]: Remove conditional code.
19887         * sysdeps/unix/sysv/linux/setegid.c: Do not include
19888         <kernel-features.h>.
19889         [__NR_setresgid || __ASSUME_SETRESGID_SYSCALL]: Make code
19890         unconditional.
19891         (__setresgid): Do not declare.
19892         [__ASSUME_32BITUIDS]: Make code unconditional.
19893         [!__ASSUME_32BITUIDS]: Remove conditional code.
19894         * sysdeps/unix/sysv/linux/seteuid.c: Do not include
19895         <kernel-features.h>.
19896         [__NR_setresuid || __ASSUME_SETRESUID_SYSCALL]: Make code
19897         unconditional.
19898         (__setresuid): Do not declare.
19899         [__ASSUME_32BITUIDS]: Make code unconditional.
19900         [!__ASSUME_32BITUIDS]: Remove conditional code.
19901         * sysdeps/unix/sysv/linux/sh/chown.c: Do not include
19902         <kernel-features.h>.
19903         [__ASSUME_32BITUIDS]: Make code unconditional.
19904         [!__ASSUME_32BITUIDS]: Remove conditional code.
19905         * sysdeps/unix/sysv/linux/sparc/sparc32/semctl.c: Do not include
19906         <kernel-features.h>.
19907         [__ASSUME_32BITUIDS]: Make code unconditional.
19908         [!__ASSUME_32BITUIDS]: Remove conditional code.
19909
19910 2012-05-25  Richard Henderson  <rth@twiddle.net>
19911
19912         * sysdeps/powerpc/powerpc32/dl-irel.h (elf_ifunc_invoke): Pass
19913         dl_hwcap to ifunc resolver.
19914         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Use
19915         elf_ifunc_invoke.
19916         * sysdeps/powerpc/powerpc64/dl-irel.h (elf_ifunc_invoke): Pass
19917         dl_hwcap to ifunc resolver.
19918         * sysdeps/powerpc/powerpc64/dl-machine.h (resolve_ifunc): Likewise.
19919
19920 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
19921
19922         [BZ #14153]
19923         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
19924         for |x| <= 2**-26, not 2**-57.
19925         * math/libm-test.inc (acos_test): Do not allow spurious underflow
19926         exception.
19927
19928 2012-05-24  Jeff Law  <law@redhat.com>
19929
19930         * stdio-common/Makefile (tests): Add bug25.
19931         * stdio-common/bug25.c: New test.
19932
19933 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
19934
19935         [BZ #13576]
19936         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
19937         multiple of MALLOC_ALIGNMENT in size.
19938         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
19939
19940 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
19941
19942         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
19943         Require >= 256.
19944         (FILENAME_MAX): Use macro-int-constant.
19945         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
19946         (_IOFBF): Use macro-int-constant.
19947         (_IOLBF): Likewise.
19948         (_IONBF): Likewise.
19949         (SEEK_CUR): Likewise.
19950         (SEEK_END): Likewise.
19951         (SEEK_SET): Likewise.
19952         (TMP_MAX): Likewise.
19953         (EOF): Use macro-int-constant.  Require < 0.
19954         (NULL): Use macro-constant.  Require == 0.
19955         (stdin): Require type to be FILE *.
19956         (stdout): Likewise.
19957         (stderr): Likewise.
19958         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
19959         macro-int-constant.
19960         (EXIT_SUCCESS): Likewise.
19961         (NULL): Use macro-constant.  Require == 0.
19962         (RAND_MAX): Use macro-int-constant.
19963         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
19964         [C99-based standards] (strtof): Require function.
19965         [C99-based standards] (strtold): Likewise.
19966         [C99-based standards] (strtoll): Likewise.
19967         [C99-based standards] (strtoull): Likewise.
19968         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
19969         [ISO || ISO99 || ISO11] (limits.h): Likewise.
19970         [ISO || ISO99 || ISO11] (math.h): Likewise.
19971         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
19972         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
19973         [ISO || ISO99 || ISO11] (*_t): Do not allow.
19974
19975 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
19976
19977         [BZ #14132]
19978         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
19979         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
19980         * intl/dgettext.c (DCGETTEXT): Likewise.
19981         * intl/gettext.c (DCGETTEXT): Likewise.
19982         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
19983         * posix/regex_internal.h (gettext): Likewise.
19984         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
19985         Remove declaration.
19986         * include/argz.h (__argz_count_internal)
19987         (__argz_stringify_internal): Remove declaration.
19988         (__argz_count, __argz_stringify): Declare hidden proto.
19989         * intl/dcgettext.c: Remove use of INTDEF.
19990         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
19991         * string/argz-stringify.c: Likewise.
19992         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
19993         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
19994         Declare hidden proto.
19995         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
19996         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
19997         Declare hidden proto.
19998         * include/stdio.h (__asprintf_internal): Don't declare.
19999         (__asprintf): Don't define as macro.  Declare hidden proto.
20000         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
20001         (__fsetlocking): Declare hidden proto.
20002         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
20003         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
20004         hidden proto.
20005         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
20006         (_IO_setlinebuf): Remove use of INTUSE.
20007         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
20008         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
20009         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
20010         Remove declaration.
20011         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
20012         (_IO_do_flush): Remove use of INTUSE.
20013         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
20014         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
20015         (_IO_adjust_column, _IO_least_wmarker)
20016         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
20017         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
20018         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
20019         (_IO_default_doallocate, _IO_wdefault_doallocate)
20020         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
20021         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
20022         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
20023         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
20024         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
20025         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
20026         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
20027         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
20028         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
20029         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
20030         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
20031         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
20032         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
20033         proto.
20034         (_IO_flush_all_internal, _IO_adjust_column_internal)
20035         (_IO_default_uflow_internal, _IO_default_finish_internal)
20036         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
20037         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
20038         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
20039         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
20040         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
20041         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
20042         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
20043         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
20044         (_IO_file_close_internal, _IO_file_close_it_internal)
20045         (_IO_file_underflow_internal, _IO_file_overflow_internal)
20046         (_IO_file_init_internal, _IO_file_attach_internal)
20047         (_IO_file_fopen_internal, _IO_file_read_internal)
20048         (_IO_file_sync_internal, _IO_file_seek_internal)
20049         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
20050         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
20051         (_IO_str_underflow_internal, _IO_str_overflow_internal)
20052         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
20053         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
20054         (_IO_list_all_internal, _IO_link_in_internal)
20055         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
20056         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
20057         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
20058         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
20059         (_IO_do_write_internal, _IO_padn_internal)
20060         (_IO_getline_info_internal, _IO_getline_internal)
20061         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
20062         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
20063         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
20064         (_IO_vfscanf_internal, _IO_vfprintf_internal)
20065         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
20066         (_IO_init_internal, _IO_un_link_internal): Don't declare.
20067         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
20068         with libc_hidden_ver, remove use of INTUSE.
20069         * libio/genops.c: Likewise.
20070         * libio/freopen.c: Likewise.
20071         * libio/freopen64.c: Likewise.
20072         * libio/iofclose.c: Likewise.
20073         * libio/iofdopen.c: Likewise.
20074         * libio/iofflush.c: Likewise.
20075         * libio/iofflush_u.c: Likewise.
20076         * libio/iofgets.c: Likewise.
20077         * libio/iofgets_u.c: Likewise.
20078         * libio/iofopen.c: Likewise.
20079         * libio/iofopncook.c: Likewise.
20080         * libio/iofread.c: Likewise.
20081         * libio/iofread_u.c: Likewise.
20082         * libio/ioftell.c: Likewise.
20083         * libio/iofwrite.c: Likewise.
20084         * libio/iogetline.c: Likewise.
20085         * libio/iogets.c: Likewise.
20086         * libio/iogetwline.c: Likewise.
20087         * libio/iopadn.c: Likewise.
20088         * libio/iopopen.c: Likewise.
20089         * libio/ioseekoff.c: Likewise.
20090         * libio/ioseekpos.c: Likewise.
20091         * libio/iosetbuffer.c: Likewise.
20092         * libio/iosetvbuf.c: Likewise.
20093         * libio/ioungetc.c: Likewise.
20094         * libio/ioungetwc.c: Likewise.
20095         * libio/iovdprintf.c: Likewise.
20096         * libio/iovsprintf.c: Likewise.
20097         * libio/iovsscanf.c: Likewise.
20098         * libio/memstream.c: Likewise.
20099         * libio/obprintf.c: Likewise.
20100         * libio/oldfileops.c: Likewise.
20101         * libio/oldiofclose.c: Likewise.
20102         * libio/oldiofdopen.c: Likewise.
20103         * libio/oldiofopen.c: Likewise.
20104         * libio/oldiopopen.c: Likewise.
20105         * libio/oldstdfiles.c: Likewise.
20106         * libio/putc.c: Likewise.
20107         * libio/setbuf.c: Likewise.
20108         * libio/setlinebuf.c: Likewise.
20109         * libio/stdfiles.c: Likewise.
20110         * libio/strops.c: Likewise.
20111         * libio/vasprintf.c: Likewise.
20112         * libio/vscanf.c: Likewise.
20113         * libio/vsnprintf.c: Likewise.
20114         * libio/vswprintf.c: Likewise.
20115         * libio/wfiledoalloc.c: Likewise.
20116         * libio/wfileops.c: Likewise.
20117         * libio/wgenops.c: Likewise.
20118         * libio/wmemstream.c: Likewise.
20119         * libio/wstrops.c: Likewise.
20120         * libio/__fpurge.c: Likewise.
20121         * libio/__fsetlocking.c: Likewise.
20122         * assert/assert.c: Likewise.
20123         * debug/fgets_chk.c: Likewise.
20124         * debug/fgets_u_chk.c: Likewise.
20125         * debug/fread_chk.c: Likewise.
20126         * debug/fread_u_chk.c: Likewise.
20127         * debug/gets_chk.c: Likewise.
20128         * debug/obprintf_chk.c: Likewise.
20129         * debug/vasprintf_chk.c: Likewise.
20130         * debug/vdprintf_chk.c: Likewise.
20131         * debug/vsnprintf_chk.c: Likewise.
20132         * debug/vsprintf_chk.c: Likewise.
20133         * malloc/mtrace.c: Likewise.
20134         * misc/error.c: Likewise.
20135         * misc/syslog.c: Likewise.
20136         * stdio-common/asprintf.c: Likewise.
20137         * stdio-common/fxprintf.c: Likewise.
20138         * stdio-common/getw.c: Likewise.
20139         * stdio-common/isoc99_fscanf.c: Likewise.
20140         * stdio-common/isoc99_scanf.c: Likewise.
20141         * stdio-common/isoc99_vfscanf.c: Likewise.
20142         * stdio-common/isoc99_vscanf.c: Likewise.
20143         * stdio-common/isoc99_vsscanf.c: Likewise.
20144         * stdio-common/printf-prs.c: Likewise.
20145         * stdio-common/printf_fp.c: Likewise.
20146         * stdio-common/printf_fphex.c: Likewise.
20147         * stdio-common/printf_size.c: Likewise.
20148         * stdio-common/putw.c: Likewise.
20149         * stdio-common/scanf.c: Likewise.
20150         * stdio-common/sprintf.c: Likewise.
20151         * stdio-common/tmpfile.c: Likewise.
20152         * stdio-common/vfprintf.c: Likewise.
20153         * stdio-common/vfscanf.c: Likewise.
20154         * stdlib/strfmon_l.c: Likewise.
20155         * sunrpc/openchild.c: Likewise.
20156         * sunrpc/xdr_stdio.c: Likewise.
20157         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
20158         * sysdeps/mach/hurd/tmpfile.c: Likewise.
20159
20160 2012-05-24  Roland McGrath  <roland@hack.frob.com>
20161
20162         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
20163
20164         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
20165         in the third column, to generate for the shared library an IFUNC
20166         that uses _dl_vdso_vsym.
20167         * Makerules (COMPILE.c, compile-stdin.c): New variables.
20168         * Makeconfig (object-suffixes-noshared): New variable.
20169
20170         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
20171         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
20172         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
20173         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
20174
20175         [BZ #14132]
20176         * include/sys/time.h (__gettimeofday): Remove macro.
20177         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
20178         * time/gettimeofday.c (__gettimeofday): Remove #undef.
20179         Remove INTDEF.
20180         (__gettimeofday): Add libc_hidden_def.
20181         (gettimeofday): Add libc_hidden_weak.
20182         * sysdeps/mach/gettimeofday.c: Likewise.
20183         * sysdeps/posix/gettimeofday.c: Likewise.
20184         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
20185         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
20186         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
20187         (__gettimeofday_internal): Remove strong_alias.
20188         (__gettimeofday): Add libc_hidden_def.
20189         (gettimeofday): Add libc_hidden_weak.
20190         * sysdeps/unix/syscalls.list (gettimeofday):
20191         Remove __gettimeofday_internal alias.
20192
20193 2012-05-24  Daniel Jacobowitz  <drow@false.org>
20194             H.J. Lu  <hongjiu.lu@intel.com>
20195
20196         [BZ #12495]
20197         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
20198         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
20199         (largebin_index_32_big): New.
20200         (largebin_index): Use it for 16-byte alignment.
20201         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
20202         correction with front_misalign.
20203
20204 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
20205
20206         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
20207         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
20208         Likewise.
20209         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
20210         Likewise.
20211         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
20212         Likewise.
20213         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
20214         Likewise.
20215         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
20216         Likewise.
20217         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
20218         Likewise.
20219         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
20220         Likewise.
20221         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
20222         Likewise.
20223         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
20224         Likewise.
20225         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
20226         Likewise.
20227         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
20228         Likewise.
20229         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
20230         Likewise.
20231
20232         * scripts/data/c++-types-x32-linux-gnu.data: New file.
20233         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
20234
20235 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
20236
20237         [BZ #10846]
20238         [BZ #14036]
20239         * math/libm-test.inc (exp_test): Add test from bug 14036.
20240         (pow_test): Add test from bug 10846.
20241
20242         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
20243         and other flags.
20244         (special_function): Do not include flags in test name.
20245         (parse_args): Likewise.
20246         * sysdeps/i386/fpu/libm-test-ulps: Update.
20247         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
20248         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
20249         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
20250         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20251
20252         * math/gen-libm-test.pl (%beautify): Add entries for underflow
20253         exceptions.
20254         * math/libm-test.inc ("Philosophy"): Update comment about
20255         exception testing.
20256         (UNDERFLOW_EXCEPTION): New macro.
20257         (UNDERFLOW_EXCEPTION_OK): Likewise.
20258         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
20259         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
20260         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
20261         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
20262         (INVALID_EXCEPTION_OK): Update value.
20263         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
20264         (OVERFLOW_EXCEPTION_OK): Likewise.
20265         (IGNORE_ZERO_INF_SIGN): Likewise.
20266         (test_exceptions): Handle underflow exceptions.
20267         (acos_test): Update for underflow exception expectations.
20268         (cexp_test): Likewise.
20269         (clog_test): Likewise.
20270         (clog10_test): Likewise.
20271         (csqrt_test): Likewise.
20272         (ctan_test): Likewise.
20273         (ctanh_test): Likewise.
20274         (exp_test): Likewise.
20275         (exp10_test): Likewise.
20276         (exp2_test): Likewise.
20277         (expm1_test): Likewise.
20278         (fma_test): Likewise.
20279         (j0_test): Likewise.
20280         (jn_test): Likewise.
20281         (nexttoward_test): Likewise.
20282         (pow_test): Likewise.
20283         (scalbn_test): Likewise.
20284         (scalbln_test): Likewise.
20285         (tan_test): Likewise.
20286         (y1_test): Likewise.
20287         * sysdeps/i386/fpu/libm-test-ulps: Update.
20288         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20289
20290 2012-05-23  David S. Miller  <davem@davemloft.net>
20291
20292         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
20293         (__libc_sigaction): Remove unused local variables.
20294
20295 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
20296
20297         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
20298
20299 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
20300
20301         mktime: avoid signed integer overflow
20302         * time/mktime.c (__mktime_internal): Do not mishandle the case
20303         where diff == INT_MIN.
20304
20305         mktime: simplify computation of average
20306         * time/mktime.c (ranged_convert): Use new time_t_avg function
20307         instead of rolling our own (probably-slower) code.
20308
20309         mktime: do not assume signed right shift propagates sign bit
20310         * time/mktime.c (isdst_differ): New static function.
20311         (__mktime_internal): No need to normalize tm_isdst now.
20312         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
20313         tm_isdst values.
20314
20315         mktime: merge another wrapv change from gnulib
20316         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
20317         from some compilers.
20318
20319         mktime: remove incorrect attempt at unusual arithmetics
20320         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
20321         The code didn't really work on such machines anyway.
20322         (TYPE_MINIMUM): Assume two's complement.
20323         (twos_complement_arithmetic): Verify that long_int and time_t
20324         are two's complement (or unsigned, in the latter case).
20325
20326         mktime: check signed shifts on long_int and time_t, too
20327         * time/mktime.c (SHR): Check that shifts work as desired
20328         on the types long_int and time_t too, as SHR is used on
20329         such types.
20330
20331         mktime: do not assume 'long' is wide enough
20332         * time/mktime.c (verify): Move decl up.
20333         (long_int): New type.
20334         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
20335         to remove assumption in the code that 'long' is wide enough to
20336         store year values.  This assumption is not true on x32 and on
20337         some non-glibc platforms.
20338
20339         mktime: merge wrapv change from gnulib
20340         * time/mktime.c (WRAPV): New macro.
20341         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
20342         (guess_time_tm, __mktime_internal): Do not assume that signed
20343         integer overflow wraps around; modern compilers generate code
20344         where this assumption is no longer valid.
20345
20346 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
20347
20348         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
20349         Replace "jmp L(pseudo_end)" with "ret".
20350         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
20351         Likewise.
20352
20353 2012-05-23  Andreas Jaeger  <aj@suse.de>
20354
20355         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
20356         * sysdeps/unix/sysv/linux/poll.c: Remove file.
20357
20358 2012-05-23  Andreas Jaeger  <aj@suse.de>
20359             Maximilian Attems  <max@stro.at>
20360
20361         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
20362         New macros.
20363
20364 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
20365
20366         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
20367         code so that pseudo_end is just ret and the stack pointer is
20368         correct also for static library in error case.
20369
20370 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
20371
20372         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
20373         move to syscalls.list.
20374         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
20375         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
20376         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
20377         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
20378
20379         * manual/install.texi (Running make install): Do not mention Linux
20380         kernel version for which pt_chown is not needed.
20381         (Linux): Do not mention problems with nscd with 2.0 kernels.
20382         * INSTALL: Regenerated.
20383
20384 2012-05-23  Andreas Jaeger  <aj@suse.de>
20385
20386         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
20387         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
20388         macro.
20389         * sysdeps/unix/sysv/linux/s390/bits/mman.h
20390         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
20391         * sysdeps/unix/sysv/linux/sh/bits/mman.h
20392         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
20393         * sysdeps/unix/sysv/linux/i386/bits/mman.h
20394         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
20395         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
20396         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
20397         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
20398         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
20399         * sysdeps/unix/sysv/linux/bits/in.h
20400         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
20401
20402 2012-05-22  Roland McGrath  <roland@hack.frob.com>
20403
20404         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
20405         (PREPARE_VERSION): Just use assert instead, it will be elided
20406         under [NDEBUG] anyway.
20407
20408 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
20409
20410         * sysdeps/unix/sysv/linux/Makefile: Include
20411         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
20412         (sysdep_routines): Remove sysctl.
20413         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
20414         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
20415         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
20416         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
20417         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
20418
20419 2012-05-22  Andreas Jaeger  <aj@suse.de>
20420
20421         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
20422         that pseudo_end is just ret and the stack pointer is correct also
20423         for static library in error case.
20424
20425 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
20426
20427         [BZ #14122]
20428         * nss/nsswitch.c (defconfig_entries): New variable.
20429         (__nss_database_lookup): Don't leak defconfig entries.
20430         (nss_parse_service_list): Don't leak on error paths.
20431         (free_database_entries): New function.
20432         (free_defconfig): New function.
20433         (free_mem): Move common code to free_database_entries.
20434
20435 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
20436
20437         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
20438         Add arch_prctl.
20439         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
20440
20441         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
20442         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
20443         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
20444         New macro.
20445         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
20446         (INTERNAL_SYSCALL_TYPES): Likewise.
20447         (LOAD_ARGS_TYPES_[1-6]): Likewise.
20448         (LOAD_REGS_TYPES_[1-6]): Likewise.
20449         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
20450         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
20451
20452 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20453
20454         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
20455         copysignl for GLIBC_2_0.
20456         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
20457         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
20458         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
20459         logbl for GLIBC_2_0.
20460         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
20461         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
20462
20463 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
20464
20465         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
20466         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
20467
20468         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
20469         Use "neg %eax".
20470
20471         * time/mktime.c: Update copyright years.
20472
20473 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
20474
20475         mktime: merge comment-quoting-style change from gnulib
20476         * time/mktime.c: Quote 'like this' in comments.
20477         The GNU coding standards suggest that we no longer quote `like this',
20478         as "`" and "'" are typically rendered asymmetrically nowadays.
20479         The typical gnulib style is to quote 'like this' when quoting
20480         code, and "like this" when quoting English.
20481
20482         * time/mktime.c (compile-command): Add "-I.".
20483
20484         mktime: merge mktime-internal.h change from gnulib
20485         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
20486
20487         mktime: merge time_r change from gnulib
20488         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
20489
20490         mktime: merge DEBUG change from gnulib
20491         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
20492         case system <time.h> has a #define.
20493
20494         mktime: merge <sys/types.h> change from gnulib
20495         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
20496         since <time.t> is now guaranteed to define time_t.
20497
20498         mktime: merge HAVE_CONFIG_H change from gnulib
20499         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
20500
20501 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
20502
20503         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
20504         Use "neg %eax".
20505
20506         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
20507         __rlim_t cast.
20508         (struct rusage): Use anonymous union to pad each field to
20509         __syscall_slong_t.
20510
20511 2012-05-21  David S. Miller  <davem@davemloft.net>
20512
20513         * Makefules (o-iterator): Remove .s cases.
20514         (compile-command.s): Delete.
20515         (COMPILE.s): Delete.
20516         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
20517
20518 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
20519
20520         * configure.in (libc_cv_predef_stack_protector): Only consider
20521         "foobar" and "__stack_chk_fail" lines in libc_undefs.
20522         * configure: Regenerated.
20523
20524 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
20525
20526         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
20527         New macro.  Use R*LP on int and pointer.
20528         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
20529         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
20530         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
20531         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
20532
20533         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
20534         [__WORDSIZE_TIME64_COMPAT32] instead of
20535         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
20536         (struct utmp): Likewise.
20537         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
20538         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
20539         Renamed to ...
20540         (__WORDSIZE_TIME64_COMPAT32): This.
20541         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
20542         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
20543         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
20544         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
20545         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
20546         (__WORDSIZE_TIME64_COMPAT32): New macro.
20547
20548 2012-05-21  Andreas Jaeger  <aj@suse.de>
20549
20550         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
20551         only if [SHARED]. Add prototype for __wcschr_ia32.
20552
20553 2012-05-21  Roland McGrath  <roland@hack.frob.com>
20554
20555         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
20556         of %rbp unmolested in the jmp_buf while mangling the low bits.
20557         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
20558         unmolested high bits of %rbp while demangling the low bits.
20559         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
20560
20561 2012-05-21  Andreas Jaeger  <aj@suse.de>
20562
20563         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
20564         * sunrpc/svc_simple.c: Use it for registerrpc.
20565         * sunrpc/xcrypt.c: Use it for passwd2des.
20566
20567         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
20568
20569 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
20570
20571         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
20572         Don't define if [__SYSCALL_WORDSIZE != 32].
20573         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
20574         New macro.
20575
20576 2012-05-21  Bruno Haible  <bruno@clisp.org>
20577             Andreas Jaeger  <aj@suse.de>
20578
20579         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
20580         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
20581         inptr and inend for must_buffer_ch.
20582         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
20583         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
20584         * stdio-common/Makefile (tests): Remove bug15.
20585         (bug15-ENV): Remove macro.
20586         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
20587         anymore.
20588
20589 2012-05-19  Andreas Jaeger  <aj@suse.de>
20590             Roland McGrath  <roland@hack.frob.com>
20591
20592         * manual/contrib.texi: Completely rewritten. It contains now an
20593         alphabetical list of contributors and their contributions.
20594
20595 2012-05-21  Richard Henderson  <rth@twiddle.net>
20596
20597         * misc/getauxval.c (__getauxval): Use unsigned long int.
20598         * misc/sys/auxv.h: Include <sys/cdefs.h>.
20599         (getauxval): Use unsigned long int.
20600
20601 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
20602
20603         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
20604
20605 2012-05-21  Roland McGrath  <roland@hack.frob.com>
20606
20607         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
20608         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
20609         __alignof__ (long double).
20610
20611 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20612
20613         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20614
20615 2012-05-20  Richard Henderson  <rth@twiddle.net>
20616
20617         * misc/getauxval.c: New file.
20618         * misc/sys/auxv.h: New file.
20619         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
20620         (routines): Add getauxval.
20621         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
20622         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
20623         * elf/dl-sysdep.c (_dl_auxv): Remove.
20624         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
20625         * elf/dl-support.c (_dl_auxv): New variable.
20626         (_dl_aux_init): Initialize it.
20627         * manual/startup.texi (Auxiliary Vector): New node.
20628         * sysdeps/generic/bits/hwcap.h: New file.
20629         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
20630         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
20631         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
20632         * sysdeps/sparc/sysdep.h: ... here.  Include it.
20633         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
20634         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
20635         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
20636         Update.
20637         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
20638         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
20639         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
20640         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
20641         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
20642         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
20643         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
20644         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
20645
20646 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
20647
20648         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
20649
20650 2012-05-19  David S. Miller  <davem@davemloft.net>
20651
20652         * sysdeps/sparc/fpu/libm-test-ulps: Update.
20653
20654 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
20655
20656         [BZ #14123]
20657         * math/s_ccosh.c: Include <float.h>
20658         (__ccosh): Avoid internal overflow calculating sinh and cosh
20659         values before multiplying by sin and cos values.
20660         * math/s_ccoshf.c: Likewise.
20661         * math/s_ccoshl.c: Likewise.
20662         * math/s_csin.c: Likewise.
20663         * math/s_csinf.c: Likewise.
20664         * math/s_csinl.c: Likewise.
20665         * math/s_csinh.c: Likewise.
20666         * math/s_csinhf.c: Likewise.
20667         * math/s_csinhl.c: Likewise.
20668         * math/libm-test.inc (ccos_test): Add more tests.
20669         (ccosh_test): Likewise.
20670         (csin_test): Likewise.
20671         (csinh_test): Likewise.
20672         * sysdeps/i386/fpu/libm-test-ulps: Update.
20673         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
20674
20675 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
20676
20677         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
20678         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
20679
20680         * sysdeps/x86_64/x32/_itoa.h: Add comment.
20681
20682 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
20683
20684         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
20685         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
20686         * sysdeps/powerpc/soft-fp/Versions: Likewise.
20687         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
20688         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
20689         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
20690         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
20691         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
20692         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
20693         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
20694         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
20695         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
20696         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
20697         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
20698         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
20699         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
20700         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
20701         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
20702         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
20703         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
20704         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
20705         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
20706         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
20707         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
20708         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
20709         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
20710         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
20711         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
20712         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
20713         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
20714         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
20715
20716 2012-05-18  Andreas Jaeger  <aj@suse.de>
20717
20718         * csu/.gitignore: Delete.
20719
20720 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
20721
20722         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
20723         (timex): Use __syscall_slong_t.
20724
20725 2012-05-18  Andreas Jaeger  <aj@suse.de>
20726             Carlos O'Donell  <carlos_odonell@mentor.com>
20727
20728         * manual/install.texi (Configuring and compiling): Update
20729         description about files modified in the source directory.
20730         * INSTALL: Regenerated.
20731
20732 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
20733
20734         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
20735         value.  Use "or" to set return value to -1.
20736         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
20737         negate return value.
20738
20739 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
20740
20741         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
20742         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
20743         failure if the compiler has Graphite support disabled.
20744         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
20745         Likewise.
20746         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
20747         CFLAGS-memmove.c): Likewise.
20748         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
20749         Likewise.
20750
20751 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
20752
20753         * sysdeps/x86_64/x32/_itoa.h: New file.
20754
20755         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
20756         getdents system call only if kernel and user dirents have the
20757         same d_ino and d_off.
20758
20759         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
20760         LLONG_MAX != LONG_MAX.
20761         (_itoa_word): Use _ITOA_WORD_TYPE on value.
20762         (_fitoa_word): Likewise.
20763
20764         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
20765         years.
20766         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
20767         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
20768         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
20769
20770         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
20771         include <bits/wordsize.h>.  Check __x86_64__ instead of
20772         __WORDSIZE.
20773         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
20774         if __x86_64__ is defined.  Use anonymous union on fpstate.
20775
20776         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
20777         anonymous union.
20778
20779 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
20780
20781         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
20782         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
20783         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
20784         Refer to _rtld_local_ro instead of _rtld_global_ro.
20785         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
20786         Likewise.
20787         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
20788         Likewise.
20789         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
20790         Likewise.
20791         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
20792         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
20793         of _rtld_global, and rtld_progname instead of _dl_argv[0].
20794
20795         * sysdeps/powerpc/powerpc32/dl-machine.c
20796         (__elf_machine_runtime_setup) [PROF]: Don't reference
20797         _dl_prof_resolve.
20798
20799 2012-05-18  Andreas Jaeger  <aj@suse.de>
20800
20801         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
20802         function only available for GCCs before 3.4 since GCC 3.4
20803         introduced a builtin.
20804         (lrint): Likewise.
20805         (llrintf): Likewise.
20806         (llrint): Likewise.
20807         (fmaxf): Likewise.
20808         (fmax): Likewise.
20809         (fminf): Likewise.
20810         (fmin): Likewise.
20811         (rint): Likewise.
20812         (rintf): Likewise.
20813         (nearbyint): Likewise.
20814         (nearbyintf): Likewise.
20815         (ceil): Likewise.
20816         (ceilf): Likewise.
20817         (floor): Likewise.
20818         (floorf): Likewise.
20819
20820 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
20821
20822         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
20823         on both fields and cast pointer to __syscall_ulong_t.
20824
20825         * bits/types.h (__fsword_t): New type.
20826         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
20827         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
20828         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
20829         (__FSWORD_T_TYPE): Likewise.
20830         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
20831         (__FSWORD_T_TYPE): Likewise.
20832         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
20833         (__FSWORD_T_TYPE): Likewise.
20834         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
20835         (__FSWORD_T_TYPE): Likewise.
20836         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
20837         __SWORD_TYPE with __fsword_t.
20838         (statfs64): Likewise.
20839
20840 2012-05-17  David S. Miller  <davem@davemloft.net>
20841
20842         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
20843
20844 2012-05-17  Andreas Jaeger  <aj@suse.de>
20845
20846         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
20847         warning.
20848
20849 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
20850
20851         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
20852
20853 2012-05-17  Andreas Jaeger  <aj@suse.de>
20854
20855         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
20856         when it is used.
20857
20858 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
20859
20860         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
20861
20862 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
20863
20864         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
20865         * sysdeps/x86_64/tst-mallocalign1.c: New file.
20866
20867 2012-05-17  Andreas Jaeger  <aj@suse.de>
20868             Carlos O'Donell  <carlos_odonell@mentor.com>
20869
20870         [BZ #14059]
20871         * sysdeps/x86_64/multiarch/init-arch.h
20872         (bit_YMM_Usable): Rename to...
20873         (bit_AVX_Usable): ... this.
20874         (bit_FMA4_Usable): New macro.
20875         (bit_XMM_state): New macro.
20876         (bit_YMM_state): New macro.
20877         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
20878         [__ASSEMBLER__] (index_AVX_Usable): ... this.
20879         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
20880         (CPUID_OSXSAVE): New macro.
20881         (CPUID_AVX): New macro.
20882         (CPUID_FMA4): New macro.
20883         (index_YMM_Usable): Rename to...
20884         (index_AVX_Usable): ... this.
20885         (HAS_AVX): Use HAS_ARCH_FEATURE.
20886         (HAS_FMA4): Likewise.
20887         (HAS_YMM_USABLE): Remove.
20888         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
20889         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
20890         are present.
20891         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
20892         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
20893         * sysdeps/x86_64/multiarch/Makefile: Likewise.
20894         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
20895         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
20896
20897 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
20898
20899         * math/libm-test.c: Support platforms without multiple rounding modes.
20900         * math/bug-nextafter.c: Support platforms without FP exceptions.
20901         * math/bug-nexttoward.c: Likewise.
20902         * math/test-fenv.c: Likewise.
20903         * math/test-misc.c: Likewise.
20904         * stdlib/bug-getcontext.c: Likewise.
20905
20906 2012-05-17  Andreas Jaeger  <aj@suse.de>
20907
20908         * manual/examples/search.c (critter_cmp): Change signature to
20909         avoid warnings.
20910         * manual/string.texi (Collation Functions): Likewise.
20911
20912 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20913
20914         * bits/types.h: Fold copyright years.
20915         * bits/typesizes.h: Likewise.
20916         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
20917         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
20918         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
20919         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
20920         * time/time.h: Likewise.
20921
20922 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
20923
20924         [BZ #208]
20925         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
20926         in instead of returning them.  Return void.
20927         (__libc_mallinfo): Accumulate over all arenas.
20928         (__malloc_stats): Adjust for change in int_mallinfo interface.
20929
20930 2012-05-16  Roland McGrath  <roland@hack.frob.com>
20931
20932         [BZ #10375]
20933         * configure.in (NM): Add AC_CHECK_TOOL for it.
20934         (libc_extra_cflags): New substituted variable.
20935         Check for -fstack-protector being used implicitly.
20936         * configure: Regenerated.
20937         * config.make.in (config-extra-cflags): New variable,
20938         gets @libc_extra_cflags@.
20939         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
20940
20941         [BZ #10375]
20942         * configure.in: Check for _FORTIFY_SOURCE being predefined.
20943         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
20944         * configure: Regenerated.
20945         * config.make.in (CPPUNDEFS): New substituted variable.
20946         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
20947         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
20948         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
20949
20950 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20951
20952         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
20953         (mq_attr): Use __syscall_slong_t.
20954
20955 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20956
20957         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
20958         Check __x86_64__ instead of __WORDSIZE.
20959         (_STAT_VER_LINUX): Likewise.
20960         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
20961         __syscall_ulong_t and __syscall_slong_t.
20962         (stat64): Likewise.
20963
20964 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20965
20966         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
20967
20968 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20969
20970         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
20971
20972 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
20973
20974         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
20975         __syscall_ulong_t.
20976
20977         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
20978         include <bits/wordsize.h>.  Check __x86_64__ instead of
20979         __WORDSIZE.
20980         (greg_t): Use "__extension__ long long int" if __x86_64__ is
20981         defined.
20982         (mcontext_t): Replace "unsigned long" with "unsigned long long".
20983
20984         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
20985         include <bits/wordsize.h>.  Check __x86_64__ instead of
20986         __WORDSIZE.
20987         (user_regs_struct): Use "__extension__ unsigned long long"
20988         instead of "unsigned long" if __x86_64__ is defined.
20989         (user): Likewise.  Pad after pointer field if __ILP32__ is
20990         defined.
20991
20992 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
20993
20994         * configure.in (makeinfo): Require version 4.5 or later.  Allow
20995         versions 5 to 9.
20996         * configure: Regenerated.
20997         * manual/install.texi (texinfo): Increase version requirement to
20998         4.5 or later.
20999         * INSTALL: Regenerated.
21000
21001         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
21002
21003 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
21004
21005         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
21006
21007         * sysdeps/x86_64/x32/ffs.c: New file.
21008
21009         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
21010         __syscall_ulong_t.
21011         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
21012         defined.  Use __syscall_ulong_t.
21013         (shminfo): Use __syscall_ulong_t.
21014         (shm_info): Likewise.
21015
21016         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
21017         __syscall_ulong_t.
21018
21019         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
21020         <bits/wordsize.h>.
21021         (msgqnum_t): Use __syscall_ulong_t.
21022         (msglen_t): Likewise.
21023         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
21024         __syscall_ulong_t.
21025
21026         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
21027         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
21028
21029         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
21030
21031         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
21032         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
21033
21034         * sysvipc/sys/msg.h (msgbuf): Replace long int with
21035         __syscall_slong_t.
21036
21037         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
21038         include <bits/wordsize.h>.  Check __x86_64__ instead of
21039         __WORDSIZE.
21040
21041         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
21042         "unsigned long long int" if __x86_64__ is defined.
21043         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
21044
21045         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
21046         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
21047         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
21048
21049         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
21050         <stdint.h>.
21051         (GET_PC): Cast to uintptr_t first.
21052         (GET_FRAME): Likewise.
21053         (GET_STACK): Likewise.
21054
21055         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
21056         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
21057         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
21058         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
21059         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
21060         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
21061         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
21062         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
21063         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
21064         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
21065         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
21066         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
21067         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
21068         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
21069         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
21070         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
21071         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
21072         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
21073         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
21074         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
21075         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
21076         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
21077         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
21078         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
21079         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
21080         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
21081         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
21082         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
21083         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
21084
21085 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
21086
21087         * Makerules (+depfiles): Also collect depfiles from .oS in
21088         $(extra-objs).
21089         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
21090         .oS, $(libnldbl-routines)).
21091
21092         * Makerules (native-compile-mkdep-flags): Define.
21093         * sunrpc/Makefile (extra-objs): Add $(addprefix
21094         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
21095         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
21096         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
21097         calling $(make-target-directory).
21098
21099 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21100
21101         * bits/types.h (__snseconds_t): Removed.
21102         * time/time.h (struct timespec): Replace __snseconds_t with
21103         __syscall_slong_t.
21104         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
21105         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
21106         Likewise.
21107         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
21108         (__SNSECONDS_T_TYPE): Likewise.
21109         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
21110         (__SNSECONDS_T_TYPE): Likewise.
21111         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
21112         (__SNSECONDS_T_TYPE): Likewise.
21113
21114 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21115
21116         * sysdeps/mach/hurd/bits/typesizes.h
21117         (__SYSCALL_SLONG_TYPE): New macro.
21118         (__SYSCALL_ULONG_TYPE): Likewise.
21119
21120 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21121
21122         * bits/types.h (__syscall_slong_t): New type.
21123         (__syscall_ulong_t): Likewise.
21124
21125         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
21126         (__SYSCALL_ULONG_TYPE): Likewise.
21127         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
21128         (__SYSCALL_SLONG_TYPE): Likewise.
21129         (__SYSCALL_ULONG_TYPE): Likewise.
21130         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
21131         (__SYSCALL_SLONG_TYPE): Likewise.
21132         (__SYSCALL_ULONG_TYPE): Likewise.
21133         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
21134         (__SYSCALL_SLONG_TYPE): Likewise.
21135         (__SYSCALL_ULONG_TYPE): Likewise.
21136
21137 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21138
21139         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
21140         Add sigaltstack-offsets.sym.
21141         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
21142         <sigaltstack-offsets.h>.
21143         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
21144         longjmp_msg pointer.
21145         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
21146         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
21147         signal stack.
21148         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
21149
21150 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
21151
21152         * elf/stackguard-macros.h: Remove file.
21153         * sysdeps/generic/stackguard-macros.h: New file.
21154         * sysdeps/i386/stackguard-macros.h: Likewise.
21155         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
21156         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
21157         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
21158         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
21159         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
21160         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
21161         * sysdeps/x86_64/stackguard-macros.h: Likewise.
21162         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
21163         <elf/stackguard-macros.h>.
21164
21165         [BZ #14109]
21166         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
21167         __aligned__ in attribute.
21168         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
21169         (gregset_t): Likewise.
21170
21171 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21172
21173         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
21174         * sysdeps/x86_64/64/Implies-after: Here.  New file.
21175         * sysdeps/x86_64/x32/Implies-after: New file.
21176
21177 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21178
21179         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
21180         and access return value for _dl_profile_fixup.  Use R10_LP to
21181         load frame size.
21182
21183 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21184
21185         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
21186
21187 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21188
21189         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
21190         * sysdeps/x86_64/x32/sysdep.h: New file.
21191
21192 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21193
21194         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
21195         * sysdeps/x86_64/setjmp.S: Likewise.
21196
21197 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21198
21199         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
21200         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
21201         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
21202         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
21203         remove unused global constant.
21204
21205 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
21206
21207         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
21208         include of <not-cancel.h>.
21209
21210 2012-05-15  Roland McGrath  <roland@hack.frob.com>
21211
21212         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
21213
21214 2012-05-15  Jeff Law  <law@redhat.com>
21215             Andreas Jaeger  <aj@suse.de>
21216
21217         [BZ #13594]
21218         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
21219         out from...
21220         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
21221         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
21222         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
21223         code changing __hst_map_handle.map.
21224
21225 2012-05-15  Roland McGrath  <roland@hack.frob.com>
21226
21227         * configure.in (sysnames): Look for Implies-before and Implies-after
21228         files.
21229         * configure: Regenerated.
21230
21231 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21232
21233         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
21234         8-byte data alignment with LP_SIZE alignment.
21235
21236 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21237
21238         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
21239         into R10_LP.
21240
21241 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21242
21243         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
21244
21245 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21246
21247         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
21248         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
21249         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
21250         Likewise.
21251         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
21252
21253 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21254
21255         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
21256         (stackinfo_sub_sp): Likewise.
21257
21258 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21259
21260         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
21261         RAX_LP.
21262
21263 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21264
21265         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
21266         into R*_LP.
21267
21268 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21269
21270         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
21271         sizes into R*_LP.
21272
21273 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21274
21275         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
21276
21277 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21278
21279         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
21280         into R11_LP and load __x86_64_shared_cache_size_half into
21281         R8_LP.
21282
21283 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
21284
21285         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
21286         R8_LP.
21287
21288 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21289
21290         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
21291         logb for POWER7.
21292         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
21293         logbf for POWER7.
21294         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
21295         logbl for POWER7.
21296         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
21297         powerpc32/power7/fpu/s_logb.c via #include.
21298         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
21299         powerpc32/power7/fpu/s_logbf.c via #include.
21300         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
21301         powerpc32/power7/fpu/s_logbl.c via #include.
21302
21303 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
21304
21305         * README.libm: Remove file.
21306
21307 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
21308
21309         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
21310         count for x32.  Use R*_LP and omit operand-size suffix.
21311
21312 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
21313
21314         * shlib-versions: Move x86_64-.*-linux.* entries to ...
21315         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
21316         * sysdeps/x86_64/x32/shlib-versions: New file.
21317
21318 2012-05-14  Roland McGrath  <roland@hack.frob.com>
21319
21320         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
21321         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
21322         Use _dl_fatal_printf instead.
21323
21324 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
21325
21326         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
21327         set if not set by the user.  Do not allow for being unset.
21328         * sysdeps/unix/sysv/linux/configure: Regenerated.
21329
21330 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
21331
21332         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
21333         the `q' suffix from lea and replace .quad with ASM_ADDR.
21334
21335 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
21336
21337         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
21338         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
21339         instead of $17.
21340         (PTR_DEMANGLE): Likewise.
21341
21342 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
21343
21344         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
21345         (LP_OP): Likewise.
21346         (ASM_ADDR): Likewise.
21347         (RAX_LP): Likewise.
21348         (RBP_LP): Likewise.
21349         (RBX_LP): Likewise.
21350         (RCX_LP): Likewise.
21351         (RDI_LP): Likewise.
21352         (RSI_LP): Likewise.
21353         (RSP_LP): Likewise.
21354         (R8_LP): Likewise.
21355         (R9_LP): Likewise.
21356         (R10_LP): Likewise.
21357         (R10_LP): Likewise.
21358         (R11_LP): Likewise.
21359         (R12_LP): Likewise.
21360         (R13_LP): Likewise.
21361         (R14_LP): Likewise.
21362         (R15_LP): Likewise.
21363
21364 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
21365
21366         * sysdeps/x86_64/x32/dl-machine.h: New file.
21367
21368 2012-05-14  Andreas Jaeger  <aj@suse.de>
21369
21370         * manual/Makefile (subdir): Remove export of subdir.
21371         (all): Remove target.
21372         (.PHONY): Remove all from list.
21373         (mkinstalldirs): Remove.
21374         (.PHONY): Remove installdirs from list.
21375         ($(inst_infodir)/libc.info): Use make-target-directory.
21376         (installdirs): Remove.
21377         (subdir_%): Remove.
21378         (glibc-targets): Remove.
21379         (lib): Remove.
21380         (stubs): Remove.
21381         ($(objpfx)stubs ../po/manual.pot): Remove.
21382         ($(objpfx)stamp%): Remove.
21383         (make-target-directory): Remove.
21384         (subdir_install): Remove.
21385         (routines): Remove.
21386         (aux): Remove.
21387         (sources): Remove.
21388         (objects): Remove.
21389         (headers): Remove.
21390
21391         [BZ #13750]
21392         * manual/.gitignore: Remove, it's not needed anymore.
21393         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
21394         all files in it.
21395         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
21396         directory.
21397         (texis): Renamed to $(objpfx)texis.
21398         (texis-path): New, contains path to generated files.
21399         (chapters.%): Use texis-path for complete path, add extra argument
21400         libc-texinfo.sh.
21401         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
21402         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
21403         (summary,texi, stamp-summary): Use complete path of
21404         files. Generate files in build dir.
21405         (dir-add.texi): Build in build dir.
21406         (libm-err.texi,stamp-libm-err): Likewise.
21407         (version.texi, stamp-version): Likewise.
21408         (.%c.texi): Likewise.
21409         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
21410         (mostlyclean): Remove target.
21411         (realclean): Remove target.
21412         (generated): Add new variable with contents from mostlyclean and
21413         realclean, remove entries duplicated in common-mostlyclean, add
21414         stamp-libm-err and stamp-version.
21415         (generated-dirs): Add libc directory.
21416         ($(inst_infodir)/libc.info): Install files from build dir.
21417
21418         * manual/install.texi (Configuring and compiling): Adjust since
21419         the info files are not part of the tar ball anymore.
21420
21421 2012-05-14  Andreas Jaeger  <aj@suse.de>
21422
21423         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
21424         variable.
21425
21426 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
21427
21428         [BZ #13717]
21429         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
21430         to 2.2.0 where earlier.
21431         * sysdeps/unix/sysv/linux/configure: Regenerated.
21432         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
21433         Remove conditional code.
21434         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
21435         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
21436         Remove conditional code.
21437         [!__NR_lchown]: Likewise.
21438         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
21439         [__NR_lchown]: Likewise.
21440         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
21441         comment referencing __ASSUME_LCHOWN_SYSCALL.
21442         * sysdeps/unix/sysv/linux/i386/sigaction.c
21443         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
21444         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
21445         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
21446         Remove conditional code.
21447         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
21448         (__protocol_available): Remove #if 0 code.
21449         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
21450         conditional code.
21451         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
21452         * sysdeps/unix/sysv/linux/kernel-features.h
21453         (__ASSUME_GETCWD_SYSCALL): Don't define.
21454         (__ASSUME_REALTIME_SIGNALS): Likewise.
21455         (__ASSUME_PREAD_SYSCALL): Likewise.
21456         (__ASSUME_PWRITE_SYSCALL): Likewise.
21457         (__ASSUME_POLL_SYSCALL): Likewise.
21458         (__ASSUME_LCHOWN_SYSCALL): Likewise.
21459         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
21460         non-SPARC.
21461         (__ASSUME_SIOCGIFNAME): Don't define.
21462         (__ASSUME_MSG_NOSIGNAL): Likewise.
21463         (__ASSUME_SENDFILE): Define unconditionally.
21464         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
21465         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
21466         conditional code.
21467         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
21468         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
21469         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
21470         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
21471         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
21472         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
21473         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
21474         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
21475         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
21476         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
21477         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
21478         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
21479         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
21480         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
21481         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
21482         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
21483         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
21484         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
21485         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
21486         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
21487         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
21488         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
21489         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
21490         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
21491         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
21492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
21493         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
21494         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
21495         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
21496         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
21497         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
21498         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
21499         Remove conditional code.
21500         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
21501         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
21502         Remove conditional code.
21503         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
21504         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
21505         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
21506         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
21507         Remove conditional code.
21508         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
21509         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
21510         Remove conditional code.
21511         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
21512         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
21513         Remove conditional code.
21514         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
21515         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
21516         Remove conditional code.
21517         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
21518         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
21519         Remove conditional code.
21520         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
21521         * sysdeps/unix/sysv/linux/sh/pwrite64.c
21522         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
21523         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
21524         * sysdeps/unix/sysv/linux/sigaction.c
21525         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
21526         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
21527         * sysdeps/unix/sysv/linux/sigpending.c
21528         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
21529         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
21530         * sysdeps/unix/sysv/linux/sigprocmask.c
21531         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
21532         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
21533         * sysdeps/unix/sysv/linux/sigsuspend.c
21534         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
21535         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
21536         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
21537         (__libc_missing_rt_sigs): Remove.
21538         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
21539         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
21540         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
21541         Remove conditional code.
21542         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
21543         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
21544         return 1.
21545         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
21546         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
21547         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
21548         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
21549
21550 2012-05-14  Andreas Jaeger  <aj@suse.de>
21551
21552         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
21553         it's not used in glibc.
21554         (__coshm1): Likewise.
21555         (__acosh1p): Likewise.
21556         (__sgn): Likewise.
21557
21558         * manual/string.texi (Copying and Concatenation): Add missing
21559         variable in concat example.
21560         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
21561
21562 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
21563
21564         [BZ #14103]
21565         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
21566         __builtin_clzl with __builtin_clzll.
21567
21568 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
21569
21570         [BZ #14104]
21571         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
21572         libc_freeres_ptr.
21573
21574 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
21575
21576         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
21577         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
21578         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
21579         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
21580
21581 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
21582
21583         * NEWS: Update ia64 info.
21584
21585 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
21586
21587         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
21588         used as bcopy.
21589
21590 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
21591
21592         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
21593         * sysdeps/unix/syscalls.list (dup3): Likewise.
21594         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
21595         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
21596
21597 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
21598
21599         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
21600         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
21601
21602 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
21603
21604         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
21605         thread pointer.
21606         (TLS_IE): Use mov/add instead of movq/addq to load thread
21607         pointer.
21608         (TLS_GD_PREFIX): New.
21609         (TLS_GD): Use it.
21610
21611 2012-05-11  David S. Miller  <davem@davemloft.net>
21612
21613         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
21614         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
21615         (_FPU_SETCW): Likewise.
21616
21617 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
21618
21619         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
21620         is 32-byte aligned.
21621
21622 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
21623
21624         [BZ #11837]
21625         * iconvdata/gb18030.c: Update tables.
21626         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
21627         characters specially.
21628         (BODY for TO_LOOP): Add encoding of missing ranges.
21629
21630 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
21631
21632         [BZ #13673]
21633         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
21634         * sysdeps/mach/hurd/dup3.c: Likewise.
21635         * sysdeps/mach/hurd/readlinkat.c: Likewise.
21636         * sysdeps/powerpc/memmove.c:: Likewise.
21637
21638 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
21639
21640         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
21641         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
21642
21643 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
21644
21645         * elf/elf.h (R_X86_64_RELATIVE64): New.
21646         (R_X86_64_NUM): Updated.
21647         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
21648         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
21649         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
21650         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
21651         tst-quad1pie tst-quad2pie
21652         (modules-names): Add tst-quadmod1 tst-quadmod2.
21653         ($(objpfx)tst-quad1): New dependency.
21654         ($(objpfx)tst-quad2): Likewise.
21655         ($(objpfx)tst-quad1pie): Likewise.
21656         ($(objpfx)tst-quad2pie): Likewise.
21657         * sysdeps/x86_64/tst-quad1.c: New file.
21658         * sysdeps/x86_64/tst-quad1pie.c: New file.
21659         * sysdeps/x86_64/tst-quad2.c: Likewise.
21660         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
21661         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
21662         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
21663         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
21664         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
21665
21666 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21667
21668         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
21669         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
21670         * streams/stropts.h (t_scalar_t): Define type.
21671
21672         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
21673         (_PATH_PRESERVE): Set to "/var/lib".
21674         (_PATH_RWHODIR): Set to "/var/spool/rwho".
21675
21676         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
21677         instead of int.
21678
21679         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
21680         if __dir_mkfile succeeded.
21681
21682         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
21683         checking for _hurd_dtablesize.  Unlock it right after having
21684         finished _hurd_dtable allocation.
21685
21686 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21687
21688         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
21689         * sysdeps/mach/hurd/configure: Regenerated.
21690         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
21691         special-casing to...
21692         * sysdeps/gnu/configure.in: ... this new file.
21693         * sysdeps/unix/sysv/linux/configure: Regenerated.
21694         * sysdeps/gnu/configure: New generated file.
21695
21696         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
21697         for Linux: use nsec instead of usec, as well as:
21698         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
21699         members of type struct timespec.
21700         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
21701         New macros.
21702         (struct stat64): Likewise.
21703         (_STATBUF_ST_NSEC): New macro.
21704         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
21705
21706         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
21707         __strtoul_internal rather than strtoul.
21708
21709 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
21710
21711         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
21712         and reject them.
21713
21714 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21715
21716         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
21717         which preserves existing values.
21718         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
21719
21720 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
21721
21722         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
21723         TIMEOUT values.  Return EINVAL for NFDS values either negative or
21724         greater than FD_SETSIZE.
21725
21726 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21727
21728         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
21729         allocated, call __vm_protect to finish enabling the existing space, and
21730         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
21731         allocate the remainder.
21732
21733 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
21734
21735         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
21736         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
21737
21738 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21739
21740         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
21741         sysdeps/mach/hurd/readlink.c.
21742
21743         * posix/tst-sysconf.c (posix_options): Only use
21744         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
21745         _POSIX_SYNCHRONIZED_IO when they are defined
21746         * sysdeps/mach/hurd/bits/posix_opt.h:
21747         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
21748         (_XOPEN_REALTIME): Undefine macro.
21749         (_XOPEN_REALTIME_THREADS): Undefine macro.
21750         (_XOPEN_SHM): Undefine macro.
21751         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
21752         macro to -1.
21753         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
21754         macro to -1.
21755         (_POSIX_ASYNC_IO): Undefine macro.
21756         (_POSIX_PRIORITIZED_IO): Undefine macro.
21757         (_POSIX_SPIN_LOCKS): Define macro to -1.
21758
21759         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
21760         SA_NODEFER, SA_RESETHAND.
21761         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
21762         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
21763         F_DUPFD_CLOEXEC.
21764
21765 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21766
21767         * elf/Makefile (pldd-modules): Define unconditionally.
21768
21769 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21770
21771         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
21772
21773 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21774
21775         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
21776         Return ENOENT when name is empty.
21777         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
21778
21779 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21780
21781         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
21782
21783         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
21784
21785 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21786
21787         Fix mlock in all cases except non-readable pages.
21788         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
21789         instead of VM_PROT_ALL as parameter to __vm_wire function.
21790
21791         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
21792         (__mkdir): When path is `/', just fail with EEXIST.
21793         * sysdeps/mach/hurd/mkdirat.c: Likewise.
21794
21795 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21796
21797         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
21798         <sys/uio.h> (for writev).
21799         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
21800         and <sys/param.h> (for MIN).
21801
21802 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
21803
21804         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
21805         REQUESTED_TIME.  Properly set the remaining time and return EINTR
21806         if interrupted.
21807
21808 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21809
21810         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
21811         Depend on against $(link-rpcuserlibs).
21812
21813 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21814
21815         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
21816         (__libc_stack_end): Do not use attribute_relro.
21817         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
21818         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
21819         to libthread-provided value.
21820         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
21821         attribute_relro.
21822
21823 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21824
21825         [BZ #3748]
21826         * bits/libc-lock.h (__libc_once_get): New macro.
21827         * sysdeps/mach/bits/libc-lock.h: Likewise.
21828         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
21829         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
21830         instead of using implementation details.
21831
21832         * libio/fileops.c: Unconditionally include <kernel-features.h>.
21833         * libio/freopen.c: Likewise.
21834         * libio/freopen64.c: Likewise.
21835         * misc/syslog.c: Likewise.
21836         * nscd/connections.c: Likewise.
21837         * nscd/netgroupcache.c: Likewise.
21838         * sysdeps/posix/getcwd.c: Likewise.
21839
21840 2012-05-10  Roland McGrath  <roland@hack.frob.com>
21841
21842         * math/w_ilogbf.c: Add #include <limits.h>.
21843
21844 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21845
21846         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
21847         path instead of returning without unlocking.
21848
21849         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
21850         immediate-write ioctls.
21851         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
21852
21853 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21854
21855         * sysdeps/mach/hurd/i386/init-first.c (init): Use
21856         __builtin_frame_address instead of making assumptions about the
21857         location of the return address relative to DATA.  Force early load of
21858         the return address.
21859         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
21860         __builtin_frame_address.
21861
21862         dup3 for GNU Hurd.
21863         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
21864         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
21865         implement dup3 and do some further code clean-ups.
21866         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
21867         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
21868
21869 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21870
21871         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
21872
21873         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
21874         HURD_CRITICAL_END around holding _hurd_dtable_lock.
21875         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
21876         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
21877         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
21878         d->port.lock.
21879
21880         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
21881         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
21882         when handler == SIG_ERR, not when handler != SIG_ERR.
21883
21884 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21885
21886         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
21887         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
21888         definitions.
21889
21890         accept4 for GNU Hurd.
21891         * include/sys/socket.h (__libc_accept4): New prototype.
21892         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
21893         to implement __libc_accept4.
21894         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
21895         __libc_accept4.
21896         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
21897
21898         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
21899         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
21900         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
21901         signal-defines.sym.
21902
21903 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21904
21905         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
21906
21907 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
21908
21909         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
21910         assertion on O_CLOEXEC flag.
21911         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
21912         * hurd/intern-fd.c: Likewise.
21913         * hurd/port2fd.c: Likewise.
21914
21915 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
21916
21917         [BZ #3906]
21918         * bits/in.h (IPV6_PKTINFO): Define new macro.
21919         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
21920
21921 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
21922
21923         [BZ #13954]
21924         [BZ #13955]
21925         [BZ #13956]
21926         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
21927         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
21928         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
21929         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
21930         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
21931         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
21932         * math/libm-test.inc (logb_test) : Additional logb tests.
21933
21934 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
21935             Andreas Jaeger  <aj@suse.de>
21936
21937         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
21938         * configure: Regenerated.
21939         * config.h.in (LINK_OBSOLETE_RPC): New macro.
21940         * config.make.in (link-obsolete-rpc): New substituted variable.
21941         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
21942         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
21943         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
21944         (shared-only-routines): Don't set it under [link-obsolete-rpc],
21945         so that libc.a contains the symbols.
21946         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
21947         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
21948         * sunrpc/auth_none.c: Likewise.
21949         * sunrpc/auth_unix.c: Likewise.
21950         * sunrpc/authdes_prot.c: Likewise.
21951         * sunrpc/authuxprot.c: Likewise.
21952         * sunrpc/clnt_gen.c: Likewise.
21953         * sunrpc/clnt_perr.c: Likewise.
21954         * sunrpc/clnt_raw.c: Likewise.
21955         * sunrpc/clnt_simp.c: Likewise.
21956         * sunrpc/clnt_tcp.c: Likewise.
21957         * sunrpc/clnt_udp.c: Likewise.
21958         * sunrpc/clnt_unix.c: Likewise.
21959         * sunrpc/des_crypt.c: Likewise.
21960         * sunrpc/des_soft.c: Likewise.
21961         * sunrpc/get_myaddr.c: Likewise.
21962         * sunrpc/key_call.c: Likewise.
21963         * sunrpc/key_prot.c: Likewise.
21964         * sunrpc/netname.c: Likewise.
21965         * sunrpc/pm_getmaps.c: Likewise.
21966         * sunrpc/pm_getport.c: Likewise.
21967         * sunrpc/pmap_clnt.c: Likewise.
21968         * sunrpc/pmap_prot.c: Likewise.
21969         * sunrpc/pmap_prot2.c: Likewise.
21970         * sunrpc/pmap_rmt.c: Likewise.
21971         * sunrpc/publickey.c: Likewise.
21972         * sunrpc/rpc_cmsg.c: Likewise.
21973         * sunrpc/rpc_common.c: Likewise.
21974         * sunrpc/rpc_dtable.c: Likewise.
21975         * sunrpc/rpc_prot.c: Likewise.
21976         * sunrpc/rpc_thread.c: Likewise.
21977         * sunrpc/rtime.c: Likewise.
21978         * sunrpc/svc.c: Likewise.
21979         * sunrpc/svc_auth.c: Likewise.
21980         * sunrpc/svc_raw.c: Likewise.
21981         * sunrpc/svc_run.c: Likewise.
21982         * sunrpc/svc_tcp.c: Likewise.
21983         * sunrpc/svc_udp.c: Likewise.
21984         * sunrpc/svc_unix.c: Likewise.
21985         * sunrpc/svcauth_des.c: Likewise.
21986         * sunrpc/xcrypt.c: Likewise.
21987         * sunrpc/xdr.c: Likewise.
21988         * sunrpc/xdr_array.c: Likewise.
21989         * sunrpc/xdr_float.c: Likewise.
21990         * sunrpc/xdr_intXX_t.c: Likewise.
21991         * sunrpc/xdr_mem.c: Likewise.
21992         * sunrpc/xdr_rec.c: Likewise.
21993         * sunrpc/xdr_ref.c: Likewise.
21994         * sunrpc/xdr_sizeof.c: Likewise.
21995         * sunrpc/xdr_stdio.c: Likewise.
21996
21997 2012-05-10  Roland McGrath  <roland@hack.frob.com>
21998
21999         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
22000         change.  Update copyright years.
22001
22002 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
22003
22004         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
22005
22006 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
22007             Joseph Myers  <joseph@codesourcery.com>
22008             Paul Pluzhnikov  <ppluzhnikov@google.com>
22009
22010         [BZ #14012]
22011         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
22012         requiring rpcgen.
22013         [cross-compiling] (extra-libs): Likewise.
22014         [cross-compiling] (extra-libs-others): Likewise.
22015         [cross-compiling] (librpcsvc-routines): Likewise.
22016         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
22017         [cross-compiling] (omit-deps): Likewise.
22018         (sunrpc-CPPFLAGS): New variable.
22019         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
22020         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
22021         (cross-rpcgen-objs): New variable.
22022         (extra-objs): Append $(cross-rpcgen-objs).
22023         ($(cross-rpcgen-objs)): New rule.
22024         ($(objpfx)cross-rpcgen): Likewise.
22025         (rpcgen-cmd): Define to use $(built-program-file).  Expand
22026         comment.
22027         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
22028         ($(objpfx)x%.stmp): Likewise.
22029         * sunrpc/proto.h [IS_IN_build] (_): Define.
22030         [IS_IN_build] (_libc_intl_domainname): Likewise.
22031
22032 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
22033
22034         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
22035         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
22036         and R_X86_64_TPOFF64.
22037
22038 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
22039
22040         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
22041         sysdeps/unix/sysv/syscalls.list.
22042         (stime): Likewise.
22043         (utime): Likewise.
22044         * sysdeps/unix/sysv/syscalls.list: Remove file.
22045
22046 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
22047
22048         [BZ #3440]
22049         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
22050         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
22051         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
22052         (__LC_IDENTIFICATION): Make these macros useful in #if
22053         expressions, as required by C99.
22054
22055 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
22056
22057         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
22058         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
22059         after this.
22060
22061 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
22062
22063         * stdlib/longlong.h: Updated from GCC.
22064
22065 2012-05-09  Andreas Jaeger  <aj@suse.de>
22066
22067         * nscd/nscd.c (run_modes): Make named enum, reorder so that
22068         default is first entry.
22069         (run_mode): Set type.
22070         (main): Remove informal message about syslog.
22071         (options): Fix typo.
22072
22073         [BZ #14053]
22074         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
22075         to asm.
22076         (lrint): Likewise.
22077         (llrintf): Likewise.
22078         (llrint): Likewise.
22079         (rint): Likewise.
22080         (rintf): Likewise.
22081         (nearbyint): Likewise.
22082         (nearbyintf): Likewise.
22083
22084 2012-05-09  Andreas Jaeger  <aj@suse.de>
22085             Pedro Alves  <palves@redhat.com>
22086
22087         * nscd/nscd.c (run_mode): Use enum.
22088         (main): Cleanup coding style issue.
22089
22090 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
22091             Andreas Jaeger  <aj@suse.de>
22092
22093         * nscd/nscd.c (go_background): Replaced with...
22094         (run_mode): ... this.
22095         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
22096         (options): Add -F --foreground.
22097         (main): Implement it.
22098         (parse_opt): Parse it.
22099
22100 2012-05-09  Andreas Jaeger  <aj@suse.de>
22101
22102         [BZ #14083]
22103         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
22104         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
22105         -Wconversion warning.
22106         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
22107         Likewise.
22108
22109 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
22110
22111         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
22112         == 0.
22113         (LC_ALL): Use macro-int-constant.
22114         (LC_COLLATE): Likewise.
22115         (LC_CTYPE): Likewise.
22116         (LC_MESSAGES): Likewise.
22117         (LC_MONETARY): Likewise.
22118         (LC_NUMERIC): Likewise.
22119         (LC_TIME): Likewise.
22120         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
22121         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
22122         [ISO || ISO99 || ISO11] (*_t): Do not allow.
22123         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
22124         Specify type.
22125         [C99-based standards] (float_t): Expect type.
22126         [C99-based standards] (double_t): Expect type.
22127         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
22128         type.
22129         [C99-based standards] (HUGE_VALL): Likewise.
22130         [C99-based standards] (INFINITY): Likewise.
22131         [C99-based standards] (NAN): Likewise.
22132         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
22133         [C99-based standards] (FP_NAN): Likewise.
22134         [C99-based standards] (FP_NORMAL): Likewise.
22135         [C99-based standards] (FP_SUBNORMAL): Likewise.
22136         [C99-based standards] (FP_ZERO): Likewise.
22137         [C99-based standards] (FP_FAST_FMA): Use
22138         optional-macro-int-constant.  Specify type.  Require == 1.
22139         [C99-based standards] (FP_FAST_FMAF): Likewise.
22140         [C99-based standards] (FP_FAST_FMAL): Likewise.
22141         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
22142         [C99-based standards] (FP_ILOGBNAN): Likewise.
22143         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
22144         Specify type.
22145         [C99-based standards] (MATH_ERREXCEPT): Likewise.
22146         [C99-based standards] (math_errhandling): Specify type.
22147         [ISO99 || ISO11] (signgam): Do not allow.
22148         [non-C99-based standards] (copysignf): Do not allow.
22149         [non-C99-based standards] (exp2f): Likewise.
22150         [non-C99-based standards] (log2f): Likewise.
22151         [non-C99-based standards] (modff): Allow.
22152         [non-C99-based standards] (erff): Do not allow.
22153         [non-C99-based standards] (erfcf): Likewise.
22154         [non-C99-based standards] (gammaf): Likewise.
22155         [non-C99-based standards] (hypotf): Likewise.
22156         [non-C99-based standards] (j0f): Likewise.
22157         [non-C99-based standards] (j1f): Likewise.
22158         [non-C99-based standards] (jnf): Likewise.
22159         [non-C99-based standards] (lgammaf): Likewise.
22160         [non-C99-based standards] (tgammaf): Likewise.
22161         [non-C99-based standards] (y0f): Likewise.
22162         [non-C99-based standards] (y1f): Likewise.
22163         [non-C99-based standards] (ynf): Likewise.
22164         [non-C99-based standards] (isnanf): Likewise.
22165         [non-C99-based standards] (acoshf): Likewise.
22166         [non-C99-based standards] (asinhf): Likewise.
22167         [non-C99-based standards] (atanhf): Likewise.
22168         [non-C99-based standards] (cbrtf): Likewise.
22169         [non-C99-based standards] (expm1f): Likewise.
22170         [non-C99-based standards] (ilogbf): Likewise.
22171         [non-C99-based standards] (log1pf): Likewise.
22172         [non-C99-based standards] (logbf): Likewise.
22173         [non-C99-based standards] (nextafterf): Likewise.
22174         [non-C99-based standards] (remainderf): Likewise.
22175         [non-C99-based standards] (rintf): Likewise.
22176         [non-C99-based standards] (scalbf): Likewise.
22177         [non-C99-based standards] (copysignl): Likewise.
22178         [non-C99-based standards] (exp2l): Likewise.
22179         [non-C99-based standards] (log2l): Likewise.
22180         [non-C99-based standards] (modfl): Allow.
22181         [non-C99-based standards] (erfl): Do not allow.
22182         [non-C99-based standards] (erfcl): Likewise.
22183         [non-C99-based standards] (gammal): Likewise.
22184         [non-C99-based standards] (hypotl): Likewise.
22185         [non-C99-based standards] (j0l): Likewise.
22186         [non-C99-based standards] (j1l): Likewise.
22187         [non-C99-based standards] (jnl): Likewise.
22188         [non-C99-based standards] (lgammal): Likewise.
22189         [non-C99-based standards] (tgammal): Likewise.
22190         [non-C99-based standards] (y0l): Likewise.
22191         [non-C99-based standards] (y1l): Likewise.
22192         [non-C99-based standards] (ynl): Likewise.
22193         [non-C99-based standards] (isnanl): Likewise.
22194         [non-C99-based standards] (acoshl): Likewise.
22195         [non-C99-based standards] (asinhl): Likewise.
22196         [non-C99-based standards] (atanhl): Likewise.
22197         [non-C99-based standards] (cbrtl): Likewise.
22198         [non-C99-based standards] (expm1l): Likewise.
22199         [non-C99-based standards] (ilogbl): Likewise.
22200         [non-C99-based standards] (log1pl): Likewise.
22201         [non-C99-based standards] (logbl): Likewise.
22202         [non-C99-based standards] (nextafterl): Likewise.
22203         [non-C99-based standards] (remainderl): Likewise.
22204         [non-C99-based standards] (rintl): Likewise.
22205         [non-C99-based standards] (scalbl): Likewise.
22206         [ISO || ISO99 || ISO11] (*_t): Do not allow.
22207         [non-C99-based standards] (FP_*): Do not allow.
22208         [C99-based standards] (FP_*): Change to
22209         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
22210         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
22211         allow.
22212         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
22213         (SIG_ERR): Likewise.
22214         [X/Open-based standards] (SIG_HOLD): Likewise.
22215         (SIG_IGN): Likewise.
22216         (SIGABRT): Use macro-int-constant.  Specify type.  Require
22217         positive value.
22218         (SIGFPE): Likewise.
22219         (SIGILL): Likewise.
22220         (SIGINT): Likewise.
22221         (SIGSEGV): Likewise.
22222         (SIGTER): Likewise.
22223         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
22224         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
22225         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
22226         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
22227         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
22228         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
22229         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
22230         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
22231         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
22232         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
22233         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
22234         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
22235         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
22236         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
22237         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
22238         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
22239         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
22240         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
22241         [X/Open-based standards] (SIGTRAP): Likewise.
22242         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
22243         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
22244         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
22245         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
22246         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
22247         allow.
22248
22249 2012-05-08  Ian Wienand  <ianw@vmware.com>
22250
22251         [BZ #14080]
22252         * time/tzset.c (__tzset_parse_tz): Update default rules for
22253         daylight time changes in the Energy Policy Act of 2005.
22254
22255 2012-05-09  Andreas Jaeger  <aj@suse.de>
22256
22257         [BZ #13983]
22258         * elf/ldconfig.c (parse_conf): Change string to make clear that
22259         ldconfig only issued a warning if ld.so.conf does not exist.
22260
22261 2012-05-08  David S. Miller  <davem@davemloft.net>
22262
22263         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
22264         movxtod instead of popping the value on the stack.
22265
22266         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22267
22268 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
22269
22270         * config.h.in: Add HAVE_ARM_PCS_VFP.
22271
22272 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
22273
22274         [BZ #13979]
22275         * include/features.h: Warn if user requests __FORTIFY_SOURCE
22276         checking but the checks are disabled for any reason.
22277
22278 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
22279
22280         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
22281         and ELF64_R_TYPE with ELFW(R_TYPE).
22282
22283 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
22284
22285         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
22286         (ulimit): Likewise.
22287
22288         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
22289         (settimeofday): Likewise.
22290
22291 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
22292
22293         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
22294         a struct th_u2 inside the union, and move tu_block/tu_code into
22295         a new th_u3 union of tu_block/tu_code inside of that.  Move
22296         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
22297         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
22298         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
22299         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
22300         (th_stuff): Change to th_u1.tu_stuff.
22301         (th_data): Define.
22302         (th_msg): Change to th_u1.th_u2.tu_data.
22303
22304 2012-05-07  David S. Miller  <davem@davemloft.net>
22305
22306         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22307
22308         [BZ #14074]
22309         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
22310         (SETUP_PIC_REG): Use it.
22311         (SETUP_PIC_REG_LEAF): Use it.
22312
22313 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
22314
22315         [BZ #13885]
22316         [BZ #13923]
22317         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
22318         USE_AS_EXPM1L.
22319         (EXPL_FINITE): Likewise.
22320         (FLDLOG): Likewise.
22321         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
22322         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
22323         e_expl.S.
22324         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
22325         USE_AS_EXPM1L.
22326         (EXPL_FINITE): Likewise.
22327         (FLDLOG): Likewise.
22328         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
22329         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
22330         e_expl.S.
22331         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
22332         test of -max_value argument for long double.
22333         * sysdeps/i386/fpu/libm-test-ulps: Update.
22334         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
22335
22336 2012-05-06  David S. Miller  <davem@davemloft.net>
22337
22338         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
22339         quad soft-float symbols whose references which are compiler
22340         generated.
22341         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
22342
22343 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
22344
22345         [BZ #13884]
22346         [BZ #13914]
22347         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
22348         USE_AS_EXP10L.
22349         (EXPL_FINITE): Likewise.
22350         (FLDLOG): Likewise.
22351         (c0): Likewise.
22352         (c1): Likewise.
22353         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
22354         Adjust comments for base varying.
22355         (__expl_finite): Change alias to EXPL_FINITE.
22356         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
22357         e_expl.S.
22358         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
22359         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
22360         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
22361         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
22362         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
22363         USE_AS_EXP10L.
22364         (EXPL_FINITE): Likewise.
22365         (FLDLOG): Likewise.
22366         (c0): Likewise.
22367         (c1): Likewise.
22368         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
22369         Adjust comments for base varying.
22370         (__expl_finite): Change alias to EXPL_FINITE.
22371         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
22372         tests for bugs.
22373         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
22374
22375         [BZ #14064]
22376         * math/libm-test.inc (check_float_internal): Correct ulp
22377         calculation for subnormal expected results.
22378
22379 2012-05-06  Andreas Jaeger  <aj@suse.de>
22380
22381         * Makeconfig (+math-flags): New, set to -frounding-math.
22382         (+cflags): Add +math-flags so that all of glibc gets compiled with
22383         it.
22384
22385         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
22386
22387 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
22388
22389         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
22390         Disable one test.
22391
22392         [BZ #13787]
22393         [BZ #13922]
22394         [BZ #14036]
22395         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
22396         (__ieee754_expl): Allow for and saturate large arguments.
22397         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
22398         (u_threshold): Likewise.
22399         (__exp): Call __ieee754_exp before checking for overflow and
22400         underflow.
22401         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
22402         (u_threshold): Likewise.
22403         (__expf): Call __ieee754_expf before checking for overflow and
22404         underflow.
22405         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
22406         (u_threshold): Likewise.
22407         (__expl): Call __ieee754_expl before checking for overflow and
22408         underflow.
22409         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
22410         (__ieee754_expl): Allow for and saturate large arguments.
22411         * math/libm-test.inc (exp_test): Add another test.  Do not allow
22412         missing overflow exception on overflow.
22413         (expm1_test): Do not allow missing overflow exception on overflow.
22414
22415         * sysdeps/i386/fpu/e_expl.c: Move to ...
22416         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
22417         rather than using inline asm.
22418         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
22419         * sysdeps/x86_64/fpu/e_expl.S: Copy from
22420         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
22421
22422         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
22423         (nice): Likewise.
22424         (poll): Likewise.
22425         (signal): Likewise.
22426         (time): Likewise.
22427         (times): Likewise.
22428
22429 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
22430
22431         * sysdeps/unix/syscalls.list (adjtime): Add entry from
22432         sysdeps/unix/common/syscalls.list.
22433         (fchmod): Likewise.
22434         (fchown): Likewise.
22435         (ftruncate): Likewise.
22436         (getrusage): Likewise.
22437         (gettimeofday): Likewise.
22438         (setpgid): Likewise.
22439         (setregid): Likewise.
22440         (setreuid): Likewise.
22441         (sigaction): Likewise.
22442         (truncate): Likewise.
22443         (vhangup): Likewise.
22444         * sysdeps/unix/common/syscalls.list: Remove file.
22445         * sysdeps/unix/bsd/Implies: Don't include unix/common.
22446         * sysdeps/unix/sysv/linux/Implies: Likewise.
22447
22448 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
22449
22450         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
22451         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
22452         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
22453         Moved to ...
22454         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
22455         Here.
22456         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
22457         to ...
22458         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
22459         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
22460         to ...
22461         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
22462         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
22463         to ...
22464         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
22465         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
22466         to ...
22467         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
22468         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
22469         to ...
22470         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
22471         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
22472         to ...
22473         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
22474         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
22475         to ...
22476         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
22477         Here.
22478         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
22479         to ...
22480         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
22481         Here.
22482         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
22483         to ...
22484         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
22485         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
22486         Moved to ...
22487         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
22488         Here.
22489         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
22490         to ...
22491         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
22492
22493 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
22494
22495         * sysdeps/unix/common/bits/dirent.h: Remove file.
22496         * sysdeps/unix/common/bits/fcntl.h: Likewise.
22497
22498         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
22499         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
22500         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
22501         * sysdeps/unix/bsd/isatty.c: Likewise.
22502         * sysdeps/unix/bsd/tcdrain.c: Likewise.
22503         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
22504         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
22505
22506 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22507
22508         [BZ #13563]
22509         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
22510         long double comparison inaccuracies.
22511         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
22512         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
22513
22514 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
22515
22516         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
22517         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
22518
22519 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
22520
22521         [BZ #14049]
22522         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
22523         nonzero digits before rounding a hex value.
22524         * stdlib/tst-strtod.c (tests): Add another test.
22525
22526 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
22527
22528         * sysdeps/s390/fpu/libm-test-ulps: Update.
22529
22530 2012-05-03  Andreas Jaeger  <aj@suse.de>
22531
22532         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
22533         does not get optimized out.
22534         (malloc_opt_barrier): New.
22535
22536 2012-05-03  Andreas Jaeger  <aj@suse.de>
22537             Roland McGrath  <roland@hack.frob.com>
22538
22539         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
22540         intermediate file deletion.
22541         (generated): Add .symlist files.
22542
22543 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
22544
22545         [BZ #13775]
22546         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
22547         Redirect under this condition.
22548         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
22549         [__USE_GNU] (__dprintf_chk): Not under this condition.
22550         [__USE_GNU] (__vdprintf_chk): Likewise.
22551         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
22552         under this condition.
22553         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
22554         [__USE_XOPEN2K8] (dprintf): Define under this condition.
22555         [__USE_XOPEN2K8] (vdprintf): Likewise.
22556         [__USE_GNU] (__dprintf_chk): Not under this condition.
22557         [__USE_GNU] (__vdprintf_chk): Likewise.
22558         [__USE_GNU] (dprintf): Likewise.
22559         [__USE_GNU] (vdprintf): Likewise.
22560
22561 2012-05-03  Roland McGrath  <roland@hack.frob.com>
22562
22563         * elf/Makefile (common-generated): Set this instead of generated for
22564         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
22565         $(all-built-dso)-derived lists.
22566
22567 2012-05-03  Andreas Jaeger  <aj@suse.de>
22568
22569         * sysdeps/i386/fpu/libm-test-ulps: Update.
22570
22571         * FAQ: Removed.
22572         * FAQ.in: Likewise.
22573         * scripts/gen-FAQ.pl: Likewise.
22574         * manual/install.texi (Installation): Point to online location of
22575         FAQ.
22576         * Makefile (files-for-dist): Remove FAQ.
22577         (FAQ): Remove.
22578
22579 2012-05-02  Allan McRae  <allan@archlinux.org>
22580
22581         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
22582         (LDFLAGS-reldepmod5.so): Likewise.
22583         (LDFLAGS-reldep6mod1.so): Likewise.
22584         (LDFLAGS-reldep6mod4.so): Likewise.
22585         (LDFLAGS-reldep8mod3.so): Likewise.
22586         (LDFLAGS-unload4mod1.so): Likewise.
22587         (LDFLAGS-unload4mod2.so): Likewise.
22588         (LDFLAGS-tst-initorder): Likewise.
22589         (LDFLAGS-tst-initordera2.so): Likewise.
22590         (LDFLAGS-tst-initordera3.so): Likewise.
22591         (LDFLAGS-tst-initordera4.so): Likewise.
22592         (LDFLAGS-tst-initorderb2.so): Likewise.
22593         (LDFLAGS-noload): Likewise.
22594         (LDFLAGS-next): Likewise.
22595         (LDFLAGS-order2mod1.so): Likewise.
22596         (LDFLAGS-order2mod2.so): Likewise.
22597         (LDFLAGS-tst-initorder2): Likewise.
22598         (LDFLAGS-tst-initorder2a.so): Likewise.
22599         (LDFLAGS-tst-initorder2b.so): Likewise.
22600         (LDFLAGS-tst-initorder2c.so): Likewise.
22601         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
22602
22603 2012-05-02  David S. Miller  <davem@davemloft.net>
22604
22605         * sysdeps/sparc/fpu/libm-test-ulps: Update.
22606
22607 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
22608
22609         [BZ #14055]
22610         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
22611
22612 2012-05-02  Andreas Jaeger  <aj@suse.de>
22613
22614         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
22615         since we manipulate rounding mode.
22616         (CPPFLAGS-test-idouble.c): Likewise.
22617         (CPPFLAGS-test-ifloat.c): Likewise.
22618         (CFLAGS-test-ldouble.c): Likewise.
22619         (CFLAGS-test-double.c): Likewise.
22620         (CFLAGS-test-float.c): Likewise.
22621         (CFLAGS-test-misc.c): Likewise.
22622         (CFLAGS-test-test-fenv.c): Likewise.
22623
22624 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
22625
22626         [BZ #2550]
22627         [BZ #2570]
22628         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
22629         comparisons to determine direction to adjust input.
22630
22631 2012-05-01  Roland McGrath  <roland@hack.frob.com>
22632
22633         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
22634         output to the target.
22635
22636         * scripts/localplt.awk: New file.
22637         * elf/Makefile ($(objpfx)check-localplt): Target removed.
22638         (check-localplt-CFLAGS): Variable removed.
22639         ($(all-built-dso:=.jmprel)): New static pattern rule.
22640         (generated): Add those targets.
22641         (localplt-built-dso): New variable.
22642         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
22643
22644         * elf/check-localplt.c: File removed.
22645
22646         * scripts/check-execstack.awk: New file.
22647         * elf/Makefile ($(objpfx)check-execstack): Target removed.
22648         (check-execstack-CFLAGS): Variable removed.
22649         ($(objpfx)check-execstack.h): Target removed.
22650         ($(objpfx)execstack-default): New target.
22651         (generated): Add that instead of check-execstack.h.
22652         ($(all-built-dso:=.phdr)): New static pattern rule.
22653         (generated): Add those targets.
22654         * elf/check-execstack.c: File removed.
22655
22656         * scripts/check-textrel.awk: New file.
22657         * elf/Makefile ($(objpfx)check-textrel): Target removed.
22658         (check-textrel-CFLAGS): Variable removed.
22659         (all-built-dso): Use := to define.o
22660         ($(all-built-dso:=.dyn)): New static pattern rule.
22661         (generated): Add those targets.
22662         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
22663         * config.make.in (READELF): New substituted variable.
22664         * elf/check-textrel.c: File removed.
22665
22666 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
22667
22668         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
22669         allow.
22670         * conform/data/ctype.h-data [C99-based standards] (isblank):
22671         Expect function.
22672         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
22673         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
22674         [ISO || ISO99 || ISO11] (*_t): Do not allow.
22675         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
22676         Specify type.  Require positive value.
22677         (EILSEQ): Likewise.
22678         (ERANGE): Likewise.
22679         [ISO || POSIX] (EILSEQ): Do not expect.
22680         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
22681         Specify type.  Require positive value.
22682         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
22683         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
22684         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
22685         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
22686         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
22687         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
22688         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
22689         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
22690         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
22691         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
22692         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
22693         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
22694         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
22695         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
22696         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
22697         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
22698         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
22699         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
22700         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
22701         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
22702         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
22703         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
22704         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
22705         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
22706         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
22707         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
22708         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
22709         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
22710         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
22711         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
22712         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
22713         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
22714         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
22715         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
22716         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
22717         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
22718         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
22719         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
22720         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
22721         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
22722         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
22723         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
22724         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
22725         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
22726         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
22727         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
22728         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
22729         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
22730         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
22731         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
22732         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
22733         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
22734         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
22735         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
22736         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
22737         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
22738         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
22739         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
22740         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
22741         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
22742         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
22743         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
22744         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
22745         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
22746         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
22747         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
22748         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
22749         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
22750         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
22751         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
22752         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
22753         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
22754         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
22755         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
22756         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
22757         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
22758         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
22759         Require >= 2.
22760         (FLT_ROUNDS): Expect as macro, not constant.
22761         (FLT_MANT_DIG): Use macro-int-constant.
22762         (DBL_MANT_DIG): Likewise.
22763         (LDBL_MANT_DIG): Likewise.
22764         (FLT_DIG): Likewise.
22765         (DBL_DIG): Likewise.
22766         (LDBL_DIG): Likewise.
22767         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
22768         (DBL_MIN_EXP): Likewise.
22769         (LDBL_MIN_EXP): Likewise.
22770         (FLT_MAX_EXP): Use macro-int-constant.
22771         (DBL_MAX_EXP): Likewise.
22772         (LDBL_MAX_EXP): Likewise.
22773         (FLT_MAX_10_EXP): Likewise.
22774         (DBL_MAX_10_EXP): Likewise.
22775         (LDBL_MAX_10_EXP): Likewise.
22776         (FLT_MAX): Use macro-constant.
22777         (DBL_MAX): Likewise.
22778         (LDBL_MAX): Likewise.
22779         (FLT_EPSILON): Use macro-constant.  Give upper bound.
22780         (DBL_EPSILON): Likewise.
22781         (LDBL_EPSILON): Likewise.
22782         (FLT_MIN): Likewise.
22783         (DBL_MIN): Likewise.
22784         (LDBL_MIN): Likewise.
22785         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
22786         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
22787         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
22788         [ISO11] (FLT_HAS_SUBNORM): Likewise.
22789         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
22790         [ISO11] (DBL_DECIMAL_DIG): Likewise.
22791         [ISO11] (FLT_DECIMAL_DIG): Likewise.
22792         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
22793         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
22794         [ISO11] (FLT_TRUE_MIN): Likewise.
22795         [ISO11] (LDBL_TRUE_MIN): Likewise.
22796         [ISO || ISO99 || ISO11] (*_t): Do not allow.
22797         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
22798         (SCHAR_MIN): Use macro-int-constant.  Specify type.
22799         (SCHAR_MAX): Likewise.
22800         (UCHAR_MAX): Likewise.
22801         (CHAR_MIN): Likewise.
22802         (CHAR_MAX): Likewise.
22803         (MB_LEN_MAX): Use macro-int-constant.
22804         (SHRT_MIN): Use macro-int-constant.  Specify type.
22805         (SHRT_MAX): Likewise.
22806         (USHRT_MAX): Likewise.
22807         (INT_MAX): Likewise.
22808         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
22809         bound negative.
22810         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
22811         bound with "U".
22812         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
22813         bound with "L".
22814         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
22815         bound negative.  Suffix upper bound with "L".
22816         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
22817         bound with "UL".
22818         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
22819         Specify type.
22820         [C99-based standards] (LLONG_MAX): Likewise.
22821         [C99-based standards] (ULLONG_MAX): Likewise.
22822         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
22823         == 0.
22824         [ISO11] (max_align_t): Require type.
22825         [ISO || ISO99 || ISO11] (*_t): Do not allow.
22826
22827         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
22828         from $CFLAGS, without defining away __attribute__ calls.
22829         (checknamespace): Use $CFLAGS_namespace.
22830
22831         * conform/conformtest.pl (@keywords): Only include C99 keywords
22832         for standards based on C99 or C11.
22833
22834         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
22835         Disable tests.
22836         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
22837         UNIX98]: Likewise.
22838
22839         * conform/conformtest.pl: Handle "macro-int-constant" and test for
22840         usability of symbols in #if.
22841
22842         * conform/conformtest.pl: If macro or constant types start
22843         "promoted:", expect the symbol to be of the following type
22844         promoted by the integer promotions.
22845
22846         * conform/conformtest.pl: Parse all "constant" and "macro" lines
22847         in one place.  Also handle "macro-constant".
22848
22849         * conform/conformtest.pl: Only accept expected macro values with
22850         "==".  Parse all "macro" lines in one place.
22851         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
22852
22853         * conform/conformtest.pl: Handle braced types on "constant" lines
22854         instead of handling "typed-constant".
22855         * conform/data/signal.h-data: Use "constant" instead of
22856         "typed-constant".
22857
22858         * conform/conformtest.pl: Handle "optional-" at start of lines in
22859         one place rather than duplicating several cases.  Handle each
22860         format of "macro" line with initial "optional-".
22861
22862         * conform/conformtest.pl: Only accept expected constant or
22863         optional-constant values with "==".  Parse all "constant" lines in
22864         one place.  Parse all "optional-constant" lines in one place.
22865         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
22866         * conform/data/fmtmsg.h-data: Likewise.
22867         * conform/data/netinet/in.h-data: Likewise.
22868         * conform/data/tar.h-data: Likewise.
22869         * conform/data/limits.h-data: Use "==" form on "constant" and
22870         "optional-constant" lines.
22871
22872         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
22873         Use -std=c99 for XOPEN2K.
22874         (@knownproblems): Remove.
22875         (newtoken): Don't check %isknown.
22876
22877         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
22878         Do not expect macro.
22879         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
22880         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
22881         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
22882         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
22883         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
22884         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
22885         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
22886         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
22887         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
22888         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
22889         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
22890         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
22891         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
22892         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
22893         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
22894         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
22895         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
22896         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
22897         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
22898         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
22899         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
22900         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
22901         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
22902         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
22903         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
22904         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
22905         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
22906         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
22907         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
22908         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
22909         [XPG3] (acosh): Likewise.
22910         [XPG3] (asinh): Likewise.
22911         [XPG3] (atanh): Likewise.
22912         [XPG3] (cbrt): Likewise.
22913         [XPG3] (expm1): Likewise.
22914         [XPG3] (ilogb): Likewise.
22915         [XPG3] (log1p): Likewise.
22916         [XPG3] (logb): Likewise.
22917         [XPG3] (nextafter): Likewise.
22918         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
22919         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
22920         [XPG3] (remainder): Likewise.
22921         [XPG3] (rint): Likewise.
22922         [XPG3 || XPG4 || UNIX98] (round): Likewise.
22923         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
22924         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
22925         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
22926         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
22927         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
22928         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
22929         [UNIX98 || XOPEN2K] (scalb): Expect.
22930         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
22931         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
22932         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
22933         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
22934         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
22935         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
22936         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
22937         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
22938         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
22939         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
22940         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
22941         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
22942         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
22943         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
22944         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
22945         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
22946         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
22947         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
22948         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
22949         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
22950         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
22951         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
22952         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
22953         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
22954         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
22955         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
22956         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
22957         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
22958         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
22959         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
22960         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
22961         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
22962         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
22963         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
22964         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
22965         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
22966         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
22967         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
22968         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
22969         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
22970         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
22971         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
22972         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
22973         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
22974         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
22975         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
22976         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
22977         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
22978         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
22979         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
22980         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
22981         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
22982         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
22983         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
22984         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
22985         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
22986         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
22987         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
22988         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
22989         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
22990         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
22991         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
22992         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
22993         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
22994         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
22995         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
22996         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
22997         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
22998         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
22999         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
23000         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
23001         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
23002         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
23003         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
23004         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
23005         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
23006         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
23007         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
23008         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
23009         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
23010         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
23011         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
23012         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
23013         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
23014         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
23015         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
23016         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
23017         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
23018         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
23019         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
23020         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
23021         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
23022         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
23023         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
23024         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
23025         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
23026         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
23027         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
23028         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
23029         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
23030         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
23031         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
23032         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
23033         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
23034         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
23035         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
23036         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
23037         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
23038         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
23039         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
23040         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
23041         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
23042         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
23043         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
23044         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
23045         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
23046         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
23047         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
23048         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
23049         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
23050         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
23051         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
23052         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
23053         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
23054         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
23055         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
23056         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
23057         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
23058         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
23059         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
23060         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
23061         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
23062         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
23063         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
23064         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
23065         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
23066         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
23067
23068         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
23069         _XOPEN_SOURCE_EXTENDED for XPG4.
23070
23071         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
23072
23073         * Makeconfig (localtime): Remove variable.
23074         (inst_localtime-file): Likewise.
23075
23076 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
23077
23078         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
23079         Update.
23080         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
23081         Update.
23082         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
23083         Update.
23084         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
23085         Update.
23086         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
23087         Update.
23088         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
23089         Update.
23090         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
23091         Update.
23092         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
23093         Update.
23094         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
23095         Update.
23096
23097 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
23098
23099         [BZ #2550]
23100         [BZ #2570]
23101         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
23102         comparisons to determine direction to adjust input.
23103         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
23104         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
23105         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
23106         Likewise.
23107         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
23108         Likewise.
23109         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
23110         Likewise.
23111         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
23112         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
23113         Likewise.
23114         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
23115         Likewise.
23116         * math/libm-test.inc (nexttoward_test): Add more tests.
23117
23118 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
23119
23120         [BZ #14040]
23121         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
23122         in version GLIBC_2.1, not GLIBC_2.0.
23123         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
23124         Likewise.
23125
23126 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
23127
23128         [BZ #13942]
23129         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
23130         (1 - x) * (1 + x).
23131         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
23132         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
23133         * math/libm-test.inc (acos_test): Add more tests.
23134         (asin_test): Likewise.
23135         * sysdeps/i386/fpu/libm-test-ulps: Update.
23136         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
23137
23138         [BZ #14034]
23139         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
23140         of square root.
23141         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
23142         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
23143         * math/libm-test.inc (acos_test_tonearest): New function.
23144         (acos_test_towardzero): Likewise.
23145         (acos_test_downward): Likewise.
23146         (acos_test_upward): Likewise.
23147         (asin_test_tonearest): Likewise.
23148         (asin_test_towardzero): Likewise.
23149         (asin_test_downward): Likewise.
23150         (asin_test_upward): Likewise.
23151         (main): Call the new functions.
23152         * sysdeps/i386/fpu/libm-test-ulps: Update.
23153         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23154
23155         [BZ #13884]
23156         [BZ #13924]
23157         * math/e_exp10.c: Include <float.h>.
23158         (__ieee754_exp10): Handle underflow here rather than multiplying
23159         large negative argument by M_LN10.
23160         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
23161         of __ieee754_expf.
23162         * math/e_exp10l.c: Include <float.h>.
23163         (__ieee754_exp10l): Handle underflow here rather than multiplying
23164         large negative argument by M_LN10l.
23165         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
23166         spurious overflow exception on underflow.
23167
23168 2012-04-29  Marek Polacek  <polacek@redhat.com>
23169
23170         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
23171         (__fortify_function): New macro.
23172         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
23173         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
23174         __extern_always_inline.
23175         * libio/bits/stdio2.h: Likewise.
23176         * libio/bits/stdio.h: Likewise.
23177         * string/string.h: Likewise.
23178         * string/bits/string3.h: Likewise.
23179         * include/stdio.h: Likewise.
23180         * stdlib/bits/stdlib.h: Likewise.
23181         * stdlib/stdlib.h: Likewise.
23182         * rt/bits/mqueue2.h: Likewise.
23183         * rt/mqueue.h: Likewise.
23184         * posix/bits/unistd.h: Likewise.
23185         * posix/unistd.h: Likewise.
23186         * io/bits/poll2.h: Likewise.
23187         * io/bits/fcntl2.h: Likewise.
23188         * io/fcntl.h: Likewise.
23189         * io/sys/poll.h: Likewise.
23190         * misc/bits/syslog.h: Likewise.
23191         * misc/bits/syslog-ldbl.h: Likewise.
23192         * misc/sys/syslog.h: Likewise.
23193         * socket/bits/socket2.h: Likewise.
23194         * socket/sys/socket.h: Likewise.
23195         * debug/tst-chk1.c: Likewise.
23196         * wcsmbs/bits/wchar2.h: Likewise.
23197         * wcsmbs/bits/wchar-ldbl.h: Likewise.
23198         * wcsmbs/wchar.h: Likewise.
23199
23200 2012-04-29  Andreas Jaeger  <aj@suse.de>
23201
23202         * Makerules (tests): Remove enable-check-abi protection.
23203         (check-abi-warn): Remove.
23204         (check-abi-%): Remove check-abi-warn usage.
23205
23206         * configure.in: Remove check-abi configure option.
23207         * configure: Regenerated.
23208         * config.make.in (enable-check-abi): Remove.
23209
23210 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
23211
23212         [BZ #14033]
23213         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
23214         double functions to double *_finite functions.
23215
23216         [BZ #13941]
23217         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
23218         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
23219         LDBL_MIN_EXP.
23220         * stdio-common/Makefile (tests): Add tst-sprintf3.
23221         * stdio-common/tst-sprintf3.c: New file.
23222
23223         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
23224         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
23225
23226 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
23227
23228         * conform/conformtest.pl: Remove duplicate typed-constant
23229         handling.
23230
23231 2012-04-28  David S. Miller  <davem@davemloft.net>
23232
23233         * Makerules (%.abilist): Add vpath on sysdep_dirs.
23234         (check-abi-%): Remove AWK script prerequisite and explicit
23235         abilist directory.
23236         (check-abi): Rewrite to just diff the symlist with the abilist.
23237         (config-tls, config-abi-config): Delete, no longer used.
23238         (update-abi-%): Remove AWK script and explicit abilist directory.
23239         (update-abi): Rewrite to simply compare and conditionally copy the
23240         symlist and the sysdep abilist file.  Remove update-abi-config
23241         checks.
23242         * abilist/ld.abilist: Remove.
23243         * abilist/libBrokenLocale.abilist: Remove.
23244         * abilist/libanl.abilist: Remove.
23245         * abilist/libcrypt.abilist: Remove.
23246         * abilist/libdl.abilist: Remove.
23247         * abilist/librt.abilist: Remove.
23248         * abilist/libthread_db.abilist: Remove.
23249         * abilist/libutil.abilist: Remove.
23250         * scripts/extract-abilist.awk: Remove.
23251         * scripts/merge-abilist.awk: Remove.
23252         * sysdeps/generic/libcidn.abilist: New file.
23253         * sysdeps/generic/libnss_compat.abilist: New file.
23254         * sysdeps/generic/libnss_db.abilist: New file.
23255         * sysdeps/generic/libnss_dns.abilist: New file.
23256         * sysdeps/generic/libnss_files.abilist: New file.
23257         * sysdeps/generic/libnss_hesiod.abilist: New file.
23258         * sysdeps/generic/libnss_nis.abilist: New file.
23259         * sysdeps/generic/libnss_nisplus.abilist: New file.
23260         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
23261         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
23262         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
23263         file.
23264         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
23265         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
23266         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
23267         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
23268         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
23269         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
23270         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
23271         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
23272         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
23273         file.
23274         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
23275         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
23276         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
23277         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
23278         file.
23279         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
23280         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
23281         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
23282         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
23283         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
23284         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
23285         file.
23286         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
23287         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
23288         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
23289         file.
23290         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
23291         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
23292         New file.
23293         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
23294         New file.
23295         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
23296         New file.
23297         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
23298         New file.
23299         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
23300         New file.
23301         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
23302         New file.
23303         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
23304         New file.
23305         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
23306         New file.
23307         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
23308         New file.
23309         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
23310         New file.
23311         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
23312         New file.
23313         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
23314         New file.
23315         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
23316         New file.
23317         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
23318         file.
23319         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
23320         New file.
23321         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
23322         New file.
23323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
23324         file.
23325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
23326         New file.
23327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
23328         New file.
23329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
23330         file.
23331         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
23332         New file.
23333         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
23334         New file.
23335         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
23336         New file.
23337         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
23338         New file.
23339         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
23340         New file.
23341         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
23342         New file.
23343         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
23344         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
23345         file.
23346         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
23347         New file.
23348         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
23349         file.
23350         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
23351         file.
23352         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
23353         file.
23354         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
23355         file.
23356         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
23357         file.
23358         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
23359         New file.
23360         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
23361         file.
23362         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
23363         file.
23364         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
23365         New file.
23366         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
23367         file.
23368         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
23369         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
23370         file.
23371         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
23372         New file.
23373         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
23374         file.
23375         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
23376         file.
23377         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
23378         file.
23379         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
23380         file.
23381         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
23382         file.
23383         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
23384         New file.
23385         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
23386         file.
23387         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
23388         file.
23389         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
23390         New file.
23391         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
23392         file.
23393         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
23394         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
23395         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
23396         file.
23397         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
23398         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
23399         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
23400         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
23401         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
23402         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
23403         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
23404         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
23405         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
23406         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
23407         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
23408         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
23409         file.
23410         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
23411         New file.
23412         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
23413         file.
23414         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
23415         file.
23416         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
23417         file.
23418         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
23419         file.
23420         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
23421         file.
23422         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
23423         New file.
23424         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
23425         New file.
23426         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
23427         file.
23428         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
23429         New file.
23430         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
23431         file.
23432         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
23433         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
23434         file.
23435         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
23436         New file.
23437         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
23438         file.
23439         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
23440         file.
23441         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
23442         file.
23443         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
23444         file.
23445         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
23446         file.
23447         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
23448         New file.
23449         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
23450         New file.
23451         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
23452         file.
23453         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
23454         New file.
23455         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
23456         file.
23457
23458 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
23459
23460         * conform/conformtest.pl: Fix typo in handling typed-constant from
23461         allow-header.
23462
23463 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
23464
23465         * README: Cut down references to pre-2.6 Linux kernels and
23466         Linuxthreads.  Update lists of configurations in libc and ports
23467         and sort alphabetically.  Say "or newer" with Linux kernel version
23468         requirements.
23469
23470         * config.h.in [IS_IN_build]: Allow compiling without optimization.
23471
23472 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
23473
23474         [BZ #887]
23475         * math/libm-test.inc (logb_test_downward): New test to expose
23476         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
23477         rounding mode.
23478
23479 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
23480
23481         [BZ #14027]
23482         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
23483         to be done.
23484         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
23485         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
23486
23487 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
23488
23489         * sysdeps/unix/i386/brk.S: Remove file.
23490         * sysdeps/unix/i386/dl-brk.S: Likewise.
23491         * sysdeps/unix/i386/pipe.S: Likewise.
23492         * sysdeps/unix/i386/sigreturn.S: Likewise.
23493         * sysdeps/unix/i386/syscall.S: Likewise.
23494         * sysdeps/unix/i386/vfork.S: Likewise.
23495         * sysdeps/unix/i386/wait.S: Likewise.
23496
23497         * sysdeps/unix/common/tcsendbrk.c: Move to ...
23498         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
23499
23500         * configure.in (arm*-none*): Do not allow without
23501         --enable-hacker-mode.
23502         (netbsd*): Remove case setting base_os.
23503         (386bsd*): Likewise.
23504         (freebsd*): Likewise.
23505         (bsdi*): Likewise.
23506         (osf*): Likewise.
23507         (sunos*): Likewise.
23508         (ultrix*): Likewise.
23509         (newsos*): Likewise.
23510         (dynix*): Likewise.
23511         (*bsd*): Likewise.
23512         (sysv*): Likewise.
23513         (isc*): Likewise.
23514         (esix*): Likewise.
23515         (sco*): Likewise.
23516         (minix*): Likewise.
23517         (irix4*): Likewise.
23518         (irix6*): Likewise.
23519         (solaris[2-9]*): Likewise.
23520         (none): Likewise.
23521         * configure: Regenerated.
23522
23523 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23524
23525         [BZ #11521]
23526         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
23527         overflow or cancellation in calculating denominator.
23528         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
23529         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
23530         down expression to avoid unexpected rounding in newer GCCs.
23531         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
23532
23533 2012-04-26  David S. Miller  <davem@davemloft.net>
23534
23535         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
23536         long-double compat symbols.
23537         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
23538         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
23539         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
23540         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
23541         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
23542         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
23543         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
23544         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
23545         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
23546         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
23547         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
23548         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
23549         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
23550
23551 2012-04-25  David S. Miller  <davem@davemloft.net>
23552
23553         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
23554         HWCAP_* values only after the memory barriers have been defined.
23555         (atomic_full_barrier): Define.
23556         (atomic_read_barrier): Define.
23557         (atomic_write_barrier): Define.
23558
23559 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
23560
23561         * shlib-versions: Add libgcc_s version information.
23562         * sysdeps/generic/libgcc_s.h: Remove.
23563         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
23564         libgcc_s.h.
23565         * sysdeps/gnu/unwind-resume.c: Likewise.
23566         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
23567
23568 2012-04-25  David S. Miller  <davem@davemloft.net>
23569
23570         * sysdeps/unix/sparc/brk.S: Delete.
23571         * sysdeps/unix/sparc/dl-brk.S: Delete.
23572         * sysdeps/unix/sparc/pipe.S: Delete.
23573         * sysdeps/unix/sparc/sysdep.S: Delete.
23574         * sysdeps/unix/sparc/sysdep.h: Delete.
23575         * sysdeps/unix/sparc/vfork.S: Delete.
23576         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
23577         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
23578         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
23579         ret_ERRVAL, r0, r1, MOVE): Define.
23580         (JUMPTARGET): Remove.
23581         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
23582         sysdeps/unix/sparc/sysdep.h
23583         (ENTRY, END): Remove.
23584         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
23585
23586 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
23587
23588         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
23589         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
23590         -DIS_IN_build.
23591
23592         * timezone/README: Update upstream location and email address for
23593         tzcode and tzdata.
23594         * timezone/zdump.c: Update from tzcode 2012b.
23595         * timezone/zic.c: Likewise.
23596
23597         * configure.in (libc_cv_as_needed): Remove test.
23598         * configure: Regenerated.
23599         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
23600         conditional definition.
23601         [$(have-as-needed) != yes] (no-as-needed): Likewise.
23602         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
23603         * config.make.in (have-as-needed): Remove variable.
23604
23605 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
23606             Paul Pluzhnikov  <ppluzhnikov@google.com>
23607
23608         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
23609         strings correctly.
23610
23611 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
23612
23613         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
23614         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
23615         * sysdeps/sh/strlen.S: Likewise.
23616
23617 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
23618
23619         * sysdeps/unix/fork.S: Remove file.
23620         * sysdeps/unix/i386/fork.S: Likewise.
23621         * sysdeps/unix/sparc/fork.S: Likewise.
23622
23623         * sysdeps/unix/system.c: Remove file.
23624         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
23625
23626         * sysdeps/unix/getegid.S: Remove file.
23627         * sysdeps/unix/geteuid.S: Likewise.
23628
23629 2012-04-24  Roland McGrath  <roland@hack.frob.com>
23630
23631         * scripts/check-localplt.awk: New file.
23632         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
23633         of diff.
23634         * scripts/data/localplt-generic.data: Add a comment.
23635
23636         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
23637         NODE when __dir_mkfile failed.
23638         * sysdeps/mach/hurd/symlinkat.c: Likewise.
23639         Reported by Ludovic Courtès <ludo@gnu.org>.
23640
23641 2012-04-24  Andreas Jaeger  <aj@suse.de>
23642
23643         * Makerules (common-clean): Also remove gen-as-const-headers
23644         files.
23645
23646 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
23647
23648         * Makerules (native-compile): Do not change working directory for
23649         build.  Use $(OUTPUT_OPTION) in command.
23650         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
23651
23652 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23653
23654         [BZ #13886]
23655         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
23656         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
23657         * math/libm-test.inc (floor_test): Add more tests.
23658         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
23659
23660 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
23661
23662         * sysdeps/unix/getdents.c: Remove file.
23663         * sysdeps/unix/sysv/getdents.c: Likewise.
23664         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
23665
23666         * sysdeps/unix/syscalls.list (madvise): Add syscall from
23667         sysdeps/unix/mman/syscalls.list.
23668         (mmap): Likewise.
23669         (mprotect): Likewise.
23670         (msync): Likewise.
23671         (munmap): Likewise.
23672         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
23673         * sysdeps/unix/mman/syscalls.list: Remove.
23674         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
23675
23676         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
23677         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
23678         * configure: Regenerated.
23679         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
23680         $(libgcc_s_suffix).
23681         * config.make.in (libgcc_s_suffix): Remove variable.
23682
23683 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
23684
23685         * sysdeps/unix/sysv/gethostname.c: Move to ...
23686         * sysdeps/posix/gethostname.c: ... here.
23687
23688         * sysdeps/unix/execve.S: Remove file.
23689
23690         * sysdeps/unix/_exit.S: Remove file.
23691
23692 2012-04-23  Andreas Jaeger  <aj@suse.de>
23693
23694         [BZ #13739]
23695         * manual/Makefile: Remove make dist support, there's no
23696         need for a stand-alone documentation tar ball.
23697         (TEXI2DVI): Define always, it's not in Makeconfig.
23698         (dist): Removed.
23699         (tar-it): Removed.
23700         (edition): Removed.
23701         (glibc-doc-$(edition).tar): Removed
23702         (%.Z): Removed.
23703         (%.gz): Removed.
23704         (%.uu): Removed.
23705         (ETAGS): Remove, it's in Makeconfig.
23706         (move-if-change): Remove, it's in Makeconfig.
23707
23708 2012-04-23  Paul Eggert  <eggert@cs.ucla.edu>
23709
23710         [BZ #13970]
23711         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
23712         (strtod, strtof, strtold, strtol, strtoul, strtoq)
23713         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
23714         (strtod_l, strtof_l, strtold_l): Remove __wur.
23715         It is not necessarily an error to ignore strtol's return value.
23716         One can reliably look at the stored endptr to decide whether
23717         the number had valid syntax.
23718
23719 2012-04-21  Andreas Jaeger  <aj@suse.de>
23720
23721         [BZ #13739]
23722         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
23723
23724 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
23725
23726         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
23727         * sysdeps/unix/sysv/Versions: Remove file.
23728
23729 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
23730
23731         [BZ #13927]
23732         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
23733
23734 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
23735
23736         [BZ #7064]
23737         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
23738         version from __vm86.
23739
23740 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
23741
23742         * sysdeps/unix/common/lxstat.c: Remove file.
23743         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
23744
23745         * sysdeps/unix/sysv/Makefile: Remove file.
23746
23747         * sysdeps/unix/sysv/direct.h: Remove file.
23748
23749         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
23750         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
23751         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
23752         * sysdeps/unix/sysv/bits/signum.h: Likewise.
23753         * sysdeps/unix/sysv/bits/stat.h: Likewise.
23754         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
23755         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
23756
23757         * sysdeps/unix/sysv/setrlimit.c: Remove file.
23758
23759         * sysdeps/unix/xmknod.c: Remove file.
23760         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
23761
23762         * sysdeps/unix/sysv/settimeofday.c: Remove file.
23763
23764         * sysdeps/unix/sysv/i386/time.S: Remove file.
23765
23766         * sysdeps/unix/fxstat.c: Remove file.
23767         * sysdeps/unix/xstat.c: Likewise.
23768         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
23769
23770         * sysdeps/unix/sysv/sigaction.c: Remove file.
23771
23772         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
23773         (sysdep_headers): Remove variable.
23774         [termio.h not in sysdep_headers] (generated): Likewise.
23775         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
23776         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
23777         * sysdeps/unix/sysv/tcdrain.c: Likewise.
23778         * sysdeps/unix/sysv/tcflow.c: Likewise.
23779         * sysdeps/unix/sysv/tcflush.c: Likewise.
23780         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
23781         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
23782         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
23783         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
23784         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
23785
23786         * sysdeps/unix/siglist.c: Remove file.
23787
23788         * sysdeps/unix/getppid.S: Remove file.
23789
23790         * sysdeps/unix/mkdir.c: Remove file.
23791         * sysdeps/unix/rmdir.c: Likewise.
23792
23793 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
23794
23795         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
23796         ERR_MAX value.
23797         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
23798         errlist-compat value.
23799
23800 2012-04-18  David S. Miller  <davem@davemloft.net>
23801
23802         * sysdeps/generic/memcopy.h (reg_char): Delete.
23803         * debug/strcat_chk.c: Use char, not reg_char.
23804         * debug/strcpy_chk.c: Likewise.
23805         * debug/strncat_chk.c: Likewise.
23806         * debug/strncpy_chk.c: Likewise.
23807         * string/memchr.c: Likewise.
23808         * string/memrchr.c: Likewise.
23809         * string/rawmemchr.c: Likewise.
23810         * string/strcat.c: Likewise.
23811         * string/strchr.c: Likewise.
23812         * string/strchrnul.c: Likewise.
23813         * string/strcmp.c: Likewise.
23814         * string/strcpy.c: Likewise.
23815         * string/strncat.c: Likewise.
23816         * string/strncmp.c: Likewise.
23817         * string/strncpy.c: Likewise.
23818
23819 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
23820
23821         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
23822         __builtin_memcopy is called when src and dest ranges are known to not
23823         overlap.
23824
23825 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
23826
23827         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
23828         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
23829         fwd_align_merge macro call.
23830         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
23831         bwd_align_merge macro call.
23832         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
23833
23834 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
23835
23836         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
23837         bwd_align_merge macros.
23838         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
23839         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
23840         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
23841
23842 2012-04-18  David S. Miller  <davem@davemloft.net>
23843
23844         * sysdeps/sparc/sparc64/memcopy.h: Delete.
23845
23846 2012-04-18  Andreas Jaeger  <aj@suse.de>
23847
23848         [BZ# 6794]
23849         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
23850         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
23851         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
23852
23853         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
23854         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
23855         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
23856
23857         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
23858         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
23859         Adjust for changed ldbl-128 files.
23860
23861         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
23862         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
23863         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
23864
23865 2012-04-17  David S. Miller  <davem@davemloft.net>
23866
23867         * sysdeps/sparc/sparc32/memcopy.h: Delete.
23868
23869 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
23870
23871         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
23872         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
23873         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
23874         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
23875         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
23876         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
23877
23878 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
23879
23880         [BZ #6794]
23881         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
23882         * math/libm-test.inc: Add ilogb errno and exception tests.
23883         * math/w_ilogb.c: New file: ilogb wrapper.
23884         * math/w_ilogbf.c: New file: ilogbf wrapper.
23885         * math/w_ilogbl.c: New file: ilogbl wrapper.
23886         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
23887         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
23888         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
23889         exception being thrown with 0.0 as argument.
23890         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
23891         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
23892         exception being thrown with 0.0 as argument.
23893         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
23894         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
23895         exception being thrown with 0.0 as argument.
23896         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
23897         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
23898         exception being thrown with 0.0 as argument.
23899         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
23900         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
23901         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
23902         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
23903         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
23904         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
23905         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
23906         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
23907         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
23908
23909 2012-04-17  Petr Baudis  <pasky@ucw.cz>
23910
23911         * include/sys/uio.h: Change __vector to __iovec to avoid clash
23912         with altivec.
23913
23914 2012-04-16  Marek Polacek  <polacek@redhat.com>
23915
23916         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
23917
23918 2012-04-16  Marek Polacek  <polacek@redhat.com>
23919
23920         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
23921         operands of fdivp instruction.
23922
23923 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
23924
23925         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
23926         * elf/tst-auditmod3b.c: Likewise.
23927         * elf/tst-auditmod4b.c: Likewise.
23928         * elf/tst-auditmod5b.c: Likewise.
23929         * elf/tst-auditmod6b.c: Likewise.
23930         * elf/tst-auditmod6c.c: Likewise.
23931         * elf/tst-auditmod7b.c: Likewise.
23932         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
23933         * sysdeps/x86_64/preconfigure.in: Likewise.
23934         * sysdeps/x86_64/preconfigure: Regenerated.
23935
23936 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
23937
23938         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
23939         __ILP32__.
23940
23941 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
23942
23943         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
23944         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
23945
23946 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
23947
23948         [BZ #13973]
23949         * locale/iso-639.def: Fix gl language name. Spotted by
23950         Yaron Shahrabani.
23951
23952 2012-04-12  Roland McGrath  <roland@hack.frob.com>
23953
23954         [BZ #2074]
23955         * libio/libio.h (__io_write_fn): Update comment.
23956
23957 2012-04-12  Petr Baudis  <pasky@ucw.cz>
23958
23959         [BZ #2074]
23960         * stdio.texi (Hook Functions): The user provided writer function
23961         is not allowed to return -1.
23962
23963 2012-04-11  David S. Miller  <davem@davemloft.net>
23964
23965         * sysdeps/sparc/fpu/libm-test-ulps: Update.
23966
23967 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
23968
23969         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
23970         Add a leading slash to rtkaio.
23971
23972 2012-04-11  Jim Meyering  <meyering@redhat.com>
23973
23974         [BZ #11959]
23975         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
23976         It is not necessarily an error to ignore fwrite's return
23977         value.  One can reliably use ferror to test for errors after
23978         the fact.
23979
23980 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
23981
23982         * bits/types.h (__snseconds_t): New type.
23983         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
23984
23985         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
23986         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
23987         (__SNSECONDS_T_TYPE): Likewise.
23988         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
23989         (__SNSECONDS_T_TYPE): Likewise.
23990         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
23991         (__SNSECONDS_T_TYPE): Likewise.
23992
23993 2012-04-10  Andreas Jaeger  <aj@suse.de>
23994
23995         [BZ #2636]
23996         * manual/time.texi (Processor Time): Return type of times is
23997         elapsed real time since an arbitrary point in the past.
23998         (CPU Time): Move CLK_TCK from here...
23999         (Processor Time): ...to here.  Correct description.
24000         * manual/conf.texi (Constants for Sysconf): Correct description of
24001         _SC_CLK_TCK.
24002
24003 2012-04-10  David S. Miller  <davem@davemloft.net>
24004
24005         [BZ #13967]
24006         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
24007         where the is a gap between DT_REL(A) and DT_JMPREL.
24008
24009 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
24010
24011         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
24012         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
24013         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
24014
24015 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
24016
24017         * elf/dl-support.c (_dl_inhibit_cache): New variable.
24018         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
24019         (dl_main): Handle --inhibit-cache.
24020         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
24021         _dl_inhibit_cache.
24022         * elf/dl-load.c (_dl_map_object): Use it.
24023         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
24024
24025 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
24026
24027         [BZ #13872]
24028         * sysdeps/i386/fpu/e_powl.S (p78): New object.
24029         (__ieee754_powl): Saturate large exponents rather than testing for
24030         overflow of y*log2(x).
24031         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
24032         * math/libm-test.inc (pow_test): Do not permit spurious overflow
24033         exceptions.
24034
24035         [BZ #11521]
24036         * math/s_ctan.c: Include <float.h>.
24037         (__ctan): Avoid internal overflow or cancellation in calculating
24038         denominator.
24039         * math/s_ctanf.c: Likewise.
24040         * math/s_ctanl.c: Likewise.
24041         * math/s_ctanh.c: Likewise.
24042         * math/s_ctanhf.c: Likewise.
24043         * math/s_ctanhl.c: Likewise.
24044         * math/libm-test.inc (ctan_test): Add more tests.
24045         (ctanh_test): Likewise.
24046         * sysdeps/i386/fpu/libm-test-ulps: Update.
24047         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24048
24049 2012-04-09  Andreas Jaeger  <aj@suse.de>
24050
24051         [BZ #6894]
24052         * manual/filesys.texi (Directory Entries): Mention that d_namlen
24053         is an optional BSD extension.
24054
24055         [BZ #10254]
24056         * manual/stdio.texi (Opening Streams): Document additional fopen
24057         parameters.
24058
24059 2012-04-09  Roland McGrath  <roland@hack.frob.com>
24060
24061         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
24062         %eax without telling the compiler.
24063
24064 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
24065
24066         [BZ # 13963]
24067         * manual/install.texi: Use sourceware.org.
24068
24069 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
24070
24071         [BZ #13873]
24072         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
24073         (__ieee754_pow): Generate overflow and underflow using huge*huge
24074         and tiny*tiny rather than just returning constant infinity or zero
24075         for large exponents.
24076         * math/libm-test.inc (pow_test): Require overflow exceptions for
24077         applicable cases of large exponents.
24078
24079         [BZ #706]
24080         * sysdeps/i386/fpu/e_pow.S (p10): New object.
24081         (__ieee754_pow): Use iterative multiplication algorithm only for
24082         integer exponents with absolute value below 1024.  Check for odd
24083         integer exponents when using algorithm for real exponents.
24084         * math/libm-test.inc (pow_test): Add more tests.
24085         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
24086
24087 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
24088
24089         [BZ #13705]
24090         * math/libm-test.inc (exp_test): Do not allow overflow exception
24091         on underflow test.
24092
24093 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
24094
24095         [BZ #13705]
24096         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
24097         instead of __kernel_standard_f.
24098
24099 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
24100
24101         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
24102         * sysdeps/x86_64/memset_chk.S: Likewise.
24103
24104 2012-04-08  Andreas Jaeger  <aj@suse.de>
24105
24106         [BZ #10153]
24107         * manual/startup.texi (Environment Access): Describe return value
24108         for putenv and setenv.
24109
24110         [BZ #6895]
24111         * manual/filesys.texi (Directory Entries): Add description for
24112         DT_LNK.
24113
24114         [BZ #6890]
24115         * manual/filesys.texi (Directory Entries): Clarify that it's file
24116         system not operating system in the description of DT_UNKNOWN.
24117
24118         [BZ #6578]
24119         * manual/syslog.texi (closelog): Fix reference, it's openlog.
24120
24121 2012-04-08  Stephen Compall  <s11@member.fsf.org>
24122
24123         [BZ #6649]
24124         * manual/llio.texi (Opening and Closing Files): Add cross
24125         reference to explain mode argument.
24126
24127 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
24128
24129         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
24130         * sysdeps/x86_64/memset_chk.S: Likewise.
24131
24132 2012-04-07  David S. Miller  <davem@davemloft.net>
24133
24134         * elf/elf.h (R_SPARC_WDISP10): Define.
24135         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
24136         R_SPARC_SIZE32.
24137         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
24138         R_SPARC_SIZE64 and R_SPARC_H34.
24139
24140 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
24141
24142         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
24143         conditions and remove no longer applicable assertion.
24144
24145 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
24146
24147         * bits/byteswap.h: Include <features.h>.
24148         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
24149         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
24150
24151 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
24152
24153         * bits/byteswap.h (__bswap_16): Removed.
24154         Include <bits/byteswap-16.h> to get __bswap_16.
24155         * sysdeps/i386/bits/byteswap.h: Likewise.
24156         * sysdeps/s390/bits/byteswap.h: Likewise.
24157         * sysdeps/x86_64/bits/byteswap.h: Likewise.
24158         * bits/byteswap-16.h: New file.
24159         * sysdeps/i386/bits/byteswap-16.h: Likewise.
24160         * sysdeps/s390/bits/byteswap-16.h: Likewise.
24161         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
24162         * string/Makefile (headers): Add bits/byteswap-16.h.
24163
24164 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
24165
24166         [BZ #13895]
24167         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
24168         extra indirection.
24169         * nss/Makefile (tests-static, tests): Add tst-nss-static.
24170         * nss/tst-nss-static.c: New.
24171
24172 2012-04-06  Robert Millan  <rmh@gnu.org>
24173
24174         [BZ #6486]
24175         * manual/llio.texi (File Position Primitive): lseek
24176         refers to WHENCE when it really means OFFSET.
24177
24178 2012-04-06  Andreas Jaeger  <aj@suse.de>
24179
24180         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
24181         strncmp declarations.
24182
24183         * abilist/libc.abilist: Add __poll and __ppoll.
24184
24185 2012-04-05  David S. Miller  <davem@davemloft.net>
24186
24187         * scripts/check-local-headers.sh: Accept a host triplet in the
24188         path matched by the exclude regexp.
24189
24190         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
24191         definition.
24192         * sysdeps/powerpc/powerpc32/dl-machine.h
24193         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
24194         * sysdeps/s390/s390-32/dl-machine.h
24195         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
24196         * sysdeps/sparc/sparc32/dl-machine.h
24197         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
24198         * sysdeps/sparc/sparc64/dl-machine.h
24199         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
24200
24201         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
24202         lazy binding.
24203         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
24204         undefined symbol errors.
24205
24206         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
24207         DT_NEEDED entries.
24208
24209 2012-04-05  Michael Matz  <matz@suse.de>
24210
24211         [BZ #13592]
24212         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
24213
24214 2012-04-05  Andreas Jaeger  <aj@suse.de>
24215
24216         [BZ #13908]
24217         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
24218         comment.
24219
24220 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
24221
24222         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
24223         which ROUND is no valid rounding mode.
24224
24225 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
24226
24227         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
24228         read again.
24229         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
24230
24231 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
24232
24233         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
24234         an exception using FPU order intentionally.
24235
24236 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
24237
24238         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
24239         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
24240         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
24241         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
24242
24243 2012-04-05  Simon Josefsson  <simon@josefsson.org>
24244
24245         [BZ #12340]
24246         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
24247         EINVAL when BUFLEN is too smal.
24248
24249 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
24250
24251         [BZ #13553]
24252         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
24253         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
24254
24255 2012-04-03  Andreas Jaeger  <aj@suse.de>
24256
24257         [BZ #13938]
24258         * manual/setjmp.texi (System V contexts): Fix sentence.
24259
24260         [BZ #13926]
24261         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
24262         New macro for this case.
24263         [!__GNUC__] (__bswap_64): New inline function for this case.
24264         * sysdeps/x86_64/bits/byteswap.h: Likewise.
24265         * bits/byteswap.h: Likewise.
24266         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
24267         ull, guard with __GLIBC_HAVE_LONG_LONG.
24268
24269         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
24270         __GLIBC_HAVE_LONG_LONG.
24271
24272         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
24273         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
24274
24275 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
24276
24277         [BZ #13691]
24278         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
24279         inptr and inend, rather than using last_ch.
24280
24281 2012-04-02  David S. Miller  <davem@davemloft.net>
24282
24283         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
24284         * stdio-common/printf-parse.h (read_int): Change return type to
24285         'int', return -1 on INT_MAX overflow.
24286         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
24287         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
24288         overflows INT_MAX.  Check for overflow of in-format-string precision
24289         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
24290         SIZE_MAX not INT_MAX for integer overflow test.
24291         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
24292         skip the construct in the format string but do not record anything.
24293         * stdio-common/bug22.c: Adjust to test both width/prevision
24294         INT_MAX overflow as well as total length INT_MAX overflow.  Check
24295         explicitly for proper errno values.
24296
24297 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
24298
24299         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
24300         CHAR_MAX.
24301         * string/test-strcmp.c [! WIDE]: Likewise.
24302         * time/tst-mktime2.c: Likewise for INT_MAX.
24303         * string/test-string.h: #include <sys/param.h> for MIN.
24304
24305         * csu/init-first.c (__libc_init_first): Call __ctype_init.
24306         * sysdeps/i386/init-first.c (init): Likewise.
24307         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
24308         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
24309         * sysdeps/sh/init-first.c (init): Likewise.
24310
24311 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
24312
24313         * po/ru.po: Update from translation team.
24314         * po/vi.po: Likewise.
24315
24316 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
24317
24318         * resolv/nss_dns/dns-host.c: Merge copyright years.
24319
24320 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
24321
24322         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
24323         Optimize memcpy with prefetch if
24324         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
24325         src, dst pointers have unequal 16 byte alignments.
24326
24327 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
24328
24329         [BZ #13928]
24330         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
24331         from a CNAME entry and return the minimum ttl for the query.
24332         (gaih_getanswer_slice): Likewise.
24333
24334 2012-03-30  Jeff Law  <law@redhat.com>
24335
24336         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
24337         due to long keys.
24338         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
24339         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
24340
24341         * resolv/nss_dns/dns-host.c: Update copyright year.
24342
24343 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
24344
24345         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
24346         requests to save a system call.  Fix check that all bytes are sent.
24347
24348         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
24349         comments for sendmmsg.
24350
24351 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
24352
24353         [BZ #13691]
24354         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
24355         with only 1 character between 0x0041 and 0x01b0.
24356         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
24357         * wcsmbs/tst-mbsnrtowcs.c: New file.
24358
24359 2012-03-29  David S. Miller  <davem@davemloft.net>
24360
24361         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
24362         small copies by hand.
24363
24364 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
24365
24366         [BZ #13761]
24367         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
24368         _nss_compat_initgroups_dyn): Fall back to malloc/free
24369         for large group memberships.
24370
24371 2012-03-28  David S. Miller  <davem@davemloft.net>
24372
24373         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
24374         that branches into memcpy.
24375         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
24376         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
24377         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
24378         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
24379         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
24380         bits.
24381         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
24382         implementation too.
24383         * sysdeps/sparc/mempcpy.S: New file.
24384
24385         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
24386         the IFUNC routine in the libc case.
24387         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
24388
24389         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
24390         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
24391         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
24392         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
24393         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
24394         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
24395         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
24396         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
24397
24398         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
24399         loop to 256 bytes instead of 64 bytes and fix test signedness.
24400
24401         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
24402         * sysdeps/sparc/sparc32/Makefile: rather than here...
24403         * sysdeps/sparc/sparc64/Makefile: and here.
24404
24405 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
24406
24407         * malloc/mallocbug.c: Avoid warnings about unused variables.
24408
24409 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
24410
24411         [BZ #13760]
24412         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
24413         in the right place. Discard and retry query if response is
24414         larger than input buffer size.
24415
24416 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
24417
24418         [BZ #369]
24419         [BZ #2678]
24420         [BZ #3866]
24421         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
24422         x for large integer exponent.
24423         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
24424         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
24425         sign of result as needed afterwards.
24426         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
24427         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
24428         result for underflowing pow the same as for overflow.
24429         (__kernel_standard_l): Handle powl overflow and underflow here
24430         rather than calling __kernel_standard.
24431         * math/libm-test.inc (pow_test): Add more tests.
24432
24433         [BZ #3868]
24434         [BZ #13879]
24435         [BZ #13910]
24436         [BZ #13911]
24437         [BZ #13912]
24438         [BZ #13913]
24439         [BZ #13915]
24440         [BZ #13916]
24441         [BZ #13917]
24442         [BZ #13918]
24443         [BZ #13919]
24444         [BZ #13920]
24445         [BZ #13921]
24446         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
24447         * sysdeps/ieee754/k_standard.c: Include <float.h>.
24448         (__kernel_standard_l): New function.
24449         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
24450         __kernel_standard.
24451         * math/w_acosl.c (__acosl): Likewise.
24452         * math/w_asinl.c (__asinl): Likewise.
24453         * math/w_atan2l.c (__atan2l): Likewise.
24454         * math/w_atanhl.c (__atanhl): Likewise.
24455         * math/w_coshl.c (__coshl): Likewise.
24456         * math/w_exp10l.c (__exp10l): Likewise.
24457         * math/w_exp2l.c (__exp2l): Likewise.
24458         * math/w_fmodl.c (__fmodl): Likewise.
24459         * math/w_hypotl.c (__hypotl): Likewise.
24460         * math/w_j0l.c (__j0l, __y0l): Likewise.
24461         * math/w_j1l.c (__j1l, __y1l): Likewise.
24462         * math/w_jnl.c (__jnl, __ynl): Likewise.
24463         * math/w_lgammal.c (__lgammal): Likewise.
24464         * math/w_log10l.c (__log10l): Likewise.
24465         * math/w_log2l.c (__log2l): Likewise.
24466         * math/w_logl.c (__logl): Likewise.
24467         * math/w_powl.c (__powl): Likewise.
24468         * math/w_remainderl.c (__remainderl): Likewise.
24469         * math/w_scalbl.c (sysv_scalbl): Likewise.
24470         * math/w_sinhl.c (__sinhl): Likewise.
24471         * math/w_sqrtl.c (__sqrtl): Likewise.
24472         * math/w_tgammal.c (__tgammal): Likewise.
24473         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
24474         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
24475         * math/libm-test.inc (acos_test): Add more tests.
24476         (acosh_test): Likewise.
24477         (asin_test): Likewise.
24478         (atanh_test): Likewise.
24479         (exp_test): Likewise.
24480         (exp10_test): Likewise.
24481         (exp2_test): Likewise.
24482         (expm1_test): Likewise.
24483         (lgamma_test): Likewise.
24484         (log_test): Likewise.
24485         (log10_test): Likewise.
24486         (log1p_test): Likewise.
24487         (log2_test): Likewise.
24488         (pow_test): Do not allow some spurious overflow exceptions.
24489         (sqrt_test): Add more tests.
24490         (tgamma_test): Likewise.
24491         (y0_test): Likewise.
24492         (y1_test): Likewise.
24493         (yn_test): Likewise.
24494
24495 2012-03-27  Anton Blanchard  <anton@samba.org>
24496
24497         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
24498         MAP_HUGETLB.
24499         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
24500         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
24501         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
24502
24503 2012-03-27  David S. Miller  <davem@davemloft.net>
24504
24505         * conform/Makefile: Run run-conformtest.sh using $(BASH).
24506
24507         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
24508         have-as-vis3 check.
24509
24510 2012-03-27  Andreas Jaeger  <aj@suse.de>
24511
24512         * sysdeps/x86_64/elf/configure.in: Moved to ...
24513         * sysdeps/x86_64/configure.in: ... here.
24514         * sysdeps/x86_64/elf/start.S: Moved to ...
24515         * sysdeps/x86_64/start.S: ... here.
24516         * sysdeps/x86_64/elf/configure: Delete.
24517
24518         * sysdeps/x86_64/configure.in: Merge contents from
24519         sysdeps/i386/configure.in (without i686 check).
24520
24521         * sysdeps/i386/elf/Versions: Merge into ...
24522         * sysdeps/i386/Versions: ... this.
24523         * sysdeps/i386/elf/Versions: Delete file.
24524         * sysdeps/i386/elf/start.S: Moved to ...
24525         * sysdeps/i386/start.S: ...here.
24526         * sysdeps/i386/elf/configure.in: Merge into...
24527         * sysdeps/i386/configure.in: ...here.
24528         * sysdeps/i386/elf/configure.in: Delete file.
24529         * sysdeps/i386/elf/configure: Delete file.
24530
24531         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
24532         * debug/backtracesyms.c: ... here.
24533         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
24534         * debug/backtracesymsfd.c: ... here.
24535         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
24536         * sysdeps/generic/ifunc-sel.h: ... here.
24537
24538         * sysdeps/unix/i386/start.c: Delete file.
24539         * sysdeps/unix/sparc/start.c: Delete file.
24540         * sysdeps/unix/start.c: Delete file.
24541
24542         * sysdeps/sh/elf/configure.in: Moved to ...
24543         * sysdeps/sh/configure.in: ... here.
24544         * sysdeps/sh/elf/start.S: Moved to ...
24545         * sysdeps/sh/start.S: ... here.
24546         * sysdeps/sh/elf/configure: Delete file.
24547
24548         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
24549         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
24550         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
24551         * sysdeps/powerpc/powerpc64/entry.h: ... here.
24552         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
24553         * sysdeps/powerpc/powerpc64/start.S: here.
24554         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
24555         * sysdeps/powerpc/powerpc64/Makefile: ... this.
24556         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
24557         * sysdeps/powerpc/powerpc64/configure.in: ... this.
24558         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
24559
24560         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
24561         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
24562         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
24563         * sysdeps/powerpc/powerpc32/start.S: ... here.
24564         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
24565         * sysdeps/powerpc/powerpc32/configure.in: ... this.
24566         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
24567
24568         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
24569         * sysdeps/powerpc/ifunc-sel.h: ... here.
24570         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
24571         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
24572
24573         * sysdeps/sparc/elf/configure.in: Moved to ...
24574         * sysdeps/sparc/configure.in: ... here.
24575         * sysdeps/sparc/elf/configure: Delete file.
24576         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
24577         * sysdeps/sparc/sparc32/start.S: ... here.
24578         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
24579         * sysdeps/sparc/sparc64/start.S: ... here.
24580         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
24581         * sysdeps/sparc/sparc32/Makefile: ... this.
24582         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
24583         * sysdeps/sparc/sparc64/Makefile: ... this.
24584
24585         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
24586         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
24587         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
24588         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
24589         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
24590         * sysdeps/s390/s390-32/setjmp.S: ... here.
24591         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
24592         * sysdeps/s390/s390-32/configure.in: ... here.
24593         * sysdeps/s390/s390-32/elf/configure: Delete file.
24594         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
24595         * sysdeps/s390/s390-32/start.S: ... here.
24596
24597         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
24598         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
24599         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
24600         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
24601         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
24602         * sysdeps/s390/s390-64/setjmp.S: ... here.
24603         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
24604         * sysdeps/s390/s390-64/configure.in: ... here
24605         * sysdeps/s390/s390-64/elf/configure: Delete file.
24606         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
24607         * sysdeps/s390/s390-64/start.S: ... here.
24608         * sysdeps/s390/s390-64/elf/configure: Delete.
24609
24610         * configure.in: Remove support for elf directories in sysdeps.
24611
24612         * configure: Regenerated.
24613         * sysdeps/i386/configure: Regenerated.
24614         * sysdeps/powerpc/powerpc32/configure: Regenerated.
24615         * sysdeps/powerpc/powerpc64/configure: Regenerated.
24616         * sysdeps/s390/s390-32/configure: Regenerated.
24617         * sysdeps/s390/s390-64/configure: Regenerated.
24618         * sysdeps/sh/configure: Regenerated.
24619         * sysdeps/sparc/configure: Regenerated.
24620         * sysdeps/x86_64/configure: Regenerated.
24621
24622 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
24623
24624         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24625
24626         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
24627         denormal result into account.
24628
24629 2012-03-25  Roland McGrath  <roland@hack.frob.com>
24630
24631         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
24632         Reported by Allan McRae <allan@archlinux.org>.
24633
24634 2012-03-23  Jeff Law  <law@redhat.com>
24635
24636         * nss/getnssent.c (__nss_getent): Fix typo.
24637
24638 2012-03-23  David S. Miller  <davem@davemloft.net>
24639
24640         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24641
24642 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
24643
24644         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
24645         to pad to uint64_t for each field.
24646         (dl_tls_index): Replace unsigned long with uint64_t.
24647
24648 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
24649         Paul Pluzhnikov  <ppluzhnikov@google.com>
24650
24651         [BZ #6528]
24652         * grp/Makefile (otherlibs): Don't set it.
24653         * inet/Makefile (otherlibs): Likewise.
24654         * login/Makefile (otherlibs): Likewise.
24655         * nscd/Makefile (otherlibs): Likewise.
24656         * posix/Makefile (otherlibs): Likewise.
24657         * pwd/Makefile (otherlibs): Likewise.
24658         * rt/Makefile (otherlibs): Likewise.
24659         * sunrpc/Makefile (otherlibs): Likewise.
24660         * nss/Makefile (otherlibs): Likewise.
24661         Add libnss_files to routines and static-only-routines.
24662         ($(objpfx)getent): Remove rule.
24663         * resolv/Makefile: Add libnss_dns and libresolv to routines and
24664         static-only-routines.
24665
24666 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
24667
24668         [BZ #13892]
24669         * math/s_cexp.c: Include <float.h>.
24670         (__cexp): Handle exp result overflowing not necessarily
24671         overflowing both real and imaginary parts of result.
24672         * math/s_cexpf.c: Likewise.
24673         * math/s_cexpl.c: Likewise.
24674         * math/libm-test.inc (cexp_test): Add more tests.
24675         * sysdeps/i386/fpu/libm-test-ulps: Update.
24676         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24677
24678 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
24679
24680         * include/link.h (ELFW): New macro.
24681         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
24682         Replace ELF64_R_TYPE with ELFW(R_TYPE).
24683
24684 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
24685
24686         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
24687         with uint64_t.
24688
24689 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
24690
24691         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
24692         declaration.
24693         (struct La_x32_retval): Likewise.
24694
24695 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
24696
24697         * sysdeps/x86_64/preconfigure.in: New file.
24698         * sysdeps/x86_64/preconfigure: New generated file.
24699
24700 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
24701
24702         [BZ #13824]
24703         * math/e_exp2l.c: Include <float.h>.
24704         (__ieee754_exp2l): Handle overflow and underflow cases
24705         separately.  Only pass fractional part of argument to
24706         __ieee754_expl.
24707         * math/libm-test.inc (exp2_test): Add more tests.
24708
24709         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
24710         negating x to take absolute value.
24711         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
24712         Likewise.
24713         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
24714         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
24715         Likewise.
24716         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
24717         computing low part if x was negated.
24718         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
24719
24720 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
24721
24722         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
24723         la_x32_gnu_pltexit.
24724         (pltexit): Cast int_retval to ptrdiff_t.
24725         * elf/tst-auditmod3b.c: Likewise.
24726         * elf/tst-auditmod4b.c: Likewise.
24727         * elf/tst-auditmod5b.c: Likewise.
24728         * elf/tst-auditmod6b.c: Likewise.
24729         * elf/tst-auditmod6c.c: Likewise.
24730         * elf/tst-auditmod7b.c: Likewise.
24731
24732         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
24733         and x32_gnu_pltexit.
24734
24735         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
24736         __ELF_NATIVE_CLASS.
24737         (La_x32_regs): New macro.
24738         (La_x32_retval): Likewise.
24739         (la_x32_gnu_pltenter): New function prototype.
24740         (la_x32_gnu_pltexit): Likewise.
24741
24742 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
24743
24744         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
24745         exponent.
24746
24747         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
24748
24749         * configure.in (libc_cv_cc_nofma): Check for option to disable
24750         generation of FMA instructions.
24751         * configure: Regenerate.
24752         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
24753         * sysdeps/ieee754/dbl-64/Makefile: New file.
24754         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
24755         Remove brandred-fma4.
24756         (CFLAGS-brandred-fma4.c): Remove.
24757         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
24758         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
24759         define.
24760         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
24761         define.
24762
24763 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
24764
24765         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
24766         LLONG_MAX != LONG_MAX.
24767         (_itoa_word): Use _ITOA_WORD_TYPE on value.
24768         (_fitoa_word): Likewise.
24769         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
24770         LLONG_MAX != LONG_MAX.
24771         * stdio-common/_itowa.h: Include <_itoa.h>.
24772         (_itowa_word): Use _ITOA_WORD_TYPE on value.
24773         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
24774         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
24775         only if not defined.
24776         (_ITOA_WORD_TYPE): Likewise.
24777         (_itoa_word): Use _ITOA_WORD_TYPE on value.
24778         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
24779
24780 2012-03-21  David S. Miller  <davem@davemloft.net>
24781
24782         * sysdeps/sparc/fpu/libm-test-ulps: Update.
24783
24784 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
24785
24786         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
24787         of x86_64 when setting libc_cv_slibdir, libdir and
24788         libc_cv_localedir.
24789         * sysdeps/unix/sysv/linux/configure: Regenerated.
24790
24791 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
24792
24793         * manual/lang.texi (Old Varargs): Remove section.
24794         (How Variadic): Update menu.
24795         (va_start): Do not mention varargs.h.
24796
24797 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
24798             Joseph Myers  <joseph@codesourcery.com>
24799
24800         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
24801         link test.
24802         * configure: Regenerated.
24803
24804 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
24805
24806         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
24807         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
24808         conformtest.pl
24809
24810 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
24811
24812         * NOTES: Remove.
24813         * Makefile (files-for-dist): Remove NOTES.
24814         (NOTES): Remove rule.
24815         * README: Don't refer to NOTES.
24816         * manual/creature.texi: Don't include macros.texi.
24817         * manual/intro.texi (creature.texi): Remove comment referring to
24818         NOTES.
24819
24820         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
24821         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
24822         * configure: Regenerated.
24823         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
24824         LIBC_TRY_CC_OPTION.
24825         (libc_cv_as_i686): Likewise.
24826         (libc_cv_cc_avx): Likewise.
24827         (libc_cv_cc_sse2avx): Likewise.
24828         (libc_cv_cc_fma4): Likewise.
24829         (libc_cv_cc_novzeroupper): Likewise.
24830         * sysdeps/i386/configure: Regenerated.
24831
24832         [BZ #13883]
24833         * sysdeps/i386/fpu/s_cexp.S: Remove.
24834         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
24835         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
24836         * math/libm-test.inc (cexp_test): Add more tests.
24837         * sysdeps/i386/fpu/libm-test-ulps: Update.
24838         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
24839
24840 2012-03-21  Allan McRae  <allan@archlinux.org>
24841
24842         * timezone/Makefile: Do not install iso3166.tab and zone.tab
24843
24844 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
24845
24846         [BZ #13871]
24847         * math/w_exp2.c: Do not include <float.h>.
24848         (o_threshold, u_threshold): Remove.
24849         (__exp2): Calculate result before checking finiteness and calling
24850         __kernel_standard.
24851         * math/w_exp2f.c: Likewise.
24852         * math/w_exp2l.c: Likewise.
24853         * math/libm-test.inc (exp2_test): Require overflow exception for
24854         1e6 input.
24855
24856         [BZ #3866]
24857         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
24858         range of signed 64-bit integers before using fistpll.  Remove
24859         checks for whether integers fit in mantissa bits.
24860         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
24861         the range of signed 32-bit integers before using fistpl.  Remove
24862         checks for whether integers fit in mantissa bits.
24863         * sysdeps/i386/fpu/e_powl.S (p64): New object.
24864         (__ieee754_powl): Test for y outside the range of signed 64-bit
24865         integers before using fistpll.  Reduce 64-bit values to 63-bit
24866         ones as needed.
24867         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
24868         divide-by-zero is raised for zero to large negative powers.
24869         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
24870         (__ieee754_powl): Test for y outside the range of signed 64-bit
24871         integers before using fistpll.  Reduce 64-bit values to 63-bit
24872         ones as needed.
24873         * math/libm-test.inc (pow_test): Add more tests.
24874
24875 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24876
24877         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
24878         <stdio-common/_itoa.h>.
24879         * debug/segfault.c: Likewise.
24880         * elf/dl-cache.c: Likewise.
24881         * elf/dl-minimal.c: Likewise.
24882         * elf/dl-misc.c: Likewise.
24883         * elf/dl-sysdep.c: Likewise.
24884         * elf/dl-version.c: Likewise.
24885         * elf/rtld.c: Likewise.
24886         * hurd/hurdsock.c: Likewise.
24887         * hurd/lookup-retry.c: Likewise.
24888         * malloc/malloc.c: Likewise.
24889         * malloc/mtrace.c: Likewise.
24890         * nscd/nscd_getgr_r.c: Likewise.
24891         * nscd/nscd_getpw_r.c: Likewise.
24892         * nscd/nscd_getserv_r.c: Likewise.
24893         * posix/getopt_init.c: Likewise.
24894         * posix/wordexp.c: Likewise.
24895         * stdio-common/_itoa.c: Likewise.
24896         * stdio-common/printf_fphex.c: Likewise.
24897         * stdio-common/vfprintf.c: Likewise.
24898         * string/_strerror.c: Likewise.
24899         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
24900         * sysdeps/i386/i686/hp-timing.h: Likewise.
24901         * sysdeps/mach/_strerror.c: Likewise.
24902         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
24903         * sysdeps/mach/hurd/sethostid.c: Likewise.
24904         * sysdeps/mach/hurd/xmknodat.c: Likewise.
24905         * sysdeps/mach/xpg-strerror.c: Likewise.
24906         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
24907         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
24908         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
24909         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
24910         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
24911         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
24912         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
24913         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
24914         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
24915         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
24916         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
24917         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
24918         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
24919         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
24920         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
24921         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
24922         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
24923         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
24924         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
24925         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
24926         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
24927
24928         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
24929
24930         * stdio-common/_itoa.h: Moved to ...
24931         * sysdeps/generic/_itoa.h: Here.
24932
24933         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
24934
24935         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
24936         instead of "_itoa.h" and "_itowa.h".
24937         * stdio-common/vfprintf.: Likewise.
24938
24939 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24940
24941         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
24942         <bits/wordsize.h>.
24943         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
24944         (__signbit): Likwise.
24945         (llrintf): Likwise.
24946         (llrint): Likwise.
24947
24948 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
24949
24950         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
24951         __WORDSIZE != 64.
24952
24953 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
24954
24955         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
24956         OVERFLOW_EXCEPTION_OK.
24957         * math/libm-test.inc ("Philosophy"): Update comment about
24958         exception testing.
24959         (OVERFLOW_EXCEPTION): Define.
24960         (OVERFLOW_EXCEPTION_OK): Likewise.
24961         (INVALID_EXCEPTION_OK): Renumber.
24962         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
24963         (IGNORE_ZERO_INF_SIGN): Likewise.
24964         (test_exceptions): Handle FE_OVERFLOW.
24965         (exp10_test): Expect overflow exceptions.
24966         (exp2_test): Likewise.
24967         (expm1_test): Likewise.
24968         (nextafter_test): Likewise.
24969         (pow_test): Likewise.
24970         (scalbn_test): Likewise.
24971         (scalbln_test): Likewise.
24972
24973 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24974
24975         * sysdeps/x86_64/bits/atomic.h
24976         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
24977         64bit integer.
24978         (atomic_exchange_acq): Likewise.
24979         (__arch_exchange_and_add_body): Likewise.
24980         (__arch_add_body): Likewise.
24981         (atomic_add_negative): Likewise.
24982         (atomic_add_zero): Likewise.
24983
24984 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24985
24986         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
24987         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
24988
24989 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24990
24991         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
24992         Check __x86_64__ instead of __WORDSIZE.
24993
24994 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
24995
24996         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
24997
24998 2012-03-19  David S. Miller  <davem@davemloft.net>
24999
25000         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25001
25002         * sysdeps/sparc/fpu/fenv_private.h: New file.
25003         * sysdeps/sparc/fpu/math_private.h: Use it.
25004         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
25005         Remove.
25006         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
25007         (libc_feholdexcept_setroundl): Remove.
25008         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
25009         Remove.
25010         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
25011         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
25012
25013 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
25014
25015         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
25016         int64_t instead of long int.
25017         (INSERT_WORDS64): Likwise.
25018
25019 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
25020
25021         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
25022         _Unwind_GetCFA return to _Unwind_Ptr first.
25023
25024 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
25025
25026         [BZ #13629]
25027         * math/s_clog.c: Include <float.h>.
25028         (__clog): Scale large or subnormal inputs.
25029         * math/s_clogf.c: Likewise.
25030         * math/s_clogl.c: Likewise.
25031         * math/s_clog10.c: Include <float.h>.
25032         (M_LOG10_2): Define.
25033         (__clog10): Scale large or subnormal inputs.
25034         * math/s_clog10f.c: Likewise.
25035         * math/s_clog10l.c: Likewise.
25036         * math/libm-test.inc (clog_test): Add more tests.
25037         (clog10_test): Likewise.
25038         * sysdeps/i386/fpu/libm-test-ulps: Update.
25039         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25040
25041         [BZ #11451]
25042         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
25043         x and y.
25044         * math/libm-test.inc (atan2_test): Add another test.
25045
25046         * Makerules (common-objdir-compile): Remove.
25047         * sysdeps/unix/Makefile (config-generated): Do not add
25048         $(unix-generated) to variable.
25049         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
25050         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
25051         Remove rule.
25052         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
25053         Likewise.
25054         [generic bits/local_lim.h] (before-compile): Do not append to
25055         variable.
25056         [generic bits/local_lim.h] (common-generated): Likewise.
25057         [generic sys/param.h] (before-compile): Do not append to variable.
25058         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
25059         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
25060         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
25061         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
25062         include.
25063         [generic sys/param.h] (sys/param.h-includes): Remove variable.
25064         [generic sys/param.h] (sys/param.h-includes): Remove rule.
25065         [generic sys/param.h] ($(addprefix
25066         $(common-objpfx),$(sys/param.h-includes))): Likewise.
25067         [generic sys/param.h] (common-generated): Do not append to
25068         variable.
25069         [generic sys/param.h] (sysdep_headers): Likewise.
25070         [generic bits/errno.h] (before-compile): Do not append to
25071         variable.
25072         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
25073         rule.
25074         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
25075         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
25076         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
25077         [generic bits/errno.h] (common-generated): Do not append to
25078         variable.
25079         [generic bits/ioctls.h] (before-compile): Do not append to
25080         variable.
25081         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
25082         rule.
25083         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
25084         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
25085         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
25086         rule.
25087         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
25088         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
25089         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
25090         [generic bits/ioctls.h] (common-generated): Do not append to
25091         variable.
25092         [generic sys/syscall.h] (syscall.h): Remove variable.
25093         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
25094         rule.
25095         [generic sys/syscall.h] (before-compile): Do not append to
25096         variable.
25097         [generic sys/syscall.h] (common-generated): Likewise.
25098         * sysdeps/unix/errnos-tmpl.c: Remove file.
25099         * sysdeps/unix/errnos.awk: Likewise.
25100         * sysdeps/unix/ioctls-tmpl.c: Likewise.
25101         * sysdeps/unix/ioctls.awk: Likewise.
25102         * sysdeps/unix/mk-local_lim.c: Likewise.
25103         * sysdeps/unix/snarf-ioctls: Likewise.
25104
25105 2012-03-19  Richard Henderson  <rth@twiddle.net>
25106
25107         * sysdeps/i386/fpu/fenv_private.h: New file.
25108         * sysdeps/i386/fpu/math_private.h: Use it.
25109         (math_opt_barrier, math_force_eval): Remove.
25110         (libc_feholdexcept_setround_53bit): Remove.
25111         (libc_feupdateenv_53bit): Remove.
25112         * sysdeps/x86_64/fpu/math_private.h: Likewise.
25113         (math_opt_barrier, math_force_eval): Remove.
25114         (libc_feholdexcept): Remove.
25115         (libc_feholdexcept_setround): Remove.
25116         (libc_fetestexcept, libc_fesetenv): Remove.
25117         (libc_feupdateenv_test): Remove.
25118         (libc_feupdateenv, libc_feholdsetround): Remove.
25119         (libc_feresetround): Remove.
25120
25121         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
25122         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
25123
25124         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
25125         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
25126         (libc_feupdateenv_testl): New.
25127         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
25128         (libc_feupdateenv_testf): New.
25129         (libc_feupdateenv): Use libc_feupdateenv_test.
25130         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
25131         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
25132
25133         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
25134         (libc_feholdsetroundf, libc_feholdsetroundl): New.
25135         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
25136         (libc_feresetround_noex): New.
25137         (libc_feresetround_noexf): New.
25138         (libc_feresetround_noexl): New.
25139         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
25140         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
25141         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
25142         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
25143         SET_RESTORE_ROUND.
25144         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
25145         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
25146         (__cos): Likewise.
25147         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
25148         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
25149         SET_RESTORE_ROUND_NOEX.
25150         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
25151         SET_RESTORE_ROUND_NOEXF.
25152         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
25153         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
25154         (libc_feholdsetroundf): New.
25155         (libc_feresetround, libc_feresetroundf): New.
25156
25157         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
25158         (libc_feholdexcept_setround_53bit): Convert from macro to function.
25159         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
25160
25161         * sysdeps/generic/math_private.h: Include <fenv.h>.
25162         (default_libc_feholdexcept): New.
25163         (default_libc_feholdexcept_setround): New.
25164         (default_libc_fesetenv, default_libc_feupdateenv): New.
25165         (libc_feholdexcept): Only define if undefined.
25166         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
25167         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
25168         (libc_feholdexcept_setroundl): Likewise.
25169         (libc_feholdexcept_setround_53bit): Likewise.
25170         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
25171         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
25172         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
25173         (libc_feupdateenv_53bit): Likewise.
25174         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
25175         (libc_feholdexcept): Convert from macro to inline function.
25176         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
25177         (libc_fesetenv, libc_feupdateenv): Likewise.
25178
25179         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
25180         not previously defined.
25181         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
25182         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
25183         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
25184         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
25185         * sysdeps/ieee754/flt-32/math_private.h: New file.
25186         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
25187         math_private.h below SET_FLOAT_WORD.
25188         (__isnan, __isinf_ns, __finite): Remove.
25189         (__isnanf, __isinf_nsf, __finitef): Remove.
25190
25191 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
25192
25193         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25194
25195 2012-03-17  David S. Miller  <davem@davemloft.net>
25196
25197         [BZ #6471]
25198         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
25199         for 2.16.
25200
25201 2012-03-16  David S. Miller  <davem@davemloft.net>
25202
25203         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
25204         warnings.
25205
25206         [BZ #6471]
25207         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
25208         properly.
25209         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
25210         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
25211         sysdep_routines when subdir is sysvipc.
25212         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
25213         __getshmlba helper.
25214
25215         * sysdeps/sparc/fpu/libm-test/ulps: Update.
25216
25217 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25218
25219         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
25220         [__LP64__].
25221
25222 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25223
25224         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
25225         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
25226         (__lround): Renamed to ...
25227         (__llround): This.  Replace long int with long long int.
25228         Define lround functions as aliases of llround functions.
25229         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
25230
25231 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25232
25233         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
25234         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
25235         adresses to uintptr_t.  Replace "long int" and "unsigned long
25236         int" with "greg_t" on va_arg.
25237
25238 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25239
25240         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
25241         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
25242
25243         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
25244         Move e_machine check before EI_CLASS check.  Handle x32
25245         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
25246         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
25247         SKIP_EM_IA_64 and include
25248         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
25249
25250         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
25251         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
25252         (add_system_dir): New macro.
25253
25254         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
25255         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
25256
25257 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
25258
25259         [BZ #2551]
25260         [BZ #2552]
25261         [BZ #2553]
25262         [BZ #2554]
25263         [BZ #2562]
25264         [BZ #2563]
25265         [BZ #2565]
25266         [BZ #2566]
25267         [BZ #2576]
25268         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
25269         (y0): Likewise.
25270         * math/w_j0f.c (j0f): Likewise.
25271         (y0f): Likewise.
25272         * math/w_j0l.c (__j0l): Likewise.
25273         (__y0l): Likewise.
25274         * math/w_j1.c (j1): Likewise.
25275         (y1): Likewise.
25276         * math/w_j1f.c (j1f): Likewise.
25277         (y1f): Likewise.
25278         * math/w_j1l.c (__j1l): Likewise.
25279         (__y1l): Likewise.
25280         * math/w_jn.c (jn): Likewise.
25281         (yn): Likewise.
25282         * math/w_jnf.c (jnf): Likewise.
25283         (ynf): Likewise.
25284         * math/w_jnl.c (__jnl): Likewise.
25285         (__ynl): Likewise.
25286         * math/libm-test.inc (j0_test): Add more tests.
25287         (j1_test): Likewise.
25288         (jn_test): Likewise.  Add trailing semicolon to existing test.
25289         (y0_test): Likewise.
25290         (y1_test): Likewise.
25291         * sysdeps/i386/fpu/libm-test-ulps: Update.
25292         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25293
25294         [BZ #13851]
25295         [BZ #13854]
25296         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
25297         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
25298         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
25299         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
25300         (__tanl): Set errno for infinite argument.
25301         * sysdeps/i386/fpu/mptan.c: Remove.
25302         * sysdeps/i386/fpu/s_tan.S: Likewise.
25303         * sysdeps/i386/fpu/s_tanl.S: Likewise.
25304         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
25305         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
25306         * math/libm-test.inc (tan_test): Add more tests and enable more
25307         tests for double and long double.
25308         * sysdeps/i386/fpu/libm-test-ulps: Update.
25309         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25310
25311 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
25312
25313         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
25314         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
25315
25316 2012-03-16  Roland McGrath  <roland@hack.frob.com>
25317
25318         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
25319         * configure.in: Use it for both main tree and add-ons.
25320         * configure: Regenerated.
25321
25322 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
25323
25324         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
25325
25326 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
25327
25328         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
25329         in comment.
25330
25331         [BZ #13851]
25332         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
25333         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
25334         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
25335         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
25336         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
25337         infinite argument.
25338         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
25339         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
25340         != 0 for prec == 2.
25341         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
25342         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
25343         * sysdeps/i386/fpu/s_cosl.S: Likewise.
25344         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
25345         * sysdeps/i386/fpu/s_sinl.S: Likewise.
25346         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
25347         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
25348         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
25349         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
25350         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
25351         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
25352         * math/libm-test.inc (cos_test): Add more tests and enable more
25353         tests for long double.
25354         (sin_test): Likewise.
25355         (sincos_test): Likewise.
25356         * sysdeps/i386/fpu/libm-test-ulps: Update.
25357         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25358
25359 2012-03-16  David S. Miller  <davem@davemloft.net>
25360
25361         * sysdeps/sparc/fpu/math_private.h: New file.
25362
25363 2012-03-15  David S. Miller  <davem@davemloft.net>
25364
25365         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
25366         file.
25367         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
25368         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
25369         file.
25370         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
25371         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
25372         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
25373         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
25374         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
25375         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
25376         sysdep routines.
25377         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
25378
25379         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
25380         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
25381
25382         * sysdeps/sparc/sparc-ifunc.h: New file.
25383         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
25384         sparc-ifunc.h
25385         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
25386         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
25387         Likewise.
25388         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
25389         Likewise.
25390         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
25391         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
25392         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
25393         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
25394         Likewise.
25395         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
25396         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
25397         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
25398         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
25399         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
25400         Likewise.
25401         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
25402         Likewise.
25403         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
25404         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
25405         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
25406         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
25407         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
25408         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
25409         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
25410         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
25411         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
25412         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
25413         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
25414         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
25415         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
25416         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
25417         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
25418         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
25419         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
25420         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
25421         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
25422         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
25423         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
25424         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
25425         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
25426         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
25427
25428 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
25429
25430         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
25431         scaling.
25432         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25433
25434 2012-03-15  Andreas Jaeger  <aj@suse.de>
25435
25436         [BZ #13852]
25437         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
25438         ieee754/flt-32 implementation for sin, cos and sincos.
25439         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
25440         * sysdeps/i386/fpu/s_cosf.S: Likewise.
25441         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
25442         * sysdeps/i386/fpu/s_sinf.S: Likewise.
25443         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
25444         ieee754/flt-32 implementation for tan.
25445
25446         * math/libm-test.inc (cos_test): Enable some large input tests for
25447         float as well
25448         (sin_test): Likewise.
25449         (sincos_test): Likewise.
25450         (tan_test): Add tests for large input.
25451
25452         * sysdeps/i386/fpu/libm-test-ulps: Update.
25453
25454 2012-03-15  Andreas Jaeger  <aj@suse.de>
25455
25456         [BZ #13658]
25457         * math/libm-test.inc (cos_test): Add more test cases.
25458         (sin_test): Likewise.
25459         (sincos_test): Likewise.
25460
25461 2012-03-15  Andreas Jaeger  <aj@suse.de>
25462
25463         [BZ #13837]
25464         * math/libm-test.inc (cos_test): Add a test case for large input
25465         value.
25466         (sin_test): Likewise.
25467         (sincos_test): Likewise.
25468
25469 2012-03-15  Andreas Jaeger  <aj@suse.de>,
25470         Joseph Myers  <joseph@codesourcery.com>
25471
25472         [BZ #13658]
25473         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
25474         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
25475         * sysdeps/i386/fpu/branred.c: Likewise.
25476         * sysdeps/i386/fpu/dosincos.c: Likewise.
25477         * sysdeps/i386/fpu/mpa.c: Likewise.
25478         * sysdeps/i386/fpu/s_cos.S: Likewise.
25479         * sysdeps/i386/fpu/s_sin.S: Likewise.
25480         * sysdeps/i386/fpu/s_sincos.S: Likewise.
25481         * sysdeps/i386/fpu/sincos32.c: Likewise.
25482
25483         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
25484         Define.
25485         (libc_feupdateenv_53bit): Define.
25486         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
25487         Define.
25488         (libc_feupdateenv_53bit): Define.
25489
25490         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
25491         53 bit (without extend i386 double precision).
25492
25493         * math/libm-test.inc (sincos_test): Add tests for large input.
25494         (sin): Likewise.
25495         (cos): Likewise.
25496
25497         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
25498
25499 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
25500
25501         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25502
25503 2012-03-15  David S. Miller  <davem@davemloft.net>
25504
25505         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
25506         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
25507         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
25508         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
25509         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
25510         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
25511         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
25512         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
25513         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
25514         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
25515         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
25516         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
25517         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
25518         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
25519         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
25520         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
25521         file.
25522         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
25523         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
25524         file.
25525         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
25526         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
25527         file.
25528         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
25529         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
25530         file.
25531         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
25532         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
25533         fmin/fmax sysdep routines.
25534         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
25535
25536 2012-03-14  David S. Miller  <davem@davemloft.net>
25537
25538         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
25539         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
25540         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
25541         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
25542         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
25543         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
25544         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
25545         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
25546         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
25547         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
25548         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
25549         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
25550         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
25551         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
25552         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
25553         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
25554         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
25555         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
25556         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
25557         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
25558         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
25559         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
25560         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
25561         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
25562         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
25563         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
25564         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
25565         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
25566         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
25567         routines.
25568         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
25569         file.
25570         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
25571         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
25572         file.
25573         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
25574         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
25575         file.
25576         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
25577         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
25578         file.
25579         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
25580         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
25581         file.
25582         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
25583         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
25584         file.
25585         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
25586         file.
25587         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
25588         file.
25589         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
25590         file.
25591         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
25592         New file.
25593         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
25594         file.
25595         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
25596         file.
25597         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
25598         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
25599         file.
25600         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
25601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
25602         file.
25603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
25604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
25605         file.
25606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
25607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
25608         VIS3 routines.
25609
25610         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
25611         New file.
25612
25613         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25614
25615         * sysdeps/sparc/configure.in: New file.
25616         * sysdeps/sparc/configure: Generate.
25617         * configure.in (libc_cv_sparc_as_vis3): Substitute.
25618         * configure: Regenerate.
25619         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
25620         * config.make.in (have-as-vis3): New.
25621         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
25622         available use -Av9d instead of -Av9a.
25623         * sysdeps/sparc/sparc64/Makefile: Likewise.
25624         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
25625         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
25626         New file.
25627         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
25628         file.
25629         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
25630         New file.
25631         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
25632         file.
25633         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
25634         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
25635         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
25636         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
25637         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
25638
25639         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
25640         fzeros/fnegs to load 0x80000000 into a float register instead of
25641         using the stack.
25642         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
25643
25644 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
25645
25646         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
25647         bits/syscall.h.
25648         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
25649         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
25650         ($(inst_includedir)/bits/syscall.h): Remove rule.
25651         ($(objpfx)bits/syscall.d): Include instead of
25652         $(objpfx)syscall-list.d.
25653         (generated): Change syscall-list.h and syscall-list.d to
25654         bits/syscall.h and bits/syscall.d.
25655
25656 2012-03-14  Roland McGrath  <roland@hack.frob.com>
25657
25658         [BZ #13846]
25659         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
25660
25661 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
25662
25663         [BZ #13841]
25664         * math/s_csqrt.c: Include <float.h>.
25665         (__csqrt): Scale large or subnormal inputs.
25666         * math/s_csqrtf.c: Likewise.
25667         * math/s_csqrtl.c: Likewise.
25668         * math/libm-test.inc (csqrt_test): Add more tests.
25669         * sysdeps/i386/fpu/libm-test-ulps: Update.
25670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
25671
25672         [BZ #13840]
25673         * math/libm-test.inc (hypot_test): Add more tests.
25674
25675 2012-03-13  David S. Miller  <davem@davemloft.net>
25676
25677         [BZ #13840]
25678         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
25679         double-precision for the calculation instead of scaling.
25680
25681 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
25682
25683         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
25684         manipulate bits before adding and subtracting TWO52[sx].
25685         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
25686         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
25687         Likewise.
25688         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
25689
25690 2012-03-13  David S. Miller  <davem@davemloft.net>
25691
25692         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
25693         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
25694         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
25695         rtld-global-offsets.h
25696         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
25697
25698         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
25699         large parameters.
25700
25701         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
25702
25703         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
25704         'err' in the ifdef scope in which it is actually used.
25705
25706         * nss/nss_db/db-init.c: Include string.h
25707
25708 2012-03-12  David S. Miller  <davem@davemloft.net>
25709
25710         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
25711         masking out of the most significant byte of random value used.
25712         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
25713         Fix coding style in previous change.
25714
25715         * sysdeps/unix/sysv/linux/kernel-features.h
25716         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
25717         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
25718         expression.
25719         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
25720         later.
25721
25722 2012-03-11  David S. Miller  <davem@davemloft.net>
25723
25724         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
25725         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
25726         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
25727         for 'resultvar' otherwise things get truncated on 64-bit.
25728
25729         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
25730         Fix masking out of the most significant byte of random value used.
25731
25732         * sysdeps/sparc/fpu/libm-test-ulps: Update.
25733
25734 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
25735
25736         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
25737
25738 2012-03-09  David S. Miller  <davem@davemloft.net>
25739
25740         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
25741         variables with appropriate CPP guards.
25742         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
25743         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
25744         on resulting framesize and the management of the outregs buffer for pltexit.
25745         Preserve floating point return values across _dl_call_pltexit call.
25746         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
25747         framesize and the management of the outregs buffer for pltexit.
25748         Preserve floating point return values across _dl_call_pltexit
25749         call.
25750         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
25751         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
25752         (print_exit): Fix format string for return register value.
25753
25754 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
25755
25756         * sunrpc/Makefile (others): Add rpcgen.
25757         ($(objpfx)rpcgen): Remove special build rule and dependency on
25758         libc.
25759         * sunrpc/rpcgen.c: New file.
25760
25761 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
25762
25763         [BZ #13673]
25764         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
25765         * stdio-common/bug-vfprintf-nargs.c: Likewise.
25766         * sysdeps/i386/crti.S: Likewise.
25767         * sysdeps/i386/crtn.S: Likewise.
25768         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
25769         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
25770         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
25771         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
25772         * sysdeps/sh/crti.S: Likewise.
25773         * sysdeps/sh/crtn.S: Likewise.
25774         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
25775
25776         [BZ #13673]
25777         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
25778         with URL.
25779         * locale/programs/locfile-kw.gperf: Likewise.
25780         * locale/programs/charmap-kw.h: Regenerated.
25781         * locale/programs/locfile-kw.h: Likewise.
25782
25783         [BZ #13673]
25784         * intl/plural.y: Replace FSF snail mail address with URL.
25785         * intl/plural.c: Regenerated.
25786
25787 2012-03-09  Richard Henderson  <rth@twiddle.net>
25788
25789         * include/math_private.h: Remove file.
25790         * math/math_private.h: Move file ...
25791         * sysdeps/generic/math_private.h: ... here.
25792
25793         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
25794         * sysdeps/powerpc/fpu/math_private.h: Likewise.
25795         * sysdeps/x86_64/fpu/math_private.h: Likewise.
25796
25797         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
25798         and <math_private.h>.
25799         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
25800         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
25801         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
25802         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
25803         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
25804         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
25805         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
25806         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
25807         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
25808         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
25809         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
25810         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
25811         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
25812         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
25813         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
25814         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
25815         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
25816         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
25817         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
25818         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
25819         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
25820         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
25821         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
25822         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
25823         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
25824         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
25825         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
25826         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
25827         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
25828         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
25829         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
25830         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
25831         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
25832         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
25833         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
25834         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
25835         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
25836         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
25837         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
25838         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
25839         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
25840         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
25841         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
25842         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
25843         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
25844         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
25845         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
25846         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
25847         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
25848         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
25849         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
25850         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
25851         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
25852         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
25853         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
25854         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
25855         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
25856         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
25857         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
25858         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
25859         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
25860         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
25861         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
25862         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
25863         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
25864         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
25865         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
25866         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
25867         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
25868         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
25869         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
25870         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
25871         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
25872         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
25873         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
25874         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
25875         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
25876         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
25877         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
25878         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
25879         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
25880         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
25881         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
25882         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
25883         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
25884         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
25885         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
25886         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
25887         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
25888         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
25889         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
25890         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
25891         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
25892         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
25893         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
25894         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
25895         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
25896         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
25897         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
25898         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
25899         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
25900         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
25901         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
25902         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
25903         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
25904         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
25905         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
25906         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
25907         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
25908         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
25909         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
25910         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
25911         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
25912         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
25913         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
25914         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
25915         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
25916         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
25917         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
25918         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
25919         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
25920         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
25921         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
25922         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
25923         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
25924         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
25925         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
25926         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
25927         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
25928         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
25929         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
25930         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
25931         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
25932         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
25933         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
25934         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
25935         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
25936         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
25937         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
25938         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
25939         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
25940         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
25941         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
25942         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
25943         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
25944         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
25945         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
25946         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
25947         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
25948         * sysdeps/ieee754/k_standard.c: Likewise.
25949         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
25950         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
25951         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
25952         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
25953         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
25954         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
25955         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
25956         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
25957         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
25958         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
25959         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
25960         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
25961         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
25962         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
25963         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
25964         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
25965         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
25966         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
25967         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
25968         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
25969         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
25970         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
25971         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
25972         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
25973         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
25974         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
25975         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
25976         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
25977         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
25978         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
25979         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
25980         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
25981         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
25982         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
25983         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
25984         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
25985         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
25986         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
25987         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
25988         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
25989         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
25990         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
25991         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
25992         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
25993         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
25994         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
25995         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
25996         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
25997         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
25998         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
25999         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
26000         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
26001         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
26002         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
26003         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
26004         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
26005         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
26006         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
26007         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
26008         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
26009         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
26010         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
26011         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
26012         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
26013         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
26014         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
26015         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
26016         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
26017         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
26018         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
26019         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
26020         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
26021         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
26022         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
26023         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
26024         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
26025         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
26026         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
26027         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
26028         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
26029         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
26030         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
26031         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
26032         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
26033         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
26034         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
26035         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
26036         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
26037         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
26038         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
26039         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
26040         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
26041         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
26042         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
26043         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
26044         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
26045         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
26046         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
26047         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
26048         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
26049         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
26050         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
26051         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
26052         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
26053         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
26054         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
26055         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
26056         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
26057         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
26058         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
26059         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
26060         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
26061         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
26062         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
26063         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
26064         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
26065         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
26066         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
26067         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
26068         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
26069         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
26070         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
26071         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
26072         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
26073         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
26074         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
26075         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
26076         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
26077         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
26078         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
26079         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
26080         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
26081         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
26082         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
26083         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
26084         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
26085         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
26086         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
26087         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
26088         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
26089         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
26090         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
26091         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
26092         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
26093         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
26094         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
26095         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
26096         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
26097         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
26098         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
26099         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
26100         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
26101         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
26102         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
26103         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
26104         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
26105         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
26106         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
26107         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
26108         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
26109         * sysdeps/ieee754/s_lib_version.c: Likewise.
26110         * sysdeps/ieee754/s_matherr.c: Likewise.
26111         * sysdeps/ieee754/s_signgam.c: Likewise.
26112         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
26113         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
26114         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
26115         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
26116         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
26117         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
26118         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
26119         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
26120         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
26121         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
26122         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
26123         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
26124         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
26125         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
26126         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
26127         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
26128         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
26129         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
26130         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
26131         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
26132         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
26133
26134 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
26135
26136         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
26137         * sunrpc/rpc_main.c: Likewise.
26138         * sunrpc/rpc_svcout.c: Likewise.
26139
26140 2012-03-09  David S. Miller  <davem@davemloft.net>
26141
26142         * include/math_private.h: New file.
26143
26144 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
26145
26146         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
26147         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
26148         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
26149         from <bits/socket_type.h>.
26150         (enum __socket_type): Don't define here.
26151         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
26152         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
26153         bits/socket_type.h.
26154
26155         [BZ #13566]
26156         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
26157         checking __USE_GNU.
26158
26159         * Makerules ($(inst_includedir)/%.h): New rule.
26160         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
26161         (install-others): Remove variable setting.
26162         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
26163
26164 2012-03-08  Richard Henderson  <rth@twiddle.net>
26165
26166         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
26167         from macro to inline function; merge with the
26168         !__LIBC_INTERNAL_MATH_INLINES version.
26169         (__ieee754_sqrtf): Likewise.
26170
26171         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
26172         to inline function.
26173         (__rintf, __floor, __floorf): Likewise.
26174
26175         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
26176         macro to inline function.
26177         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
26178
26179         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
26180         not <math/math_private.h>.
26181
26182 2012-03-08  David S. Miller  <davem@davemloft.net>
26183
26184         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
26185         copyright year.
26186         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
26187
26188 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
26189
26190         * resolv/gai_misc.c (handle_requests): Fix struct timespec
26191         normalization.
26192         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
26193         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
26194
26195 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
26196
26197         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
26198         be defined individually, they must be defined as a block.  Define
26199         S for printing a string instead of hidint the different by using a
26200         macro for adding the 'l'.
26201         * stdio-common/tst-fphex-wide.c: Adjust.
26202
26203 2012-03-07  Marek Polacek  <polacek@redhat.com>
26204
26205         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
26206
26207 2012-03-08  Marek Polacek  <polacek@redhat.com>
26208
26209         [BZ #13806]
26210         * stdio-common/Makefile (tests): Add tst-fphex-wide.
26211         * stdio-common/tst-fphex.c: Define a few macros to make the
26212         test reusable.  Use them.
26213         * stdio-common/tst-fphex-wide.c: New file.
26214
26215 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
26216
26217         [BZ #6911]
26218         * manual/macros.texi (gnusystems): New macro.
26219         (nongnusystems): Likewise.
26220         (gnulinuxhurdsystems): Likewise.
26221         (gnuhurdsystems): Likewise..
26222         (gnulinuxsystems): Likewise.
26223         * manual/charset.texi: Use new macros or @theglibc{} to refer to
26224         variants of the GNU system, not "GNU system".
26225         * manual/conf.texi: Likewise.
26226         * manual/errno.texi: Likewise.  Update example of errno macro
26227         expansion.
26228         * manual/filesys.texi: Likewise.
26229         (getumask): Document as specific to GNU/Hurd.
26230         * manual/install.texi: Likewise.  Reword some references to
26231         GNU/Linux.
26232         * manual/intro.texi: Likewise.
26233         * manual/io.texi: Likewise.
26234         (File Name Portability): Detail which constraints are inapplicable
26235         to all GNU systems and which are only inapplicable to GNU/Hurd.
26236         * manual/job.texi: Likewise.
26237         * manual/llio.texi: Likewise.
26238         (O_NOCTTY): Document as present on GNU/Linux.
26239         * manual/maint.texi: Likewise.
26240         * manual/memory.texi: Likewise.
26241         * manual/pattern.texi: Likewise.
26242         * manual/pipe.texi: Likewise.
26243         * manual/process.texi: Likewise.
26244         * manual/resource.texi: Likewise.
26245         (RUSAGE_CHILDREN): Remove statement about specifying a particular
26246         child on GNU/Hurd.
26247         * manual/setjmp.texi: Likewise.
26248         * manual/signal.texi: Likewise.
26249         * manual/startup.texi: Likewise.
26250         * manual/stdio.texi: Likewise.
26251         * manual/terminal.texi: Likewise.
26252         (ONLCR): Document as POSIX.
26253         (OXTABS): Document availability on GNU/Linux as XTABS.
26254         (ONOEOT): Document availability separately from other bits.
26255         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
26256         * manual/time.texi: Likewise.
26257         * manual/users.texi: Likewise.
26258         * INSTALL: Regenerated.
26259         * sysdeps/gnu/errlist.c: Regenerated.
26260
26261         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
26262         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
26263         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
26264         puts.
26265         * configure: Regenerated.
26266
26267 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
26268
26269         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
26270         default includes instead of AC_HEADER_CHECK.
26271         * sysdeps/i386/configure: Regenerated.
26272
26273         [BZ #10716]
26274         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
26275         * math/s_cacoshf.c (__cacoshf): Likewise.
26276         * math/s_cacoshl.c (__cacoshl): Likewise.
26277         * math/s_casinh.c (__casinh): Set signs of result from argument.
26278         * math/s_casinhf.c (__casinhf): Likewise.
26279         * math/s_casinhl.c (__casinhl): Likewise.
26280         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
26281         (casinh_test): Add more tests.
26282         * sysdeps/i386/fpu/libm-test-ulps: Update.
26283         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26284
26285 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
26286
26287         * po/zh_TW.po: Update from translation team.
26288
26289         * login/Makefile (distribute): Remove variable.
26290         * catgets/Makefile: Likewise.
26291         * mach/Makefile: Likewise.
26292         * malloc/Makefile: Likewise.
26293         * misc/Makefile: Likewise.
26294         * iconv/Makefile: Likewise.
26295         * nscd/Makefile: Likewise.
26296         * hurd/Makefile: Likewise.
26297         * manual/Makefile: Likewise.
26298         * locale/Makefile: Likewise.
26299         * intl/Makefile: Likewise.
26300         * conform/Makefile: Likewise.
26301         * nss/Makefile: Likewise.
26302         * time/Makefile: Likewise.
26303         * soft-fp/Makefile: Likewise.
26304         * dirent/Makefile: Likewise.
26305         * gmon/Makefile: Likewise.
26306         * po/Makefile: Likewise.
26307         * rt/Makefile: Likewise.
26308         * socket/Makefile: Likewise.
26309         * math/Makefile: Likewise.
26310         * signal/Makefile: Likewise.
26311         * debug/Makefile: Likewise.
26312         * elf/Makefile: Likewise.
26313         * timezone/Makefile: Likewise.
26314         * stdlib/Makefile: Likewise.
26315         * iconvdata/Makefile: Likewise.
26316         * sunrpc/Makefile: Likewise.
26317         * io/Makefile: Likewise.
26318         * argp/Makefile: Likewise.
26319         * inet/Makefile: Likewise.
26320         * hesiod/Makefile: Likewise.
26321         * grp/Makefile: Likewise.
26322         * csu/Makefile: Likewise.
26323         * wctype/Makefile: Likewise.
26324         * crypt/Makefile: Likewise.
26325         * libio/Makefile: Likewise.
26326         * string/Makefile: Likewise.
26327         * nis/Makefile: Likewise.
26328         * resolv/Makefile: Likewise.
26329         * stdio-common/Makefile: Likewise.
26330         * wcsmbs/Makefile: Likewise.
26331         * dlfcn/Makefile: Likewise.
26332         * posix/Makefile: Likewise.
26333
26334         [BZ #6959]
26335         * timezone/Makefile: Don't install timezone files, just the programs
26336         and scripts.
26337
26338 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
26339
26340         * nss/databases.def: Add missing gshadow entry.
26341
26342         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
26343
26344 2012-03-06  Marek Polacek  <polacek@redhat.com>
26345
26346         [BZ #13726]
26347         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
26348         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
26349         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
26350         * stdio-common/tst-long-dbl-fphex.c: New file.
26351
26352 2012-03-06  David S. Miller  <davem@davemloft.net>
26353
26354         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
26355         (set_obp_int): New function.
26356         (get_obp_int): New function.
26357         (__get_clockfreq_via_dev_openprom): Likewise.
26358         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
26359         Avoid unused variable warnings on 'val' and use builtin_expect.
26360         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
26361         __builtin_expect.
26362         (INLINE_CLONE_SYSCALL): Likewise.
26363
26364 2012-03-05  David S. Miller  <davem@davemloft.net>
26365
26366         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26367
26368 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
26369
26370         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26371
26372         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
26373         only for |x| >= 40.
26374         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
26375
26376 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
26377
26378         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
26379         Replace gettimeofday with __vdso_gettimeofday.
26380
26381         * sysdeps/unix/sysv/linux/x86_64/init-first.c
26382         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
26383         __vdso_clock_gettime and __vdso_getcpu.
26384
26385         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
26386         time with __vdso_time.
26387
26388 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
26389
26390         * manual/lang.texi (size_t): Note types to which size_t may be
26391         equivalent with the GNU C Library, but do not describe when
26392         differences between them are significant.
26393
26394 2012-03-05  Andreas Jaeger  <aj@suse.de>
26395
26396         * sysdeps/i386/fpu/libm-test-ulps: Update.
26397
26398 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
26399
26400         [BZ #3976]
26401         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
26402         (__ieee754_pow): Save and restore rounding mode and use
26403         round-to-nearest for main computations.
26404         * math/libm-test.inc (pow_test_tonearest): New function.
26405         (pow_test_towardzero): Likewise.
26406         (pow_test_downward): Likewise.
26407         (pow_test_upward): Likewise.
26408         (main): Call the new functions.
26409         * sysdeps/i386/fpu/libm-test-ulps: Update.
26410         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26411
26412         [BZ #3976]
26413         * math/libm-test.inc (cosh_test_tonearest): New function.
26414         (cosh_test_towardzero): Likewise.
26415         (cosh_test_downward): Likewise.
26416         (cosh_test_upward): Likewise.
26417         (sinh_test_tonearest): Likewise.
26418         (sinh_test_towardzero): Likewise.
26419         (sinh_test_downward): Likewise.
26420         (sinh_test_upward): Likewise.
26421         (main): Call the new functions.
26422         * sysdeps/i386/fpu/libm-test-ulps: Update.
26423         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26424
26425 2012-03-05  Tom de Vries  <tom@codesourcery.com>
26426
26427         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
26428         default stack guard is set in last bytes.
26429         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
26430
26431 2012-03-05  Kees Cook  <keescook@chromium.org>
26432
26433         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
26434
26435         [BZ #13656]
26436         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
26437         possibly allocate from heap instead of stack.
26438         * stdio-common/bug-vfprintf-nargs.c: New file.
26439         * stdio-common/Makefile (tests): Add nargs overflow test.
26440
26441 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
26442
26443         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
26444
26445 2012-03-03  Marek Polacek  <polacek@redhat.com>
26446
26447         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
26448         * math/math_private.h: Likewise.
26449         * stdlib/tst-strtod.c: Likewise.
26450         * sysdeps/i386/i486/bits/atomic.h: Likewise.
26451         * sysdeps/x86_64/bits/atomic.h: Likewise.
26452
26453 2012-03-02  David S. Miller  <davem@davemloft.net>
26454
26455         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
26456         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
26457         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
26458         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
26459         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
26460         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
26461         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
26462         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
26463
26464 2012-03-02  Roland McGrath  <roland@hack.frob.com>
26465
26466         [BZ #13792]
26467         * manual/examples/README: New file, says the example source files
26468         can be used under GPL>=2.
26469         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
26470         line containing just "*/".
26471         * manual/examples/add.c: Add copyright header (GPL>=2).
26472         * manual/examples/argp-ex1.c: Likewise.
26473         * manual/examples/argp-ex2.c: Likewise.
26474         * manual/examples/argp-ex3.c: Likewise.
26475         * manual/examples/argp-ex4.c: Likewise.
26476         * manual/examples/atexit.c: Likewise.
26477         * manual/examples/db.c: Likewise.
26478         * manual/examples/dir.c: Likewise.
26479         * manual/examples/dir2.c: Likewise.
26480         * manual/examples/execinfo.c: Likewise.
26481         * manual/examples/filecli.c: Likewise.
26482         * manual/examples/filesrv.c: Likewise.
26483         * manual/examples/fmtmsgexpl.c: Likewise.
26484         * manual/examples/genpass.c: Likewise.
26485         * manual/examples/inetcli.c: Likewise.
26486         * manual/examples/inetsrv.c: Likewise.
26487         * manual/examples/isockad.c: Likewise.
26488         * manual/examples/longopt.c: Likewise.
26489         * manual/examples/memopen.c: Likewise.
26490         * manual/examples/memstrm.c: Likewise.
26491         * manual/examples/mkfsock.c: Likewise.
26492         * manual/examples/mkisock.c: Likewise.
26493         * manual/examples/mygetpass.c: Likewise.
26494         * manual/examples/pipe.c: Likewise.
26495         * manual/examples/popen.c: Likewise.
26496         * manual/examples/rprintf.c: Likewise.
26497         * manual/examples/search.c: Likewise.
26498         * manual/examples/select.c: Likewise.
26499         * manual/examples/setjmp.c: Likewise.
26500         * manual/examples/sigh1.c: Likewise.
26501         * manual/examples/sigusr.c: Likewise.
26502         * manual/examples/stpcpy.c: Likewise.
26503         * manual/examples/strdupa.c: Likewise.
26504         * manual/examples/strftim.c: Likewise.
26505         * manual/examples/strncat.c: Likewise.
26506         * manual/examples/subopt.c: Likewise.
26507         * manual/examples/swapcontext.c: Likewise.
26508         * manual/examples/termios.c: Likewise.
26509         * manual/examples/testopt.c: Likewise.
26510         * manual/examples/testpass.c: Likewise.
26511         * manual/examples/timeval_subtract.c: Likewise.
26512
26513         [BZ #13792]
26514         * manual/time.texi (Elapsed Time): Move timeval_subtract example
26515         function to ...
26516         * manual/timeval_subtract.c.texi: ... here, new file.
26517
26518 2012-03-02  David S. Miller  <davem@davemloft.net>
26519
26520         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
26521
26522 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
26523
26524         [BZ #3976]
26525         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
26526         (__sin): Save and restore rounding mode and use round-to-nearest
26527         for all computations.
26528         (__cos): Save and restore rounding mode and use round-to-nearest
26529         for all computations.
26530         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
26531         <fenv.h>.
26532         (tan): Save and restore rounding mode and use round-to-nearest for
26533         all computations.
26534         * math/libm-test.inc (cos_test_tonearest): New function.
26535         (cos_test_towardzero): Likewise.
26536         (cos_test_downward): Likewise.
26537         (cos_test_upward): Likewise.
26538         (sin_test_tonearest): Likewise.
26539         (sin_test_towardzero): Likewise.
26540         (sin_test_downward): Likewise.
26541         (sin_test_upward): Likewise.
26542         (tan_test_tonearest): Likewise.
26543         (tan_test_towardzero): Likewise.
26544         (tan_test_downward): Likewise.
26545         (tan_test_upward): Likewise.
26546         (main): Call the new functions.
26547         * sysdeps/i386/fpu/libm-test-ulps: Update.
26548         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26549
26550         [BZ #10135]
26551         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
26552         small n, then large n, before computing and testing k+n.
26553         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
26554         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
26555         Likewise.
26556         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
26557         Likewise.
26558         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
26559         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
26560         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
26561         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
26562         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
26563         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
26564         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
26565         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
26566         * math/libm-test.inc (scalbn_test): Add more tests.
26567         (scalbln_test): Likewise.
26568
26569         * manual/filesys.texi (mode_t): Describe constraints on size and
26570         signedness, not exact equivalence to a particular type.
26571         (ino_t): Likewise.
26572         (ino64_t): Likewise.
26573         (dev_t): Likewise.
26574         (nlink_t): Likewise.
26575         (blkcnt_t): Likewise.
26576         (blkcnt64_t): Likewise.
26577         * manual/llio.texi (off_t): Likewise.
26578
26579         [BZ #3976]
26580         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
26581         (__ieee754_exp): Save and restore rounding mode and use
26582         round-to-nearest for all computations.
26583         * math/libm-test.inc (exp_test_tonearest): New function.
26584         (exp_test_towardzero): Likewise.
26585         (exp_test_downward): Likewise.
26586         (exp_test_upward): Likewise.
26587         (main): Call the new functions.
26588         * sysdeps/i386/fpu/libm-test-ulps: Update.
26589         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26590
26591 2012-03-01  Chris Demetriou  <cgd@google.com>
26592
26593         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
26594         have predictable order.
26595
26596 2012-03-01  David S. Miller  <davem@davemloft.net>
26597
26598         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
26599
26600         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
26601         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
26602         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
26603         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
26604
26605         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
26606         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
26607         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
26608         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
26609         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
26610         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
26611         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
26612         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
26613         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
26614
26615         * sysdeps/sparc/fpu/libm-test-ulps: Update.
26616
26617         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
26618         * sysdeps/sparc/fpu/libm-test-ulps: to here.
26619         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
26620
26621         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
26622         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
26623         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
26624         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
26625         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
26626         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
26627         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
26628         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
26629         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
26630         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
26631         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
26632         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
26633         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
26634         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
26635         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
26636         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
26637         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
26638         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
26639         * sysdeps/sparc/elf/configure: Regenerated.
26640
26641 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
26642
26643         * configure.in (AS, LD): Require binutils 2.20 or later.
26644         * configure: Regenerated.
26645         * manual/install.texi (Tools for Compilation): Give binutils 2.20
26646         as required minimum version.
26647         * INSTALL: Regenerated.
26648
26649         [BZ #2541]
26650         [BZ #4108]
26651         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
26652         before squaring exponent.
26653         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
26654         bottom long double and 27 bits of top long double before squaring
26655         exponent.
26656         * math/libm-test.inc (erfc_test): Add more tests.
26657         * sysdeps/i386/fpu/libm-test-ulps: Update.
26658         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
26659         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26660
26661 2012-03-01  Kai Tietz  <ktietz@redhat.com>
26662
26663         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
26664         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
26665         containing bit-fields.
26666         * soft-fp/extended.h (_FP_UNION_E): Likewise.
26667         * soft-fp/single.h (_FP_UNION_S): Likewise.
26668         * soft-fp/double.h (_FP_UNION_D): Likewise.
26669
26670 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
26671
26672         [BZ #13786]
26673         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
26674         not include ../strcmp.S.
26675         [USE_AS_STRNCASECMP_L]: Likewise.
26676         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
26677         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
26678         * sysdeps/i386/i686/multiarch/strncase_l-c.c
26679         (__strncasecmp_l_ia32): Define as alias to
26680         __strncasecmp_l_nonascii.
26681
26682         [BZ #5794]
26683         * math/libm-test.inc (expm1_test): Add test for bug 5794.
26684         * sysdeps/i386/fpu/libm-test-ulps: Update.
26685         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26686
26687         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
26688         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
26689
26690 2012-02-29  Jeff Law  <law@redhat.com>
26691
26692         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
26693         out of bounds read.
26694
26695 2012-02-29  Marek Polacek  <polacek@redhat.com>
26696
26697         [BZ #13706]
26698         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
26699         * elf/Makefile: Add rules to run tst-unused-dep.out.
26700
26701 2012-02-28  David S. Miller  <davem@davemloft.net>
26702
26703         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
26704         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
26705         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
26706         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
26707         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
26708         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
26709
26710 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
26711
26712         * math/libm-test.inc (llround_test): Move one test from
26713         lround_test.  Use TEST_f_L in moved test.
26714         (lround_test): Move misplaced test to llround_test.  Add testcase
26715         from bug 2561.
26716
26717 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
26718
26719         * sysdeps/x86_64/fpu/e_expf.S: New file.
26720         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
26721
26722 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
26723
26724         [BZ #13637]
26725         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
26726         of remain_len that may cause incomplete multi-byte character and
26727         false match.
26728         * posix/bug-regex33.c: New file.
26729         * posix/Makefile (tests): Add bug-regex33.
26730
26731 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
26732
26733         * manual/macros.texi: New file.
26734         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
26735         * manual/libc.texinfo: Include macros.texi.
26736         * manual/creatute.texi: Likewise.
26737         * manual/install.texi: Likewise.
26738         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
26739         @glibcadj{} in references to the GNU C Library.
26740         * manual/charset.texi: Likewise.
26741         * manual/conf.texi: Likewise.
26742         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
26743         when not using those macros.
26744         * manual/creature.texi: Likewise.
26745         * manual/crypt.texi: Likewise.
26746         * manual/errno.texi: Likewise.
26747         * manual/filesys.texi: Likewise.
26748         * manual/header.texi: Likewise.
26749         * manual/install.texi: Likewise.
26750         * manual/intro.texi: Likewise.
26751         * manual/io.texi: Likewise.
26752         * manual/job.texi: Likewise.
26753         * manual/lang.texi: Likewise.
26754         * manual/libc.texiinfo: Likewise.
26755         * manual/llio.texi: Likewise.
26756         * manual/locale.texi: Likewise.
26757         * manual/maint.texi: Likewise.
26758         * manual/math.texi: Likewise.
26759         * manual/memory.texi: Likewise.
26760         * manual/message.texi: Likewise.
26761         * manual/nss.texi: Likewise.
26762         * manual/pattern.texi: Likewise.
26763         * manual/process.texi: Likewise.
26764         * manual/resource.texi: Likewise.
26765         * manual/search.texi: Likewise.
26766         * manual/setjmp.texi: Likewise.
26767         * manual/signal.texi: Likewise.
26768         * manual/socket.texi: Likewise.
26769         * manual/startup.texi: Likewise.
26770         * manual/stdio.texi: Likewise.
26771         * manual/string.texi: Likewise.
26772         * manual/sysinfo.texi: Likewise.
26773         * manual/syslog.texi: Likewise.
26774         * manual/terminal.texi: Likewise.
26775         * manual/time.texi: Likewise.
26776         * manual/users.texi: Likewise.
26777         * INSTALL: Regenerated.
26778         * NOTES: Regenerated.
26779         * sysdeps/gnu/errlist.c: Regenerated.
26780
26781 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
26782
26783         * include/dirent.h: Include <dirstream.h> before
26784         <dirent/dirent.h>.
26785
26786 2012-02-28  David S. Miller  <davem@davemloft.net>
26787
26788         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
26789         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
26790         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
26791         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
26792
26793 2012-02-27  David S. Miller  <davem@davemloft.net>
26794
26795         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
26796         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
26797         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
26798         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
26799
26800         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
26801         frame pointer instead of stack pointer relative arg slot.
26802         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
26803         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
26804         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
26805
26806 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
26807
26808         [BZ #3992]
26809         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
26810
26811 2012-02-27  David S. Miller  <davem@davemloft.net>
26812
26813         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
26814         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
26815         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
26816         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
26817         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
26818         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
26819         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
26820         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
26821
26822 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
26823
26824         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
26825         later.  Allow versions 5-9.
26826         * configure: Regenerated.
26827         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
26828         required minimum version and 4.6 as recommended version.  Do not
26829         mention bugs in GCC 2.7 and 2.8.
26830         * INSTALL: Regenerated.
26831
26832 2012-02-27  David S. Miller  <davem@davemloft.net>
26833
26834         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
26835         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
26836         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
26837         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
26838         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
26839         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
26840         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
26841         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
26842
26843         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
26844         manipulate bits before adding and subtracting TWO112[sx].
26845         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
26846
26847 2012-02-27  Roland McGrath  <roland@hack.frob.com>
26848
26849         [BZ #13775]
26850         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
26851         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
26852         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
26853         being in POSIX, because they are in 1003.1-2008.
26854
26855         * rt/tst-aio.c: Include <fcntl.h>.
26856         * rt/tst-aio7.c: Likewise.
26857         * rt/tst-aio64.c: Likewise.
26858
26859         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
26860
26861 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
26862
26863         * manual/install.texi (--with-headers): Describe headers as
26864         interface headers, not private headers.
26865         (Specific advice for GNU/Linux systems): Describe use of headers
26866         from "make headers_install", not private headers from older
26867         kernels.
26868         * INSTALL: Regenerated.
26869         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
26870         Change to 2.6.19.
26871         * sysdeps/unix/sysv/linux/configure: Regenerated.
26872
26873         * manual/llio.texi (fclean): Remove documentation.
26874
26875         * manual/Makefile (libc-texi-generated): New variable.  Include
26876         version.texi.
26877         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
26878         $(libc-texi-generated), not duplicated list of files.
26879         (version.texi, stamp-version): New rules.
26880         (realclean): Remove $(libc-texi-generated), not individual files
26881         from that list.  Do not remove dir-add.texinfo.
26882         * manual/libc.texinfo: Comment out uses of edition numbers and
26883         references to printed manual.  Remove last-updated dates.
26884         (EDITION): Comment out.
26885         (ISBN): Likewise.
26886         (VERSION, UPDATED): Remove.
26887         (version.texi): Include.
26888
26889 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
26890
26891         * sysdeps/posix/spawni.c: Include <signal.h>.
26892         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
26893         * sysdeps/pthread/aio_fsync.c: Likewise.
26894
26895 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
26896
26897         * conform/Makefile (tests): Run only when not cross-compiling and
26898         when fast-check is not defined.
26899
26900         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
26901         * conform/data/limits.h-data: Fixes for POSIX2008.
26902         * conform/run-conformtest.sh: Run all tests.
26903         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
26904         headers.
26905         * include/bits/dlfcn.h: Likewise.
26906         * include/langinfo.h: Likewise.
26907         * include/monetary.h: Likewise.
26908         * include/sys/poll.h: Likewise.
26909
26910         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
26911         for __USE_GNU.
26912         * posix/spawn.h: Define __need_sigset_t.
26913         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
26914         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
26915         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
26916         to get sigevent_t only.
26917         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
26918         only for __USE_GNU.
26919         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
26920         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
26921         process_vm_writev only for __USE_GNU.
26922         * termios/termios.h: Declare tcgetsid also for POSIX2008.
26923
26924         * conform/Makefile: For now ignore errors from run-conformtest.
26925         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
26926         POSIX to avoid namespace pollution.  Don't prepend headers.
26927         * conform/data/aio.h-data: Fixes for POSIX testing.
26928         * conform/data/fcntl.h-data: Likewise.
26929         * conform/data/glob.h-data: Likewise.
26930         * conform/data/grp.h-data: Likewise.
26931         * conform/data/pthread.h-data: Likewise.
26932         * conform/data/pwd.h-data: Likewise.
26933         * conform/data/signal.h-data: Likewise.
26934         * conform/data/spawn.h-data: Likewise.
26935         * conform/data/stdio.h-data: Likewise.
26936         * conform/data/stdlib.h-data: Likewise.
26937         * conform/data/stropts.h-data: Likewise.
26938         * conform/data/sys/mman.h-data: Likewise.
26939         * conform/data/sys/stat.h-data: Likewise.
26940         * conform/data/sys/types.h-data: Likewise.
26941         * conform/data/sys/wait.h-data: Likewise.
26942         * conform/data/time.h-data: Likewise.
26943         * conform/data/unistd.h-data: Likewise.
26944         * conform/data/utime.h-data: Likewise.
26945
26946         * io/sys/stat.h: fchmod was always in POSIX.
26947         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
26948         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
26949         * rt/aio.h: Define __need_timespec before including <time.h>.
26950         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
26951         struct.  Add forward declaration of pthread_attr_t and use it in
26952         sigevent.
26953         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
26954         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
26955         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
26956         always remove CLK_TCK definition.
26957
26958 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
26959
26960         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
26961
26962 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
26963
26964         * conform/run-conformtest.sh: New file.
26965         * conform/Makefile: Run run-conformtest for tests.
26966         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
26967         support.
26968
26969         * conform/data/uchar.h-data: New file.
26970         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
26971         * conform/data/arpa/inet.h-data: Likewise.
26972         * conform/data/assert.h-data: Likewise.
26973         * conform/data/complex.h-data: Likewise.
26974         * conform/data/cpio.h-data: Likewise.
26975         * conform/data/ctype.h-data: Likewise.
26976         * conform/data/dirent.h-data: Likewise.
26977         * conform/data/dlfcn.h-data: Likewise.
26978         * conform/data/errno.h-data: Likewise.
26979         * conform/data/fcntl.h-data: Likewise.
26980         * conform/data/float.h-data: Likewise.
26981         * conform/data/fmtmsg.h-data: Likewise.
26982         * conform/data/fnmatch.h-data: Likewise.
26983         * conform/data/ftw.h-data: Likewise.
26984         * conform/data/glob.h-data: Likewise.
26985         * conform/data/grp.h-data: Likewise.
26986         * conform/data/iconv.h-data: Likewise.
26987         * conform/data/inttypes.h-data: Likewise.
26988         * conform/data/langinfo.h-data: Likewise.
26989         * conform/data/libgen.h-data: Likewise.
26990         * conform/data/limits.h-data: Likewise.
26991         * conform/data/locale.h-data: Likewise.
26992         * conform/data/math.h-data: Likewise.
26993         * conform/data/monetary.h-data: Likewise.
26994         * conform/data/mqueue.h-data: Likewise.
26995         * conform/data/ndbm.h-data: Likewise.
26996         * conform/data/net/if.h-data: Likewise.
26997         * conform/data/netdb.h-data: Likewise.
26998         * conform/data/netinet/in.h-data: Likewise.
26999         * conform/data/nl_types.h-data: Likewise.
27000         * conform/data/poll.h-data: Likewise.
27001         * conform/data/pthread.h-data: Likewise.
27002         * conform/data/pwd.h-data: Likewise.
27003         * conform/data/regex.h-data: Likewise.
27004         * conform/data/sched.h-data: Likewise.
27005         * conform/data/search.h-data: Likewise.
27006         * conform/data/semaphore.h-data: Likewise.
27007         * conform/data/setjmp.h-data: Likewise.
27008         * conform/data/signal.h-data: Likewise.
27009         * conform/data/spawn.h-data: Likewise.
27010         * conform/data/stdarg.h-data: Likewise.
27011         * conform/data/stdio.h-data: Likewise.
27012         * conform/data/stdlib.h-data: Likewise.
27013         * conform/data/string.h-data: Likewise.
27014         * conform/data/strings.h-data: Likewise.
27015         * conform/data/stropts.h-data: Likewise.
27016         * conform/data/sys/ipc.h-data: Likewise.
27017         * conform/data/sys/mman.h-data: Likewise.
27018         * conform/data/sys/msg.h-data: Likewise.
27019         * conform/data/sys/resource.h-data: Likewise.
27020         * conform/data/sys/select.h-data: Likewise.
27021         * conform/data/sys/sem.h-data: Likewise.
27022         * conform/data/sys/shm.h-data: Likewise.
27023         * conform/data/sys/socket.h-data: Likewise.
27024         * conform/data/sys/stat.h-data: Likewise.
27025         * conform/data/sys/statvfs.h-data: Likewise.
27026         * conform/data/sys/time.h-data: Likewise.
27027         * conform/data/sys/timeb.h-data: Likewise.
27028         * conform/data/sys/times.h-data: Likewise.
27029         * conform/data/sys/types.h-data: Likewise.
27030         * conform/data/sys/uio.h-data: Likewise.
27031         * conform/data/sys/un.h-data: Likewise.
27032         * conform/data/sys/utsname.h-data: Likewise.
27033         * conform/data/sys/wait.h-data: Likewise.
27034         * conform/data/syslog.h-data: Likewise.
27035         * conform/data/tar.h-data: Likewise.
27036         * conform/data/termios.h-data: Likewise.
27037         * conform/data/utime.h-data: Likewise.
27038         * conform/data/utmpx.h-data: Likewise.
27039         * conform/data/varargs.h-data: Likewise.
27040         * conform/data/wchar.h-data: Likewise.
27041         * conform/data/wctype.h-data: Likewise.
27042         * conform/data/wordexp.h-data: Likewise.
27043
27044         * include/stropts.h: New file.
27045         * include/uchar.h: New file.
27046         * include/aio.h: Changes to allow conformtest.pl to use the headers.
27047         * include/assert.h: Likewise.
27048         * include/ctype.h: Likewise.
27049         * include/dirent.h: Likewise.
27050         * include/dlfcn.h: Likewise.
27051         * include/fcntl.h: Likewise.
27052         * include/fnmatch.h: Likewise.
27053         * include/glob.h: Likewise.
27054         * include/grp.h: Likewise.
27055         * include/libio.h: Likewise.
27056         * include/locale.h: Likewise.
27057         * include/math.h: Likewise.
27058         * include/net/if.h: Likewise.
27059         * include/netdb.h: Likewise.
27060         * include/netinet/in.h: Likewise.
27061         * include/pthread.h: Likewise.
27062         * include/pwd.h: Likewise.
27063         * include/regex.h: Likewise.
27064         * include/sched.h: Likewise.
27065         * include/search.h: Likewise.
27066         * include/setjmp.h: Likewise.
27067         * include/signal.h: Likewise.
27068         * include/stdio.h: Likewise.
27069         * include/stdlib.h: Likewise.
27070         * include/string.h: Likewise.
27071         * include/sys/cdefs.h: Likewise.
27072         * include/sys/mman.h: Likewise.
27073         * include/sys/msg.h: Likewise.
27074         * include/sys/resource.h: Likewise.
27075         * include/sys/select.h: Likewise.
27076         * include/sys/socket.h: Likewise.
27077         * include/sys/stat.h: Likewise.
27078         * include/sys/statvfs.h: Likewise.
27079         * include/sys/time.h: Likewise.
27080         * include/sys/times.h: Likewise.
27081         * include/sys/uio.h: Likewise.
27082         * include/sys/utsname.h: Likewise.
27083         * include/sys/wait.h: Likewise.
27084         * include/termios.h: Likewise.
27085         * include/time.h: Likewise.
27086         * include/ulimit.h: Likewise.
27087         * include/unistd.h: Likewise.
27088         * include/utime.h: Likewise.
27089         * include/wchar.h: Likewise.
27090         * include/wctype.h: Likewise.
27091         * include/wordexp.h: Likewise.
27092
27093         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
27094
27095         * time/time.h: TIME_UTC must be a macro.
27096         Make timespec_get available for ISO C11 only as well.
27097
27098 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
27099
27100         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
27101         Reported by Peng Haitao <penght@cn.fujitsu.com>.
27102
27103 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
27104
27105         * configure.in: Use -o not -a in test for unsupported multi-arch.
27106
27107 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
27108
27109         * manual/texinfo.tex: Update to version 2012-01-19.16.
27110
27111 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
27112
27113         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
27114
27115 2012-02-24  Roland McGrath  <roland@hack.frob.com>
27116
27117         [BZ #13738]
27118         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
27119         * manual/fdl-1.3.texi: New file.
27120         * manual/fdl-1.1.texi: File removed.
27121
27122         [BZ #13738]
27123         * manual/libc.texinfo (FDL_VERSION): New @set.
27124         Use it for mention of FDL in cover text.
27125         (Documentation License): Use it in @include file name.
27126
27127 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
27128             Roland McGrath  <roland@hack.frob.com>
27129
27130         [BZ #5461]
27131         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
27132         not LONG_LONG_MAX and LONG_LONG_MIN.
27133         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
27134         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
27135         name.
27136         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
27137
27138 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
27139
27140         [BZ #2547]
27141         [BZ #11365]
27142         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
27143         manipulate bits before adding and subtracting TWO23[sx].
27144         * math/libm-test.inc (nearbyint_test): Add more tests.
27145
27146 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
27147
27148         [BZ #2548]
27149         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
27150         bits before adding and subtracting TWO23[sx].
27151         * math/libm-test.inc (rint_test): Add more tests.
27152         (rint_test_tonearest): Likewise.
27153         (rint_test_towardzero): Likewise.
27154         (rint_test_downward): Likewise.
27155         (rint_test_upward: Likewise.
27156
27157 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
27158
27159         [BZ #10110]
27160         * include/stdc-predef.h: New file.  Extracted from features.h.
27161         * include/features.h: Include stdc-predef.h.
27162         * Makefile (headers): Add stdc-predef.h.
27163         * CONFORMANCE (Compiler limitations): Update.
27164
27165 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
27166
27167         * manual/libc.texinfo (VERSION, UPDATED): Revert.
27168
27169 2012-02-21  David S. Miller  <davem@davemloft.net>
27170
27171         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
27172         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
27173
27174 2012-02-20  David S. Miller  <davem@davemloft.net>
27175
27176         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
27177         using a normal save/restore sequence, rather than allocating a
27178         dummy stack frame just to store a frame pointer and restore.
27179         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
27180
27181 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
27182
27183         * manual/install.texi: Fix stray word in line-wrapped comment.
27184
27185 2012-02-20  David S. Miller  <davem@davemloft.net>
27186
27187         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
27188         both binutils and gcc support GOTDATA.
27189
27190         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
27191         "rd %pc" in the PIC register setup sequences.
27192
27193         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
27194         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
27195         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
27196         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
27197         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
27198         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
27199         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
27200         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
27201         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
27202         (SYSCALL_ERROR_HANDLER): Likewise.
27203         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
27204         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
27205         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
27206         (SYSCALL_ERROR_HANDLER): Likewise.
27207
27208         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
27209         (HAVE_GCC_GOTDATA): New.
27210         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
27211         relocation support in both binutils and gcc.
27212         * sysdeps/sparc/elf/configure: Regenerate.
27213
27214         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
27215         * sysdeps/sparc/sparc32/elf/configure: Delete.
27216         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
27217         * sysdeps/sparc/sparc64/elf/configure: Delete.
27218         * sysdeps/sparc/elf/configure.in: New file.
27219         * sysdeps/sparc/elf/configure: Generate.
27220
27221         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
27222         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
27223         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
27224         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
27225         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
27226
27227 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
27228
27229         * manual/install.texi: Do not mention specific glibc version
27230         numbers.
27231         * manual/libc.texinfo (VERSION, UPDATED): Update.
27232         (@copying): Use @copyright{} and range of years.
27233
27234 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
27235
27236         [BZ #13695]
27237         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
27238         [crti.S not in sysdirs] (generated): Do not append.
27239         [crti.S not in sysdirs] (omit-deps): Likewise.
27240         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
27241         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
27242         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
27243         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
27244         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
27245         Likewise.
27246         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
27247         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
27248         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
27249         * csu/defs.awk: Remove file.
27250         * sysdeps/generic/initfini.c: Likewise.
27251         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
27252         variable.
27253         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
27254         Likewise.
27255
27256 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
27257
27258         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
27259         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
27260         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
27261         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
27262         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
27263         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
27264         <bits/epoll.h>.
27265         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
27266         (__EPOLL_PACKED): Define to empty if not defined by
27267         <bits/epoll.h>.
27268         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
27269         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27270         bits/epoll.h.
27271
27272 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
27273
27274         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
27275         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
27276         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
27277         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
27278         <bits/timerfd.h>.
27279         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
27280         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27281         bits/timerfd.h.
27282
27283 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
27284
27285         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
27286         in C locale.
27287         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
27288         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
27289         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
27290         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27291
27292 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
27293
27294         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
27295         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
27296
27297 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
27298
27299         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
27300         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
27301         defined.
27302         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
27303         Likewise.
27304         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
27305         entry for 2.16.
27306
27307 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
27308
27309         * math/w_acos.c: Use non-signaling floating-point comparisons.
27310         * math/w_acosf.c: Likewise.
27311         * math/w_acosh.c: Likewise.
27312         * math/w_acoshf.c: Likewise.
27313         * math/w_acoshl.c: Likewise.
27314         * math/w_acosl.c: Likewise.
27315         * math/w_asin.c: Likewise.
27316         * math/w_asinf.c: Likewise.
27317         * math/w_asinl.c: Likewise.
27318         * math/w_atanh.c: Likewise.
27319         * math/w_atanhf.c: Likewise.
27320         * math/w_atanhl.c: Likewise.
27321         * math/w_exp2.c: Likewise.
27322         * math/w_exp2f.c: Likewise.
27323         * math/w_exp2l.c: Likewise.
27324         * math/w_j0.c: Likewise.
27325         * math/w_j0f.c: Likewise.
27326         * math/w_j0l.c: Likewise.
27327         * math/w_j1.c: Likewise.
27328         * math/w_j1f.c: Likewise.
27329         * math/w_j1l.c: Likewise.
27330         * math/w_jn.c: Likewise.
27331         * math/w_jnf.c: Likewise.
27332         * math/w_log.c: Likewise.
27333         * math/w_log10.c: Likewise.
27334         * math/w_log10f.c: Likewise.
27335         * math/w_log10l.c: Likewise.
27336         * math/w_log2.c: Likewise.
27337         * math/w_log2f.c: Likewise.
27338         * math/w_log2l.c: Likewise.
27339         * math/w_logf.c: Likewise.
27340         * math/w_logl.c: Likewise.
27341         * math/w_sqrt.c: Likewise.
27342         * math/w_sqrtf.c: Likewise.
27343         * math/w_sqrtl.c: Likewise.
27344         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
27345         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
27346         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
27347         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
27348         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
27349
27350 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
27351
27352         [BZ #9739]
27353         * manual/string.texi (strnlen): Use correct parameter name in
27354         equivalent expression.
27355
27356 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
27357
27358         [BZ #11174]
27359         * manual/users.texi (seteuid): Consistently use neweuid for
27360         argument name.
27361
27362 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
27363
27364         [BZ #13704]
27365         * manual/nss.texi (Services in the NSS configuration): Correct
27366         list of services in example configuration file.
27367
27368 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
27369
27370         [BZ #11322]
27371         * manual/arith.texi: Remove statements about negative zero
27372         behaving identically to zero.
27373
27374 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
27375
27376         [BZ #5993]
27377         * manual/install.texi: Do not document upgrading from libc5.
27378
27379 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
27380
27381         [BZ #4596]
27382         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
27383
27384 2012-02-18  David S. Miller  <davem@davemloft.net>
27385
27386         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
27387         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
27388         %o7 across the call.
27389         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
27390         instead.
27391         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
27392         SETUP_PIC_REG_LEAF.
27393         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
27394         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
27395         * sysdeps/sparc/crtn.S: Likewise.
27396
27397 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
27398
27399         * aout/Makefile: Remove.
27400
27401 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
27402
27403         [BZ #13058]
27404         * manual/examples/argp-ex1.c (main): Format definition in GNU
27405         style.
27406         * manual/examples/argp-ex2.c (main): Likewise.
27407         * manual/examples/argp-ex3.c (main): Likewise.
27408         * manual/examples/argp-ex4.c (main): Likewise.
27409         * manual/examples/longopt.c (main): Use new-style prototype
27410         definition.
27411         * manual/examples/strncat.c (main): Specify return type and use
27412         (void) for arguments.
27413         * manual/examples/subopt.c (main): Use char **argv argument.
27414
27415 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
27416
27417         [BZ #5077]
27418         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
27419         rounding modes.
27420
27421 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
27422
27423         [BZ #6907]
27424         * manual/string.texi (strchr): Change when strchrnul is
27425         recommended.
27426
27427 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
27428
27429         [BZ #174]
27430         * manual/locale.texi (setlocale): Document LOCPATH.
27431
27432 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
27433
27434         [BZ #10210]
27435         * manual/process.texi (execle): Move @dots{} before last argument.
27436
27437 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
27438
27439         [BZ #12047]
27440         * manual/charset.texi (Generic Charset Conversion): Fix typo
27441         (LC_TYPE -> LC_CTYPE).
27442
27443 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
27444
27445         [BZ #5805]
27446         * manual/arith.texi (scalbn): Use @var{} on parameter names.
27447         (scalbnf): Likewise.
27448         (scalbnl): Likewise.
27449         (scalbln): Likewise.
27450         (scalblnf): Likewise.
27451         (scalblnl): Likewise.
27452         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
27453         (vwarnx): Likewise.
27454         (verr): Likewise.
27455         (verrx): Likewise.
27456         * manual/filesys.texi (telldir): Use braces around return type.
27457         * manual/llio.texi (mmap): Add space after comma.
27458         (mmap64): Likewise.
27459         * manual/math.texi (jn): Use @var{} on parameter names.
27460         (jnf): Likewise.
27461         (jnl): Likewise.
27462         (yn): Likewise.
27463         (ynf): Likewise.
27464         (ynl): Likewise.
27465         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
27466         line.
27467         * manual/resource.texi (ulimit): Use @dots{} instead of literal
27468         "...".
27469         (sched_get_priority_min): Remove semicolon on @deftypefun line.
27470         (sched_get_priority_max): Likewise.
27471         * manual/signal.texi (sigvec): Add space after comma.
27472         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
27473         names.
27474         (if_indextoname): Likewise.
27475         (if_freenameindex): Likewise.
27476         (sendto): Use ',' instead of '.' in prototype.
27477         * manual/startup.texi (syscall): Use @dots{} instead of literal
27478         "...".
27479         * manual/stdio.texi (__fpending): Separate initial words of
27480         paragraph from @deftypefun line.
27481         * manual/syslog.texi (syslog): Use @dots{} instead of literal
27482         "...".
27483         (vsyslog): Use @var{} on parameter names.
27484         * manual/terminal.texi (stty): Use @var{} on parameter names.
27485         * manual/users.texi (getutmp): Use @var{} on parameter names.
27486         (getutmpx): Likewise.
27487
27488 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
27489
27490         [BZ #6884]
27491         * manual/stdio.texi (fopen): Fix typos in description of
27492         ",ccs=STRING".
27493
27494 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
27495
27496         [BZ #4026]
27497         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
27498         get clock_id definition.
27499
27500 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
27501
27502         [BZ #4822]
27503         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
27504         (madvise): Cast every argument to void on its own.
27505
27506 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
27507
27508         [BZ #9902]
27509         * manual/startup.texi (Exit Status): Fix typo.
27510
27511 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
27512
27513         [BZ #10140]
27514         * manual/examples/argp-ex1.c: Include <stdlib.h>.
27515         * manual/examples/argp-ex2.c: Likewise.
27516         * manual/examples/argp-ex3.c: Likewise.
27517
27518 2012-02-16  Richard Henderson  <rth@redhat.com>
27519
27520         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
27521         * sysdeps/s390/s390-32/initfini.c: Remove.
27522         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
27523         * sysdeps/s390/s390-64/initfini.c: Remove.
27524
27525 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
27526
27527         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
27528         compiler output for sysdeps/generic/initfini.c.
27529         * sysdeps/sh/elf/initfini.c: Remove file.
27530
27531 2012-02-16  David S. Miller  <davem@davemloft.net>
27532
27533         [BZ #11494]
27534         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
27535
27536         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
27537         * sysdeps/sparc/crti.S: New file.
27538         * sysdeps/sparc/crtn.S: New file.
27539         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
27540         * sysdeps/sparc/sparc64/Makefile: Likewise.
27541
27542 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
27543
27544         [BZ #3335]
27545         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
27546
27547 2012-02-15  Roland McGrath  <roland@hack.frob.com>
27548
27549         [BZ #4822]
27550         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
27551
27552         * mach/devstream.c (cookie_io_functions_t): Macro removed.
27553         (write, read, close): Likewise.
27554         Patch by Aurelien Jarno <aurelien@aurel32.net>.
27555
27556 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
27557
27558         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
27559         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
27560         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
27561         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
27562         <bits/signalfd.h>.
27563         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
27564         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27565         bits/signalfd.h.
27566
27567 2012-02-14  Marek Polacek  <polacek@redhat.com>
27568
27569         * sysdeps/x86_64/crti.S: New file.
27570         * sysdeps/x86_64/crtn.S: New file.
27571         * sysdeps/x86_64/elf/initfini.c: Remove file.
27572
27573 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
27574
27575         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
27576         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
27577         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
27578         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
27579         <bits/inotify.h>.
27580         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
27581         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27582         bits/inotify.h.
27583
27584 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
27585
27586         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
27587         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
27588         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
27589         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
27590         <bits/eventfd.h>.
27591         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
27592         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
27593         bits/eventfd.h.
27594
27595 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
27596
27597         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
27598         __feraiseexcept instead of feraiseexcept.
27599
27600         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
27601         nanosleep invocations.
27602         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
27603         strings, and add error checking for a nanosleep invocations.
27604
27605 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
27606
27607         Replace FSF snail mail address with URLs, as per GNU coding standards.
27608         Most of the snail mail addresses were wrong anyway, and omitting
27609         them makes the source code easier to maintain.  Almost all of the
27610         changes are to license notices and to locale LC_IDENTIFICATION
27611         addresses, except for this one:
27612         * manual/libc.texinfo: In "Published by", give the FSF's URL,
27613         not its snail mail address.
27614
27615 2012-02-09  Richard Henderson  <rth@twiddle.net>
27616
27617         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
27618         of kernel-features.h.
27619
27620         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
27621
27622 2012-02-08  Marek Polacek  <polacek@redhat.com>
27623
27624         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
27625         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
27626         * sysdeps/gnu/_G_config.h: Likewise.
27627         * sysdeps/generic/_G_config.h: Likewise.
27628
27629 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
27630
27631         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
27632         tests.
27633         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
27634
27635         * sysdeps/powerpc/powerpc32/crti.S: New file.
27636         * sysdeps/powerpc/powerpc32/crtn.S: New file.
27637         * sysdeps/powerpc/powerpc64/crti.S: New file.
27638         * sysdeps/powerpc/powerpc64/crtn.S: New file.
27639
27640         * Makeconfig (have-initfini): Don't set.
27641         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
27642         * configure.in (nopic_initfini): Don't substitute.
27643         * config.h.in (HAVE_INITFINI): Don't #undef.
27644         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
27645         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
27646
27647 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
27648
27649         Support crti.S and crtn.S provided directly by architectures.
27650         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
27651         [crti.S in sysdirs] (omit-deps): Likewise.
27652         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
27653         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
27654         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
27655         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
27656         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
27657         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
27658         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
27659         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
27660         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
27661         compiler output for sysdeps/generic/initfini.c.
27662         * sysdeps/i386/elf/Makefile: Remove file.
27663         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
27664
27665 2012-02-07  Marek Polacek  <polacek@redhat.com>
27666
27667         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
27668         * sysdeps/gnu/_G_config.h: Likewise.
27669         * sysdeps/mach/hurd/_G_config.h: Likewise.
27670
27671 2012-02-07  Marek Polacek  <polacek@redhat.com>
27672
27673         * math/Makefile (tests): Add tst-CMPLX2.
27674         * math/tst-CMPLX2.c: New file.
27675
27676 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
27677
27678         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
27679
27680         * math/libm-test.inc (jn_test): Add missing L suffix.
27681
27682 2012-02-06  Marek Polacek  <polacek@redhat.com>
27683
27684         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
27685         * sysdeps/i386/fpu/e_powf.S: Likewise.
27686         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
27687         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
27688         * sysdeps/i386/fpu/e_acosh.S: Likewise.
27689         * sysdeps/i386/fpu/e_pow.S: Likewise.
27690         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
27691         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
27692         * sysdeps/i386/fpu/s_expm1.S: Likewise.
27693         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
27694         * sysdeps/i386/fpu/e_log2.S: Likewise.
27695         * sysdeps/i386/fpu/e_log2l.S: Likewise.
27696         * sysdeps/i386/fpu/e_scalb.S: Likewise.
27697         * sysdeps/i386/fpu/e_powl.S: Likewise.
27698         * sysdeps/i386/fpu/s_log1p.S: Likewise.
27699         * sysdeps/i386/fpu/e_log10f.S: Likewise.
27700         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
27701         * sysdeps/i386/fpu/e_logl.S: Likewise.
27702         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
27703         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
27704         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
27705         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
27706         * sysdeps/i386/fpu/e_log2f.S: Likewise.
27707         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
27708         * sysdeps/i386/fpu/e_log.S: Likewise.
27709         * sysdeps/i386/fpu/s_cexp.S: Likewise.
27710         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
27711         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
27712         * sysdeps/i386/fpu/e_logf.S: Likewise.
27713         * sysdeps/i386/fpu/e_log10l.S: Likewise.
27714         * sysdeps/i386/fpu/e_atanh.S: Likewise.
27715         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
27716         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
27717         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
27718         * sysdeps/i386/fpu/e_log10.S: Likewise.
27719         * sysdeps/i386/fpu/s_frexp.S: Likewise.
27720         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
27721         * sysdeps/i386/fpu/s_asinh.S: Likewise.
27722         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
27723         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
27724         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
27725         * sysdeps/i386/asm-syntax.h: Likewise.
27726         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
27727         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
27728         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
27729         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
27730         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
27731         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
27732         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
27733         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
27734         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
27735         * sysdeps/powerpc/sysdep.h: Likewise.
27736         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
27737         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
27738
27739 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
27740
27741         [BZ #411]
27742         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
27743
27744 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
27745
27746         * sysdeps/i386/sysdep.h: Include <features.h>.
27747         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
27748         version.
27749
27750 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
27751
27752         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
27753         Define.
27754         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
27755         LOAD_PIC_REG_STR.
27756
27757 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
27758
27759         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
27760         (SETUP_PIC_REG): Use GET_PC_THUNK.
27761         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
27762         macro.
27763
27764 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
27765
27766         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
27767         for non-PIC compilation.
27768         (SETUP_PIC_REG): Add .p2align directive.
27769         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
27770         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
27771         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
27772         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
27773         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
27774         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
27775         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
27776         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
27777         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
27778         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
27779         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
27780         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
27781         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
27782         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
27783         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
27784         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
27785         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
27786         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
27787         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
27788         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
27789         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
27790         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
27791         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
27792         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
27793         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
27794         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
27795         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
27796         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
27797         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
27798         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
27799         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
27800         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
27801         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
27802         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
27803         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
27804         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
27805         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
27806         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
27807         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
27808         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
27809         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
27810
27811 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
27812
27813         * math/tst-CMPLX.c: Include <stdio.h>.
27814
27815 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
27816
27817         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
27818         float.
27819         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
27820         * sysdeps/sparc/bits/mathdef.h: Likewise.
27821
27822 2012-01-31  Marek Polacek  <polacek@redhat.com>
27823
27824         * libio/libio.h: Don't define _PARAMS.
27825         * locale/programs/config.h: Don't define PARAMS.
27826         * stdlib/strtol_l.c: Likewise.
27827         (__strtol_l): Remove PARAMS from the prototype.
27828
27829 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
27830
27831         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
27832         names.  Just use the correct names.  Remove unnecessary wrapper
27833         functions.
27834         * malloc/arena.c: Likewise.
27835         * malloc/hooks.c: Likewise.
27836
27837         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
27838         ARENA_TEST says not to.  Simplify test for creation of a new arena.
27839         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
27840
27841 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
27842
27843         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
27844         into tail calls.
27845         (update_get_addr): New function.
27846         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
27847         GET_ADDR_MODULE parameter.
27848
27849 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
27850
27851         * crypt/cert.c: Remove __STDC__ conditionals.
27852         * crypt/crypt-entry.c: Likewise.
27853         * crypt/crypt_util.c: Likewise.
27854         * libio/filedoalloc.c: Likewise.
27855         * libio/fileops.c: Likewise.
27856         * libio/genops.c: Likewise.
27857         * libio/iofclose.c: Likewise.
27858         * libio/iofdopen.c: Likewise.
27859         * libio/iofopen.c: Likewise.
27860         * libio/iofopen64.c: Likewise.
27861         * libio/iogetdelim.c: Likewise.
27862         * libio/iopopen.c: Likewise.
27863         * libio/obprintf.c: Likewise.
27864         * libio/oldfileops.c: Likewise.
27865         * libio/oldiofclose.c: Likewise.
27866         * libio/oldiofdopen.c: Likewise.
27867         * libio/oldiofopen.c: Likewise.
27868         * libio/oldiopopen.c: Likewise.
27869         * libio/wfiledoalloc.c: Likewise.
27870         * libio/wgenops.c: Likewise.
27871         * locale/programs/xmalloc.c: Likewise.
27872         * misc/syslog.c: Likewise.
27873         * stdio-common/xbug.c: Likewise.
27874         * string/memchr.c: Likewise.
27875         * string/memcmp.c: Likewise.
27876         * string/memrchr.c: Likewise.
27877         * string/rawmemchr.c: Likewise.
27878         * sysdeps/posix/getcwd.c: Likewise.
27879         * time/strftime_l.c: Likewise.
27880
27881 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
27882
27883         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
27884         * config.make.in (config-cflags-sse2avx): Define.
27885         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
27886         Fix typo.
27887
27888 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
27889
27890         * scripts/config.guess: Update from upstream config git repository.
27891         * scripts/config.sub: Likewise.
27892
27893 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
27894
27895         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
27896         (EM_NUM): Update.
27897         (R_TILEPRO_*, R_TILEGX_*): New macros.
27898
27899         * scripts/firstversions.awk: Fix bug in version range handling.
27900
27901         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
27902
27903         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
27904
27905         * include/sys/epoll.h: New file.
27906         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
27907         libc_hidden_def.
27908
27909 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
27910
27911         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
27912         Avoid unnecessary __WORDSIZE == 64 test.
27913         (fmaxf): Use VEX format if possible.
27914         (fmax): Likewise.
27915         (fminf): Likewise.
27916         (fmin): Likewise.
27917
27918         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
27919         * math/math_private.h: Remove libc_fegetround* and
27920         libc_fesetround*.
27921         * sysdeps/i386/configure.in: Check for -msse2avx.
27922         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
27923         also if SSE2AVX is defined.
27924         Remove libc_fegetround* and libc_fesetround*.
27925         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
27926         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
27927         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
27928         of HAS_YMM_USABLE.
27929         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
27930         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
27931         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
27932         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
27933         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
27934
27935         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
27936
27937 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
27938
27939         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
27940         size is not set.
27941         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
27942
27943 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
27944
27945         [BZ #13618]
27946         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
27947         relocation.
27948         * Makeconfig (libm): Define.
27949         * elf/Makefile: Add rules to build and run tst-relsort1.
27950         * elf/tst-relsort1.c: New file.
27951         * elf/tst-relsort1mod1.c: New file.
27952         * elf/tst-relsort1mod2.c: New file.
27953
27954 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
27955
27956         * math/s_ldexp.c: Remove __STDC__ conditionals.
27957         * math/s_ldexpf.c: Likewise.
27958         * math/s_ldexpl.c: Likewise.
27959         * math/s_nextafter.c: Likewise.
27960         * math/s_nexttowardf.c: Likewise.
27961         * math/s_significand.c: Likewise.
27962         * math/s_significandf.c: Likewise.
27963         * math/s_significandl.c: Likewise.
27964         * math/w_jnl.c: Likewise.
27965         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
27966         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
27967         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
27968         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
27969         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
27970         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
27971         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
27972         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
27973         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
27974         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
27975         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
27976         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
27977         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
27978         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
27979         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
27980         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
27981         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
27982         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
27983         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
27984         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
27985         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
27986         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
27987         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
27988         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
27989         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
27990         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
27991         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
27992         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
27993         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
27994         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
27995         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
27996         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
27997         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
27998         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
27999         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
28000         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
28001         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
28002         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
28003         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
28004         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
28005         * sysdeps/ieee754/k_standard.c: Likewise.
28006         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
28007         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
28008         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
28009         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
28010         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
28011         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
28012         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
28013         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
28014         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
28015         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
28016         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
28017         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
28018         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
28019         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
28020         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
28021         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
28022         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
28023         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
28024         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
28025         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
28026         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
28027         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
28028         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
28029         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
28030         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
28031         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
28032         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
28033         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
28034         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
28035         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
28036         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
28037         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
28038         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
28039         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
28040         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
28041         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
28042         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
28043         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
28044         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
28045         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
28046         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
28047         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
28048         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
28049         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
28050         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
28051         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
28052         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
28053         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
28054         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
28055         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
28056         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
28057         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
28058         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
28059         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
28060         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
28061         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
28062         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
28063         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
28064         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
28065         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
28066         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
28067         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
28068         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
28069         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
28070         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
28071         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
28072         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
28073         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
28074         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
28075         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
28076         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
28077         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
28078         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
28079         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
28080         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
28081         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
28082         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
28083         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
28084         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
28085         * sysdeps/ieee754/s_matherr.c: Likewise.
28086         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
28087         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
28088         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
28089         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
28090
28091 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
28092
28093         * crypt/md5.h: Remove __STDC__ conditionals.
28094         * libio/libioP.h: Likewise.
28095         * locale/programs/config.h: Likewise.
28096         * sysdeps/generic/sysdep.h: Likewise.
28097         * sysdeps/i386/asm-syntax.h: Likewise.
28098         * sysdeps/s390/asm-syntax.h: Likewise.
28099         * sysdeps/unix/sysdep.h: Likewise.
28100         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
28101         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
28102
28103 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
28104
28105         * libio/libio.h: Remove __STDC__ conditionals.
28106         * malloc/obstack.h: Likewise.
28107         * math/complex.h: Likewise.
28108         * math/math.h: Likewise.
28109         * sysdeps/generic/_G_config.h: Likewise.
28110         * sysdeps/gnu/_G_config.h: Likewise.
28111         * sysdeps/mach/hurd/_G_config.h: Likewise.
28112         * sysdeps/powerpc/bits/mathdef.h: Likewise.
28113         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
28114         * sysdeps/sparc/bits/mathdef.h: Likewise.
28115
28116 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
28117
28118         [BZ #13583]
28119         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
28120         Clean up HAS_* macros.
28121         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
28122         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
28123         possible.
28124         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
28125         HAS_AVX.
28126         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
28127         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
28128         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
28129         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
28130         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
28131
28132 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
28133
28134         * elf/tst-unique3.cc (gets): Remove declaration.
28135         * elf/tst-unique3lib.cc (gets): Likewise.
28136         * elf/tst-unique3lib2.cc (gets): Likewise.
28137         * elf/tst-unique4.cc (gets): Likewise.
28138
28139 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
28140
28141         * include/stdio.h: Add C++ protection.  Add gets declarations and
28142         definitions.
28143         * debug/tst-chk1.c: Don't declare gets here.
28144         * stdio-common/tst-gets.c: Likewise.
28145
28146 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
28147
28148         * posix/glob: Remove directory.
28149
28150 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
28151
28152         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
28153
28154 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
28155
28156         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
28157         of the non-standard EPFNOSUPPORT.
28158
28159 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
28160
28161         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
28162         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
28163         ANYWHERE set to 1 only on KERN_NO_SPACE error.
28164
28165 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
28166
28167         * wcsmbs/uchar.h: Test __STDC_VERSION__.
28168
28169 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
28170
28171         * nscd/aicache.c (addhstaiX): Do not cache negative results of
28172         transient errors.
28173         * nscd/grpcache.c (cache_addgr): Likewise.
28174         * nscd/hstcache.c (cache_addhst): Likewise.
28175         * nscd/initgrcache.c (addinitgroupsX): Likewise.
28176         * nscd/pwdcache.c (cache_addpw): Likewise.
28177         * nscd/servicescache.c (cache_addserv): Likewise.
28178
28179 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
28180
28181         * malloc/malloc.c: Various cleanups.
28182         * malloc/hooks.c: Likewise.
28183
28184         * stdlib/Makefile (tests): Add bug-fmtmsg1.
28185         * stdlib/bug-fmtmsg1.c: New file.
28186
28187         * stdlib/fmtmsg.c (init): Add missing unlock.
28188         Patch by Peng Haitao <penght@cn.fujitsu.com>.
28189
28190 2012-01-12  Marek Polacek  <polacek@redhat.com>
28191
28192         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
28193         and _GNU_SOURCE.
28194
28195 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
28196
28197         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
28198         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
28199         macro to ensure uniqueness of label name.
28200         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
28201         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
28202
28203 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
28204
28205         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
28206
28207         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
28208         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
28209         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
28210         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
28211
28212 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
28213
28214         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
28215
28216         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
28217         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
28218         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
28219
28220         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
28221
28222         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
28223         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
28224         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
28225         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
28226
28227         * math/bits/math-finite.h: Add ldexp support.
28228
28229 2012-01-10  Marek Polacek  <polacek@redhat.com>
28230
28231         * locale/programs/localedef.h (show_archive_content): Add noreturn
28232         attribute.
28233
28234 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
28235
28236         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
28237
28238 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
28239
28240         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
28241
28242         * io/Makefile (headers): Add bits/poll2.h.
28243
28244 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
28245
28246         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
28247         typo #include statement.
28248
28249 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
28250
28251         * include/sys/cdefs.h: Define __attribute_alloc_size.
28252         * catgets/gencat.c: Add alloc_size attribute and apply consistently
28253         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
28254         * elf/pldd.c: Likewise.
28255         * iconv/iconv_charmap.c: Likewise.
28256         * iconv/iconvconfig.c: Likewise.
28257         * iconv/strtab.c: Likewise.
28258         * locale/programs/locale.c: Likewise.
28259         * locale/programs/localedef.h: Likewise.
28260         * locale/programs/simple-hash.c: Likewise.
28261         * nscd/nscd.h: Likewise.
28262         * nss/makedb.c: Likewise.
28263         * sysdeps/generic/ldconfig.h: Likewise.
28264         * locale/programs/localedef.c: Remove xmalloc prototype.
28265         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
28266
28267 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
28268
28269         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
28270         appropriate.
28271
28272 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
28273
28274         * math/Makefile (tests): Add tst-CMPLX.
28275         * math/tst-CMPLX.c: New file.
28276
28277         * math/complex.h (CMPLXL): Fix typo.
28278
28279         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
28280         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
28281         GLIBC_2.16.
28282         * debug/tst-chk1.c: Add poll and ppoll tests.
28283         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
28284         * include/sys/poll.h: Add hidden proto for ppoll.
28285         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
28286         * sysdeps/mach/hurd/ppoll.c: Likewise.
28287         * io/ppoll.c: Likewise.
28288         * debug/poll_chk.c: New file.
28289         * debug/ppoll_chk.c: New file.
28290         * include/bits/poll2.h: New file.
28291         * io/bits/poll2.h: New file.
28292
28293         [BZ #1350]
28294         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
28295
28296         * configure.in: static is always set to yes.  Remove.
28297         * config.make.in: Don't set build-static.
28298         * Makeconfig: Remove use of build-static.
28299         * dlfcn/Makefile: Likewise.
28300         * elf/Makefile: Likewise.
28301         * math/Makefile: Likewise.
28302         * misc/Makefile: Likewise.
28303         * nptl/Makefile: Likewise.
28304         * sysdeps/mach/hurd/Makefile: Likewise.
28305
28306         * configure.in: PWD_P is not used anymore.
28307         * config.make.in: Remove PWD_P entry.
28308
28309         * configure.in: Remove last remnants of RANLIB.
28310         No need to check for signed size_t anymore.
28311         Don't set libc_commonpagesize and libc_relro_required here for Alpha
28312         and IA-64.
28313         Remove __builtin_expect test because we require at least gcc 3.4.
28314         * aclocal.m4: Likewise.
28315
28316         * wcsmbs/mbrtoc16.c: Implement using towc function.
28317         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
28318         * wcsmbs/wcsmbsload.c: Likewise.
28319         * iconv/gconv_simple.c: Likewise.
28320         * iconv/gconv_int.h: Likewise.
28321         * iconv/gconv_builtin.h: Likewise.
28322         * iconv/iconv_prog.c: Remove CHAR16 handling.
28323
28324         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
28325
28326         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
28327
28328         * configure.in: Remove --with-elf and --enable-bounded options.
28329         Dont set base_machine for ia64.  More non-ELF conditions removed.
28330         Remove testing and setting of leading underscore information.
28331         * config.make.in (build-bounded): Set to no.
28332         * config.h.in: Remove NO_UNDERSCORES entry.
28333         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
28334         them.
28335         * csu/start.c: Remove !NO_UNDERSCORE code.
28336         * locale/localeinfo.h: Likewise.
28337         * sysdeps/generic/machine-gmon.h: Likewise.
28338         * sysdeps/generic/sysdep.h: Likewise.
28339         * sysdeps/i386/sysdep.h: Likewise.
28340         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
28341         * sysdeps/mach/sysdep.h: Likewise.
28342         * sysdeps/s390/s390-32/sysdep.h: Likewise.
28343         * sysdeps/s390/s390-64/sysdep.h: Likewise.
28344         * sysdeps/sh/sysdep.h: Likewise.
28345         * sysdeps/sparc/sparc32/alloca.S: Likewise.
28346         * sysdeps/unix/i386/sysdep.S: Likewise.
28347         * sysdeps/unix/sparc/start.c: Likewise.
28348         * sysdeps/unix/sparc/sysdep.S: Likewise.
28349         * sysdeps/unix/sparc/sysdep.h: Likewise.
28350         * sysdeps/unix/start.c: Likewise.
28351         * sysdeps/unix/x86_64/sysdep.S: Likewise.
28352         * sysdeps/x86_64/sysdep.h: Likewise.
28353
28354 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
28355
28356         [BZ #13553]
28357         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
28358         for non-gcc.
28359         * argp/argp-fmtstream.h: Use const instead __const.
28360         * argp/argp.h: Likewise.
28361         * assert/assert.h: Likewise.
28362         * bits/fenv.h: Likewise.
28363         * bits/sched.h: Likewise.
28364         * bits/sigset.h: Likewise.
28365         * bits/sigthread.h: Likewise.
28366         * catgets/nl_types.h: Likewise.
28367         * conform/data/pthread.h-data: Likewise.
28368         * crypt/crypt-private.h: Likewise.
28369         * crypt/crypt.h: Likewise.
28370         * crypt/crypt_util.c: Likewise.
28371         * ctype/ctype.h: Likewise.
28372         * debug/execinfo.h: Likewise.
28373         * debug/mbsnrtowcs_chk.c: Likewise.
28374         * debug/mbsrtowcs_chk.c: Likewise.
28375         * debug/wcsnrtombs_chk.c: Likewise.
28376         * debug/wcsrtombs_chk.c: Likewise.
28377         * debug/wcstombs_chk.c: Likewise.
28378         * dirent/dirent.h: Likewise.
28379         * dlfcn/dlfcn.h: Likewise.
28380         * elf/neededtest4.c: Likewise.
28381         * grp/grp.h: Likewise.
28382         * gshadow/gshadow.h: Likewise.
28383         * iconv/gconv.h: Likewise.
28384         * iconv/gconv_int.h: Likewise.
28385         * iconv/gconv_simple.c: Likewise.
28386         * iconv/iconv.h: Likewise.
28387         * iconv/loop.c: Likewise.
28388         * iconv/skeleton.c: Likewise.
28389         * include/aio.h: Likewise.
28390         * include/aliases.h: Likewise.
28391         * include/argz.h: Likewise.
28392         * include/arpa/inet.h: Likewise.
28393         * include/assert.h: Likewise.
28394         * include/dirent.h: Likewise.
28395         * include/dlfcn.h: Likewise.
28396         * include/execinfo.h: Likewise.
28397         * include/fcntl.h: Likewise.
28398         * include/fenv.h: Likewise.
28399         * include/glob.h: Likewise.
28400         * include/grp.h: Likewise.
28401         * include/libintl.h: Likewise.
28402         * include/mntent.h: Likewise.
28403         * include/netdb.h: Likewise.
28404         * include/pwd.h: Likewise.
28405         * include/rpc/netdb.h: Likewise.
28406         * include/sched.h: Likewise.
28407         * include/search.h: Likewise.
28408         * include/shadow.h: Likewise.
28409         * include/signal.h: Likewise.
28410         * include/stdio.h: Likewise.
28411         * include/stdlib.h: Likewise.
28412         * include/string.h: Likewise.
28413         * include/sys/socket.h: Likewise.
28414         * include/sys/stat.h: Likewise.
28415         * include/sys/statfs.h: Likewise.
28416         * include/sys/statvfs.h: Likewise.
28417         * include/sys/syslog.h: Likewise.
28418         * include/sys/time.h: Likewise.
28419         * include/sys/uio.h: Likewise.
28420         * include/time.h: Likewise.
28421         * include/unistd.h: Likewise.
28422         * include/utmp.h: Likewise.
28423         * include/wchar.h: Likewise.
28424         * include/wctype.h: Likewise.
28425         * inet/aliases.h: Likewise.
28426         * inet/arpa/inet.h: Likewise.
28427         * inet/netinet/ether.h: Likewise.
28428         * inet/netinet/in.h: Likewise.
28429         * intl/libintl.h: Likewise.
28430         * io/bits/fcntl2.h: Likewise.
28431         * io/fcntl.h: Likewise.
28432         * io/ftw.h: Likewise.
28433         * io/sys/poll.h: Likewise.
28434         * io/sys/stat.h: Likewise.
28435         * io/sys/statfs.h: Likewise.
28436         * io/sys/statvfs.h: Likewise.
28437         * io/utime.h: Likewise.
28438         * libio/bits/stdio.h: Likewise.
28439         * libio/bits/stdio2.h: Likewise.
28440         * libio/libio.h: Likewise.
28441         * libio/libioP.h: Likewise.
28442         * libio/stdio.h: Likewise.
28443         * locale/lc-ctype.c: Likewise.
28444         * locale/locale.h: Likewise.
28445         * login/utmp.h: Likewise.
28446         * malloc/arena.c: Likewise.
28447         * malloc/malloc.c: Likewise.
28448         * malloc/malloc.h: Likewise.
28449         * malloc/mcheck.c: Likewise.
28450         * malloc/mtrace.c: Likewise.
28451         * math/bits/mathcalls.h: Likewise.
28452         * math/fenv.h: Likewise.
28453         * math/math_private.h: Likewise.
28454         * misc/bits/error.h: Likewise.
28455         * misc/bits/syslog.h: Likewise.
28456         * misc/err.h: Likewise.
28457         * misc/error.h: Likewise.
28458         * misc/fstab.h: Likewise.
28459         * misc/mntent.h: Likewise.
28460         * misc/regexp.h: Likewise.
28461         * misc/search.h: Likewise.
28462         * misc/sgtty.h: Likewise.
28463         * misc/sys/mman.h: Likewise.
28464         * misc/sys/syslog.h: Likewise.
28465         * misc/sys/uio.h: Likewise.
28466         * misc/sys/xattr.h: Likewise.
28467         * misc/ttyent.h: Likewise.
28468         * nis/rpcsvc/ypclnt.h: Likewise.
28469         * nss/nss.h: Likewise.
28470         * posix/bits/unistd.h: Likewise.
28471         * posix/fnmatch.h: Likewise.
28472         * posix/glob.h: Likewise.
28473         * posix/sched.h: Likewise.
28474         * posix/spawn.h: Likewise.
28475         * posix/sys/wait.h: Likewise.
28476         * posix/unistd.h: Likewise.
28477         * posix/wordexp.h: Likewise.
28478         * pwd/pwd.h: Likewise.
28479         * resolv/netdb.h: Likewise.
28480         * resource/sys/resource.h: Likewise.
28481         * rt/aio.h: Likewise.
28482         * rt/bits/mqueue2.h: Likewise.
28483         * rt/mqueue.h: Likewise.
28484         * shadow/shadow.h: Likewise.
28485         * signal/signal.h: Likewise.
28486         * socket/send.c: Likewise.
28487         * socket/sendto.c: Likewise.
28488         * socket/sys/socket.h: Likewise.
28489         * stdio-common/printf.h: Likewise.
28490         * stdlib/bits/stdlib.h: Likewise.
28491         * stdlib/fmtmsg.h: Likewise.
28492         * stdlib/monetary.h: Likewise.
28493         * stdlib/stdlib.h: Likewise.
28494         * stdlib/ucontext.h: Likewise.
28495         * streams/stropts.h: Likewise.
28496         * string/argz.h: Likewise.
28497         * string/bits/string2.h: Likewise.
28498         * string/string.h: Likewise.
28499         * string/strings.h: Likewise.
28500         * sunrpc/rpc/auth.h: Likewise.
28501         * sunrpc/rpc/auth_des.h: Likewise.
28502         * sunrpc/rpc/clnt.h: Likewise.
28503         * sunrpc/rpc/netdb.h: Likewise.
28504         * sunrpc/rpc/pmap_clnt.h: Likewise.
28505         * sunrpc/rpc/xdr.h: Likewise.
28506         * sysdeps/generic/inttypes.h: Likewise.
28507         * sysdeps/generic/net/if.h: Likewise.
28508         * sysdeps/generic/sys/swap.h: Likewise.
28509         * sysdeps/gnu/net/if.h: Likewise.
28510         * sysdeps/gnu/utmpx.h: Likewise.
28511         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
28512         * sysdeps/i386/i486/bits/string.h: Likewise.
28513         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
28514         * sysdeps/s390/bits/string.h: Likewise.
28515         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
28516         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
28517         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
28518         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
28519         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
28520         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
28521         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
28522         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
28523         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
28524         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
28525         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
28526         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
28527         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
28528         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
28529         * sysdeps/unix/sysv/linux/readv.c: Likewise.
28530         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
28531         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
28532         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
28533         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
28534         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
28535         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
28536         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
28537         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
28538         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
28539         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
28540         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
28541         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
28542         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
28543         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
28544         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
28545         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
28546         * sysvipc/sys/ipc.h: Likewise.
28547         * sysvipc/sys/msg.h: Likewise.
28548         * sysvipc/sys/sem.h: Likewise.
28549         * sysvipc/sys/shm.h: Likewise.
28550         * termios/termios.h: Likewise.
28551         * time/sys/time.h: Likewise.
28552         * time/time.h: Likewise.
28553         * wcsmbs/bits/wchar2.h: Likewise.
28554         * wcsmbs/uchar.h: Likewise.
28555         * wcsmbs/wchar.h: Likewise.
28556         * wctype/wctype.h: Likewise.
28557
28558         [BZ #13551]
28559         * Makeconfig: Remove all but ELF support including AIX support.
28560         * Makerules: Likewise.
28561         * config.h.in: Likewise.
28562         * config.make.in: Likewise.
28563         * configure: Likewise.
28564         * configure.in: Likewise.
28565         * csu/Makefile: Likewise.
28566         * csu/version.c: Likewise.
28567         * debug/Makefile: Likewise.
28568         * dlfcn/Makefile: Likewise.
28569         * elf/Makefile: Likewise.
28570         * extra-lib.mk: Likewise.
28571         * iconv/Makefile: Likewise.
28572         * include/libc-symbols.h: Likewise.
28573         * include/shlib-compat.h: Likewise.
28574         * resolv/Makefile: Likewise.
28575         * resolv/res_libc.c: Likewise.
28576         * rt/Makefile: Likewise.
28577         * sysdeps/i386/asm-syntax.h: Likewise.
28578         * sysdeps/i386/sysdep.h: Likewise.
28579         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
28580         * sysdeps/mach/sysdep.h: Likewise.
28581         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
28582         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
28583         * sysdeps/s390/asm-syntax.h: Likewise.
28584         * sysdeps/s390/s390-32/sysdep.h: Likewise.
28585         * sysdeps/s390/s390-64/sysdep.h: Likewise.
28586         * sysdeps/sh/sysdep.h: Likewise.
28587         * sysdeps/unix/sparc/sysdep.h: Likewise.
28588         * sysdeps/wordsize-32/divdi3.c: Likewise.
28589         * sysdeps/x86_64/sysdep.h: Likewise.
28590
28591         * argp/Versions: Remove _argp_unlock_xxx.
28592
28593         [BZ #13559]
28594         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
28595         * abilist/libBrokenLocale.abilist: Likewise.
28596         * abilist/libanl.abilist: Likewise.
28597         * abilist/libc.abilist: Likewise.
28598         * abilist/libcrypt.abilist: Likewise.
28599         * abilist/libdl.abilist: Likewise.
28600         * abilist/libm.abilist: Likewise.
28601         * abilist/libnsl.abilist: Likewise.
28602         * abilist/libpthread.abilist: Likewise.
28603         * abilist/libresolv.abilist: Likewise.
28604         * abilist/librt.abilist: Likewise.
28605         * abilist/libthread_db.abilist: Likewise.
28606         * abilist/libutil.abilist: Likewise.
28607         * abilist/libnss_db.abilist: New file.
28608
28609         * scripts/abilist.awk: Add support for indirect functions.
28610
28611         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
28612
28613         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
28614
28615         * shlib-versions: Remove entries for ports architectures.
28616
28617         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
28618         files in ports.
28619         * elf/stackguard-macros.h: Remove support for IA-64.
28620         * elf/tst-auditmod1.c: Likewise.
28621         * sysdeps/generic/ldsodefs.h: Likewise.
28622
28623         * sysdeps/unix/sysv/linux/configure.in: Ports should define
28624         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
28625         configure files.
28626
28627         [BZ #13552]
28628         * configure.in: Remove --enable-omitfp support.
28629         * FAQ.in: Adjust.
28630         * config.make.in: Likewise.
28631         * Makeconfig: Likewise.
28632         * manual/install.texi: Likewise.
28633
28634         In case anyone cares, the IA-64 architecture could move to ports.
28635         * sysdeps/ia64/*: Removed.
28636         * sysdeps/unix/sysv/linux/ia64/*: Removed.
28637         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
28638
28639         [BZ #13555]
28640         * configure.in: Remove entries for unsupported architectures.
28641
28642         [BZ #13533]
28643         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
28644         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
28645         routines.
28646         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
28647         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
28648         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
28649         fall back to using wcrtomb.
28650         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
28651         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
28652         renaming.
28653         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
28654         * wcsmbs/tst-c16c32-1.c: New file.
28655
28656         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
28657         local variable.
28658
28659         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
28660
28661         * elf/tst-unique3.cc: Add explicit declaration of gets.
28662         * elf/tst-unique3lib.cc: Likewise.
28663         * elf/tst-unique3lib2.cc: Likewise.
28664         * elf/tst-unique4.cc: Likewise.
28665
28666         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
28667
28668 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
28669
28670         [BZ #13566]
28671         * assert/assert.h (static_assert): Don't define for C++.
28672         * libio/stdio.h (gets): Do declare for C++ <= C++11.
28673         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
28674
28675 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
28676
28677         * iconv/loop.c (single loop): Fix assertion in storing of
28678         remaining bytes.
28679
28680         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
28681
28682 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
28683
28684         * posix/getconf.c: Update copyright year.
28685         * nss/getent.c: Likewise.
28686         * nss/makedb.c: Likewise.
28687         * iconv/iconvconfig.c: Likewise.
28688         * iconv/iconv_prog.c: Likewise.
28689         * elf/ldconfig.c: Likewise.
28690         * elf/pldd.c: Likewise.
28691         * elf/sotruss.ksh: Likewise.
28692         * catgets/gencat.c: Likewise.
28693         * csu/version.c: Likewise.
28694         * elf/ldd.bash.in: Likewise.
28695         * elf/sprof.c (print_version): Likewise.
28696         * locale/programs/locale.c: Likewise.
28697         * locale/programs/localedef.c: Likewise.
28698         * login/programs/pt_chown.c: Likewise.
28699         * nscd/nscd.c (print_version): Likewise.
28700         * debug/xtrace.sh: Likewise.
28701         * malloc/memusage.sh: Likewise.
28702         * malloc/mtrace.pl: Likewise.
28703         * debug/catchsegv.sh: Likewise.
28704
28705 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
28706
28707         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
28708         pure attribute.
28709
28710 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
28711
28712         [BZ #13533]
28713         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
28714         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
28715         transformations.
28716         * iconv/gconv_int.h: Likewise.
28717         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
28718         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
28719         from libc for GLIBC_2.16.
28720         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
28721         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
28722         * wcsmbs/uchar.h: Really define mbstate_t.
28723         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
28724         * wcsmbs/c16rtomb.c: New file.
28725         * wcsmbs/mbrtoc16.c: New file.
28726         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
28727         for C/POSIX locale.
28728         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
28729         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
28730
28731         * wcsmbs/wchar.h: Add missing __restrict.
28732
28733 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
28734
28735         [BZ #13532]
28736         * time/Makefile (routines): Add timespec_get.
28737         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
28738         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
28739         timespec for ISO C11.
28740         * time/timespec_get.c: New file.
28741         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
28742         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
28743
28744         [BZ #13531]
28745         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
28746         * stdlib/stdlib.h: Declare aligned_alloc.
28747         * Versions.def: Add GLIBC_2.16 for libc.
28748         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
28749
28750         [BZ 13527]
28751         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
28752         ISO C11.
28753
28754         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
28755         code.
28756
28757         [BZ #13528]
28758         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
28759
28760         [BZ #13529]
28761         * assert/assert.h (static_assert): Define.
28762
28763         * version.h: Update for 2.16 development version.
28764
28765         [BZ #13526]
28766         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
28767         _ISOC11_SOURCE.
28768
28769         * version.h (RELEASE): Bump for 2.15 release.
28770         * include/features.h (__GLIBC_MINOR__): Bump to 15.
28771
28772         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
28773         Patch by Marek Polacek <mpolacek@redhat.com>.
28774
28775         * bits/byteswap.h: Protect long long constants with __extension__.
28776         * sysdeps/i386/bits/byteswap.h: Likewise.
28777         * sysdeps/ia64/bits/byteswap.h: Likewise.
28778         * sysdeps/s390/bits/byteswap.h: Likewise.
28779         * sysdeps/x86_64/bits/byteswap.h: Likewise.
28780
28781 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28782
28783         [BZ #13540]
28784         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
28785         destination buffer.
28786         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
28787
28788 2011-12-23  Marek Polacek  <polacek@redhat.com>
28789
28790         * elf/dl-addr.c (determine_info): Add inline keyword.
28791         * elf/tst-auditmod4b.c (check_avx): Likewise.
28792         * elf/tst-auditmod6b.c (check_avx): Likewise.
28793         * elf/tst-auditmod6c.c (check_avx): Likewise.
28794         * elf/tst-auditmod7b.c (check_avx): Likewise.
28795
28796 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
28797
28798         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
28799         !__SSE_MATH__.
28800
28801 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28802
28803         [BZ #13540]
28804         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
28805         processing for last bytes.
28806
28807 2011-08-06  Bruno Haible  <bruno@clisp.org>
28808
28809         [BZ #13061]
28810         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
28811         U+0385, not to U+1FEE.
28812
28813         [BZ #13062]
28814         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
28815         entry for U+00A5 U+0301.
28816
28817 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
28818
28819         [BZ #13166]
28820         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
28821         buffer for the output is too small.
28822
28823         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
28824         optimization.
28825
28826         [BZ #13185]
28827         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
28828         SSE flags if possible.
28829
28830 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28831
28832         [BZ #13540]
28833         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
28834         processing for last bytes.
28835
28836 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
28837
28838         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
28839         (syscall-list-default-options, syscall-list-default-condition)
28840         (syscall-list-includes): Define.
28841         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
28842         list of ABIs and options and #if conditions for each ABI.  Do not
28843         handle common syscalls between ABIs specially.
28844         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
28845         Remove.
28846         (syscall-list-variants, syscall-list-32bit-options)
28847         (syscall-list-32bit-condition, syscall-list-64bit-options)
28848         (syscall-list-64bit-condition): Define.
28849         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
28850         (syscall-list-variants, syscall-list-32bit-options)
28851         (syscall-list-32bit-condition, syscall-list-64bit-options)
28852         (syscall-list-64bit-condition): Define.
28853         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
28854         Remove.
28855         (syscall-list-variants, syscall-list-32bit-options)
28856         (syscall-list-32bit-condition, syscall-list-64bit-options)
28857         (syscall-list-64bit-condition): Define.
28858         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
28859         Remove.
28860         (syscall-list-variants, syscall-list-32bit-options)
28861         (syscall-list-32bit-condition, syscall-list-64bit-options)
28862         (syscall-list-64bit-condition): Define.
28863
28864 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
28865
28866         * locale/iso-639.def: Add brx entry.
28867
28868         [BZ #13328]
28869         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
28870         Proposed by Mariusz_Cukr <marcukr@op.pl>.
28871
28872         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
28873         __feraiseexcept_renamed.
28874
28875 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
28876
28877         [BZ #13538]
28878         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
28879         EPOLLET with unsigned values.
28880         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
28881         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
28882
28883         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
28884         to large cancellation.
28885         * math/s_cacoshf.c: Likewise.
28886         * math/s_cacoshl.c: Likewise.
28887
28888 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
28889
28890         [BZ #13305]
28891         [BZ #12786]
28892         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
28893         * math/s_cacoshf.c: Likewise.
28894         * math/s_cacoshl.c: Likewise.
28895
28896 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
28897
28898         [BZ #13439]
28899         * iconv/gconv.h: Define __GCONV_SWAP.
28900         * iconvdata/unicode.c: The swap bit must be stored in __flags.
28901         * iconvdata/utf-16.c: Likewise.
28902         * iconvdata/utf-32.c: Likewise.
28903
28904 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
28905
28906         [BZ #13524]
28907         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
28908         numerator after shifting it by one limb.
28909
28910 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
28911
28912         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
28913         under [__USE_EXTERN_INLINES].
28914
28915 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
28916
28917         [BZ #13446]
28918         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
28919
28920 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28921
28922         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
28923         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
28924         optimized code.
28925         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
28926         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
28927         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
28928         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
28929         for strncasecmp/strncasecmp_l compilation.
28930         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
28931         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
28932
28933 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
28934
28935         [BZ #13484]
28936         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
28937         of __asm__.
28938
28939 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
28940
28941         [BZ #13506]
28942         * time/tzfile.c (__tzfile_read): Check values from file header.
28943
28944 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
28945
28946         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
28947         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
28948         * powerpc/powerpc32/dl-start.S: Likewise.
28949         * powerpc/powerpc32/elf/start.S: Likewise.
28950         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
28951         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
28952         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
28953         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
28954         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
28955         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
28956         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
28957         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
28958         * powerpc/powerpc32/fpu/s_round.S: Likewise.
28959         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
28960         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
28961         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
28962         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
28963         * powerpc/powerpc32/memset.S: Likewise.
28964         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
28965         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
28966         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
28967         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
28968         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
28969         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
28970         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
28971         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
28972         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
28973         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
28974         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
28975         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
28976         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
28977
28978 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
28979
28980         * math/libm-test.inc: Added more nearbyint tests.
28981         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
28982         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
28983         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
28984         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
28985
28986 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
28987
28988         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
28989         FD_CLOEXEC.
28990
28991 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
28992
28993         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
28994         Add wcscpy-ssse3 wcscpy-c.
28995         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
28996         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
28997         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
28998         * sysdeps/x86_64/wcschr.S: New file.
28999         * sysdeps/x86_64/wcsrchr.S: New file.
29000         * string/test-strcmp.c: Remove checking of wcscmp function for
29001         wrong alignments.
29002         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
29003         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
29004         wcsrchr-sse2 wcsrchr-c.
29005         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
29006         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
29007         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
29008         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
29009         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
29010         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
29011         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
29012         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
29013         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
29014         * wcsmbc/wcschr.c (WCSCHR): New macro.
29015
29016 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29017
29018         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
29019         * wcsmbs/test-wcsrchr.c: New file.
29020         * string/test-strrchr.c: Add wcsrchr support.
29021         (WIDE): New macro.
29022         * wcsmbs/test-wcscpy.c: New file.
29023         * string/test-strcpy.c: Add wcscpy support.
29024         (WIDE): New macro.
29025
29026 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
29027
29028         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
29029         the inner loop.
29030
29031 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
29032
29033         [BZ #13472]
29034         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
29035
29036 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
29037
29038         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
29039         Minor optimizations.
29040
29041         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
29042         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
29043         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
29044
29045 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
29046
29047         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
29048         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
29049         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
29050         for gcc to avoid warnings.
29051         * inet/Makefile (tests): Add tst-checks.
29052         * inet/tst-checks.c: New file.
29053
29054         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
29055         warning.
29056
29057         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
29058         __wmemcmp_sse2.
29059
29060         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
29061         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
29062
29063         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
29064
29065 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
29066
29067         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
29068         problem.
29069
29070         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
29071
29072 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
29073
29074         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
29075         conditional on GCC version.
29076         (__arch_compare_and_exchange_val_8_acq)
29077         (__arch_compare_and_exchange_val_16_acq)
29078         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
29079         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
29080         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
29081
29082 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
29083
29084         * sysdeps/sh/backtrace.c: New file.
29085
29086 2011-12-02  Andreas Schwab  <schwab@redhat.com>
29087
29088         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
29089         parenthesis.
29090
29091 2011-12-01  Andreas Schwab  <schwab@redhat.com>
29092
29093         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
29094         falling back to utime.
29095
29096 2011-11-30  Andreas Schwab  <schwab@redhat.com>
29097
29098         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
29099         expectations for float.
29100
29101 2011-11-29  Andreas Schwab  <schwab@redhat.com>
29102
29103         * locale/weight.h (findidx): Add parameter len.
29104         * locale/weightwc.h (findidx): Likewise.
29105         * posix/fnmatch_loop.c (FCT): Adjust caller.
29106         * posix/regcomp.c (build_equiv_class): Likewise.
29107         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
29108         * posix/regexec.c (check_node_accept_bytes): Likewise.
29109         * string/strcoll_l.c (STRCOLL): Likewise.
29110         * string/strxfrm_l.c (STRXFRM): Likewise.
29111
29112 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
29113
29114         * Makefile.in: Remove CVSOPT handling.
29115         * configure.in: Remove use of AC_REVISION.
29116         * iconvdata/Makefile (distribute): No need to filter out CVS.
29117         * scripts/list-sources.sh: Remove CVS, subversion and monotone
29118         handling.
29119
29120 2011-11-16  Andreas Schwab  <schwab@redhat.com>
29121
29122         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
29123         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
29124         [USE_AS_STRNCASECMP_L]: Likewise.
29125         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
29126         NO_TLS_DIRECT_SEG_REFS.
29127         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
29128         Fix argument offsets for non-PIC.
29129         [USE_AS_STRNCASECMP_L]: Likewise.
29130         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
29131         NO_TLS_DIRECT_SEG_REFS.
29132
29133 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
29134
29135         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
29136         O_CLOEXEC.
29137         * locale/loadlocale.c (_nl_load_locale): Likewise.
29138
29139 2011-11-15  Andreas Schwab  <schwab@redhat.com>
29140
29141         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
29142         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
29143         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
29144         (SYSCALL_GETTIME): Set errno on error.
29145
29146         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
29147         count references to noai6ai_cached.
29148
29149 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
29150
29151         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
29152
29153         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
29154         FD_CLOEXEC for /proc/self/maps.
29155
29156         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
29157         FD_CLOEXEC for /proc/meminfo.
29158
29159         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
29160         gai.conf.
29161
29162         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
29163         FD_CLOEXEC for given file.
29164
29165         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
29166
29167         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
29168         FD_CLOEXEC for /etc/hosts.
29169         (_gethtent): Likewise.
29170
29171         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
29172
29173         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
29174         cancellation and set FD_CLOEXEC for /etc/netgroup.
29175
29176         * nss/nss_files/files-key.c (search): Don't allow cancellation when
29177         reading /etc/publickey.
29178
29179         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
29180         allow cancellation when reading /etc/group.
29181
29182         * nss/nss_files/files-alias.c (internal_setent): Don't allow
29183         cancellation.
29184         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
29185
29186         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
29187         when using data file.
29188
29189         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
29190
29191         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
29192         (write_nis_obj): Use "c" and "e" in fopen.
29193
29194         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
29195
29196         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
29197
29198         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
29199
29200         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
29201
29202         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
29203         locale.alias.
29204
29205         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
29206
29207         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
29208
29209         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
29210
29211         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
29212         file parsing and set FD_CLOEXEC.
29213
29214 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
29215
29216         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
29217
29218 2011-11-14  Andreas Schwab  <schwab@redhat.com>
29219
29220         * malloc/arena.c (arena_get2): Don't call reused_arena when
29221         _int_new_arena failed.
29222
29223 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
29224
29225         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
29226         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
29227         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
29228         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
29229         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
29230         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
29231         to compile strcasecmp and strncasecmp.
29232         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
29233         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
29234
29235         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
29236
29237 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
29238
29239         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
29240         locale-defines.sym to gen-as-const-headers.
29241         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
29242         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
29243         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
29244         to compile strcasecmp and strncasecmp.
29245         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
29246         strcasecmp_l and strncasecmp_l.
29247         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
29248         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
29249         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
29250         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
29251         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
29252         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
29253         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
29254         * sysdeps/i386/i686/multiarch/strncase.S: New file.
29255         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
29256         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
29257         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
29258
29259 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
29260
29261         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
29262         result of SYSDEP_GETTIME_CPU to retval.
29263         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
29264         parameter list to macro.  Remove trailing semicolon.  Adjust users.
29265
29266         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
29267         variable.
29268
29269         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
29270         mantissa words.
29271         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
29272
29273         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
29274         from unused variable.
29275
29276         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
29277         DWARF definitions.
29278         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
29279         for assembling.
29280
29281         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
29282         over namespaces.
29283
29284         * sunrpc/rpc_prot.c (rejected): Fix case value.
29285
29286         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
29287         unsigned long long int to avoid warnings in shift.
29288
29289         * posix/regex_internal.c (re_string_reconstruct): Actually use result
29290         of use of trans.
29291         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
29292         variable tmp.
29293
29294         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
29295         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
29296         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
29297
29298         * nis/nis_table.c (nis_list): Use variable of correct type for
29299         result of __follow_path call.
29300
29301 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
29302
29303         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
29304         of math functions ceil, trunc, floor, round, and sqrt, when
29305         avaliable on the platform.
29306         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
29307         name clash.
29308         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
29309         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
29310         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
29311
29312 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
29313
29314         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
29315         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
29316
29317 2011-11-11  Roland McGrath  <roland@hack.frob.com>
29318
29319         * include/unistd.h: Fix __readlink return type.
29320         Reported by Chris Metcalf <cmetcalf@tilera.com>.
29321
29322 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
29323
29324         * stdlib/ucontext.h: Undo last change for makecontext.
29325
29326 2011-11-11  Andreas Schwab  <schwab@redhat.com>
29327
29328         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
29329
29330         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
29331         * setjmp/setjmp.h: Mark functions as non-leaf.
29332         * setjmp/bits/setjmp2.h: Likewise.
29333         * stdlib/ucontext.h: Likewise.
29334
29335 2011-11-10  Andreas Schwab  <schwab@redhat.com>
29336
29337         * malloc/arena.c (_int_new_arena): Don't increment narenas.
29338         (reused_arena): Don't check arena limit.
29339         (arena_get2): Atomically check arena limit.
29340
29341 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
29342
29343         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
29344         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
29345
29346         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
29347         instructions.
29348
29349 2011-11-07  Andreas Schwab  <schwab@redhat.com>
29350
29351         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
29352         handler when locking.
29353
29354         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
29355         Fix size of allocated buffer.
29356
29357 2011-11-04  Andreas Schwab  <schwab@redhat.com>
29358
29359         [BZ #10103]
29360         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
29361         declarations for long double functions.
29362         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
29363
29364         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
29365
29366 2011-11-03  Andreas Schwab  <schwab@redhat.com>
29367
29368         * nscd/nscd.c (main): Don't start AVC thread until credentials are
29369         installed.
29370
29371         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
29372         is disabled.
29373
29374 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
29375
29376         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
29377
29378 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
29379
29380         * include/alloca.h (stackinfo_alloca_round): Define.
29381         (extend_alloca): Use it.
29382         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
29383         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
29384         here.
29385
29386         * scripts/check-local-headers.sh: Ignore libaudit.h.
29387
29388         * nscd/Makefile (extra-objs): Make recursively expanded.
29389
29390 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
29391
29392         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
29393         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
29394
29395         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
29396         * posix/tst-rfc3484-2.c: Likewise.
29397         * posix/tst-rfc3484-3.c: Likewise.
29398
29399         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
29400         process_vm_writev.
29401         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
29402         process_vm_writev.
29403         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
29404         process_vm_writev from libc using GLIBC_2.15 version.
29405
29406         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
29407
29408 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
29409
29410         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
29411         stack usage.
29412
29413 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
29414
29415         [BZ #13367]
29416         * nss/getent.c (initgroups_keys): Show error message in case no group
29417         names are given.
29418
29419         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
29420         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
29421         __bump_nl_timestamp.
29422         * nscd/connections (nscd_init): When host database is served open
29423         netlink socket and request notification about configuration changes.
29424         (main_loop_poll): Track netlink file descriptor and bump timestamp
29425         in case data becomes available.
29426         (main_loop_epoll): Likewise.
29427         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
29428         (database_pers_head): Add extra_data fileds.
29429         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
29430         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
29431         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
29432         Adjust caller.
29433         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
29434         in6ai data, call __free_in6ai.
29435         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
29436         Add -DHAVE_NETLINK.
29437         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
29438         interface information.  Reuse previous data if netlink timestamp
29439         is not changed.
29440         (__bump_nl_timestamp): New function.
29441         (__free_in6ai): New function.
29442
29443 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
29444
29445         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
29446         close_not_cancel_no_status here.
29447         (__check_pf): Reorganize code a bit to not call close twice if OOM.
29448
29449 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
29450
29451         [BZ #13276]
29452         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
29453         return value.
29454
29455         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
29456         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
29457         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
29458
29459 2011-07-03  Andreas Jaeger  <aj@suse.de>
29460
29461         [BZ #10709]
29462         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
29463         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
29464         * math/libm-test.inc (sin_test): Add test case.
29465
29466 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
29467
29468         [BZ #13337]
29469         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
29470         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
29471
29472         * elf/chroot_canon.c (chroot_canon): Cleanups.
29473
29474         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
29475
29476         [BZ #13335]
29477         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
29478         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
29479
29480         * string/test-strchr.c: Make usable for strchrnul testing.
29481         * string/test-strchrnul.c: New file.
29482         * string/Makefile (strop-tests): Add strchrnul.
29483
29484         * po/it.po: Update from translation team.
29485         * po/es.po: Likewise.
29486
29487 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
29488
29489         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
29490         the three constants needed as parameters.  Drop the others.
29491         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
29492         __m128i_strloadu_tolower.
29493         Create and initialize variable zero and use it in all the places
29494         where _mm_setzero_si128 was used.
29495
29496         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
29497         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
29498         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
29499         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
29500         anymore.
29501         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
29502         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
29503         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
29504         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
29505         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
29506         __mpranred, __mptan.
29507         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
29508         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
29509         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
29510         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
29511         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
29512         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
29513         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
29514         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
29515         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
29516
29517 2011-10-28  Andreas Schwab  <schwab@redhat.com>
29518
29519         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
29520         redefine if SHARED.
29521         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
29522
29523         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
29524         wide char related routines to wcsmbs subdir.
29525
29526 2011-10-27  Andreas Schwab  <schwab@redhat.com>
29527
29528         [BZ #13344]
29529         * misc/sys/cdefs.h (__THROWNL): Define.
29530         * posix/unistd.h: Use __THREADNL instead of __THREAD
29531         for memory synchronization functions.
29532
29533 2011-10-26  Roland McGrath  <roland@hack.frob.com>
29534
29535         [BZ #13349]
29536         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
29537         doesn't exist.
29538         * manual/stdio.texi (Obstack Streams): Node removed.
29539
29540 2011-10-26  Andreas Schwab  <schwab@redhat.com>
29541
29542         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
29543         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
29544         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
29545
29546         * math/math_private.h (math_force_eval): Allow non-addressable
29547         arguments.
29548         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
29549
29550 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
29551
29552         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
29553         file is not needed.
29554
29555         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
29556         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
29557         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
29558         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
29559         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
29560         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
29561         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
29562         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
29563         Add AVX variants.
29564         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
29565         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
29566         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
29567         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
29568         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
29569         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
29570         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
29571         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
29572         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
29573         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
29574         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
29575         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
29576         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
29577         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
29578         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
29579         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
29580         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
29581         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
29582         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
29583
29584         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
29585         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
29586
29587         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
29588         place.  Use VEX encoding when compiling for AVX.
29589
29590 2011-10-25  Andreas Schwab  <schwab@redhat.com>
29591
29592         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
29593         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
29594
29595         * string/test-strchr.c (do_test): Don't generate NUL bytes.
29596
29597 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
29598
29599         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
29600         useless if() expression.
29601         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
29602         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
29603         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
29604         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
29605         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
29606         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
29607         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
29608         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
29609         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
29610         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
29611         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
29612         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
29613         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
29614         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
29615         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
29616         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
29617         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
29618         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
29619         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
29620
29621         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
29622
29623 2011-10-25  Andreas Schwab  <schwab@redhat.com>
29624
29625         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
29626         condition.
29627         * elf/dl-fini.c (_dl_sort_fini): Likewise.
29628
29629 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
29630
29631         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
29632         .text section.  Avoid duplicate constants.
29633         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
29634         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29635         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
29636         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29637         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
29638         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29639         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29640         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29641         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
29642         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
29643         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
29644         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
29645         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
29646         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
29647         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
29648         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
29649         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
29650         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
29651         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
29652         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29653         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
29654         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
29655         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
29656         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
29657         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
29658         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
29659         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
29660         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
29661         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
29662         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
29663         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
29664         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
29665         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
29666         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
29667         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
29668         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
29669         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
29670         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
29671         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
29672         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
29673         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
29674         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
29675         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
29676         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
29677         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
29678
29679 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
29680
29681         * sysdeps/x86_64/dla.h: Move to ...
29682         * sysdeps/x86_64/fpu/dla.h: ...here.
29683         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
29684         situations.  Use __builtin_fma only for gcc 4.6 and up.
29685
29686         * config.make.in: Add have-mfma4 entry.
29687         * configure.in: Substitute libc_cv_cc_fma4.
29688         * math/Makefile (dbl-only-routines): Add sincostab.
29689         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
29690         Use __sincostab not sincos.
29691         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
29692         name is a macro.
29693         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
29694         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29695         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29696         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
29697         using __copysign.
29698         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
29699         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
29700         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
29701         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
29702         and __inv.
29703         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
29704         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
29705         __copysign.
29706         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
29707         define aliases when function name is a macro.
29708         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
29709         sysdeps/ieee754/dbl-64/sincos.tbl.
29710         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
29711         fma4-enabled routines.
29712         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
29713         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
29714         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
29715         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
29716         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
29717         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
29718         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
29719         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
29720         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
29721         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
29722         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
29723         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
29724         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
29725         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
29726         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
29727         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
29728         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
29729         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
29730         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
29731         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
29732         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
29733         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
29734         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
29735         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
29736         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
29737         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
29738         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
29739         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
29740         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
29741         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
29742
29743         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
29744         rename.
29745         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29746         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29747         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29748         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29749         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29750         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29751         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
29752         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29753
29754 2011-10-24  Andreas Schwab  <schwab@redhat.com>
29755
29756         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
29757
29758 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
29759
29760         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
29761
29762         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
29763         prediction.
29764         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
29765
29766         * string/strnlen.c: Don't define STRNLEN, reverse logic.
29767         Remove unused variable magic_bits.
29768         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
29769
29770         * string/strnlen.c: Define and use STRNLEN macro.
29771         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
29772         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
29773         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
29774         * wcsmbs/wcslen.c: Define and use WCSLEN.
29775         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
29776         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
29777         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
29778         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
29779         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
29780         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
29781         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
29782
29783 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29784
29785         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
29786         strnlen-sse2-no-bsf.
29787         Rename strlen-no-bsf to strlen-sse2-no-bsf.
29788         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
29789         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
29790         Add strnlen support.
29791         (USE_AS_STRNLEN): New macro.
29792         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
29793         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
29794         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
29795         * sysdeps/x86_64/wcslen.S: New file.
29796
29797 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
29798
29799         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
29800         XMM-moves are used for copying on small sizes.
29801
29802 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29803
29804         * wcsmbs/Makefile (strop-tests): Add wcschr.
29805         * wcsmbs/test-wcschr.c: New file.
29806         * string/test-strchr.c: Update.
29807         Add wcschr support.
29808         (WIDE): New macro.
29809
29810 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29811
29812         * wcsmbs/Makefile (strop-tests): Add wcslen.
29813         * wcsmbs/test-wcslen.c: New file.
29814         * string/test-strlen.c: Update.
29815         Add wcslen support.
29816         (WIDE): New macro.
29817
29818 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
29819
29820         * po/it.po: Update from translation team.
29821
29822 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
29823
29824         * sysdeps/x86_64/wcscmp.S: Update.
29825         Fix wrong comparison semantics.
29826         wcscmp shall use signed comparison not unsigned.
29827         Don't use substraction to avoid overflow bug.
29828         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
29829         * wcsmbc/wcscmp.c: Likewise.
29830         * string/test-strcmp.c: Likewise.
29831         Add new tests to check cases with negative values.
29832
29833 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
29834
29835         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
29836         * sysdeps/x86_64/dla.h: ...here.  New file.
29837         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
29838         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29839         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29840         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29841         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29842         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
29843         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29844         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
29845         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29846
29847 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
29848
29849         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
29850         __ynl_finite aliases.
29851
29852 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
29853
29854         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
29855
29856         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
29857         define DLA_FMA.
29858         [DLA_FMA] (EMULV): Use DLA_FMA.
29859         [DLA_FMA] (MUL12): Use EMULV.
29860         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
29861         that are not needed.
29862         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
29863         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
29864         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
29865         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
29866         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
29867         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
29868         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
29869
29870 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
29871
29872         * math/s_nan.c: Undef __nan.
29873         * math/s_nanf.c: Undef __nanf.
29874         * math/s_nanl.c: Undef __nanl.
29875         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
29876         "math_private.h".
29877
29878 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
29879
29880         * math/s_catan.c: Add branch predictions.
29881         * math/s_catanf.c: Likewise.
29882         * math/s_catanh.c: Likewise.
29883         * math/s_catanhf.c: Likewise.
29884         * math/s_catanhl.c: Likewise.
29885         * math/s_catanl.c: Likewise.
29886         * math/s_cexp.c: Likewise.
29887         * math/s_cexpf.c: Likewise.
29888         * math/s_cexpl.c: Likewise.
29889         * math/s_clog.c: Likewise.
29890         * math/s_clog10.c: Likewise.
29891         * math/s_clog10f.c: Likewise.
29892         * math/s_clog10l.c: Likewise.
29893         * math/s_clogf.c: Likewise.
29894         * math/s_clogl.c: Likewise.
29895         * math/s_csqrt.c: Likewise.
29896         * math/s_csqrtf.c: Likewise.
29897         * math/s_csqrtl.c: Likewise.
29898         * math/s_ctanf.c: Likewise.
29899         * math/s_ctanh.c: Likewise.
29900         * math/s_ctanhf.c: Likewise.
29901         * math/s_ctanhl.c: Likewise.
29902         * math/s_ctanl.c: Likewise.
29903
29904         * math/math_private.h: Define __nan, __nanf, __nanl.
29905         * math/s_cacosh.c: Include <math_private.h>.
29906         * math/s_cacoshl.c: Likewise.
29907         * math/s_casinh.c: Likewise.
29908         * math/s_casinhf.c: Likewise.
29909         * math/s_casinhl.c: Likewise.
29910         * math/s_ccos.c: Rely entire on ccosh.
29911         * math/s_ccosf.c: Rely entire on ccoshf.
29912         * math/s_ccosl.c: Rely entirely on ccoshl.
29913         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
29914         Remove tests for FE_INVALID.
29915         * math/s_ccoshf.c: Likewise.
29916         * math/s_ccoshl.c: Likewise.
29917         * math/s_csin.c: Likewise.
29918         * math/s_csinf.c: Likewise.
29919         * math/s_csinh.c Likewise.
29920         * math/s_csinhf.c: Likewise.
29921         * math/s_csinhl.c: Likewise.
29922         * math/s_csinl.c: Likewise.
29923         * math/s_ctan.c: Likewise.
29924         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
29925         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
29926         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
29927
29928 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
29929
29930         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
29931         compilation problems.
29932
29933         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
29934         __builtin_expect.
29935
29936 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
29937
29938         * sysdeps/i386/configure.in: Test for -mfma4 option.
29939         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
29940         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
29941         COMMON_CPUID_INDEX_80000001.
29942         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
29943         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
29944         use it if FMA3 is not supported.
29945         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
29946
29947         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
29948         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
29949
29950 2011-10-20  Andreas Schwab  <schwab@redhat.com>
29951
29952         [BZ #12892]
29953         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
29954         it would create a cycle with a link time dependency.
29955
29956 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
29957
29958         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
29959         instruction.
29960         * string/Makefile (strop-tests): Add rawmemchr.
29961         * string/test-rawmemchr.c: New file.
29962
29963         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
29964         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
29965         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
29966         when compiling str{,n}casecmp and when AVX is available.  Hook up
29967         new optimized code in initializers.
29968
29969 2011-10-19  Andreas Schwab  <schwab@redhat.com>
29970
29971         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
29972         __feraiseexcept instead of feraiseexcept.
29973
29974 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
29975
29976         * math/math_private.h: Define defaults for libc_fetestexcept and
29977         libc_feupdateenv.
29978         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
29979         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
29980         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
29981         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
29982         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
29983         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
29984         libc_fetestexcept and libc_feupdateenv.
29985
29986         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
29987         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
29988         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
29989         * sysdeps/x86_64/fpu/math_private.h: Define special version of
29990         libc_feholdexcept_setround.
29991
29992         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
29993         Add s_nearbyint-c and s_nearbyintf-c.
29994         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
29995         nearbyintf inlines.
29996         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
29997         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
29998         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
29999         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
30000
30001         * math/math_private.h: Define defaults for libc_fegetround,
30002         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
30003         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
30004         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
30005         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
30006         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
30007         standard functions.
30008         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
30009         Remove comments and hacks for old compiler versions.
30010         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
30011         libc_fegetround, libc_fesetround, libc_feholdexcept, and
30012         libc_feholdexceptl.
30013
30014 2011-10-18  Andreas Schwab  <schwab@redhat.com>
30015
30016         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
30017         (__feraiseexcept_renamed): Add __NTH.
30018         (feraiseexcept): Add __NTH.  Rename local variables to fix
30019         namespace violations.
30020
30021 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
30022
30023         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
30024
30025         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
30026
30027         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
30028         recently added interfaces.
30029         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
30030
30031         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
30032         about macro parameter expansion.
30033
30034         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
30035         __NO_MATH_INLINES is defined.  Cleanups.
30036
30037         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
30038         and __floorf is target has SSE4.1.
30039         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
30040         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
30041         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
30042         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
30043
30044         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
30045         name.
30046         (floorf): Likewise.
30047
30048         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
30049
30050 2011-10-17  Andreas Schwab  <schwab@redhat.com>
30051
30052         * misc/sys/cdefs.h: Fix last change.
30053
30054         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
30055         database lookup.
30056
30057 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
30058
30059         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
30060
30061         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
30062         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
30063         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
30064         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
30065         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
30066         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
30067         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
30068         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
30069         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
30070         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
30071         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
30072         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
30073         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
30074         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
30075         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
30076         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
30077         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
30078         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
30079         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
30080         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
30081         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
30082         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
30083
30084         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
30085         ceil, ceilf, floor, floorf.
30086
30087         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
30088         Perform IRELATIVE relocations last.
30089
30090         * elf/do-rel.h: Add another parameter nrelative, replacing the
30091         local variable with the same name.  Change name of the function
30092         to end in Rel or Rela (uppercase).
30093         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
30094         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
30095         elf_dynamic_do_##reloc function.
30096
30097 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
30098
30099         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
30100         is sufficient, at least on modern CPUs.
30101
30102         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
30103
30104         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
30105         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
30106
30107         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
30108         __expl_finite.
30109         * math/bits/math-finite.h: Add entries for exp.
30110         * math/e_expl.c: Add __*_finite alias.
30111         * sysdeps/i386/fpu/e_exp.S: Likewise.
30112         * sysdeps/i386/fpu/e_expf.S: Likewise.
30113         * sysdeps/i386/fpu/e_expl.c: Likewise.
30114         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
30115         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
30116         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
30117         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
30118         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
30119         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
30120         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
30121
30122         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
30123         is sufficient, at least on modern CPUs.
30124
30125         * ctype/ctype-info.c (__ctype_init): Define.
30126         * include/ctype.h (__ctype_init): Declare.
30127         (__ctype_b_loc): The variable is always initialized.
30128         (__ctype_toupper_loc): Likewise.
30129         (__ctype_tolower_loc): Likewise.
30130         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
30131         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
30132
30133 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
30134
30135         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
30136
30137         * configure.in: Also look in $cxxmachine/include for C++ system
30138         headers.
30139
30140 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30141
30142         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
30143         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
30144         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
30145         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
30146         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
30147         (USE_AS_WMEMCMP): New macro.
30148         Fixing indents.
30149         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
30150         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
30151         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
30152         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
30153         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30154         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
30155         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
30156         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
30157         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
30158         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
30159         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
30160         (USE_AS_WMEMCMP): New macro.
30161         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
30162         * sysdeps/string/test-memcmp.c: Update.
30163         Fix simple_wmemcmp.
30164         Add new tests.
30165         * wcsmbs/wmemcmp.c: Update.
30166         (WMEMCMP): New macro.
30167         Fix overflow bug.
30168
30169 2011-10-12  Andreas Jaeger  <aj@suse.de>
30170
30171         [BZ #13268]
30172         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
30173
30174 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
30175
30176         * libio/iofwide.c (do_length): Avoid warning.
30177
30178         * ctype/ctype.h (__isctype_f): Add missing __THROW.
30179
30180 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
30181
30182         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
30183
30184         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
30185         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
30186         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
30187         * sysdeps/i386/i686/fpu/e_log.S: New file.
30188         * sysdeps/i386/i686/fpu/e_logf.S: New file.
30189         * sysdeps/i386/i686/fpu/e_logl.S: New file.
30190
30191         * ctype/ctype.h: Add support for inlined isXXX functions when
30192         compiling C++ code.
30193
30194 2011-10-14  Andreas Schwab  <schwab@redhat.com>
30195
30196         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30197
30198         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
30199
30200 2011-10-13  Roland McGrath  <roland@hack.frob.com>
30201
30202         [BZ #13291]
30203         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
30204
30205 2011-10-13  Andreas Schwab  <schwab@redhat.com>
30206
30207         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
30208         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
30209         feraiseexcept.
30210
30211         * sysdeps/x86_64/memrchr.S: Check for zero size.
30212
30213         * string/stratcliff.c: Add memrchr tests.
30214
30215 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30216
30217         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
30218         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
30219         rawmemchr-sse2 rawmemchr-sse2-bsf.
30220         * sysdeps/i386/i686/multiarch/memchr.S: New file.
30221         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
30222         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
30223         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
30224         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
30225         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
30226         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
30227         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
30228         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
30229         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
30230         * string/memrchr.c (MEMRCHR): New macro.
30231
30232 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
30233
30234         Add integration with gcc's -ffinite-math-only and optimize wrapper
30235         functions in libm.
30236         * Versions.def: Define GLIBC_2.15 version for libm.
30237         * math/Makefile (headers): Add bits/math-finite.h.
30238         * math/bits/math-finite.h: New file.
30239         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
30240         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
30241         * math/e_acoshl.c: Add __*_finite alias.
30242         * math/e_acosl.c: Likewise.
30243         * math/e_asinl.c: Likewise.
30244         * math/e_atan2l.c: Likewise.
30245         * math/e_atanhl.c: Likewise.
30246         * math/e_coshl.c: Likewise.
30247         * math/e_exp10.c: Likewise.
30248         * math/e_exp10f.c: Likewise.
30249         * math/e_exp10l.c: Likewise.
30250         * math/e_exp2l.c: Likewise.
30251         * math/e_fmodl.c: Likewise.
30252         * math/e_gammal_r.c: Likewise.
30253         * math/e_hypotl.c: Likewise.
30254         * math/e_j0l.c: Likewise.
30255         * math/e_j1l.c: Likewise.
30256         * math/e_jnl.c: Likewise.
30257         * math/e_lgammal_r.c: Likewise.
30258         * math/e_log10l.c: Likewise.
30259         * math/e_log2l.c: Likewise.
30260         * math/e_logl.c: Likewise.
30261         * math/e_powl.c: Likewise.
30262         * math/e_sinhl.c: Likewise.
30263         * math/e_sqrtl.c: Likewise.
30264         * math/e_scalb.c: Completely rewritten and optimized.
30265         * math/e_scalbf.c: Likewise.
30266         * math/e_scalbl.c: Likewise.
30267         * math/w_acos.c: Likewise.
30268         * math/w_acosf.c: Likewise.
30269         * math/w_acosl.c: Likewise.
30270         * math/w_acosh.c: Likewise.
30271         * math/w_acoshf.c: Likewise.
30272         * math/w_acoshl.c: Likewise.
30273         * math/w_asin.c: Likewise.
30274         * math/w_asinf.c: Likewise.
30275         * math/w_asinl.c: Likewise.
30276         * math/w_atan2.c: Likewise.
30277         * math/w_atan2f.c: Likewise.
30278         * math/w_atan2l.c: Likewise.
30279         * math/w_atanh.c: Likewise.
30280         * math/w_atanhf.c: Likewise.
30281         * math/w_atanhl.c: Likewise.
30282         * math/w_exp10.c: Likewise.
30283         * math/w_exp10f.c: Likewise.
30284         * math/w_exp10l.c: Likewise.
30285         * math/w_fmod.c: Likewise.
30286         * math/w_fmodf.c: Likewise.
30287         * math/w_fmodl.c: Likewise.
30288         * math/w_j0.c: Likewise.
30289         * math/w_j0f.c: Likewise.
30290         * math/w_j0l.c: Likewise.
30291         * math/w_j1.c: Likewise.
30292         * math/w_j1f.c: Likewise.
30293         * math/w_j1l.c: Likewise.
30294         * math/w_jn.c: Likewise.
30295         * math/w_jnf.c: Likewise.
30296         * math/w_log.c: Likewise.
30297         * math/w_logf.c: Likewise.
30298         * math/w_logl.c: Likewise.
30299         * math/w_log10.c: Likewise.
30300         * math/w_log10f.c: Likewise.
30301         * math/w_log10l.c: Likewise.
30302         * math/w_log2.c: Likewise.
30303         * math/w_log2f.c: Likewise.
30304         * math/w_log2l.c: Likewise.
30305         * math/w_pow.c: Likewise.
30306         * math/w_powf.c: Likewise.
30307         * math/w_powl.c: Likewise.
30308         * math/w_remainder.c: Likewise.
30309         * math/w_remainderf.c: Likewise.
30310         * math/w_remainderl.c: Likewise.
30311         * math/w_scalb.c: Likewise.
30312         * math/w_scalbf.c: Likewise.
30313         * math/w_scalbl.c: Likewise.
30314         * math/w_sqrt.c: Likewise.
30315         * math/w_sqrtf.c: Likewise.
30316         * math/w_sqrtl.c: Likewise.
30317         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
30318         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
30319         used.
30320         * math/math_private.h: Declare __kernel_standard_f.
30321         * math/w_cosh.c: Remove cruft and optimize a bit.
30322         * math/w_coshf.c: Likewise.
30323         * math/w_coshl.c: Likewise.
30324         * math/w_exp2.c: Likewise.
30325         * math/w_exp2f.c: Likewise.
30326         * math/w_exp2l.c: Likewise.
30327         * math/w_hypot.c: Likewise.
30328         * math/w_hypotf.c: Likewise.
30329         * math/w_hypotl.c: Likewise.
30330         * math/w_lgamma.c: Likewise.
30331         * math/w_lgamma_r.c: Likewise.
30332         * math/w_lgammaf.c: Likewise.
30333         * math/w_lgammaf_r.c: Likewise.
30334         * math/w_lgammal.c: Likewise.
30335         * math/w_lgammal_r.c: Likewise.
30336         * math/w_sinh.c: Likewise.
30337         * math/w_sinhf.c: Likewise.
30338         * math/w_sinhl.c: Likewise.
30339         * math/w_tgamma.c: Likewise.
30340         * math/w_tgammaf.c: Likewise.
30341         * math/w_tgammal.c: Likewise.
30342         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
30343         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
30344         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
30345         Minor optimizations.  Pretty printing.  Remove cruft.
30346         * sysdeps/i386/fpu/e_acosf.S: Likewise.
30347         * sysdeps/i386/fpu/e_acosh.S: Likewise.
30348         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
30349         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
30350         * sysdeps/i386/fpu/e_acosl.c: Likewise.
30351         * sysdeps/i386/fpu/e_asin.S: Likewise.
30352         * sysdeps/i386/fpu/e_asinf.S: Likewise.
30353         * sysdeps/i386/fpu/e_atan2.S: Likewise.
30354         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
30355         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
30356         * sysdeps/i386/fpu/e_atanh.S: Likewise.
30357         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
30358         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
30359         * sysdeps/i386/fpu/e_exp10.S: Likewise.
30360         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
30361         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
30362         * sysdeps/i386/fpu/e_exp2.S: Likewise.
30363         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
30364         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
30365         * sysdeps/i386/fpu/e_fmod.S: Likewise.
30366         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
30367         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
30368         * sysdeps/i386/fpu/e_hypot.S: Likewise.
30369         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
30370         * sysdeps/i386/fpu/e_log.S: Likewise.
30371         * sysdeps/i386/fpu/e_log10.S: Likewise.
30372         * sysdeps/i386/fpu/e_log10f.S: Likewise.
30373         * sysdeps/i386/fpu/e_log10l.S: Likewise.
30374         * sysdeps/i386/fpu/e_log2.S: Likewise.
30375         * sysdeps/i386/fpu/e_log2f.S: Likewise.
30376         * sysdeps/i386/fpu/e_log2l.S: Likewise.
30377         * sysdeps/i386/fpu/e_logf.S: Likewise.
30378         * sysdeps/i386/fpu/e_logl.S: Likewise.
30379         * sysdeps/i386/fpu/e_pow.S: Likewise.
30380         * sysdeps/i386/fpu/e_powf.S: Likewise.
30381         * sysdeps/i386/fpu/e_powl.S: Likewise.
30382         * sysdeps/i386/fpu/e_remainder.S: Likewise.
30383         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
30384         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
30385         * sysdeps/i386/fpu/e_scalb.S: Likewise.
30386         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
30387         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
30388         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
30389         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
30390         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
30391         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
30392         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
30393         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
30394         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
30395         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
30396         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
30397         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
30398         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
30399         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
30400         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
30401         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
30402         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
30403         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
30404         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
30405         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
30406         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
30407         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
30408         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
30409         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
30410         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
30411         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
30412         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
30413         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
30414         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
30415         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
30416         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
30417         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
30418         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
30419         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
30420         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
30421         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
30422         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
30423         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
30424         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
30425         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
30426         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
30427         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
30428         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
30429         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
30430         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
30431         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
30432         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
30433         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
30434         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
30435         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
30436         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
30437         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
30438         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
30439         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
30440         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
30441         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
30442         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
30443         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
30444         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
30445         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
30446         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
30447         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
30448         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
30449         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
30450         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
30451         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
30452         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
30453         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
30454         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
30455         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
30456         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
30457         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
30458         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
30459         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
30460         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
30461         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
30462         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
30463         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
30464         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
30465         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
30466         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
30467         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
30468         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
30469         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
30470         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
30471         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
30472         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
30473         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
30474         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
30475         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
30476         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
30477         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
30478         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
30479         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
30480         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
30481         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
30482         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
30483         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
30484         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
30485         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
30486         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
30487         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
30488         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
30489         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
30490         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
30491         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
30492         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
30493         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
30494         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
30495         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
30496         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
30497         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
30498         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
30499         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
30500         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
30501         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
30502         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
30503         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
30504         (__isnanf): Likewise.
30505         (__isinf_ns): Likewise.
30506         (__isinf_nsf): Likewise.
30507         (__finite): Likewise.
30508         (__finitef): Likewise.
30509         (__ieee754_sqrt): Define as macro.
30510         (__ieee754_sqrtf): Define as macro.
30511         (__ieee754_sqrtl): Define as macro.
30512         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
30513         inlined copy.
30514         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
30515         __FINITE_MATH_ONLY__ consistent.
30516         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
30517
30518 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
30519
30520         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
30521         of rawmemchr.
30522
30523         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
30524
30525 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
30526
30527         * po/ja.po: Update from translation team.
30528
30529 2011-10-08  Roland McGrath  <roland@hack.frob.com>
30530
30531         * locale/programs/locarchive.c (prepare_address_space): New function.
30532         (create_archive, enlarge_archive, open_archive): Use it.
30533
30534         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
30535         inside [SHARED], where it is used.
30536
30537         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
30538
30539         * nss/getent.c (netgroup_keys): Remove unused variable.
30540         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
30541
30542 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
30543
30544         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
30545         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
30546         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
30547         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
30548         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
30549         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
30550         * math/Makefile (libm-calls): Add s_isinf_ns.
30551         * math/divtc3.c: Use __isinf_nsl instead of isinf.
30552         * math/multc3.c: Likewise.
30553         * math/s_casin.c: Likewise.
30554         * math/s_casinf.c: Likewise.
30555         * math/s_casinl.c: Likewise.
30556         * math/s_ccos.c: Likewise.
30557         * math/s_ccosf.c: Likewise.
30558         * math/s_ccosl.c: Likewise.
30559         * math/s_ctan.c: Likewise.
30560         * math/s_ctanf.c: Likewise.
30561         * math/s_ctanh.c: Likewise.
30562         * math/s_ctanhf.c: Likewise.
30563         * math/s_ctanhl.c: Likewise.
30564         * math/s_ctanl.c: Likewise.
30565         * math/w_fmod.c: Likewise.
30566         * math/w_fmodf.c: Likewise.
30567         * math/w_fmodl.c: Likewise.
30568         * math/w_remainder.c: Likewise.
30569         * math/w_remainderf.c: Likewise.
30570         * math/w_remainderl.c: Likewise.
30571         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
30572         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
30573         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
30574         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
30575         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
30576         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
30577         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
30578         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
30579
30580         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
30581         of the number.
30582         * stdio-common/printf_fphex.c: Likewise.
30583         * stdio-common/printf_size.c: Likewise.
30584
30585         * math/e_exp10.c: Include math_private.h using <...> not "...".
30586         * math/e_exp10f.c: Likewise.
30587         * math/e_exp10l.c: Likewise.
30588         * math/e_exp2l.c: Likewise.
30589         * math/e_j0l.c: Likewise.
30590         * math/e_j1l.c: Likewise.
30591         * math/e_jnl.c: Likewise.
30592         * math/e_lgammal_r.c: Likewise.
30593         * math/e_rem_pio2l.c: Likewise.
30594         * math/e_scalb.c: Likewise.
30595         * math/e_scalbf.c: Likewise.
30596         * math/e_scalbl.c: Likewise.
30597         * math/k_cosl.c: Likewise.
30598         * math/k_sinl.c: Likewise.
30599         * math/k_tanl.c: Likewise.
30600         * math/s_cacoshf.c: Likewise.
30601         * math/s_catan.c: Likewise.
30602         * math/s_catanf.c: Likewise.
30603         * math/s_catanh.c: Likewise.
30604         * math/s_catanhf.c: Likewise.
30605         * math/s_catanhl.c: Likewise.
30606         * math/s_catanl.c: Likewise.
30607         * math/s_ccosh.c: Likewise.
30608         * math/s_ccoshf.c: Likewise.
30609         * math/s_ccoshl.c: Likewise.
30610         * math/s_cexp.c: Likewise.
30611         * math/s_cexpf.c: Likewise.
30612         * math/s_cexpl.c: Likewise.
30613         * math/s_clog.c: Likewise.
30614         * math/s_clog10.c: Likewise.
30615         * math/s_clog10f.c: Likewise.
30616         * math/s_clog10l.c: Likewise.
30617         * math/s_clogf.c: Likewise.
30618         * math/s_clogl.c: Likewise.
30619         * math/s_csin.c: Likewise.
30620         * math/s_csinf.c: Likewise.
30621         * math/s_csinh.c: Likewise.
30622         * math/s_csinhf.c: Likewise.
30623         * math/s_csinhl.c: Likewise.
30624         * math/s_csinl.c: Likewise.
30625         * math/s_csqrt.c: Likewise.
30626         * math/s_csqrtf.c: Likewise.
30627         * math/s_csqrtl.c: Likewise.
30628         * math/s_ctan.c: Likewise.
30629         * math/s_ctanf.c: Likewise.
30630         * math/s_ctanh.c: Likewise.
30631         * math/s_ctanhf.c: Likewise.
30632         * math/s_ctanhl.c: Likewise.
30633         * math/s_ctanl.c: Likewise.
30634         * math/s_ldexp.c: Likewise.
30635         * math/s_ldexpf.c: Likewise.
30636         * math/s_ldexpl.c: Likewise.
30637         * math/s_significand.c: Likewise.
30638         * math/s_significandf.c: Likewise.
30639         * math/s_significandl.c: Likewise.
30640         * math/w_acos.c: Likewise.
30641         * math/w_acosf.c: Likewise.
30642         * math/w_acosh.c: Likewise.
30643         * math/w_acoshf.c: Likewise.
30644         * math/w_acoshl.c: Likewise.
30645         * math/w_acosl.c: Likewise.
30646         * math/w_asin.c: Likewise.
30647         * math/w_asinf.c: Likewise.
30648         * math/w_asinl.c: Likewise.
30649         * math/w_atan2.c: Likewise.
30650         * math/w_atan2f.c: Likewise.
30651         * math/w_atan2l.c: Likewise.
30652         * math/w_atanh.c: Likewise.
30653         * math/w_atanhf.c: Likewise.
30654         * math/w_atanhl.c: Likewise.
30655         * math/w_cosh.c: Likewise.
30656         * math/w_coshf.c: Likewise.
30657         * math/w_coshl.c: Likewise.
30658         * math/w_dremf.c: Likewise.
30659         * math/w_exp10.c: Likewise.
30660         * math/w_exp10f.c: Likewise.
30661         * math/w_exp10l.c: Likewise.
30662         * math/w_exp2.c: Likewise.
30663         * math/w_exp2f.c: Likewise.
30664         * math/w_fmod.c: Likewise.
30665         * math/w_fmodf.c: Likewise.
30666         * math/w_fmodl.c: Likewise.
30667         * math/w_hypot.c: Likewise.
30668         * math/w_hypotf.c: Likewise.
30669         * math/w_hypotl.c: Likewise.
30670         * math/w_j0.c: Likewise.
30671         * math/w_j0f.c: Likewise.
30672         * math/w_j0l.c: Likewise.
30673         * math/w_j1.c: Likewise.
30674         * math/w_j1f.c: Likewise.
30675         * math/w_j1l.c: Likewise.
30676         * math/w_jn.c: Likewise.
30677         * math/w_jnf.c: Likewise.
30678         * math/w_jnl.c: Likewise.
30679         * math/w_lgamma.c: Likewise.
30680         * math/w_lgamma_r.c: Likewise.
30681         * math/w_lgammaf.c: Likewise.
30682         * math/w_lgammaf_r.c: Likewise.
30683         * math/w_lgammal.c: Likewise.
30684         * math/w_lgammal_r.c: Likewise.
30685         * math/w_log.c: Likewise.
30686         * math/w_log10.c: Likewise.
30687         * math/w_log10f.c: Likewise.
30688         * math/w_log10l.c: Likewise.
30689         * math/w_log2.c: Likewise.
30690         * math/w_log2f.c: Likewise.
30691         * math/w_log2l.c: Likewise.
30692         * math/w_logf.c: Likewise.
30693         * math/w_logl.c: Likewise.
30694         * math/w_pow.c: Likewise.
30695         * math/w_powf.c: Likewise.
30696         * math/w_powl.c: Likewise.
30697         * math/w_remainder.c: Likewise.
30698         * math/w_remainderf.c: Likewise.
30699         * math/w_remainderl.c: Likewise.
30700         * math/w_scalb.c: Likewise.
30701         * math/w_scalbf.c: Likewise.
30702         * math/w_scalbl.c: Likewise.
30703         * math/w_sinh.c: Likewise.
30704         * math/w_sinhf.c: Likewise.
30705         * math/w_sinhl.c: Likewise.
30706         * math/w_sqrt.c: Likewise.
30707         * math/w_sqrtf.c: Likewise.
30708         * math/w_sqrtl.c: Likewise.
30709         * math/w_tgamma.c: Likewise.
30710         * math/w_tgammaf.c: Likewise.
30711         * math/w_tgammal.c: Likewise.
30712
30713         * po/ja.po: Update from translation team.
30714
30715 2011-09-29  Andreas Jaeger  <aj@suse.de>
30716
30717         [BZ #13179]
30718         * sunrpc/netname.c (netname2host): Fix logic.
30719
30720         [BZ #6779]
30721         [BZ #6783]
30722         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
30723         correctly.
30724         * math/w_remainder.c (__remainder): Likewise.
30725         * math/w_remainderf.c (__remainderf): Likewise.
30726         * math/libm-test.inc (remainder_test): Add test cases.
30727
30728 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
30729
30730         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
30731         sdiv_qrnnd.
30732
30733 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
30734
30735         * string/test-memcmp.c: Avoid unncessary #defines.
30736         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
30737
30738 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
30739
30740         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
30741         Use new sse2 version for core i3 - i7 as it's faster
30742         than sse42 version.
30743         (bit_Prefer_PMINUB_for_stringop): New.
30744         * sysdeps/x86_64/rawmemchr.S: Update.
30745         Replace with faster SSE2 version.
30746         * sysdeps/x86_64/memrchr.S: New file.
30747         * sysdeps/x86_64/memchr.S: Update.
30748         Replace with faster SSE2 version.
30749
30750 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
30751
30752         * elf/dl-load.c (lose): Add cast to avoid warning.
30753
30754 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
30755
30756         * po/ca.po: Update from translation team.
30757
30758         * inet/getnetgrent_r.c: Hook up nscd.
30759         * nscd/Makefile (routines): Add nscd_netgroup.
30760         (nscd-modules): Add netgroupcache.
30761         (CFLAGS-netgroupcache.c): Define.
30762         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
30763         (cache_search): Add const to second parameter.
30764         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
30765         INNETGR.
30766         (dbs): Add netgrdb entry.
30767         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
30768         (verify_persistent_db): Handle netgrdb.
30769         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
30770         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
30771         GETFDNETGR.
30772         (netgroup_response_header): Define.
30773         (innetgroup_response_header): Define.
30774         (datahead): Add netgroup_response_header and innetgroup_response_header
30775         elements.
30776         * nscd/nscd.conf: Add entries for netgroup cache.
30777         * nscd/nscd.h (dbtype): Add netgrdb.
30778         (_PATH_NSCD_NETGROUP_DB): Define.
30779         (netgroup_iov_disabled): Declare.
30780         (xmalloc, xcalloc, xrealloc): Move declarations here.
30781         (cache_search): Adjust prototype.
30782         Add netgroup-related prototypes.
30783         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
30784         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
30785         (__nscd_innetgr): Declare.
30786         * nscd/selinux.c (perms): Use access_vector_t as element type and
30787         add netgroup-related initializers.
30788         * nscd/netgroupcache.c: New file.
30789         * nscd/nscd_netgroup.c: New file.
30790         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
30791         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
30792         For four parameters use innetgr.
30793         * nss/nss_files/files-init.c: Add definition and callback for netgr.
30794         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
30795         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
30796         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
30797
30798         * nscd/connections.c (register_traced_file): Don't register file
30799         for disabled databases.
30800
30801 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
30802
30803         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
30804
30805         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
30806         from tree and freeing node.
30807
30808 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
30809
30810         * nss/nsswitch.c (__nss_database_lookup): Handle
30811         nss_parse_service_list out of memory case.
30812
30813 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
30814
30815         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
30816         out of memory case.
30817
30818 2011-10-04  Andreas Schwab  <schwab@redhat.com>
30819
30820         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
30821         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
30822         pass it down.
30823         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
30824         elf_machine_rela, elf_machine_lazy_rel.
30825         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
30826         (ELF_DYNAMIC_DO_REL): Likewise.
30827         (ELF_DYNAMIC_DO_RELA): Likewise.
30828         (ELF_DYNAMIC_RELOCATE): Likewise.
30829         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
30830         to ELF_DYNAMIC_DO_REL.
30831         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
30832         (dl_main): In trace mode always set __RTLD_NOIFUNC.
30833         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
30834         elf_machine_rela.
30835         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
30836         skip_ifunc, don't call ifunc function if non-zero.
30837         (elf_machine_rela): Likewise.
30838         (elf_machine_lazy_rel): Likewise.
30839         (elf_machine_lazy_rela): Likewise.
30840         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
30841         (elf_machine_lazy_rel): Likewise.
30842         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
30843         Likewise.
30844         (elf_machine_lazy_rel): Likewise.
30845         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
30846         Likewise.
30847         (elf_machine_lazy_rel): Likewise.
30848         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
30849         (elf_machine_lazy_rel): Likewise.
30850         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
30851         (elf_machine_lazy_rel): Likewise.
30852         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
30853         (elf_machine_lazy_rel): Likewise.
30854         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
30855         (elf_machine_lazy_rel): Likewise.
30856         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
30857         (elf_machine_lazy_rel): Likewise.
30858         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
30859         (elf_machine_lazy_rel): Likewise.
30860
30861 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
30862
30863         * nss/nss_files/files-init.c (_nss_files_init): Use static
30864         initialization for all the *_traced_file variables.
30865
30866 2011-09-28  Andreas Schwab  <schwab@redhat.com>
30867
30868         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
30869
30870 2011-09-27  Roland McGrath  <roland@hack.frob.com>
30871
30872         [BZ #13226]
30873         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
30874
30875 2011-09-27  Andreas Schwab  <schwab@redhat.com>
30876
30877         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
30878         Reread the line before reparsing it.
30879
30880 2011-09-26  Andreas Schwab  <schwab@redhat.com>
30881
30882         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
30883
30884 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
30885             Maxim Kuvyrkov  <maxim@codesourcery.com>
30886             Joseph Myers  <joseph@codesourcery.com>
30887
30888         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
30889         if needed for __stack_chk_guard.
30890
30891 2011-09-19  Roland McGrath  <roland@hack.frob.com>
30892
30893         * sysdeps/posix/spawni.c (script_execute): Always define it.
30894         It will be optimized away if unused.
30895         (maybe_script_execute): New function.
30896         (__spawni): Call it.
30897
30898         * Makerules: Don't include tls.make.
30899         (config-tls): Always set to thread.
30900         * tls.make.c: File removed.
30901
30902 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
30903
30904         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
30905         * config.make.in (CPPFLAGS-config): New substituted variable.
30906
30907 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
30908
30909         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
30910
30911         [BZ #13192]
30912         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
30913         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
30914
30915 2011-09-15  Roland McGrath  <roland@hack.frob.com>
30916
30917         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
30918         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
30919         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
30920         (CALL_FAIL): Likewise.
30921         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
30922         (CALL_FAIL): Macro removed.
30923         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
30924
30925 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
30926
30927         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
30928         for __FINITE_MATH_ONLY__ == 1.
30929
30930 2011-09-15  Andreas Schwab  <schwab@redhat.com>
30931
30932         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
30933         __ieee754_sqrt instead of sqrt.
30934         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
30935         __ieee754_sqrtf instead of sqrtf.
30936         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
30937         __floorf instead of floorf.
30938         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
30939         __floorf, __truncf instead of floorf, truncf.
30940
30941 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
30942
30943         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
30944
30945         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
30946         __extern_always_inline.
30947         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
30948         32-bit.
30949
30950 2011-09-14  Andreas Schwab  <schwab@redhat.com>
30951
30952         * elf/rtld.c (dl_main): Also relocate in dependency order when
30953         doing symbol dependency testing.
30954
30955 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
30956
30957         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
30958         Always define `refsym'.
30959
30960 2011-09-13  Andreas Schwab  <schwab@redhat.com>
30961
30962         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
30963         (__FD_ELT): Renamed from __FDELT.
30964         * misc/bits/select2.h (__FD_ELT): Likewise.
30965         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
30966         __FD_MASK instead of __FDELT, __FDMASK.
30967         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
30968         Likewise.
30969         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
30970         Likewise.
30971
30972         * elf/Makefile (gen-ldd): Fix pattern.
30973
30974         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
30975         (init_tls): Likewise.
30976
30977 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
30978
30979         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
30980
30981 2011-09-12  Andreas Schwab  <schwab@redhat.com>
30982
30983         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
30984         `struct cmsghdr *' instead of `void *'.
30985         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
30986         Likewise.
30987
30988 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
30989
30990         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
30991         if non-absolute.
30992         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
30993         ldd_rewrite_script.
30994
30995 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
30996
30997         * configure.in: Remove --with-tls option.
30998         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
30999         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
31000         out in case it is missing.
31001         * sysdeps/ia64/elf/configure.in: Likewise.
31002         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
31003         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
31004         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
31005         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
31006         * sysdeps/sh/elf/configure.in: Likewise.
31007         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
31008         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
31009         * sysdeps/x86_64/elf/configure.in: Likewise.
31010         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
31011         * sysdeps/mach/hurd/tls.h: Likewise.
31012
31013         [BZ #13067]
31014         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
31015
31016         [BZ #13090]
31017         * configure.in: Fix use of AC_INIT.
31018
31019         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
31020
31021 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
31022
31023         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
31024         __set_errno.
31025         * malloc/hooks.c: Likewise.
31026
31027         [BZ #11929]
31028         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
31029         variables statically.
31030         (narenas): Initialize.
31031         (list_lock): Initialize.
31032         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
31033         initializtion of main_arena and list_lock.  Small cleanups.
31034         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
31035         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
31036         Add initializers to main_arena and mp_.
31037         (malloc_state): Remove pagesize member.  Change all users to use
31038         GLRO(dl_pagesize).
31039
31040         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
31041         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
31042         is always initialized.
31043
31044         * malloc/malloc.c: Removed unused configurations and dead code.
31045         * malloc/arena.c: Likewise.
31046         * malloc/hooks.c: Likewise.
31047         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
31048
31049         * include/tls.h: Removed.  USE___THREAD must always be defined.
31050         * bits/libc-tsd.h: Don't handle !USE___THREAD.
31051         * elf/dl-libc.c: Likewise.
31052         * elf/dl-tsd.c: Likewise.
31053         * include/errno.h: Likewise.
31054         * include/netdb.h: Likewise.
31055         * include/resolv.h: Likewise.
31056         * inet/herrno-loc.c: Likewise.
31057         * inet/herrno.c: Likewise.
31058         * malloc/arena.c: Likewise.
31059         * malloc/hooks.c: Likewise.
31060         * malloc/malloc.c: Likewise.
31061         * resolv/res-state.c: Likewise.
31062         * resolv/res_libc.c: Likewise.
31063         * sysdeps/i386/dl-machine.h: Likewise.
31064         * sysdeps/ia64/dl-machine.h: Likewise.
31065         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
31066         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
31067         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
31068         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
31069         * sysdeps/sh/dl-machine.h: Likewise.
31070         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
31071         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
31072         * sysdeps/unix/i386/sysdep.S: Likewise.
31073         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
31074         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
31075         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
31076         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
31077         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
31078         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
31079         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
31080         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
31081         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
31082         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
31083         * sysdeps/unix/x86_64/sysdep.S: Likewise.
31084         * sysdeps/x86_64/dl-machine.h: Likewise.
31085         * tls.make.c: Likewise.
31086
31087         * configure.in: Remove --with-__thread option.  Make tests for
31088         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
31089         tls_model attribute fail if no support is available.  Remove
31090         USE_IN_LIBIO.
31091         * Makeconfig: Adjust for dropped configure option.  All features are
31092         now mandatory.
31093         * Makerules: Likewise.
31094         * Versions.def: Likewise.
31095         * argp/argp-fmtstream.c: Likewise.
31096         * argp/argp-fmtstream.h: Likewise.
31097         * argp/argp-help.c: Likewise.
31098         * assert/assert.c: Likewise.
31099         * config.h.in: Likewise.
31100         * config.make.in: Likewise.
31101         * configure: Likewise.
31102         * configure.in: Likewise.
31103         * csu/Versions: Likewise.
31104         * csu/init.c: Likewise.
31105         * elf/tst-audit2.c: Likewise.
31106         * elf/tst-tls10.c: Likewise.
31107         * elf/tst-tls10.h: Likewise.
31108         * elf/tst-tls11.c: Likewise.
31109         * elf/tst-tls12.c: Likewise.
31110         * elf/tst-tls14.c: Likewise.
31111         * elf/tst-tlsmod11.c: Likewise.
31112         * elf/tst-tlsmod12.c: Likewise.
31113         * elf/tst-tlsmod13.c: Likewise.
31114         * elf/tst-tlsmod13a.c: Likewise.
31115         * elf/tst-tlsmod14a.c: Likewise.
31116         * elf/tst-tlsmod15b.c: Likewise.
31117         * elf/tst-tlsmod16a.c: Likewise.
31118         * elf/tst-tlsmod16b.c: Likewise.
31119         * elf/tst-tlsmod7.c: Likewise.
31120         * elf/tst-tlsmod8.c: Likewise.
31121         * elf/tst-tlsmod9.c: Likewise.
31122         * gmon/gmon.c: Likewise.
31123         * grp/fgetgrent_r.c: Likewise.
31124         * grp/putgrent.c: Likewise.
31125         * hurd/fopenport.c: Likewise.
31126         * include/libc-symbols.h: Likewise.
31127         * include/tls.h: Likewise.
31128         * intl/gettextP.h: Likewise.
31129         * intl/loadinfo.h: Likewise.
31130         * locale/global-locale.c: Likewise.
31131         * locale/localeinfo.h: Likewise.
31132         * mach/devstream.c: Likewise.
31133         * malloc/arena.c: Likewise.
31134         * malloc/set-freeres.c: Likewise.
31135         * misc/err.c: Likewise.
31136         * misc/getttyent.c: Likewise.
31137         * misc/mntent_r.c: Likewise.
31138         * posix/getopt.c: Likewise.
31139         * posix/wordexp.c: Likewise.
31140         * pwd/fgetpwent_r.c: Likewise.
31141         * resolv/Versions: Likewise.
31142         * resolv/res_hconf.c: Likewise.
31143         * shadow/fgetspent_r.c: Likewise.
31144         * shadow/putspent.c: Likewise.
31145         * stdio-common/printf_fphex.c: Likewise.
31146         * stdio-common/tmpfile.c: Likewise.
31147         * stdlib/abort.c: Likewise.
31148         * stdlib/fmtmsg.c: Likewise.
31149         * sunrpc/auth_unix.c: Likewise.
31150         * sunrpc/clnt_perr.c: Likewise.
31151         * sunrpc/clnt_tcp.c: Likewise.
31152         * sunrpc/clnt_udp.c: Likewise.
31153         * sunrpc/clnt_unix.c: Likewise.
31154         * sunrpc/openchild.c: Likewise.
31155         * sunrpc/svc_simple.c: Likewise.
31156         * sunrpc/svc_tcp.c: Likewise.
31157         * sunrpc/svc_udp.c: Likewise.
31158         * sunrpc/svc_unix.c: Likewise.
31159         * sunrpc/xdr.c: Likewise.
31160         * sunrpc/xdr_array.c: Likewise.
31161         * sunrpc/xdr_rec.c: Likewise.
31162         * sunrpc/xdr_ref.c: Likewise.
31163         * sunrpc/xdr_stdio.c: Likewise.
31164
31165 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
31166
31167         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
31168
31169 2011-07-03  Andreas Jaeger  <aj@suse.de>
31170
31171         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
31172         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
31173         regenerate with gen-libm-tests.pl.
31174
31175 2010-05-12  Petr Baudis  <pasky@suse.cz>
31176
31177         [BZ #11589]
31178         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
31179         around j0() zero points by switching to j1().
31180         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
31181         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
31182         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
31183         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
31184
31185 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
31186
31187         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
31188         instead of 0.
31189         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
31190         instead of 0.
31191         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
31192         Patch in part by Pavel Roskin <proski@gnu.org>.
31193
31194         [BZ #13138]
31195         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
31196         realloc.
31197         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
31198         Free memory block if necessary.
31199
31200         [BZ #12847]
31201         * libio/genops.c (INTDEF): For string streams the _lock pointer can
31202         be NULL.  Don't lock in this case.
31203
31204 2011-09-09  Roland McGrath  <roland@hack.frob.com>
31205
31206         * elf/elf.h (ELFOSABI_GNU): New macro.
31207         (ELFOSABI_LINUX): Define to that.
31208
31209 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
31210
31211         * string/strncat.c (strncat): Undef the symbol in case it has been
31212         defined in bits/string.h.
31213
31214 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
31215
31216         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
31217
31218         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
31219         link map.
31220
31221 2011-08-17  Andreas Jaeger  <aj@suse.de>
31222
31223         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
31224
31225 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
31226             Ian Lance Taylor  <iant@google.com>
31227
31228         * math/libm-test.inc (lround_test): New testcase.
31229         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
31230
31231 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
31232
31233         * Makefile: Remove support for automatic cvs check-ins.
31234         * Makerules: Likewise.
31235         * config.make.in: Likewise.
31236         * configure.in: Likewise.
31237         * intl/Makefile: Likewise.
31238         * locale/Makefile: Likewise.
31239         * po/Makefile: Likewise.
31240         * posix/Makefile: Likewise.
31241         * sysdeps/gnu/Makefile: Likewise.
31242         * sysdeps/mach/hurd/Makefile: Likewise.
31243         * sysdeps/sparc/sparc32/Makefile: Likewise.
31244
31245         [BZ #13118]
31246         * posix/Makefile (bug-regex32-ENV): Define.
31247         Patch by John Stanley <jpsinthemix@verizon.net>.
31248
31249         * misc/Makefile (headers): Add bits/select2.h.
31250         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
31251         * misc/bits/select2.h: New file.
31252         * include/bits/select2.h: New file.
31253         * debug/Makefile (routines): Add fdelt_chk.
31254         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
31255         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
31256         FD_ISSET.
31257         * debug/fdelt_chk.c: New file.
31258
31259         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
31260         * wcsmbs/test-wmemcmp.c: Likewise.
31261         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
31262         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
31263
31264 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31265
31266         * string/Makefile (strop-tests): Add memcmp.
31267         * string/test-wmemcmp.c: New file.
31268         * string/test-memcmp.c: Add wmemcmp support.
31269
31270 2011-09-08  Roland McGrath  <roland@hack.frob.com>
31271
31272         [BZ #13153]
31273         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
31274         2011-07-19 change.
31275
31276         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
31277         garbage value in a __mach_port_mod_refs call in the cases of the
31278         task-self and thread-self ports.
31279
31280 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
31281
31282         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
31283
31284 2011-09-08  Andreas Schwab  <schwab@redhat.com>
31285
31286         * elf/dl-load.c (lose): Check for non-null L.
31287
31288 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
31289
31290         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
31291
31292         * elf/dl-libc.c (dlerror_run): Pass back error code from
31293         dl_catch_error.
31294
31295         [BZ #13123]
31296         * elf/dl-load.c (lose): Free l_origin if it is valid.
31297
31298         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
31299         names.
31300         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
31301         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
31302         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
31303         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
31304         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
31305         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
31306
31307 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
31308
31309         * sysdeps/powerpc/fpu/e_hypot.c: New file.
31310         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
31311         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
31312         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
31313         * sysdeps/powerpc/fpu/k_cosf.c: New file.
31314         * sysdeps/powerpc/fpu/k_sinf.c: New file.
31315         * sysdeps/powerpc/fpu/s_cosf.c: New file.
31316         * sysdeps/powerpc/fpu/s_sinf.c: New file.
31317         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
31318         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
31319
31320 2011-08-15  Alan Modra  <amodra@gmail.com>
31321
31322         [BZ #13092]
31323         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
31324         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
31325         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
31326         ppc_mcount to static-only-routines.
31327         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
31328         __mcount_internal.
31329         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
31330         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
31331
31332 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
31333
31334         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
31335         for finite and infinity parameters.
31336
31337 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
31338
31339         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
31340         and add nop instructions for throughput optimization.
31341         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
31342
31343 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
31344
31345         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
31346         aligned copy for power7 with vector-scalar instructions.
31347         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
31348
31349 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
31350
31351         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
31352         AVX check.
31353
31354 2011-09-07  Andreas Schwab  <schwab@redhat.com>
31355
31356         [BZ #13144]
31357         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
31358         last change.
31359
31360 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
31361
31362         * sysdeps/unix/sysv/linux/x86_64/init-first.c
31363         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
31364         syscall wrapper around clock_gettime in __vdso_clock_gettime.
31365         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
31366         clock_gettime.
31367
31368 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
31369
31370         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
31371         Forgot to demangle the pointer.
31372
31373         * sysdeps/i386/sysdep.h: Define atom_text_section.
31374         * sysdeps/x86_64/sysdep.h: Likewise.
31375         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
31376         section with atom_text_section.
31377         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
31378         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
31379         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
31380         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
31381         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
31382
31383         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
31384         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
31385         already be defined.  Change to take two parameters and don't assign
31386         result to variable.  Adjust all users.
31387         Define INTERNAL_GETTIME if not already defined.
31388         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
31389         call.
31390         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
31391         HAVE_CLOCK_GETTIME_VSYSCALL.
31392         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
31393
31394         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
31395         gettimeofday vsyscall, just use time.
31396
31397 2011-09-06  Andreas Schwab  <schwab@redhat.com>
31398
31399         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
31400         <errno.h>.
31401
31402 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
31403
31404         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
31405         syscall on x86-64.
31406         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
31407         syscall.
31408         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
31409         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
31410         syscall if possible.
31411
31412 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
31413
31414         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
31415         e_ident.  Don't pass to find_mapsXX.
31416         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
31417
31418 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
31419
31420         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
31421         strchr-sse2-no-bsf strrchr-sse2-no-bsf
31422         * sysdeps/x86_64/multiarch/strchr.S: Update.
31423         Check bit_slow_BSF bit.
31424         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
31425         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
31426         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
31427
31428 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
31429
31430         [BZ #13134]
31431         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
31432         before glibc 2.15.
31433         (tryshell): Define.
31434         (__spawni): Change last parameter to be flag.  Test
31435         SPAWN_XFLAGS_USE_PATH flag to use path or not.
31436         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
31437         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
31438         * posix/spawni.c: Likewise.
31439         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
31440         * posix/spawnp.c: Likewise.  Change normal version to use
31441         SPAWN_XFLAGS_USE_PATH.
31442         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
31443         SPAWN_XFLAGS_TRY_SHELL.
31444
31445         [BZ #13150]
31446         * posix/glob.h: Remove gcc 1.x support.
31447
31448         [BZ #13068]
31449         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
31450
31451 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
31452
31453         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31454         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
31455         strrchr-sse2-bsf
31456         * sysdeps/i386/i686/multiarch/strchr.S: New file.
31457         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
31458         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
31459         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
31460         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
31461         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
31462
31463 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31464
31465         * sysdeps/x86_64/wcscmp.S: New file.
31466
31467         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
31468         wcscmp-c wcscmp-sse2
31469         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
31470         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
31471         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
31472         * wcsmbs/wcscmp.c: Allow renaming.
31473
31474 2011-09-05  David S. Miller  <davem@davemloft.net>
31475
31476         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
31477         stack slot, rather than the struct return pointer slot.
31478         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
31479         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
31480         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
31481         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
31482
31483 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
31484
31485         * po/ja.po: Update from translation team.
31486
31487         [BZ #13144]
31488         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
31489         kernel in 64-bit binaries.
31490
31491 2011-09-01  David S. Miller  <davem@davemloft.net>
31492
31493         * elf/elf.h (HWCAP_SPARC_*): Move to..
31494         * sysdeps/sparc/sysdep.h: this new file and add new values.
31495         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
31496         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
31497         _DL_HWCAP_COUNT to 24.
31498         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
31499         entries.
31500         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
31501         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
31502         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
31503         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
31504         instead of magic constants.
31505         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
31506
31507 2011-08-31  David S. Miller  <davem@davemloft.net>
31508
31509         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
31510         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
31511         Reimplement to do errno handling inline.
31512         (SYSCALL_ERROR_HANDLER): New macro.
31513         (__SYSCALL_STRING): Do not do errno handling in asm.
31514         (__CLONE_SYSCALL_STRING): Delete.
31515         (__INTERNAL_SYSCALL_STRING): Delete.
31516         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
31517         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
31518         (PSEUDO): Reimplement to do errno handling inline.
31519         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
31520         (SYSCALL_ERROR_HANDLER): New macro.
31521         (__SYSCALL_STRING): Do not do errno handling in asm.
31522         (__CLONE_SYSCALL_STRING): Delete.
31523         (__INTERNAL_SYSCALL_STRING): Delete.
31524         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
31525         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
31526         i386.
31527         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
31528         (inline_syscall*): Add 'err' argument.
31529         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
31530         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
31531         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
31532         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
31533
31534         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
31535         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
31536
31537 2011-08-30  Andreas Schwab  <schwab@redhat.com>
31538
31539         * elf/rtld.c (dl_main): Relocate objects in dependency order.
31540
31541 2011-08-29  Jiri Olsa <jolsa@redhat.com>
31542
31543         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
31544         directive.
31545
31546 2011-08-24  David S. Miller  <davem@davemloft.net>
31547
31548         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
31549
31550 2011-08-24  Andreas Schwab  <schwab@redhat.com>
31551
31552         * elf/Makefile: Add rules to build and run unload8 test.
31553         * elf/unload8.c: New file.
31554         * elf/unload8mod1.c: New file.
31555         * elf/unload8mod1x.c: New file.
31556         * elf/unload8mod2.c: New file.
31557         * elf/unload8mod3.c: New file.
31558
31559         * elf/dl-close.c (_dl_close_worker): Reset private search list if
31560         it wasn't used.
31561
31562 2011-08-23  David S. Miller  <davem@davemloft.net>
31563
31564         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
31565         subtract stack bias.
31566         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
31567         %sp not %fp in calculations.
31568         (_JMPBUF_UNWINDS_ADJ): Likewise.
31569
31570         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
31571         (aio_suspend): Call it to force an exception region around the
31572         AIO_MISC_WAIT() invocation.
31573
31574 2011-08-23  Andreas Schwab  <schwab@redhat.com>
31575
31576         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
31577         backslash.
31578
31579 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
31580
31581         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
31582         protection macro.
31583         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
31584         and <dl-machine.h>.
31585         (Elf64_FuncDesc): Remove.
31586
31587 2011-08-22  David S. Miller  <davem@davemloft.net>
31588
31589         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
31590         sigaltstack check, add missing cfi directives.
31591         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
31592         missing cfi directives, and sigaltstack handling.
31593
31594 2011-08-16  Andreas Schwab  <schwab@redhat.com>
31595
31596         [BZ #11724]
31597         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
31598         object is seen twice.
31599         * elf/dl-fini.c (_dl_sort_fini): Likewise.
31600
31601         * elf/Makefile (distribute): Add tst-initorder2.c.
31602         (tests): Add tst-initorder2.
31603         (modules-names): Add tst-initorder2a tst-initorder2b
31604         tst-initorder2c tst-initorder2d.  Add rules to build them.
31605         ($(objpfx)tst-initorder2.out): New rule.
31606         * elf/tst-initorder2.c: New file.
31607         * elf/tst-initorder2.exp: New file.
31608
31609 2011-08-22  Andreas Schwab  <schwab@redhat.com>
31610
31611         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
31612
31613         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
31614         dependencies back to end of function.
31615
31616         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
31617         $(elfobjdir)/ld.so.
31618
31619 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
31620
31621         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
31622         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
31623         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
31624         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
31625         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
31626         of __vdso_gettimeofday.
31627         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
31628         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
31629         attribute_hidden.
31630         (_libc_vdso_platform_setup): Remove initialization of
31631         __vdso_gettimeofday and __vdso_time.
31632
31633 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
31634
31635         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
31636         and fgetc_unlocked.
31637         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
31638         getc_unlocked.
31639
31640         * elf/dl-open.c (add_to_global): Report additions to the global scope
31641         for LD_DEBUG=scopes.
31642         (dl_open_worker): Also print scope of newly loaded dependencies.
31643         (_dl_show_scope): Indicate if there is no scope.
31644
31645         [BZ #13114]
31646         * stdio-common/Makefile (tests): Add bug24.
31647         * stdio-common/bug24.c: New file.
31648
31649 2011-08-19  Andreas Jaeger  <aj@suse.de>
31650
31651         [BZ #13114]
31652         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
31653         non-existant file when using close-on-exec mode.
31654
31655 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
31656
31657         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
31658         the very first instruction.
31659
31660         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
31661         the CFI state in the end.
31662         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
31663         inclusion of dl-trampoline.h.
31664         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
31665
31666 2011-08-19  Andreas Schwab  <schwab@redhat.com>
31667
31668         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
31669         expectations for long double.
31670
31671         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
31672         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
31673
31674 2011-08-14  David S. Miller  <davem@davemloft.net>
31675
31676         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
31677         artificual limit depends upon the system page size.
31678
31679 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
31680
31681         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
31682         * resolv/Makefile: Define CFLAGS-libresolv.
31683
31684 2011-08-17  Andreas Schwab  <schwab@redhat.com>
31685
31686         * nss/makedb.c (compute_tables): Make variables used in nested
31687         function static.
31688
31689 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
31690
31691         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
31692         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
31693         if buffer was too small.
31694
31695         * elf/pldd.c (main): Attach to all threads in the process.
31696         Rewrite /proc handling to use *at functions.
31697
31698 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
31699
31700         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
31701         specifies first scope to show.
31702         (dl_open_worker): Update callers.  Move printing scope of new
31703         object to before the relocation.
31704         * elf/rtld.c (dl_main): Update _dl_show_scope call.
31705         * sysdeps/generic/ldsodefs.h: Update declaration.
31706
31707         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
31708         string for the scope number.
31709
31710 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
31711
31712         * nscd/servicescache.c (cache_addserv): Make sure written is always
31713         initialized.
31714
31715 2011-08-14  Roland McGrath  <roland@hack.frob.com>
31716
31717         * sysdeps/i386/i486/bits/atomic.h
31718         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
31719         statement expression, so as to suppress "set but not used" warning.
31720         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
31721
31722         * string/strncat.c (STRNCAT): Use prototype definition.
31723
31724         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
31725         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
31726         -Iprograms here.
31727         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
31728         (localedef-modules): Add localedef.
31729         (locale-modules): Add locale.
31730
31731         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
31732         * elf/rtld.c (dl_main): Invert order of assignment in last change,
31733         to avoid a warning.
31734
31735 2011-08-14  David S. Miller  <davem@davemloft.net>
31736
31737         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
31738         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
31739
31740 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
31741
31742         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
31743         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
31744         * elf/rtld.c (dl_main): Set l_name of vDSO.
31745         Call _dl_show_scope when DL_DEBUG_SCOPES.
31746         (process_dl_debug): Recognize scopes flag and also set it for all.
31747         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
31748         Declare _dl_show_scope.
31749
31750         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
31751         (do_dlopen): Pass caller_dlopen to dl_open.
31752         (__libc_dlopen_mode): Initialize caller_dlopen.
31753
31754         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
31755         of libc.  Make tolower call locale-independent.  Optimize a bit by
31756         using isdigit instead of isalnum.
31757         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
31758
31759 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
31760
31761         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
31762         was a dependency or dynamically loaded.
31763
31764 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
31765
31766         * intl/l10nflist.c: Allow architecture-specific pop function.
31767         * sysdeps/x86_64/l10nflist.c: New file.
31768
31769         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
31770         classification.
31771
31772 2011-08-10  Andreas Schwab  <schwab@redhat.com>
31773
31774         * include/dirent.h: Add libc_hidden_proto for scandirat and
31775         scandirat64.  Don't declare __scandirat64.
31776         * dirent/scandirat.c: Add libc_hidden_def.
31777         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
31778         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
31779
31780 2011-08-10  David S. Miller  <davem@davemloft.net>
31781
31782         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
31783         enum.
31784         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31785         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31786         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31787
31788 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
31789
31790         * Versions.def [libc]: Add GLIBC_2.15.
31791         * dirent/Makefile (routines): Add scandirat and scandirat64.
31792         * dirent/Versions [libc]: Export scandirat and scandirat64 for
31793         GLIBC_2.15.
31794         * dirent/dirent.h: Declare scandirat and scandirat64.
31795         * dirent/scandirat.c: New file.
31796         * dirent/scandirat64.c: New file.
31797         * sysdeps/wordsize-64/scandirat.c: New file.
31798         * sysdeps/wordsize-64/scandirat64.c: New file.
31799         * dirent/opendir.c: Define opendirat.
31800         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
31801         using scandirat.
31802         * dirent/scandir64.c: Adjust for scandir.c change.
31803         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
31804         __scandirat64, and __scandir_cancel_handler.
31805         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
31806         additional parameter and use openat instead of open (outside of ld.so).
31807         Add new __opendir as wrapper around __opendirat.
31808         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
31809         here without requiring old scandirat implementation.
31810
31811 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
31812
31813         * dirent/scandir.c (cancel_handler): Renamed to
31814         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
31815         defined.  Adjust users.
31816         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
31817         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
31818
31819 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
31820
31821         * string/test-string.h (IMPL): Use __STRING to expand name and then
31822         stringify it.
31823
31824         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
31825         of cleanups.
31826
31827 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31828
31829         * string/Makefile: Update.
31830         (strop-tests): Append strncat.
31831         * string/test-wcscmp.c: New file.
31832         New comprehensive test for wcscmp.
31833         * string/test-strcmp.c: Update.
31834         (WIDE): New define.
31835
31836 2011-07-22  Andreas Schwab  <schwab@redhat.com>
31837
31838         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
31839         line.
31840
31841 2011-07-26  Andreas Schwab  <schwab@redhat.com>
31842
31843         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
31844         encoding to ACE if AI_IDN.
31845
31846 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
31847
31848         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
31849         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
31850
31851 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
31852
31853         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
31854         Fix overflow bug in strncat.
31855         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
31856
31857         * string/test-strncat.c: Update.
31858         Add new tests for checking overflow bugs.
31859
31860 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
31861
31862         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
31863         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
31864         * sysdeps/i386/i686/multiarch/strcat.S: New file.
31865         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
31866         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
31867         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
31868         * sysdeps/i386/i686/multiarch/strncat.S: New file.
31869         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
31870         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
31871
31872         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
31873         (USE_AS_STRCAT): Define.
31874         Add strcat and strncat support.
31875         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
31876
31877 2011-07-25  Andreas Schwab  <schwab@redhat.com>
31878
31879         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
31880         __n bigger than INT_MAX+1.
31881         (__strncmp_g): Likewise.
31882
31883 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
31884
31885         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
31886         * libio/stido.h: Likewise.
31887
31888         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
31889         (AF_NFC): Define.
31890         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
31891         (AF_NFC): Define.
31892
31893         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
31894         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
31895         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
31896         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
31897         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
31898
31899         [BZ #13021]
31900         * scripts/test-installation.pl: Don't expect libnss_test1 to be
31901         installed.
31902
31903         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
31904         typo.
31905         (_dl_x86_64_save_sse): Likewise.
31906
31907 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
31908
31909         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
31910         OSXSAVE.
31911         (_dl_x86_64_save_sse): Likewise.
31912
31913         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
31914
31915         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
31916
31917 2011-07-21  Andreas Schwab  <schwab@redhat.com>
31918
31919         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
31920         change.
31921         (_dl_x86_64_save_sse): Use correct AVX check.
31922
31923 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
31924
31925         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
31926         bug in strncpy/strncat.
31927         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
31928
31929 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
31930
31931         * string/tester.c (test_strcat): Add tests for different alignments
31932         of source and destination.
31933         (test_strncat): Likewise.
31934
31935 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
31936
31937         [BZ #12852]
31938         * posix/glob.c (glob): Check passed in values before using them in
31939         expressions to avoid some overflows.
31940         (glob_in_dir): Likewise.
31941
31942         [BZ #13007]
31943         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
31944         check for AVX enablement so that we don't crash with old kernels and
31945         new hardware.
31946         * elf/tst-audit4.c: Add same checks here.
31947         * elf/tst-audit6.c: Likewise.
31948
31949         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
31950
31951 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
31952
31953         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
31954
31955 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
31956
31957         * po/cs.po: Update from translation team.
31958         * po/bg.po: Likewise.
31959
31960 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
31961
31962         * misc/sys/cdefs.h: Add support for const attribute.
31963         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
31964         to gnu_dev_{major,minor,makedev} functions.
31965
31966 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
31967
31968         * intl/dcigettext.c (get_output_charset): Add missing bracket.
31969
31970 2011-07-20  Andreas Schwab  <schwab@redhat.com>
31971
31972         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
31973         strlen results.
31974
31975 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
31976
31977         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
31978         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
31979         register in order to avoid conflicts with the soft frame pointer
31980         being held in r11 when necessary.
31981         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
31982         (INTERNAL_VSYSCALL_NCS): Likewise.
31983
31984 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
31985
31986         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
31987         * elf/dl-fini.c (_dl_fini): Adjust caller.
31988         * elf/dl-close.c (_dl_close_worker): Likewise.
31989         * sysdeps/generic/ldsodefs.h: Adjust declaration.
31990
31991 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
31992
31993         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
31994         "aux_cache->nlibs < 0".
31995
31996         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
31997         in the reload-count case.
31998
31999 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
32000
32001         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32002         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
32003         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
32004         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
32005         * sysdeps/x86_64/multiarch/strcat.S: New file.
32006         * sysdeps/x86_64/multiarch/strncat.S: New file.
32007         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
32008         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
32009         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
32010         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
32011         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
32012         (USE_AS_STRCAT): Define.
32013         Add strcat and strncat support.
32014         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
32015         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
32016         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
32017         * string/strncat.c: Update.
32018         (USE_AS_STRNCAT): Define.
32019         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32020         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
32021         and i7.
32022         * sysdeps/x86_64/multiarch/init-arch.h
32023         (bit_Prefer_PMINUB_for_stringop): New.
32024         (index_Prefer_PMINUB_for_stringop): Likewise.
32025         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
32026         bit_Prefer_PMINUB_for_stringop.
32027
32028 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
32029
32030         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
32031         buffer64.
32032         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
32033         of casting of buffer.
32034         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
32035         buffer32 and buffer64.
32036         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
32037         writes instead of casting of buffer.
32038         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
32039         buffer32.
32040         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
32041         casting of buffer.
32042
32043 2011-07-19  Andreas Schwab  <schwab@redhat.com>
32044
32045         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
32046
32047 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
32048
32049         * nscd/nscd.c (termination_handler): Don't do anything for a database
32050         if it has not yet been initialized.
32051
32052 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
32053
32054         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
32055
32056 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
32057
32058         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
32059
32060 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
32061
32062         * po/nl.po: Update from translation team.
32063         * po/sv.po: Likewise.
32064
32065 2011-07-16  Roland McGrath  <roland@hack.frob.com>
32066
32067         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
32068         now disallowed by GCC.
32069
32070         * configure.in (use-default-link): Default to yes if a test -shared
32071         link meets our qualifications.
32072         * configure: Regenerated.
32073
32074         * config.make.in (output-format): New variable.
32075         * configure.in: Check for ld --print-output-format support.
32076         * configure: Regenerated.
32077         * Makerules ($(common-objpfx)format.lds)
32078         [$(output-format) != unknown]: Just use $(output-format),
32079         instead of the linker-script munging.
32080
32081 2011-07-14  Roland McGrath  <roland@hack.frob.com>
32082
32083         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
32084         of $(common-objpfx)shlib.lds.
32085         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
32086
32087         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
32088         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
32089
32090         * configure.in (-z relro check): Adjust test code to add a large
32091         writable data section after it.
32092         * configure: Regenerated.
32093
32094 2011-07-11  Roland McGrath  <roland@hack.frob.com>
32095
32096         * configure.in (-z relro check): Fix test code to make the variable
32097         truly const.
32098         * configure: Regenerated.
32099
32100 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
32101
32102         * nscd/nscd.h (struct traced_file): Define.
32103         (struct database_dyn): Remove inotify_descr, reset_res, and filename
32104         elements.  Add traced_files.
32105         (inotify_fd): Declare.
32106         (register_traced_file): Declare.
32107         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
32108         (inotify_fd): Export.
32109         (resolv_conf_descr): Remove.
32110         (nscd_init): Move inotify descriptor creation to main.
32111         Don't register files for notification here.
32112         (register_traced_file): New function.
32113         (invalidate_cache): Don't use reset_res to determine whether to call
32114         res_init, go through the list of registered files.
32115         (main_loop_poll): The inotify descriptors are now stored in the
32116         structures for the traced files.
32117         (main_loop_epoll): Likewise
32118         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
32119         to __nss_disable_nscd.
32120         * nscd/cache.c (prune_cache): There is no single inotify descriptor
32121         for a database anymore.  Check the records for all the registered
32122         files instead.
32123         * nss/Makefile (libnss_files-routines): Add files-init.
32124         (libnss_db-routines): Add db-init.
32125         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
32126         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
32127         * nss/nss_db/db-init.c: New file.
32128         * nss/nss_files/files-init.c: New file.
32129         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
32130         __nss_lookup_function.
32131         (__nss_lookup_function): Call nss_load_library.
32132         (nss_load_all_libraries): New function.
32133         (__nss_disable_nscd): Take parameter with callback function for files
32134         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
32135         used for the cached services.
32136         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
32137         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
32138         options for features to all the files in nscd.
32139
32140         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
32141
32142 2011-07-10  Roland McGrath  <roland@hack.frob.com>
32143
32144         * csu/elf-init.c (__libc_csu_init): Comment typo.
32145
32146 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
32147
32148         * po/pl.po: Update from translation team.
32149         * po/ja.po: Likewise.
32150         * po/ru.po: Likewise.
32151         * po/ko.po: Likewise.
32152         * po/fr.po: Likewise.
32153
32154 2011-07-09  Roland McGrath  <roland@hack.frob.com>
32155
32156         * configure.in (.ctors/.dtors header and trailer check):
32157         Use an empirical test on a built program.
32158         * configure: Regenerated.
32159
32160         * configure.in (-z relro check): Use an empirical test on a built DSO.
32161         Detect, but do not require, on ia64.
32162         * configure: Regenerated.
32163
32164         * configure.in (READELF): Find it with AC_CHECK_TOOL.
32165         Update tests that use readelf to use $READELF instead.
32166         * configure: Regenerated.
32167
32168 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
32169
32170         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
32171         if the result is not used.
32172
32173 2011-07-05  Andreas Jaeger  <aj@suse.de>
32174
32175         [BZ#9696]
32176         * stdlib/tst-strtod.c: Add testcase.
32177
32178 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
32179
32180         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
32181         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
32182         The latter has a higher limit.  Take additional parameter to pass to
32183         the new function.
32184         (__pathconf): Pass file to __statfs_link_max.
32185         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
32186         __statfs_link_max.
32187         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
32188         __statfs_link_max.
32189
32190         [BZ #12868]
32191         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
32192         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
32193         Handle Lustre.
32194         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
32195         (__statfs_filesize_max): Likewise.
32196         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
32197
32198 2011-07-05  Andreas Jaeger  <aj@suse.de>
32199
32200         * resolv/res_comp.c (dn_skipname): Remove unused variable.
32201
32202 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
32203
32204         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
32205         `status' variable.
32206         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
32207         Likewise.
32208
32209 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
32210
32211         * Makefile (strop-tests): Add strncat.
32212         * string/test-strncat.c: New file.
32213
32214 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
32215
32216         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
32217
32218 2011-06-21  Andreas Jaeger  <aj@suse.de>
32219
32220         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
32221         Copy rule from iconvdata/Makefile.
32222
32223 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
32224
32225         [BZ #12922]
32226         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
32227         but no long options are defined, just return 'W'.
32228
32229 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
32230
32231         [BZ #9696]
32232         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
32233
32234 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
32235
32236         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
32237         netgroups to read.
32238         (innetgr): Likewise.
32239
32240 2011-07-05  Roland McGrath  <roland@hack.frob.com>
32241
32242         * config.make.in (install_root): Default to $(DESTDIR).
32243
32244 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
32245
32246         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
32247
32248 2011-07-02  Roland McGrath  <roland@hack.frob.com>
32249
32250         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
32251
32252         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
32253         containing directory rather than embedding absolute directory names.
32254
32255         * scripts/check-local-headers.sh: Rewritten using awk.
32256         Match by word, not by line.  Print error messages for matches.
32257         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
32258
32259         * Makerules [shlib-lds-flags empty]:
32260         ($(common-objpfx)libc_pic.opts): New target.
32261         ($(common-objpfx)libc_pic.os.clean): New target.
32262         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
32263
32264         * config.make.in (OBJCOPY): New variable.
32265         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
32266         * configure: Regenerated.
32267
32268         * config.make.in (use-default-link): New variable.
32269         * configure.in (use_default_link): Grok --with-default-link to set it.
32270         * configure: Regenerated.
32271         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
32272         (shlib-lds, shlib-lds-flags): Define to empty.
32273
32274         * Makerules (shlib-lds): New variable.
32275         (shlib-lds-flags): New variable.
32276         (build-shlib, build-moduile, build-module-asneeded): Use it.
32277         ($(common-objpfx)libc.so): Use $(shlib-lds).
32278         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
32279         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
32280
32281         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
32282         DT_FLAGS/DT_FLAGS_1 with zero flags.
32283
32284         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
32285         linker script munging.
32286
32287 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
32288
32289         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
32290         as 128-bit value.
32291         * crypt/sha512.c (sha512_process_block): Perform total addition using
32292         128-bit if possible.
32293         (__sha512_finish_ctx): Likewise.
32294         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
32295         as 64-bit value.
32296         * crypt/sha256.c (SWAP64): Define.
32297         (sha256_process_block): Perform total addition using 64-bit if
32298         possible.
32299         (__sha256_finish_ctx): Likewise.
32300
32301 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
32302
32303         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
32304         * nscd/initgrcache.c (addinitgroupsX): Likewise.
32305         * nscd/hstcache.c (cache_addhst): Likewise.
32306         * nscd/grpcache.c (cache_addgr): Likewise.
32307         * nscd/aicache.c (addhstaiX): Likewise
32308         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
32309
32310 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
32311
32312         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
32313         * nscd/initgrcache.c (addinitgroupsX): Likewise.
32314         * nscd/hstcache.c (cache_addhst): Likewise.
32315         * nscd/grpcache.c (cache_addgr): Likewise.
32316         * nscd/aicache.c (addhstaiX): Likewise
32317
32318 2011-07-01  Andreas Schwab  <schwab@redhat.com>
32319
32320         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
32321         domain only when needed.
32322
32323 2011-06-30  Andreas Schwab  <schwab@redhat.com>
32324
32325         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
32326         is always restored.
32327
32328 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
32329
32330         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
32331         are re-adding the entry.
32332         * nscd/servicescache.c (cache_addserv): Likewise.
32333
32334 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
32335
32336         * sysdeps/generic/dl-irel.h: fix protection against multiple
32337         inclusions.
32338         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
32339
32340 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
32341
32342         [BZ #12935]
32343         * malloc/memusage.sh: Fix quoting in message.
32344         * debug/xtrace.sh: Likewise.
32345
32346         * configure.in: Remove support for --experimental-malloc option, make
32347         it the default.
32348         * config.make.in: Likewise.
32349         * malloc/Makefile: Likewise.
32350
32351 2011-06-27  Andreas Schwab  <schwab@redhat.com>
32352
32353         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
32354         two-byte characters.
32355
32356 2011-06-27  Roland McGrath  <roland@hack.frob.com>
32357
32358         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
32359         AC_CACHE_CHECK invocation.
32360         * configure: Regenerated.
32361
32362         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
32363
32364 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
32365
32366         [BZ #12350]
32367         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
32368         bit from old_res_options.
32369
32370         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
32371
32372         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
32373         value type for setfct.
32374
32375 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
32376
32377         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
32378         __gettimeofday instead of gettimeofday.
32379
32380 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
32381
32382         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
32383
32384 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
32385
32386         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
32387
32388         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
32389         info.
32390
32391 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
32392
32393         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
32394         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
32395         strcpy-sse2-unaligned strncpy-sse2-unaligned
32396         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
32397         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
32398         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
32399         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
32400         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
32401         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
32402         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
32403         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
32404         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
32405         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
32406         (STRCPY): Support SSE2 and SSSE3 versions.
32407
32408 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
32409
32410         [BZ #12874]
32411         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
32412         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
32413         kernels which artificially limit size of requests.
32414
32415 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
32416
32417         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
32418         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
32419         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
32420         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
32421         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
32422         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
32423         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
32424         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
32425         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
32426         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
32427         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
32428         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
32429         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
32430         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
32431         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
32432         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32433         Enable unaligned load optimization for Intel Core i3, i5 and i7
32434         processors.
32435         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
32436         Define.
32437         (index_Fast_Unaligned_Load): Define.
32438         (HAS_FAST_UNALIGNED_LOAD): Define.
32439
32440 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
32441
32442         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
32443
32444 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
32445
32446         [BZ #12907]
32447         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
32448         until it is clear that the information is realy needed.
32449         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
32450
32451 2011-06-22  Andreas Schwab  <schwab@redhat.com>
32452
32453         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
32454
32455 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
32456
32457         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
32458         /sys/devices/system/cpu/online if it is usable.
32459
32460         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
32461         reading the information from the /proc filesystem to once a second.
32462
32463 2011-06-21  Andreas Jaeger  <aj@suse.de>
32464
32465         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
32466         NULL after inclusion of kernel headers.
32467
32468 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
32469
32470         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
32471         calls to internal_setent.
32472
32473         [BZ #12885]
32474         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
32475         addresses using gethostbyname4_r ignore IPv4 addresses.
32476
32477         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
32478         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
32479
32480         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
32481
32482 2011-06-20  David S. Miller  <davem@davemloft.net>
32483
32484         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
32485         inclusions.
32486         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
32487
32488         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
32489         (elf_irel): Use it.
32490         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
32491         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
32492         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
32493         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
32494         * sysdeps/x86_64/dl-irel.h: Likewise.
32495
32496         * elf/dl-runtime.c: Use elf_ifunc_invoke.
32497         * elf/dl-sym.c: Likewise.
32498
32499 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
32500
32501         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
32502         need to dereference resplen2.
32503
32504 2011-06-14  Andreas Schwab  <schwab@redhat.com>
32505
32506         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
32507
32508 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
32509
32510         * Makeconfig: Define vardbdir and inst_vardbdir.
32511         * nss/Makefile: Add rules to install db-Makefile.
32512
32513         * nss/nss_db/db-XXX.c: Cleanup.
32514
32515         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
32516         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
32517         GLIBC_PRIVATE.
32518         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
32519         * nss/makedb.c: Implement -g option to specify that value strings
32520         are generated and should not be added to table iterated over for
32521         get*ent calls.
32522         * nss/nss_db/db-initgroups.c: New file.
32523
32524         * nss/getent.c: Add support for initgroups lookups through getgrouplist
32525         interface.
32526
32527         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
32528         (internal_getgrouplist): Adjust to name change.
32529         Update use_initgroups_entry if this is not the first call.
32530         * nss/databases.def: Add initgroups entry.
32531
32532         * nss/makedb.c (compute_tables): Check result of multiple hash table
32533         sizes to minimize maximum chain length.
32534
32535 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
32536
32537         * Versions.def: Add entry for libnss_db.
32538         * shlib-versions: Likewise.
32539         * nss/Makefile: Add rules to build libnss_db.
32540         * nss/Versions: Add libnss_db information.  Organize libnss_files
32541         entries better.
32542         * nss/db-Makefile: Add gshadow support.  Change rules for the new
32543         makedb progra.  Some minor improvements to generate smaller files.
32544         * nss/nss_db/nss_db.h: Move NSS database header data structures to
32545         here from...
32546         * nss/makedb.c: ...here.
32547         Improve database format to be smaller and require less memory at
32548         runtime.
32549         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
32550         db anymore.
32551         * nss/nss_db/db-netgrp.c: Likewise.
32552         * nss/nss_db/db-open.c: Likewise.
32553         * nss/nss_files/flies-XXX.x: Adjust comments.
32554         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
32555         * nss/nss_files/files-grp.c: Likewise.
32556         * nss/nss_files/files-hosts.c: Likewise.
32557         * nss/nss_files/files-network.c: Likewise.
32558         * nss/nss_files/files-proto.c: Likewise.
32559         * nss/nss_files/files-pwd.c: Likewise.
32560         * nss/nss_files/files-rpc.c: Likewise.
32561         * nss/nss_files/files-service.c: Likewise.
32562         * nss/nss_files/files-sgrp.c: Likewise.
32563         * nss/nss_files/files-spwd.c: Likewise.
32564         * nss/nss_db/db-alias.c: Removed.
32565         * nss/nss_db/dummy-db.h: Removed.
32566
32567 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
32568
32569         * nss/makedb.c: Rewritten to not use database library.
32570         * nss/Makefile: Update to build new makedb program.
32571
32572 2011-06-14  Andreas Jaeger  <aj@suse.de>
32573
32574         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
32575         memset declaration.
32576
32577 2011-06-10  Andreas Schwab  <schwab@redhat.com>
32578
32579         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
32580         tmpbuf.
32581
32582 2011-06-10  Roland McGrath  <roland@hack.frob.com>
32583
32584         * Makerules (shlib.lds): Fail if the linker script comes out empty.
32585         * elf/Makefile ($(objpfx)ld.so): Likewise.
32586
32587         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
32588         Don't list ld.so twice in dependencies.
32589
32590         * posix/bug-regex31.c: Include <stdlib.h>.
32591
32592         * nscd/hstcache.c (cache_addhst): Remove unused variable.
32593
32594         * nis/nss_compat/compat-spwd.c
32595         (getspent_next_nss_netgr): Remove unused variable.
32596         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
32597
32598         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
32599         nonmembers" output to use the right array.
32600
32601         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
32602
32603         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
32604
32605         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
32606         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
32607         * catgets/gencat.c (read_input_file): Likewise.
32608         * locale/programs/locarchive.c (enlarge_archive): Likewise.
32609
32610         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
32611         variable definition inside #if's controlling its use.
32612
32613         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
32614
32615         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
32616
32617         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
32618
32619         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
32620         unreachable code.
32621
32622         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
32623
32624         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
32625         * configure: Regenerated.
32626
32627         * Makerules: Revert last change.
32628         * elf/Makefile: Likewise.
32629
32630 2011-06-09  Roland McGrath  <roland@hack.frob.com>
32631
32632         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
32633         * elf/Makefile ($(objpfx)librtld.os): Likewise.
32634         (reloc-link): Likewise.
32635
32636 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
32637
32638         * elf/Makefile: Add rules to build pldd.
32639         * elf/pldd.c: New file.
32640         * elf/pldd-xx.c: New file.
32641
32642 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
32643
32644         * version.h: Update for 2.15 development version.
32645
32646 2011-06-07  David S. Miller  <davem@davemloft.net>
32647
32648         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
32649         ifuncs.
32650         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
32651         elf_machine_lazy_rel): Likewise.
32652         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
32653         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
32654         elf_machine_lazy_rel): Likewise.
32655         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
32656         dl_hwcap via passed in argument.
32657         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
32658         Likewise.
32659
32660 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
32661
32662         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
32663
32664 2011-06-06  Roland McGrath  <roland@hack.frob.com>
32665
32666         [BZ #12849]
32667         * manual/fdl-1.1.texi: New file, verbatim from:
32668         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
32669         * manual/lgpl-2.1.texi: New file, verbatim from:
32670         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
32671         * manual/Makefile (licenses): New variable, list those new file names.
32672         (texis): Use it.
32673         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
32674
32675         * manual/fdl.texi: File removed.
32676         * manual/lesser.texi: File removed.
32677         * manual/libc.texinfo (Copying, Documentation License):
32678         Use new @include file names, put @appendix directive before @include.
32679
32680 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
32681
32682         [BZ #12841]
32683         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
32684         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
32685         (mq_open): Add __NTH.
32686
32687 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
32688
32689         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
32690         Assume Intel Core i3/i5/i7 processor if AVX is available.
32691
32692 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
32693
32694         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
32695         typo.
32696
32697 2011-05-31  Andreas Schwab  <schwab@redhat.com>
32698
32699         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
32700         memory.  Use alloca_account.  Fix memory leak when retrying.
32701
32702 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
32703
32704         * version.h (RELEASE): Bump for 2.14 release.
32705         * include/features.h (__GLIBC_MINOR__): Bump to 14.
32706
32707         * config.make.in (RANLIB): Remove entry.
32708
32709 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
32710
32711         * po/Makefile (po-sed-cmd): Add ksh to extensions.
32712         (libc.pot): Work around missing support for .ksh extension in xgettext.
32713
32714         [BZ #12684]
32715         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
32716         if both request failed.
32717         (send_dg): In case of server errors clear resplen or *resplen2.
32718
32719         [BZ #12454]
32720         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
32721         when there are multiple maps.
32722         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
32723         (_dl_fini): Remove test here.
32724
32725         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
32726
32727 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
32728
32729         [BZ #12350]
32730         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
32731         bit from old_res_options.
32732         (gaih_inet): Likewise.
32733
32734         [BZ #11099]
32735         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
32736         as signed.
32737
32738         * resolv/res_init.c (res_setoptions): Make the code more compact.
32739
32740         [BZ #11558]
32741         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
32742         set RES_USEVC.
32743
32744         [BZ #11634]
32745         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
32746
32747         * malloc/malloc.h: Mark malloc hook variables as deprecated.
32748
32749         [BZ #11781]
32750         * malloc/malloc.h: Declare malloc hook variables as volatile.
32751
32752         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
32753         in last patch.
32754
32755         [BZ #11799]
32756         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
32757         raise in the comment.
32758         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
32759         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
32760         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
32761
32762 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
32763
32764         [BZ #12811]
32765         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
32766         grow the buffers more if it already has to be sufficient.
32767         (build_wcs_upper_buffer): Likewise.
32768         * posix/regexec.c (check_matching): Likewise.
32769         (clean_state_log_if_needed): Likewise.
32770         (extend_buffers): Don't enlarge buffers beyond size of the input
32771         buffer.
32772         Patches mostly by Emil Wojak <emil@wojak.eu>.
32773         * posix/bug-regex32.c: New file.
32774         * posix/Makefile (tests): Add bug-regex32.
32775
32776         * locale/findlocale.c (_nl_find_locale): Return right away if
32777         _nl_explode_name failed.
32778         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
32779
32780         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
32781
32782         * debug/xtrace.sh: Unify messages.
32783         * malloc/memusage.sh: Likewise.
32784
32785         [BZ #12813]
32786         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
32787         time symbol from vDSO.  Substitute with vsyscall if not available.
32788         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
32789         __vdso_time.
32790
32791         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
32792         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
32793         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
32794         Add sendmmsg and internal_sendmmsg.
32795         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
32796         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
32797         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
32798
32799         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
32800         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
32801         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
32802
32803 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
32804
32805         [BZ #12813]
32806         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
32807         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
32808         available.
32809         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
32810         __vdso_getcpu.
32811
32812         [BZ #12814]
32813         * iconvdata/Makefile (tests): Add bug-iconv9.
32814         * iconvdata/bug-iconv9.c: New file.
32815
32816 2011-05-27  Andreas Schwab  <schwab@redhat.com>
32817
32818         [BZ #12814]
32819         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
32820
32821 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
32822
32823         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
32824         (struct user_regs_struct): Change intcs field back to cs.
32825
32826 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
32827
32828         * po/ja.po: Update from translation team.
32829
32830 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
32831
32832         [BZ #12795]
32833         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
32834         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
32835
32836 2011-05-20  Andreas Schwab  <schwab@redhat.com>
32837
32838         * stdlib/longlong.h: Update from GCC.
32839
32840 2011-05-23  Andreas Schwab  <schwab@redhat.com>
32841
32842         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
32843         parameter name.
32844         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
32845         Add parameter name.
32846         (__sysconf): Pass it down.
32847
32848 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
32849
32850         [BZ #12671]
32851         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
32852         some situations.
32853         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
32854         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
32855         add in in __libc_use_alloca calls.  Adjust callers.
32856         (glob): Use malloc in some situations.
32857
32858         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
32859         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
32860         pltexit.
32861
32862 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
32863
32864         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
32865         and CLOCK_BOOTTIME_ALARM.
32866
32867         [BZ #12782]
32868         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
32869         is returned.
32870
32871         * string/_strerror.c (__strerror_r): Print negative errors as signed
32872         numbers.
32873
32874         [BZ #12777]
32875         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
32876         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
32877         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
32878
32879         * configure.in: Fix typo in redirection and correct removal of test
32880         files in two cases.
32881
32882         [BZ #12788]
32883         * locale/setlocale.c (new_composite_name): Fix test to check for
32884         identical name of all categories.
32885
32886         [BZ #12792]
32887         * libio/filedoalloc.c (local_isatty): New function.
32888         (_IO_file_doallocate): Use local_isatty.
32889         * stdio-common/perror.c (perror): In case a new stream is used
32890         forward the stream error.
32891         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
32892         error flag.
32893
32894 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
32895
32896         [BZ #11869]
32897         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
32898         alloca.
32899         * include/alloca.h (extend_alloca_account): Define.
32900
32901         [BZ #11857]
32902         * posix/regex.h: Fix comments with documentation of user-accessible
32903         fields after compilation and describe correct free'ing of pattern
32904         after re_compile_pattern.
32905         Patch by Reuben Thomas <rrt@sc3d.org>.
32906
32907 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
32908
32909         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
32910         and -mno-altivec to prevent the compiler from using Altivec and/or
32911         VSX instructions when the corresponding registers are not available.
32912
32913 2011-05-19  Andreas Schwab  <schwab@redhat.com>
32914
32915         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
32916
32917 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
32918
32919         * libio/freopen.c (freopen): Use __dup2, not dup2.
32920         * libio/freopen64.c (freopen64): Likewise.
32921
32922 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
32923
32924         [BZ #12775]
32925         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
32926         * math/Makefile (tests): Add test-powl.
32927         (CFLAGS-test-powl.c): Define.
32928         * math/test-powl.c: New file.
32929
32930 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
32931
32932         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
32933
32934 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
32935
32936         [BZ #11837]
32937         * iconvdata/gb18030.c: Update to GB18020-2005.
32938
32939 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
32940
32941         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
32942         RE_SYNTAX_POSIX_AWK): Update to match recent development.
32943         Patch by Aharon Robbins <arnold@skeeve.com>.
32944
32945         [BZ #11892]
32946         * stdlib/putenv.c (putenv): Don't always create copy of the variable
32947         on the stack.
32948
32949         [BZ #11895]
32950         * misc/pselect.c (__pselect): Handle timeout value errors hidden
32951         through underflows.
32952
32953         [BZ #12766]
32954         * misc/error.c (error_at_line): Ensure file_name and old_file_name
32955         point to strings before performing equality test for error_one_per_line
32956         mode.
32957
32958         [BZ #11697]
32959         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
32960
32961         [BZ #11820]
32962         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
32963         (struct user_fpregs_struct): Avoid __uint*_t types.
32964
32965         [BZ #6420]
32966         * malloc/mtrace.c (tr_where): Add additional parameter to point to
32967         symbol info.  Use it instead of calling _dl_addr locally.
32968         (lock_and_info): New function.
32969         (tr_freehook): Call lock_and_info and pass symbol info as additional
32970         parameter to tr_where.
32971         (tr_mallochook): Likewise.
32972         (tr_reallochook): Likewise.
32973         (tr_memalignhook): Likewise.
32974
32975         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
32976         used and couldn't be at all thread-safe.
32977
32978 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
32979
32980         * libio/freopen.c (freopen): Don't close old file descriptor
32981         before the new one is opened.  Instead dup the new file descriptor
32982         to the old one after the new stream is created.
32983         * libio/freopen64.c (freopen64): Likewise.
32984         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
32985         * libio/fileops.c (_IO_new_file_close_it): Handle new
32986         _IO_FLAGS2_NOCLOSE flag.
32987         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
32988         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
32989         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
32990         _IO_FLAGS2_NOCLOSE flag.
32991         * include/unistd.h: Add hidden_proto for dup3.
32992         Define __have_dup3.
32993         * io/dup3.c: Define hidden symbol.
32994         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
32995
32996         [BZ #7101]
32997         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
32998         when an incomplete long option is used.
32999         * posix/tst-getopt_long1.c: New file.
33000         * posix/Makefile (tests): Add tst-getopt_long1.
33001
33002         [BZ #10138]
33003         * scripts/config.guess: Update from autoconf-2.68.
33004         * scripts/config.sub: Likewise.
33005
33006         [BZ #10157]
33007         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
33008         tests into ...
33009         (has_cpuclock): ...this.  New function.
33010         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
33011         macro here based on has_cpuclock code.
33012
33013         [BZ #10149]
33014         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
33015         First byte (not low byte) is now always NUL.
33016         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
33017
33018         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
33019         Use non-cancelable interfaces.
33020
33021         [BZ #9809]
33022         * locale/iso-639.def: Add entry for Sorani.
33023
33024         [BZ #11901]
33025         * include/stdlib.h: Move include protection to the right place.
33026         Define abort_msg_s.  Declare __abort_msg with it.
33027         * stdlib/abort.c (__abort_msg): Adjust type.
33028         * assert/assert.c (__assert_fail_base): New function.  Majority
33029         of code from __assert_fail.  Allocate memory for __abort_msg with
33030         mmap.
33031         (__assert_fail): Now call __assert_fail_base.
33032         * assert/assert-perr.c: Remove bulk of implementation.  Use
33033         __assert_fail_base.
33034         * include/assert.hL Declare __assert_fail_base.
33035         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
33036         mmap.
33037         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
33038
33039 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
33040
33041         [BZ #11952]
33042         [BZ #12453]
33043         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
33044         until all modules are registered in the DTV.
33045         * elf/Makefile: Add rules to build and run tst-tls19.
33046         * elf/tst-tls19.c: New file.
33047         * elf/tst-tls19mod1.c: New file.
33048         * elf/tst-tls19mod2.c: New file.
33049         * elf/tst-tls19mod3.c: New file.
33050         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
33051
33052         [BZ #12083]
33053         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
33054         correctly.
33055
33056         [BZ #12601]
33057         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
33058         two-byte sequence errors.
33059         * iconvdata/Makefile (tests): Add bug-iconv8.
33060         * iconvdata/bug-iconv8.c: New file.
33061
33062         [BZ #12626]
33063         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
33064         buf2 definition.
33065
33066         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
33067
33068         [BZ #12432]
33069         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
33070         (dummy_getcfa): New function.
33071         (init): Get _Unwind_GetCFA address, use dummy if not found.
33072         (backtrace_helper): In recursion check, also check whether CFA changes.
33073         (__backtrace): Completely initialize arg.
33074
33075         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
33076         storing incomplete byte sequence in state object.  Avoid testing for
33077         guaranteed too small input if we know there is enough data available.
33078
33079 2011-05-11  Andreas Schwab  <schwab@redhat.com>
33080
33081         * Makeconfig (+link-pie): Indent.
33082         * Rules (binaries-pie): Define if $(have-fpie) and
33083         $(build-shared).
33084         (binaries-shared): Also filter out $(binaries-pie).
33085         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
33086         * nscd/Makefile (others-pie): Add nscd.
33087         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
33088         ($(objpfx)nscd): Remove command override.
33089         * login/Makefile (others-pie): Add pt_chown.
33090         ($(objpfx)pt_chown): Remove command override.
33091         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
33092         remove command overrides.
33093
33094 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
33095
33096         * libio/tst_putwc.c: Fix error messages.
33097
33098         [BZ #12724]
33099         * libio/fileops.c (_IO_new_file_close_it): Always flush when
33100         currently writing and seek to current position when not.
33101         * libio/Makefile (tests): Add bug-fclose1.
33102         * libio/bug-fclose1.c: New file.
33103
33104 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
33105
33106         [BZ #12511]
33107         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
33108         don't set DF_1_NODELETE here.
33109         (do_lookup_x): When entering new entry test for copy relocation
33110         and if necessary set DF_1_NODELETE flag.
33111         * elf/tst-unique4.cc: New file.
33112         * elf/tst-unique4.h: New file.
33113         * elf/tst-unique4lib.cc: New file.
33114         * elf/Makefile: Add rules to build and run tst-unique4.
33115         Patch by Piotr Bury <pbury@goahead.com>.
33116
33117 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
33118
33119         [BZ #12052]
33120         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
33121
33122         [BZ #12625]
33123         * misc/mntent_r.c (addmntent): Flush the stream after the output
33124
33125         [BZ #12393]
33126         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
33127         (is_trusted_path_normalize): Skip initial colon.  Append slash
33128         to empty buffer.  Duplicate is_trusted_path code but allow
33129         constructed patch to be prefix.
33130         (is_dst): Allow $ORIGIN followed by /.
33131         (_dl_dst_substitute): Correct clearing of check_for_trusted.
33132         Correct testing of result of is_trusted_path_normalize
33133         (decompose_rpath): Fix warning.
33134
33135 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
33136
33137         [BZ #11257]
33138         * grp/initgroups.c (internal_getgrouplist): When we found the service
33139         list through the initgroups entry in nsswitch.conf do not always
33140         continue on a successful lookup.  Don't always use the
33141         __nss_group_database value if it is set.
33142         * nss/nsswitch.conf (initgroups): Change action for successful db
33143         lookup to continue for compatibility.
33144
33145 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
33146
33147         [BZ #11532]
33148         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
33149         and CP774 modules.
33150         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
33151         and CP774 modules.
33152         * iconvdata/tst-tables.sh: Likewise.
33153         * iconvdata/cp770.c: New file.
33154         * iconvdata/cp771.c: New file.
33155         * iconvdata/cp772.c: New file.
33156         * iconvdata/cp773.c: New file.
33157         * iconvdata/cp774.c: New file.
33158         * iconvdata/testdata/CP770: New file.
33159         * iconvdata/testdata/CP770..UTF8: New file.
33160         * iconvdata/testdata/CP771: New file.
33161         * iconvdata/testdata/CP771..UTF8: New file.
33162         * iconvdata/testdata/CP772: New file.
33163         * iconvdata/testdata/CP772..UTF8: New file.
33164         * iconvdata/testdata/CP773: New file.
33165         * iconvdata/testdata/CP773..UTF8: New file.
33166         * iconvdata/testdata/CP774: New file.
33167         * iconvdata/testdata/CP774..UTF8: New file.
33168
33169         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
33170         END CHARMAP line.
33171         * iconvdata/gen-8bit-gap.sh: Likewise.
33172         * iconvdata/gen-8bit.sh: Likewise.
33173
33174         * locale/iso-639.def: Add ary entry.
33175
33176         [BZ #11258]
33177         * locale/C-translit.h.in: Add U20A1 transliteration.
33178
33179         [BZ #12178]
33180         * locale/iso-639.def: Add wae entry.
33181         Patch by Kevin Bortis <bortis@translate-wae.ch>.
33182
33183         [BZ #12545]
33184         * locale/programs/localedef.c (construct_output_path): Use ssize_t
33185         for n.
33186
33187         [BZ #12711]
33188         * locale/C-translit.h.in: Add entry for U20B9.
33189         Patch by pravin.d.s@gmail.com.
33190
33191 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
33192
33193         [BZ #12713]
33194         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
33195         ENAMETOOLONG use generic getcwd.
33196         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
33197         in rtld.  Use *stat64.
33198         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
33199         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
33200         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
33201         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
33202         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
33203         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
33204         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
33205         __fstatat64 macros.
33206         * include/dirent.h: Add libc_hidden_proto for rewinddir.
33207         * dirent/rewinddir.c: Add libc_hidden_def.
33208         * sysdeps/mach/hurd/rewinddir.c: Likewise.
33209         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
33210
33211         * include/dirent.h (__alloc_dir): Add flags parameter.
33212         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
33213         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
33214         __alloc_dir.
33215         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
33216         from fdopendir if O_CLOEXEC is already set.
33217
33218 2011-03-15  Alan Modra  <amodra@gmail.com>
33219
33220         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
33221         l_tls_firstbyte_offset non-zero.  Save padding offset in
33222         l_tls_firstbyte_offset for later use.
33223         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
33224         freeing static tls block.
33225
33226 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
33227
33228         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
33229         where #ifdef was intended.  The intent is to prevent ARG_MAX from
33230         being defined by the kernel headers.
33231
33232 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
33233
33234         [BZ #12734]
33235         * resolv/resolv.h: Define RES_NOTLDQUERY.
33236         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
33237         no-tld-query and set RES_NOTLDQUERY.
33238         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
33239         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
33240         modern BIND to search name as TLD unless forbidden.
33241
33242 2011-05-07  Petr Baudis  <pasky@suse.cz>
33243             Ulrich Drepper  <drepper@gmail.com>
33244
33245         [BZ #12393]
33246         * elf/dl-load.c (fillin_rpath): Move trusted path check...
33247         (is_trusted_path): ...to here.
33248         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
33249         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
33250         using is_trusted_path_normalize() in setuid scripts.
33251
33252 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
33253
33254         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
33255         __BEGIN/__END_DECLS.
33256
33257 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
33258
33259         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
33260         NSS_STATUS_NOTFOUND if no record was found.
33261
33262 2011-05-05  Andreas Schwab  <schwab@redhat.com>
33263
33264         * sunrpc/Makefile (headers): Add rpc/netdb.h.
33265         (headers-not-in-tirpc): Remove rpc/netdb.h
33266         * resolv/netdb.h: Revert last change.
33267
33268 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
33269
33270         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
33271         circular dependency between libgcc.a and libc.a.
33272
33273 2011-05-05  Andreas Schwab  <schwab@redhat.com>
33274
33275         * resolv/netdb.h: Don't include <rpc/netdb.h>.
33276         * nis/Makefile: Don't install rpcsvc/*.
33277         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
33278         instead of <rpc/types.h>.
33279         (MAXHOSTNAMELEN): Define.
33280
33281 2011-05-03  Andreas Schwab  <schwab@redhat.com>
33282
33283         * elf/ldconfig.c (add_dir): Don't crash on empty path.
33284
33285 2011-04-28  Maciej Babinski  <mbabinski@google.com>
33286
33287         [BZ #12714]
33288         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
33289         gethostbyname4_r when IPv6 results are possible.
33290
33291 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
33292
33293         [BZ #12723]
33294         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
33295         _PC_PIPE_BUF handling.
33296
33297 2011-04-30  Bruno Haible  <bruno@clisp.org>
33298
33299         [BZ #12717]
33300         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
33301         * resolv/netdb.h (getnameinfo): Change type of flags parameter
33302         to 'int'.
33303         * inet/getnameinfo.c (getnameinfo): Likewise.
33304
33305 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
33306
33307         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
33308         to groups setting in database lookup.
33309         * nss/nsswitch.conf: Add initgroups entry.
33310
33311 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
33312
33313         [BZ #12685]
33314         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
33315         mode string.
33316         Patch by Eric Blake <eblake@redhat.com>.
33317
33318 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
33319
33320         * sunrpc/Makefile (need-export-routines): Add svc_run.
33321         (routines): Remove svc_run.
33322         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
33323         * sunrpc/clnt_perr.c (clnt_perrno): Export.
33324         * sunrpc/svc_run.c (svc_run): Likewise.
33325         * sunrpc/svc_udp.c (svcudp_create): Likewise.
33326
33327 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
33328
33329         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
33330         problem in reallocation in last patch.
33331
33332 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
33333
33334         * sunrpc/Makefile: Move inclusion of Rules.
33335
33336 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
33337
33338         * nss/nss_files/files-initgroups.c: New file.
33339         * nss/Makefile (libnss_files-routines): Add files-initgroups.
33340         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
33341         _nss_files_initgroups_dyn.
33342
33343 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
33344
33345         * elf/elf.h (R_ARM_IRELATIVE): Define.
33346
33347 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
33348
33349         * po/ru.po: Update from translation team.
33350
33351 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
33352
33353         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
33354         dependencies.
33355
33356 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
33357
33358         [BZ #12653]
33359         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
33360         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
33361         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
33362         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
33363         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
33364
33365 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
33366
33367         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
33368         differing bytes.
33369         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
33370         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
33371         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
33372
33373 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
33374
33375         [BZ #12420]
33376         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
33377         storing it.
33378         * stdlib/bug-getcontext.c: New file.
33379         * stdlib/Makefile: Add rules to build and run bug-getcontext.
33380
33381 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33382
33383         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
33384         instructions into .machine "z9-109".
33385         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
33386         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
33387
33388 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
33389
33390         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
33391         between environment variables and auxiliary vector.
33392
33393 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
33394
33395         * Makefile: Add rules to build linkobj/libc.so.
33396         * include/libc-symbols.h: Define libc_hidden_nolink.
33397         * include/rpc/auth.h: Mark functions which are to be hidden.
33398         * include/rpc/auth_des.h: Likewise.
33399         * include/rpc/auth_unix.h: Likewise.
33400         * include/rpc/clnt.h: Likewise.
33401         * include/rpc/des_crypt.h: Likewise.
33402         * include/rpc/key_prot.h: Likewise.
33403         * include/rpc/pmap_clnt.h: Likewise.
33404         * include/rpc/pmap_prot.h: Likewise.
33405         * include/rpc/pmap_rmt.h: Likewise.
33406         * include/rpc/rpc_msg.h: Likewise.
33407         * include/rpc/svc.h: Likewise.
33408         * include/rpc/svc_auth.h: Likewise.
33409         * include/rpc/xdr.h: Likewise.
33410         * nis/Makefile: Link all DSOs against linkobj/libc.so.
33411         * nss/Makefile: Likewise.
33412         * sunrpc/Makefile: Don't install headers.  Build library with normal
33413         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
33414         * sunrpc/auth_des.c: Hide exported symbols by default, export some
33415         for the compat linking library.  Remove use of INTDEF/INTUSE.
33416         * sunrpc/auth_none.c: Likewise.
33417         * sunrpc/auth_unix.c: Likewise.
33418         * sunrpc/authdes_prot.c: Likewise.
33419         * sunrpc/authuxprot.c: Likewise.
33420         * sunrpc/clnt_gen.c: Likewise.
33421         * sunrpc/clnt_perr.c: Likewise.
33422         * sunrpc/clnt_raw.c: Likewise.
33423         * sunrpc/clnt_simp.c: Likewise.
33424         * sunrpc/clnt_tcp.c: Likewise.
33425         * sunrpc/clnt_udp.c: Likewise.
33426         * sunrpc/clnt_unix.c: Likewise.
33427         * sunrpc/des_crypt.c: Likewise.
33428         * sunrpc/des_soft.c: Likewise.
33429         * sunrpc/get_myaddr.c: Likewise.
33430         * sunrpc/key_call.c: Likewise.
33431         * sunrpc/key_prot.c: Likewise.
33432         * sunrpc/netname.c: Likewise.
33433         * sunrpc/pm_getmaps.c: Likewise.
33434         * sunrpc/pm_getport.c: Likewise.
33435         * sunrpc/pmap_clnt.c: Likewise.
33436         * sunrpc/pmap_prot.c: Likewise.
33437         * sunrpc/pmap_prot2.c: Likewise.
33438         * sunrpc/pmap_rmt.c: Likewise.
33439         * sunrpc/publickey.c: Likewise.
33440         * sunrpc/rpc_cmsg.c: Likewise.
33441         * sunrpc/rpc_common.c: Likewise.
33442         * sunrpc/rpc_dtable.c: Likewise.
33443         * sunrpc/rpc_prot.c: Likewise.
33444         * sunrpc/rpc_thread.c: Likewise.
33445         * sunrpc/rtime.c: Likewise.
33446         * sunrpc/svc.c: Likewise.
33447         * sunrpc/svc_auth.c: Likewise.
33448         * sunrpc/svc_authux.c: Likewise.
33449         * sunrpc/svc_raw.c: Likewise.
33450         * sunrpc/svc_run.c: Likewise.
33451         * sunrpc/svc_simple.c: Likewise.
33452         * sunrpc/svc_tcp.c: Likewise.
33453         * sunrpc/svc_udp.c: Likewise.
33454         * sunrpc/svc_unix.c: Likewise.
33455         * sunrpc/svcauth_des.c: Likewise.
33456         * sunrpc/xcrypt.c: Likewise.
33457         * sunrpc/xdr.c: Likewise.
33458         * sunrpc/xdr_array.c: Likewise.
33459         * sunrpc/xdr_float.c: Likewise.
33460         * sunrpc/xdr_intXX_t.c: Likewise.
33461         * sunrpc/xdr_mem.c: Likewise.
33462         * sunrpc/xdr_rec.c: Likewise.
33463         * sunrpc/xdr_ref.c: Likewise.
33464         * sunrpc/xdr_sizeof.c: Likewise.
33465         * sunrpc/xdr_stdio.c: Likewise.
33466
33467 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
33468
33469         [BZ #12650]
33470         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
33471         * sysdeps/ia64/dl-tls.h: Likewise.
33472         * sysdeps/powerpc/dl-tls.h: Likewise.
33473         * sysdeps/s390/dl-tls.h: Likewise.
33474         * sysdeps/sh/dl-tls.h: Likewise.
33475         * sysdeps/sparc/dl-tls.h: Likewise.
33476         * sysdeps/x86_64/dl-tls.h: Likewise.
33477         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
33478
33479 2011-03-14  Andreas Schwab  <schwab@redhat.com>
33480
33481         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
33482         rpath element also skip the following colon.
33483         (expand_dynamic_string_token): Add is_path parameter and pass
33484         down to DL_DST_REQUIRED and _dl_dst_substitute.
33485         (decompose_rpath): Call expand_dynamic_string_token with
33486         non-zero is_path.  Ignore empty rpaths.
33487         (_dl_map_object_from_fd): Call expand_dynamic_string_token
33488         with zero is_path.
33489
33490 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
33491
33492         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
33493         Make cancelable.
33494
33495 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
33496
33497         [BZ #12655]
33498         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
33499         Patch by Filipe David Manana <fdmanana@apache.org>.
33500
33501 2011-04-07  Andreas Schwab  <schwab@redhat.com>
33502
33503         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
33504         Maintain aligned stack.
33505         (CHECK_RSP): Remove unused macro.
33506
33507 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
33508
33509         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
33510         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
33511
33512 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
33513
33514         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
33515
33516         * include/features.h: Mention __USE_XOPEN2K8 in comment.
33517
33518 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
33519
33520         [BZ #12518]
33521         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
33522         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
33523         * sysdeps/x86_64/memmove.c: New file.
33524         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
33525         (memcpy): Renamed to ...
33526         (__new_memcpy): This.
33527         (memcpy): Provide GLIBC_2_14 memcpy.
33528         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
33529         (memcpy): Provide GLIBC_2_2_5 memcpy.
33530
33531 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
33532
33533         [BZ #12631]
33534         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
33535
33536 2011-03-30  Andreas Schwab  <schwab@redhat.com>
33537
33538         * misc/syncfs.c: New file.
33539         * misc/Makefile (routines): Add syncfs.
33540         * posix/unistd.h: Declare syncfs.
33541         * sysdeps/unix/syscalls.list: Add syncfs.
33542
33543 2011-04-01  Andreas Schwab  <schwab@redhat.com>
33544
33545         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
33546         open_by_handle_at.
33547         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
33548         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
33549         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
33550         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
33551         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
33552         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
33553         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
33554
33555 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
33556
33557         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
33558         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
33559         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
33560         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
33561         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
33562         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
33563         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
33564
33565         * io/Makefile: Compile fallocate.c, fallocate64.c, and
33566         sync_file_range.c with -fexceptions.
33567         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
33568         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
33569         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
33570         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
33571         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
33572         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
33573         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
33574         sync_file_range as cancellation point
33575         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
33576         now a wrapper around __call_sync_file_range with cancellation handling.
33577         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
33578         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
33579         function name to __call_sync_file_range.
33580         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
33581         Add call_sync_file_range.
33582
33583 2011-04-01  Andreas Schwab  <schwab@redhat.com>
33584
33585         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
33586         bits/timex.h.
33587
33588 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
33589
33590         * iconv/iconv.h: Fix typo in comment.
33591         * io/fcntl.h: Likewise.
33592         * libio/stdio.h: Likewise.
33593         * posix/spawn.h: Likewise.
33594         * posix/unistd.h: Likewise.
33595         * stdlib/stdlib.h: Likewise.
33596         * time/time.h: Likewise.
33597         * wcsmbs/wchar.h: Likewise.
33598
33599         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
33600         open_by_handle): Add.
33601         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
33602         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
33603         Augment a few comments.
33604         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
33605         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
33606         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
33607         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
33608         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
33609         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
33610         open_by_handle.
33611
33612         * io/fcntl.h (AT_EMPTY_PATH): Define.
33613
33614 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
33615
33616         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
33617         * sysdeps/unix/sysv/linux/bits/time.h: New file.
33618         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
33619         to...
33620         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
33621         * Versions.def: Add GLIBC_2.14.
33622         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
33623         Export.
33624
33625 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
33626
33627         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
33628         round counter.
33629         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
33630
33631 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
33632
33633         [BZ #12597]
33634         * string/test-strncmp.c (do_page_test): New function.
33635         (check2): Likewise.
33636         (test_main): Call check2.
33637         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
33638
33639 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
33640
33641         [BZ #12587]
33642         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
33643         Handle cache information in CPU leaf 4.
33644         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
33645
33646 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
33647
33648         [BZ #12583]
33649         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
33650         character representation.
33651         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
33652
33653 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
33654
33655         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
33656         END(__isnan) to END(__isnanf) to match function entry point/label
33657         EALIGN(__isnanf,...).
33658
33659 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
33660
33661         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
33662
33663 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
33664
33665         [BZ #12510]
33666         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
33667         copy from the symbol referenced in the relocation to initialize the
33668         used variable.
33669         Patch by Piotr Bury <pbury@goahead.com>.
33670         * elf/Makefile: Add rules to build and tst-unique3.
33671         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
33672         * elf/tst-unique3.cc: New file.
33673         * elf/tst-unique3.h: New file.
33674         * elf/tst-unique3lib.cc: New file.
33675         * elf/tst-unique3lib2.cc: New file.
33676
33677         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
33678
33679 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
33680
33681         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
33682         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
33683         to _start.
33684
33685 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
33686
33687         * elf/dl-load.c (_dl_map_object): If we are looking for the first
33688         to-be-loaded object along a path to loader is ld.so.
33689
33690 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
33691             Ulrich Drepper  <drepper@gmail.com>
33692
33693         * sysdeps/x86_64/memset.S: After aligning destination, code
33694         branches to different locations depending on the value of
33695         misalignment, when multiarch is enabled. Fix this.
33696
33697 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
33698
33699         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
33700         Set _x86_64_preferred_memory_instruction for AMD processsors.
33701         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
33702         Set bit_Prefer_SSE_for_memop for AMD processors.
33703
33704 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
33705
33706         * libio/fmemopen.c (fmemopen): Optimize a bit.
33707
33708 2011-03-03  Andreas Schwab  <schwab@redhat.com>
33709
33710         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
33711
33712 2011-03-03  Roland McGrath  <roland@redhat.com>
33713
33714         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
33715
33716 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
33717
33718         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
33719         __bzero_ultra1 instead of __memset_ultra1.
33720
33721 2011-02-23  Andreas Schwab  <schwab@redhat.com>
33722             Ulrich Drepper  <drepper@gmail.com>
33723
33724         [BZ #12509]
33725         * include/link.h (struct link_map): Add l_orig_initfini.
33726         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
33727         returning unsuccessfully.
33728         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
33729         close of a file loaded at startup, restore the original l_initfini
33730         list.
33731         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
33732         list, store the pointer.
33733         * elf/Makefile ($(objpfx)noload-mem): New rule.
33734         (noload-ENV): Define.
33735         (tests): Add $(objpfx)noload-mem.
33736         * elf/noload.c: Include <memcheck.h>.
33737         (main): Call mtrace.  Close all opened handles.
33738
33739 2011-02-17  Andreas Schwab  <schwab@redhat.com>
33740
33741         [BZ #12454]
33742         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
33743         dependencies are missing.
33744
33745 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33746
33747         Fix __if_freereq crash: Unlike the generic version which uses free,
33748         Hurd needs munmap.
33749         * sysdeps/mach/hurd/ifreq.h: New file.
33750
33751 2011-01-27  Petr Baudis  <pasky@suse.cz>
33752             Ulrich Drepper  <drepper@gmail.com>
33753
33754         [BZ 12445]#
33755         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
33756         to extend_alloca().
33757         * stdio-common/bug23.c: New file.
33758         * stdio-common/Makefile (tests): Add bug23.
33759
33760 2010-09-28  Andreas Schwab  <schwab@redhat.com>
33761             Ulrich Drepper  <drepper@gmail.com>
33762
33763         [BZ #12489]
33764         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
33765         before performing relro protection.  At old place add assertion
33766         to make sure nothing changed.
33767
33768 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
33769             Glauber de Oliveira Costa  <glommer@gmail.com>
33770
33771         * elf/elf.h: Add new ARM TLS relocs.
33772
33773 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
33774
33775         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
33776         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
33777         cast from r3.
33778         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
33779         'tests' variable.
33780         * sysdeps/wordsize-64/tst-writev.c: New file.
33781
33782 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
33783
33784         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
33785         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
33786         insns in _dl_start to prevent a TOC reference before relocs are
33787         resolved.
33788
33789 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
33790
33791         [BZ #12469]
33792         * Makeconfig: Remove RANLIB definition.
33793         * Makerules: Don't use RANLIB.
33794         * aclocal.m4: Remove ranlib test.
33795         * configure.in: No need to check for ranlib.
33796         * elf/rtld-Rules: Don't use RANLIB.
33797
33798 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33799
33800         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
33801         protection macro.
33802         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
33803         inclusion protection macro.
33804
33805         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
33806         SIGRTMIN and SIGRTMAX and print information in that case only when
33807         SIGRTMIN is defined.
33808
33809 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
33810
33811         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
33812         arginfo fn returning -1.
33813
33814         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
33815         and thousands string is zero terminated.
33816
33817 2011-02-03  Andreas Schwab  <schwab@redhat.com>
33818
33819         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
33820         sysdeps/unix/sysv/linux/bits/socket.h.
33821
33822 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
33823
33824         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
33825         (__CPU_COUNT): Remove old macros.
33826         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
33827         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
33828         (__CPU_ALLOC, __CPU_FREE): Add macros.
33829         (__sched_cpualloc, __sched_cpufree): Add declarations.
33830
33831 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
33832
33833         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
33834         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
33835         * nscd/aicache.c (addhstaiX): Return timeout of added value.
33836         (readdhstai): Return value of addhstaiX call.
33837         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
33838         (addgrbyX): Return value returned by cache_addgr.
33839         (readdgrbyname): Return value returned by addgrbyX.
33840         (readdgrbygid): Likewise.
33841         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
33842         (addpwbyX): Return value returned by cache_addpw.
33843         (readdpwbyname): Return value returned by addhstbyX.
33844         (readdpwbyuid): Likewise.
33845         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
33846         (addservbyX): Return value returned by cache_addserv.
33847         (readdservbyname): Return value returned by addservbyX:
33848         (readdservbyport): Likewise.
33849         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
33850         (addhstbyX): Return value returned by cache_addhst.
33851         (readdhstbyname): Return value returned by addhstbyX.
33852         (readdhstbyaddr): Likewise.
33853         (readdhstbynamev6): Likewise.
33854         (readdhstbyaddrv6): Likewise.
33855         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
33856         (readdinitgroups): Return value returned by addinitgroupsX.
33857         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
33858         (prune_cache): Keep track of timeout value of re-added entries.
33859         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
33860         * nscd/nscd.h: Adjust prototypes of readd* functions.
33861
33862 2011-02-04  Roland McGrath  <roland@redhat.com>
33863
33864         * nis/nis_server.c (nis_servstate): Use the right name for 0.
33865         (nis_stats): Likewise.
33866         * nis/nis_modify.c (nis_modify): Likewise.
33867         * nis/nis_remove.c (nis_remove): Likewise.
33868         * nis/nis_add.c (nis_add): Likewise.
33869
33870         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
33871
33872         * posix/fnmatch_loop.c: Add some consts.
33873
33874         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
33875
33876 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
33877
33878         [BZ #12460]
33879         * config.make.in (config-cflags-novzeroupper): Define.
33880         * configure.in: Substitute libc_cv_cc_novzeroupper.
33881         * elf/Makefile (AVX-CFLAGS): Define.
33882         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
33883         (CFLAGS-tst-auditmod4a.c): Likewise.
33884         (CFLAGS-tst-auditmod4b.c): Likewise.
33885         (CFLAGS-tst-auditmod6b.c): Likewise.
33886         (CFLAGS-tst-auditmod6c.c): Likewise.
33887         (CFLAGS-tst-auditmod7b.c): Likewise.
33888         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
33889
33890 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
33891
33892         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
33893         function to the callback.
33894         Patch partly by Jiri Olsa <jolsa@redhat.com>.
33895
33896 2011-02-02  Andreas Schwab  <schwab@redhat.com>
33897
33898         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
33899         of errno.
33900
33901 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
33902
33903         [BZ #11724]
33904         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
33905         of constructors.
33906         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
33907         of destructors.
33908         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
33909
33910         [BZ #11724]
33911         * elf/Makefile: Add rules to build and run new test.
33912         * elf/tst-initorder.c: New file.
33913         * elf/tst-initorder.exp: New file.
33914         * elf/tst-initordera1.c: New file.
33915         * elf/tst-initordera2.c: New file.
33916         * elf/tst-initordera3.c: New file.
33917         * elf/tst-initordera4.c: New file.
33918         * elf/tst-initorderb1.c: New file.
33919         * elf/tst-initorderb2.c: New file.
33920         * elf/tst-order-a1.c: New file.
33921         * elf/tst-order-a2.c: New file.
33922         * elf/tst-order-a3.c: New file.
33923         * elf/tst-order-a4.c: New file.
33924         * elf/tst-order-b1.c: New file.
33925         * elf/tst-order-b2.c: New file.
33926         * elf/tst-order-main.c: New file.
33927         New test case by George Gensure <werkt0@gmail.com>.
33928
33929 2010-10-01  Andreas Schwab  <schwab@redhat.com>
33930
33931         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
33932         decoding ACE if AI_CANONIDN.
33933
33934 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
33935
33936         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
33937
33938 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
33939
33940         * version.h (RELEASE): Bump for 2.13 release.
33941         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
33942
33943         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
33944
33945         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
33946         MADV_NOHUGEPAGE.
33947         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
33948         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
33949         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
33950         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
33951         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
33952         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
33953
33954         * posix/getconf.c: Update copyright year.
33955         * catgets/gencat.c: Likewise.
33956         * csu/version.c: Likewise.
33957         * debug/catchsegv.sh: Likewise.
33958         * debug/xtrace.sh: Likewise.
33959         * elf/ldconfig.c: Likewise.
33960         * elf/ldd.bash.in: Likewise.
33961         * elf/sprof.c (print_version): Likewise.
33962         * iconv/iconv_prog.c: Likewise.
33963         * iconv/iconvconfig.c: Likewise.
33964         * locale/programs/locale.c: Likewise.
33965         * locale/programs/localedef.c: Likewise.
33966         * malloc/memusage.sh: Likewise.
33967         * malloc/mtrace.pl: Likewise.
33968         * nscd/nscd.c (print_version): Likewise.
33969         * nss/getent.c: Likewise.
33970
33971         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
33972         PF_CAIF, and PF_ALG.
33973         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
33974
33975 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
33976
33977         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
33978         (modules-names): Use them.
33979         (ifunc-test-modules, ifunc-pie-tests): Define.
33980         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
33981         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
33982         (test-extras): Likewise.
33983         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
33984         $(compile-command.c).
33985         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
33986         (all-built-dso): Define.
33987         (check-textrel.out, check-execstack.out): Depend on it.
33988
33989         * configure.in: Don't override --enable-multi-arch.
33990
33991 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
33992
33993         [BZ #6812]
33994         * nscd/hstcache.c (tryagain): Define.
33995         (cache_addhst): Return tryagain not notfound for temporary errors.
33996         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
33997         failed.
33998
33999 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
34000
34001         [BZ #10563]
34002         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
34003         to make the syscall.
34004         * sysdeps/unix/sysv/linux/setgroups.c: New file.
34005
34006         [BZ #12378]
34007         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
34008         and fall back to matching as normal character if the string ends before
34009         the matching ']' is found.  This is what POSIX requires.
34010         * posix/testfnm.c: Adjust test result.
34011         * posix/globtest.sh: Adjust test result.  Add new test.
34012         * posix/tst-fnmatch.input: Likewise.
34013         * posix/tst-fnmatch2.c: Add new test.
34014
34015 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
34016
34017         * elf/Makefile (check-execstack): Revert last change.  Depend on
34018         check-execstack.h.
34019         (check-execstack.h): New target.
34020         (generated): Add check-execstack.h.
34021         * elf/check-execstack.c: Include "check-execstack.h".
34022         (main): Revert last change.
34023         (handle_file): Return zero if GNU_STACK is absent and
34024         DEFAULT_STACK_PERMS doesn't include PF_X.
34025
34026 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
34027
34028         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
34029         in child fails because the descriptor is already closed.
34030         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
34031         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
34032         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
34033
34034         [BZ #12397]
34035         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
34036         syscall.
34037
34038         [BZ #10484]
34039         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
34040         temporary buffer used to handle multi lookups locally.
34041         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
34042
34043 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
34044
34045         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
34046         loader is ld.so.
34047
34048 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
34049
34050         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
34051         alignment for SSE2.
34052
34053 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
34054
34055         [BZ #12394]
34056         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
34057         characters.  When rounding increased number of integer digits recompute
34058         number of groups.
34059         * stdio-common/tst-grouping.c: New file.
34060         * stdio-common/Makefile: Add rules to build and run tst-grouping.
34061
34062 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
34063
34064         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
34065         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
34066
34067         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
34068         void.
34069         * bits/select.h: Likewise.
34070
34071 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
34072
34073         * po/ja.po: Update from translation team.
34074
34075 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
34076
34077         [BZ #11155]
34078         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
34079         implementation just like for lxstat, fxstatat, et al.
34080
34081 2010-12-27  Jim Meyering  <meyering@redhat.com>
34082
34083         [BZ #12348]
34084         * posix/regexec.c (build_trtable): Return failure indication upon
34085         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
34086
34087 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
34088
34089         [BZ #12201]
34090         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
34091         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
34092         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
34093         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
34094
34095         [BZ #12207]
34096         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
34097
34098         [BZ #12204]
34099         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
34100         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
34101
34102 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
34103
34104         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
34105         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
34106         script has SORT_BY_INIT_PRIORITY.
34107         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
34108         NO_CTORS_DTORS_SECTIONS is defined.
34109         * elf/soinit.c: Likewise.
34110         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
34111         NO_CTORS_DTORS_SECTIONS is defined.
34112         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
34113         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
34114         * sysdeps/sh/init-first.c: Likewise.
34115         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
34116
34117 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
34118
34119         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
34120         always use the slow path.
34121
34122 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
34123
34124         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
34125         similar rule which adds the sysdep directories to the header search in
34126         order to pick up the correct platform stackinfo.h.
34127         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
34128         perform test if it is, otherwise return successfully without testing.
34129         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
34130         DEFAULT_STACK_PERMS define in stackinfo.h.
34131         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
34132         defined in stackinfo.h.
34133         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
34134         DEFAULT_STACK_PERMS defined in stackinfo.h.
34135         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
34136         * sysdeps/ia64/stackinfo.h: Likewise.
34137         * sysdeps/s390/stackinfo.h: Likewise.
34138         * sysdeps/sh/stackinfo.h: Likewise.
34139         * sysdeps/sparc/stackinfo.h: Likewise.
34140         * sysdeps/x86_64/stackinfo.h: Likewise.
34141         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
34142         PF_X for powerpc64.  Retain PF_X for powerpc32.
34143
34144 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
34145
34146         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
34147         accurately.
34148         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
34149         GETDENTS_64BIT_ALIGNED.
34150
34151 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
34152
34153         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
34154
34155 2010-12-10  Andreas Schwab  <schwab@redhat.com>
34156
34157         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
34158         _GNU_SOURCE.
34159
34160         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
34161         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
34162         Remove __restrict.
34163         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
34164         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
34165
34166 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
34167
34168         [BZ #11655]
34169         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
34170         are initialized.
34171
34172 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
34173
34174         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
34175
34176 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
34177
34178         * po/it.po: Update from translation team.
34179
34180 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
34181
34182         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
34183         unused codes.
34184
34185 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
34186
34187         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
34188
34189 2010-11-24  Andreas Schwab  <schwab@redhat.com>
34190
34191         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
34192         specially.
34193         (gaih_getanswer_slice): Likewise.
34194
34195 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
34196
34197         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
34198
34199 2010-05-31  Petr Baudis  <pasky@suse.cz>
34200
34201         [BZ #11149]
34202         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
34203         silently even in the chroot mode.
34204
34205 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
34206
34207         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
34208         last patch a bit.  Pretty printing
34209
34210 2010-05-31  Petr Baudis <pasky@suse.cz>
34211
34212         [BZ #10085]
34213         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
34214         initialization of skip_initgroups_dyn.
34215
34216 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
34217
34218         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
34219         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
34220
34221 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
34222
34223         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
34224
34225 2010-11-11  Andreas Schwab  <schwab@redhat.com>
34226
34227         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
34228         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
34229         (tst-fnmatch-ENV): Set MALLOC_TRACE.
34230         ($(objpfx)tst-fnmatch-mem): New rule.
34231         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
34232         * posix/tst-fnmatch.c (main): Call mtrace.
34233
34234 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
34235
34236         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34237         Support Intel processor model 6 and model 0x2c.
34238
34239 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
34240
34241         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
34242           signed comparison.
34243
34244 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
34245
34246         [BZ #12205]
34247         * string/test-strncasecmp.c (check_result): New function.
34248         (do_one_test): Use it.
34249         (check1): New function.
34250         (test_main): Use it.
34251         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
34252         Support strcasecmp and strncasecmp.
34253
34254 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
34255
34256         [BZ #12194]
34257         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
34258         * sysdeps/x86_64/bits/byteswap.h: Likewise.
34259
34260 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
34261
34262         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
34263         IFUNC support.
34264         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34265         memset-x86-64.
34266         * sysdeps/x86_64/multiarch/bzero.S: New file.
34267         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
34268         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
34269         * sysdeps/x86_64/multiarch/memset.S: New file.
34270         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
34271         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
34272         Set bit_Prefer_SSE_for_memop for Intel processors.
34273         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
34274         Define.
34275         (index_Prefer_SSE_for_memop): Define.
34276         (HAS_PREFER_SSE_FOR_MEMOP): Define.
34277
34278 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
34279
34280         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
34281         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
34282
34283 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
34284
34285         [BZ #12191]
34286         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
34287         (__x86_64_raw_data_cache_size_half): Likewise.
34288         (__x86_64_raw_shared_cache_size): Likewise.
34289         (__x86_64_raw_shared_cache_size_half): Likewise.
34290
34291         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
34292         (__x86_64_raw_data_cache_size_half): Likewise.
34293         (__x86_64_raw_shared_cache_size): Likewise.
34294         (__x86_64_raw_shared_cache_size_half): Likewise.
34295         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
34296         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
34297         and __x86_64_raw_shared_cache_size_half.  Round
34298         __x86_64_data_cache_size_half, __x86_64_data_cache_size
34299         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
34300         to multiple of 256 bytes.
34301
34302 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
34303
34304         [BZ #12167]
34305         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
34306         of inacessible symlinks.  Verify result of symlink before returning it.
34307         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
34308         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
34309
34310 2010-10-28  Erich Ritz  <erichritz@gmail.com>
34311
34312         * math/math.h (isinf): Fix typo in comment.
34313
34314 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
34315
34316         * po/da.po: Update from translation team.
34317
34318 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
34319
34320         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
34321         is added to the list.
34322
34323 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34324             Ulrich Drepper  <drepper@gmail.com>
34325
34326         * elf/dl-object.c (_dl_new_object): Don't append the new object to
34327         the global list here.  Move code to...
34328         (_dl_add_to_namespace_list): ...here.  New function.
34329         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
34330         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
34331         * elf/dl-load.c (lose): Don't remove the element from the list.
34332         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
34333         (_dl_map_object): Likewise.
34334
34335 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
34336
34337         [BZ #12159]
34338         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
34339         into all bytes of SSE register.
34340         Patch by Richard Li <richardpku@gmail.com>.
34341
34342 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
34343
34344         [BZ #12140]
34345         * malloc/malloc.c (_int_free): Fill correct number of bytes when
34346         perturbing.
34347
34348 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
34349
34350         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
34351         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
34352         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
34353         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
34354         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
34355         submachine.
34356         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
34357
34358 2010-10-22  Andreas Schwab  <schwab@redhat.com>
34359
34360         * include/dlfcn.h (__RTLD_SECURE): Define.
34361         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
34362         mode & __RTLD_SECURE instead.
34363         (open_path): Rename preloaded parameter to secure.
34364         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
34365         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
34366         * elf/dl-deps.c (openaux): Likewise.
34367         * elf/rtld.c (struct map_args): Remove is_preloaded.
34368         (map_doit): Don't use it.
34369         (dl_main): Likewise.
34370         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
34371         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
34372
34373 2010-09-09  Andreas Schwab  <schwab@redhat.com>
34374
34375         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
34376         (sysd-rules-targets): Remove duplicates.
34377         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
34378         rtld-%.$o dependency.
34379
34380 2010-10-18  Andreas Schwab  <schwab@redhat.com>
34381
34382         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
34383         _dl_map_object do it.
34384
34385 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
34386
34387         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
34388         fast fma builtins, define the macros in the C99 standard.
34389         (FP_FAST_FMAF): Likewise.
34390         (FP_FAST_FMAL): Likewise.
34391         * sysdeps/x86_64/bits/mathdef.h: Likewise.
34392
34393         * bits/mathdef.h: Update copyright year.
34394         * sysdeps/powerpc/bits/mathdef.h: Likewise.
34395
34396 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
34397
34398         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
34399         builtins, define the macros in the C99 standard.
34400         (FP_FAST_FMAF): Likewise.
34401         (FP_FAST_FMAL): Likewise.
34402         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
34403         multiply/add.
34404         (FP_FAST_FMAF): Likewise.
34405
34406 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
34407
34408         [BZ #3268]
34409         * math/libm-test.inc (fma_test): Some new testcases.
34410         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
34411         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
34412         y and infinite z.  Do multiplication by C already in long double.
34413         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
34414         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
34415         y and infinite z.  Do bitwise or of inexact bit into u.d.
34416         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
34417         * sysdeps/i386/fpu/s_fmaf.S: Removed.
34418         * sysdeps/i386/fpu/s_fma.S: Removed.
34419         * sysdeps/i386/fpu/s_fmal.S: Removed.
34420
34421 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
34422
34423         [BZ #3268]
34424         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
34425         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
34426         computation is not scheduled after fetestexcept.  Fix value
34427         of minimum denormal long double.
34428
34429 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
34430
34431         [BZ #3268]
34432         * math/libm-test.inc (fma_test): Add some more tests.
34433         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
34434         correctly.
34435
34436 2010-10-15  Andreas Schwab  <schwab@redhat.com>
34437
34438         * scripts/data/localplt-s390-linux-gnu.data: New file.
34439         * scripts/data/localplt-s390x-linux-gnu.data: New file.
34440
34441 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
34442
34443         [BZ #3268]
34444         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
34445         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
34446         instead of dbl-64.
34447         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
34448         inlines.
34449         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
34450         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
34451         if one of x and y is very large and the other is subnormal.
34452         * sysdeps/s390/fpu/s_fmaf.c: New file.
34453         * sysdeps/s390/fpu/s_fma.c: New file.
34454         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
34455         * sysdeps/powerpc/fpu/s_fma.S: New file.
34456         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
34457         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
34458         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
34459
34460 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
34461
34462         [BZ #3268]
34463         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
34464         fma tests.
34465         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
34466         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
34467         * sysdeps/i386/i686/multiarch/s_fma.c: Include
34468         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
34469         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
34470         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
34471         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
34472
34473 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
34474
34475         [BZ #12078]
34476         * posix/regcomp.c (parse_branch): One more memory leak plugged.
34477         * posix/bug-regex31.input: Add test case.
34478
34479 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
34480
34481         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
34482         * posix/bug-regex31.input: New file.
34483
34484         [BZ #12078]
34485         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
34486         (parse_sub_exp): Fix last change, use postorder.
34487
34488         * posix/bug-regex31.c: New file.
34489         * posix/Makefile: Add rules to build and run bug-regex31.
34490
34491         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
34492
34493         [BZ #12078]
34494         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
34495
34496         [BZ #12108]
34497         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
34498         to have entries in sys_siglist.
34499
34500         [BZ #12093]
34501         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
34502         be NULL.
34503
34504 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
34505
34506         [BZ #3268]
34507         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
34508         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
34509         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
34510         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
34511         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
34512         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
34513         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
34514         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
34515         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
34516         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
34517         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
34518         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
34519         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
34520         * math/ftestexcept.c (fetestexcept): Likewise.
34521         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
34522         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
34523         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
34524         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
34525         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
34526         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
34527         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
34528
34529 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
34530
34531         [BZ #12107]
34532         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
34533         newline.
34534
34535 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
34536
34537         * string/bug-strstr1.c: New file.
34538         * string/Makefile: Add rules to build and run bug-strstr1.
34539
34540 2010-10-05  Eric Blake  <eblake@redhat.com>
34541
34542         [BZ #12092]
34543         * string/str-two-way.h (two_way_long_needle): Always clear memory
34544         when skipping input due to the shift table.
34545
34546 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
34547
34548         [BZ #12005]
34549         * malloc/mcheck.c: Handle large requests.
34550
34551         [BZ #12077]
34552         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
34553         for strncmp and strncasecmp.
34554         * string/stratcliff.c: Add tests for strcmp and strncmp.
34555         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
34556
34557 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
34558
34559         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
34560         __set_fpscr.
34561
34562 2010-09-30  Andreas Jaeger  <aj@suse.de>
34563
34564         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
34565         (CGROUP_SUPER_MAGIC): Define.
34566         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
34567         Handle btrfs and cgroup file systems.
34568         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
34569         Likewise.
34570
34571 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
34572
34573         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
34574         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
34575
34576 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
34577
34578         [BZ #12067]
34579         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
34580         trying to locate the ELF header.
34581
34582 2010-09-27  Andreas Schwab  <schwab@redhat.com>
34583
34584         [BZ #11611]
34585         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
34586         Mask out sign-bit copies when constructing f_fsid.
34587
34588 2010-09-24  Petr Baudis <pasky@suse.cz>
34589
34590         * debug/stack_chk_fail_local.c: Add missing licence exception.
34591         * debug/warning-nop.c: Likewise.
34592
34593 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
34594
34595         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
34596         implementing getdents64 using getdents syscall, set d_type if
34597         __ASSUME_GETDENTS32_D_TYPE.
34598
34599 2010-09-16  Andreas Schwab  <schwab@redhat.com>
34600
34601         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
34602         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
34603
34604 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
34605
34606         [BZ #12037]
34607         * posix/unistd.h: Undo change of feature selection for ftruncate from
34608         2010-01-11.
34609
34610 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
34611
34612         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
34613         detection.
34614
34615 2010-09-20  Andreas Schwab  <schwab@redhat.com>
34616
34617         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
34618         fanotify_mark.
34619         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
34620
34621 2010-09-14  Andreas Schwab  <schwab@redhat.com>
34622
34623         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
34624         variables after CHECK_SP call.
34625         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
34626
34627 2010-09-13  Andreas Schwab  <schwab@redhat.com>
34628             Ulrich Drepper  <drepper@redhat.com>
34629
34630         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
34631         re-relocationg ld.so.
34632         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
34633         _dl_init_paths call.
34634         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
34635         here anymore.
34636
34637 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
34638
34639         * resolv/res_init.c (__res_vinit): Count the default server we added.
34640
34641 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
34642             Ulrich Drepper  <drepper@redhat.com>
34643
34644         [BZ #11968]
34645         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
34646         (____longjmp_chk): Use %ebx for saving value across system call.
34647         Add unwind info.
34648
34649 2010-09-06  Andreas Schwab  <schwab@redhat.com>
34650
34651         * manual/Makefile: Don't mix pattern rules with normal rules.
34652
34653 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
34654
34655         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
34656         operation.
34657         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
34658         * libio/iofopncook.c (_IO_cookie_init): Likewise.
34659         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
34660         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
34661         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
34662         Likewise.
34663
34664 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
34665
34666         [BZ #11979]
34667         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
34668         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
34669
34670 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
34671
34672         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
34673         * sysdeps/x86_64/addmul_1.S: Likewise.
34674         * sysdeps/x86_64/lshift.S: Likewise.
34675         * sysdeps/x86_64/mul_1.S: Likewise.
34676         * sysdeps/x86_64/rshift.S: Likewise.
34677         * sysdeps/x86_64/sub_n.S: Likewise.
34678         * sysdeps/x86_64/submul_1.S: Likewise.
34679
34680 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
34681
34682         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
34683         Define __sched_param instead of SCHED_* and sched_param when
34684         <bits/sched.h> is included with __need_schedparam defined.
34685         * bits/sched.h [__need_schedparam]
34686         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
34687         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
34688         (__defined_schedparam): Define to 1.
34689         (__sched_param): New structure, identical to sched_param.
34690         (__need_schedparam): Undefine.
34691
34692 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
34693
34694         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
34695         (epoll_create1): Declare.
34696
34697         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
34698
34699 2010-08-31  Andreas Schwab  <schwab@redhat.com>
34700
34701         [BZ #7066]
34702         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
34703         shifting retval into place.
34704
34705 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
34706
34707         * nis/rpcsvc/nis.h: Update copyright notice.
34708         * nis/rpcsvc/nis.x: Likewise.
34709         * nis/rpcsvc/nis_callback.h: Likewise.
34710         * nis/rpcsvc/nis_callback.x: Likewise.
34711         * nis/rpcsvc/nis_object.x: Likewise.
34712         * nis/rpcsvc/nis_tags.h: Likewise.
34713         * nis/rpcsvc/yp.h: Likewise.
34714         * nis/rpcsvc/yp.x: Likewise.
34715         * nis/rpcsvc/ypupd.h: Likewise.
34716         * nis/yp_xdr.c: Likewise.
34717         * nis/ypupdate_xdr.c: Likewise.
34718
34719         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
34720         mainly the body of pmap_getport.  Add parameters to specify timeouts.
34721         (pmap_getport): Use __libc_rpc_getport.
34722         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
34723         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
34724         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
34725
34726 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
34727
34728         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
34729         fanotify_mark.
34730
34731 2010-08-27  Roland McGrath  <roland@redhat.com>
34732
34733         * sysdeps/i386/i686/multiarch/Makefile
34734         (CFLAGS-varshift.c): New variable.
34735
34736 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
34737
34738         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
34739         * sysdeps/i386/i686/multiarch/varshift.c: New file.
34740
34741         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
34742
34743         * sysdeps/x86_64/strlen.S: Minimal code improvement.
34744
34745 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
34746
34747         * sysdeps/x86_64/strlen.S: Unroll the loop.
34748         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
34749         strlen-sse2 strlen-sse2-bsf.
34750         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
34751         __strlen_no_bsf if bit_Slow_BSF is set.
34752         (__strlen_sse42): Removed.
34753         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
34754         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
34755
34756 2010-08-25  Roland McGrath  <roland@redhat.com>
34757
34758         * sysdeps/x86_64/multiarch/varshift.S: File removed.
34759         * sysdeps/x86_64/multiarch/varshift.c: New file.
34760         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
34761         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
34762         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
34763         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
34764
34765 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
34766
34767         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
34768         strlen-sse2 strlen-sse2-bsf.
34769         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
34770         __strlen_sse2_bsf if bit_Slow_BSF is unset.
34771         (__strlen_sse2): Removed.
34772         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
34773         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
34774         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
34775         bit_Slow_BSF for Atom.
34776         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
34777         (index_Slow_BSF): Define.
34778         (HAS_SLOW_BSF): Define.
34779
34780 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
34781
34782         [BZ #10851]
34783         * resolv/res_init.c (__res_vinit): When no server address at all
34784         is given default to loopback.
34785
34786 2010-08-24  Roland McGrath  <roland@redhat.com>
34787
34788         * configure.in: Remove config-name.h generation.
34789         * configure: Regenerated.
34790         * config-name.in: File removed.
34791         * scripts/config-uname.sh: New file.
34792         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
34793         ($(objdir)config-name.h): New target.
34794
34795         * sunrpc/rpc_parse.h: Avoid nested comment.
34796
34797 2010-08-24  Richard Henderson  <rth@redhat.com>
34798             Ulrich Drepper  <drepper@redhat.com>
34799             H.J. Lu  <hongjiu.lu@intel.com>
34800
34801         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
34802         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
34803         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
34804         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
34805         _mm_alignr_epi8 with _mm_loadu_si128.
34806         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
34807         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
34808         (__m128i_shift_right): Removed.
34809         * sysdeps/i386/i686/multiarch/varshift.h: New file.
34810         * sysdeps/i386/i686/multiarch/varshift.S: New file.
34811         * sysdeps/x86_64/multiarch/varshift.h: New file.
34812         * sysdeps/x86_64/multiarch/varshift.S: New file.
34813
34814 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
34815
34816         * configure.in: Move assembler checks to before sysdep dir checking.
34817
34818 2010-08-20  Petr Baudis  <pasky@suse.cz>
34819
34820         * LICENSES: Sync the sunrpc license.
34821
34822 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
34823
34824         * sunrpc/auth_des.c: Update copyright notice once again.
34825         * sunrpc/auth_none.c: Likewise.
34826         * sunrpc/auth_unix.c: Likewise.
34827         * sunrpc/authdes_prot.c: Likewise.
34828         * sunrpc/authuxprot.c: Likewise.
34829         * sunrpc/bindrsvprt.c: Likewise.
34830         * sunrpc/clnt_gen.c: Likewise.
34831         * sunrpc/clnt_perr.c: Likewise.
34832         * sunrpc/clnt_raw.c: Likewise.
34833         * sunrpc/clnt_simp.c: Likewise.
34834         * sunrpc/clnt_tcp.c: Likewise.
34835         * sunrpc/clnt_udp.c: Likewise.
34836         * sunrpc/clnt_unix.c: Likewise.
34837         * sunrpc/des_crypt.c: Likewise.
34838         * sunrpc/des_soft.c: Likewise.
34839         * sunrpc/get_myaddr.c: Likewise.
34840         * sunrpc/getrpcport.c: Likewise.
34841         * sunrpc/key_call.c: Likewise.
34842         * sunrpc/key_prot.c: Likewise.
34843         * sunrpc/openchild.c: Likewise.
34844         * sunrpc/pm_getmaps.c: Likewise.
34845         * sunrpc/pm_getport.c: Likewise.
34846         * sunrpc/pmap_clnt.c: Likewise.
34847         * sunrpc/pmap_prot.c: Likewise.
34848         * sunrpc/pmap_prot2.c: Likewise.
34849         * sunrpc/pmap_rmt.c: Likewise.
34850         * sunrpc/rpc/auth.h: Likewise.
34851         * sunrpc/rpc/auth_unix.h: Likewise.
34852         * sunrpc/rpc/clnt.h: Likewise.
34853         * sunrpc/rpc/des_crypt.h: Likewise.
34854         * sunrpc/rpc/key_prot.h: Likewise.
34855         * sunrpc/rpc/netdb.h: Likewise.
34856         * sunrpc/rpc/pmap_clnt.h: Likewise.
34857         * sunrpc/rpc/pmap_prot.h: Likewise.
34858         * sunrpc/rpc/pmap_rmt.h: Likewise.
34859         * sunrpc/rpc/rpc.h: Likewise.
34860         * sunrpc/rpc/rpc_des.h: Likewise.
34861         * sunrpc/rpc/rpc_msg.h: Likewise.
34862         * sunrpc/rpc/svc.h: Likewise.
34863         * sunrpc/rpc/svc_auth.h: Likewise.
34864         * sunrpc/rpc/types.h: Likewise.
34865         * sunrpc/rpc/xdr.h: Likewise.
34866         * sunrpc/rpc_clntout.c: Likewise.
34867         * sunrpc/rpc_cmsg.c: Likewise.
34868         * sunrpc/rpc_common.c: Likewise.
34869         * sunrpc/rpc_cout.c: Likewise.
34870         * sunrpc/rpc_dtable.c: Likewise.
34871         * sunrpc/rpc_hout.c: Likewise.
34872         * sunrpc/rpc_main.c: Likewise.
34873         * sunrpc/rpc_parse.c: Likewise.
34874         * sunrpc/rpc_parse.h: Likewise.
34875         * sunrpc/rpc_prot.c: Likewise.
34876         * sunrpc/rpc_sample.c: Likewise.
34877         * sunrpc/rpc_scan.c: Likewise.
34878         * sunrpc/rpc_scan.h: Likewise.
34879         * sunrpc/rpc_svcout.c: Likewise.
34880         * sunrpc/rpc_tblout.c: Likewise.
34881         * sunrpc/rpc_util.c: Likewise.
34882         * sunrpc/rpc_util.h: Likewise.
34883         * sunrpc/rpcinfo.c: Likewise.
34884         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
34885         * sunrpc/rpcsvc/key_prot.x: Likewise.
34886         * sunrpc/rpcsvc/klm_prot.x: Likewise.
34887         * sunrpc/rpcsvc/mount.x: Likewise.
34888         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
34889         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
34890         * sunrpc/rpcsvc/rex.x: Likewise.
34891         * sunrpc/rpcsvc/rstat.x: Likewise.
34892         * sunrpc/rpcsvc/rusers.x: Likewise.
34893         * sunrpc/rpcsvc/sm_inter.x: Likewise.
34894         * sunrpc/rpcsvc/spray.x: Likewise.
34895         * sunrpc/rpcsvc/yppasswd.x: Likewise.
34896         * sunrpc/rtime.c: Likewise.
34897         * sunrpc/svc.c: Likewise.
34898         * sunrpc/svc_auth.c: Likewise.
34899         * sunrpc/svc_authux.c: Likewise.
34900         * sunrpc/svc_raw.c: Likewise.
34901         * sunrpc/svc_run.c: Likewise.
34902         * sunrpc/svc_simple.c: Likewise.
34903         * sunrpc/svc_tcp.c: Likewise.
34904         * sunrpc/svc_udp.c: Likewise.
34905         * sunrpc/svc_unix.c: Likewise.
34906         * sunrpc/svcauth_des.c: Likewise.
34907         * sunrpc/xcrypt.c: Likewise.
34908         * sunrpc/xdr.c: Likewise.
34909         * sunrpc/xdr_array.c: Likewise.
34910         * sunrpc/xdr_float.c: Likewise.
34911         * sunrpc/xdr_mem.c: Likewise.
34912         * sunrpc/xdr_rec.c: Likewise.
34913         * sunrpc/xdr_ref.c: Likewise.
34914         * sunrpc/xdr_sizeof.c: Likewise.
34915         * sunrpc/xdr_stdio.c: Likewise.
34916
34917         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
34918         handling.
34919
34920 2010-08-19  Andreas Schwab  <schwab@redhat.com>
34921
34922         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
34923
34924 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
34925
34926         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
34927         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
34928         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
34929         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
34930         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
34931         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
34932         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
34933         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
34934         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
34935         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
34936         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
34937         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
34938         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
34939         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
34940
34941 2010-07-26  Anton Blanchard  <anton@samba.org>
34942
34943         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
34944         * malloc/arena.c (heap_trim): Likewise.
34945
34946 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
34947
34948         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
34949         here.  Not...
34950         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
34951         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
34952
34953 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
34954
34955         * sysdeps/i386/elf/Makefile: New file.
34956
34957 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
34958
34959         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
34960         from fanotify_init.
34961         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
34962         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
34963
34964 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
34965
34966         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
34967         of strncasecmp_l.
34968         * sysdeps/multiarch/strcmp.S: Likewise.
34969
34970 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
34971
34972         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
34973         strncase_l-nonascii.
34974         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
34975         Add strncase_l-ssse3.
34976         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
34977         * sysdeps/x86_64/strcmp.S: Likewise.
34978         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
34979         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
34980         * sysdeps/x86_64/strncase.S: New file.
34981         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
34982         * sysdeps/x86_64/strncase_l.S: New file.
34983         * string/Makefile (strop-tests): Add strncasecmp.
34984         * string/test-strncasecmp.c: New file.
34985
34986         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
34987         warning.
34988
34989         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
34990         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
34991
34992 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
34993
34994         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
34995
34996 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
34997
34998         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
34999         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
35000         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
35001
35002 2010-05-01  Alan Modra  <amodra@gmail.com>
35003
35004         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
35005         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
35006         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
35007         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
35008         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
35009         tidying.  Don't tail-call __sigjmp_save for static lib.
35010         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
35011         save location.
35012         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
35013         (CALL_MCOUNT): Add eh info, and nop after bl.
35014         (TAIL_CALL_SYSCALL_ERROR): New macro.
35015         (PSEUDO_RET): Use it.
35016         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
35017         Correct save location of integer regs and cr.
35018         (_dl_profile_resolve): Correct cr save location.  Delete nops
35019         after bl when SHARED.  Reduce cfi size a little by better
35020         placement of cfi directives.
35021         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
35022         make a stack frame.  Instead use parm save area as a temp.
35023         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
35024         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
35025         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
35026         Don't make a stack frame for parent, use parm save area.
35027         Increase child stack frame to 112 bytes.  Don't save unused reg,
35028         and adjust reg usage.  Set up cfi on error recovery and
35029         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
35030         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
35031         (__makecontext): Add dummy nop after jump to exit.
35032         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
35033         Use correct parm save area and cr save, reduce stack frame.
35034         Correct cfi for possible PSEUDO_RET frame setup.
35035         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
35036         Branch to local label emitted by PSEUDO_RET rather than
35037         __syscall_error.
35038
35039 2010-08-12  Andreas Schwab  <schwab@redhat.com>
35040
35041         [BZ #11904]
35042         * locale/programs/locale.c (print_assignment): New function.
35043         (show_locale_vars): Use it.
35044
35045 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
35046
35047         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
35048         field.
35049         (struct statfs64): Likewise.
35050         (_STATFS_F_FLAGS): Define.
35051         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
35052         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
35053         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
35054         (ST_VALID): Define locally.
35055         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
35056         __statvfs_getflags, use the provided value.
35057         * sysdeps/unix/sysv/linux/kernel-features.h: Define
35058         __ASSUME_STATFS_F_FLAGS.
35059
35060         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
35061
35062         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
35063         Add sys/fanotify.h.
35064         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
35065         fanotify_mask for GLIBC_2.13.
35066         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
35067         fanotify_init and fanotify_mark.
35068         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
35069         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
35070
35071         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
35072         Add prlimit.
35073         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
35074         prlimit64 for GLIBC_2.13.
35075         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
35076         prlimit64.
35077         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
35078         syscall.
35079         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
35080         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
35081         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
35082         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
35083         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
35084         add prlimit alias.
35085         * sysdeps/unix/sysv/linux/prlimit.c: New file.
35086
35087         [BZ #11903]
35088         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
35089         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
35090
35091         * nss/Makefile: Add rules to build and run tst-nss-test1.
35092         * shlib-versions: Add entry for libnss_test1.
35093         * nss/nss_test1.c: New file.
35094         * nss/tst-nss-test1.c: New file.
35095
35096         * nss/nsswitch.c (__nss_database_custom): Define new variable.
35097         (__nss_configure_lookup): Set appropriate entry in
35098         __nss_configure_lookup to true.
35099         * nss/nsswitch.h: Define enum with indeces of databases in
35100         databases and __nss_database_custom arrays.  Declare
35101         __nss_database_custom.
35102         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
35103         to avoid using nscd when custom rules are installed.
35104         * nss/getXXbyYY_r.c: Likewise.
35105         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
35106
35107         * nss/nss_files/files-parse.c: Whitespace fixes.
35108
35109 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
35110
35111         [BZ #11883]
35112         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
35113         * posix/fnmatch_loop.c: Likewise.
35114
35115 2010-07-17  Andi Kleen  <ak@linux.intel.com>
35116
35117         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
35118         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
35119         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
35120         * Versions.def [GLIBC_2.13]: Add.
35121
35122 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
35123
35124         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
35125         Also fail if tpwd after pwuid call is NULL.
35126
35127 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35128
35129         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
35130         when converting to ms.
35131
35132 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
35133
35134         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
35135         EOPNOTSUPP errors with ENOTTY.
35136         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
35137         EOPNOTSUPP errors with ENOTTY.
35138
35139 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
35140
35141         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
35142         Add strcasecmp_l-ssse3.
35143         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
35144         strcasecmp.
35145         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
35146         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
35147         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
35148
35149 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
35150
35151         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
35152
35153         * string/Makefile (strop-tests): Add strcasecmp.
35154         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
35155         strcasecmp_l-nonascii.
35156         (gen-as-const-headers): Add locale-defines.sym.
35157         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
35158         * sysdeps/x86_64/strcasecmp.S: New file.
35159         * sysdeps/x86_64/strcasecmp_l.S: New file.
35160         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
35161         * sysdeps/x86_64/locale-defines.sym: New file.
35162         * string/test-strcasecmp.c: New file.
35163
35164         * string/test-strcasestr.c: Test both ends of the range of characters.
35165         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
35166
35167 2010-07-29  Roland McGrath  <roland@redhat.com>
35168
35169         [BZ #11856]
35170         * manual/locale.texi (Yes-or-No Questions): Fix example code.
35171
35172 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
35173
35174         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
35175         for ld.so.
35176
35177 2010-07-27  Andreas Schwab  <schwab@redhat.com>
35178
35179         * manual/memory.texi (Malloc Tunable Parameters): Document
35180         M_PERTURB.
35181
35182 2010-07-26  Roland McGrath  <roland@redhat.com>
35183
35184         [BZ #11840]
35185         * configure.in (-fgnu89-inline check): Set and substitute
35186         gnu89_inline, not libc_cv_gnu89_inline.
35187         * configure: Regenerated.
35188         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
35189
35190 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
35191
35192         * string/test-strnlen.c: New file.
35193         * string/Makefile (strop-tests): Add strnlen.
35194         * string/tester.c (test_strnlen): Add a few more test cases.
35195         * string/tst-strlen.c: Better error reporting.
35196
35197         * sysdeps/x86_64/strnlen.S: New file.
35198
35199 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
35200
35201         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
35202         lower-latency instructions.
35203
35204 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
35205
35206         * string/test-strcasestr.c: New file.
35207         * string/test-strstr.c: New file.
35208         * string/Makefile (strop-tests): Add strstr and strcasestr.
35209         * string/str-two-way.h: Don't undefine MAX.
35210         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
35211
35212 2010-07-21  Andreas Schwab  <schwab@redhat.com>
35213
35214         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
35215         strcasestr-nonascii.
35216         (CFLAGS-strcasestr-nonascii.c): Define.
35217         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
35218         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
35219         Remove unused attribute.
35220
35221 2010-07-20  Roland McGrath  <roland@redhat.com>
35222
35223         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
35224         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
35225         ld.so.cache was broken.  With it, there is no way to disable dsocaps
35226         like LD_HWCAP_MASK can disable hwcaps.
35227
35228 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
35229
35230         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
35231
35232 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
35233
35234         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
35235         call in strcasestr.
35236         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
35237         __strcasestr_sse42_nonascii.
35238         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
35239         strcasestr-nonascii.c.
35240         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
35241
35242 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
35243
35244         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
35245         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
35246         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
35247         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
35248
35249 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
35250
35251         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
35252         fcntl.
35253
35254 2010-07-06  Andreas Schwab  <schwab@redhat.com>
35255
35256         [BZ #11577]
35257         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
35258         dl_signal_cerror.
35259
35260 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
35261
35262         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
35263         _PC_PIPE_BUF using F_GETPIPE_SZ.
35264
35265 2010-07-05  Roland McGrath  <roland@redhat.com>
35266
35267         * manual/arith.texi (Rounding Functions): Fix rint description
35268         implicit in round description.
35269
35270 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
35271
35272         * elf/Makefile: Fix linking for a few tests to make recent linker
35273         happy.
35274
35275 2010-06-30  Andreas Schwab  <schwab@redhat.com>
35276
35277         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
35278         $(common-objpfx)libc_nonshared.a.
35279
35280 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
35281
35282         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
35283         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
35284         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
35285         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
35286         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
35287         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
35288         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
35289         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
35290         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
35291         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
35292         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
35293         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
35294         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
35295         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
35296         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
35297         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
35298         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
35299         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
35300         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
35301         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
35302         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
35303         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
35304         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
35305         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
35306         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
35307         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
35308         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
35309         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
35310         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
35311         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
35312         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
35313         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
35314         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
35315         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
35316         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
35317         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
35318         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
35319         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
35320         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
35321         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
35322         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
35323         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
35324         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
35325         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
35326         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
35327         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
35328         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
35329         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
35330
35331 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
35332
35333         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
35334         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
35335         * string/memmove.c (memmove): Renamed to ...
35336         (MEMMOVE): ...this.  Default to memmove.
35337         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
35338         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
35339         (END_CHK): Define.
35340         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
35341         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
35342         mempcpy-ssse3-back memmove-ssse3-back.
35343         * sysdeps/x86_64/multiarch/bcopy.S: New file .
35344         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
35345         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
35346         * sysdeps/x86_64/multiarch/memcpy.S: New file.
35347         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
35348         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
35349         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
35350         * sysdeps/x86_64/multiarch/memmove.c: New file.
35351         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
35352         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
35353         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
35354         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
35355         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
35356         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
35357         Define.
35358         (index_Fast_Copy_Backward): Define.
35359         (HAS_ARCH_FEATURE): Define.
35360         (HAS_FAST_REP_STRING): Define.
35361         (HAS_FAST_COPY_BACKWARD): Define.
35362
35363 2010-06-21  Andreas Schwab  <schwab@redhat.com>
35364
35365         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
35366         Restore proper fallback handling.
35367
35368 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
35369
35370         [BZ #11701]
35371         * posix/group_member.c (__group_member): Correct checking loop.
35372
35373         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
35374         OOM in getpwuid_r correctly.  Return error number when the caller
35375         should return, otherwise -1.
35376         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
35377         call returning > 0 value.
35378         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
35379
35380 2010-06-07  Andreas Schwab  <schwab@redhat.com>
35381
35382         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
35383         libc_nonshared.a from targets in modules-names.
35384
35385 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
35386
35387         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
35388         requires it.
35389
35390 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
35391
35392         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
35393         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
35394         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
35395         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
35396
35397 2010-06-02  Andreas Schwab  <schwab@redhat.com>
35398
35399         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
35400
35401 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
35402
35403         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
35404         and F_GETPIPE_SZ.
35405         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
35406         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
35407         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
35408         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
35409         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
35410         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
35411
35412 2010-06-14  Roland McGrath  <roland@redhat.com>
35413
35414         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
35415
35416 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
35417
35418         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
35419         __REDIRECT followed by __THROW.
35420         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
35421         * posix/getopt.h (getopt): Likewise.
35422
35423 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
35424
35425         * hurd/lookup-at.c (__file_name_lookup_at): Accept
35426         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
35427         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
35428         in AT_FLAGS.
35429         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
35430         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
35431
35432 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
35433
35434         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
35435
35436 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
35437
35438         [BZ #11640]
35439         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
35440         Properly check family and model.
35441
35442 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
35443
35444         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
35445
35446 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
35447
35448         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
35449
35450 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
35451
35452         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
35453         symbol reference.
35454
35455 2010-05-19  Andreas Schwab  <schwab@redhat.com>
35456
35457         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
35458         symbol reference.
35459
35460 2010-05-21  Andreas Schwab  <schwab@redhat.com>
35461
35462         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
35463         and internal_recvmmsg.
35464         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
35465         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
35466         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
35467         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
35468
35469         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
35470         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
35471         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
35472
35473 2010-05-20  Andreas Schwab  <schwab@redhat.com>
35474
35475         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
35476
35477 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
35478
35479         POWER7 optimizations.
35480         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
35481         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
35482
35483 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
35484
35485         * version.h: Update for 2.13 development version.
35486
35487 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
35488
35489         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
35490         exceptions.  Return 0.
35491
35492 2010-05-07  Roland McGrath  <roland@redhat.com>
35493
35494         * elf/ldconfig.c (main): Add a const.
35495
35496 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
35497
35498         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
35499         (args_options): Add no-idn option.
35500         (ahosts_keys_int): Add idn_flags to ai_flags.
35501         (parse_option): Handle 'i' option to clear idn_flags.
35502
35503         * malloc/malloc.c (_int_free): Possible race in the most recently
35504         added check.  Only act on the data if no current modification
35505         happened.
35506
35507 See ChangeLog.17 for earlier changes.