ceb3f5af7755e0eaf1ff0f23b29f48627c7dd6eb
[platform/upstream/glibc.git] / ChangeLog
1 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
2
3         [BZ #14153]
4         * sysdeps/ieee754/flt-32/e_acosf.c (__ieee754_acosf): Return pi/2
5         for |x| <= 2**-26, not 2**-57.
6         * math/libm-test.inc (acos_test): Do not allow spurious underflow
7         exception.
8
9 2012-05-24  Jeff Law  <law@redhat.com>
10
11         * stdio-common/Makefile (tests): Add bug25.
12         * stdio-common/bug25.c: New test.
13
14 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
15
16         [BZ #13576]
17         * malloc/malloc.c (sYSMALLOc): Free the old top chunk with a
18         multiple of MALLOC_ALIGNMENT in size.
19         (_int_free): Check chunk size is a multiple of MALLOC_ALIGNMENT.
20
21 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
22
23         * conform/data/stdio.h-data (BUFSIZ): Use macro-int-constant.
24         Require >= 256.
25         (FILENAME_MAX): Use macro-int-constant.
26         (FOPEN_MAX): Use macro-int-constant.  Require >= 8.
27         (_IOFBF): Use macro-int-constant.
28         (_IOLBF): Likewise.
29         (_IONBF): Likewise.
30         (SEEK_CUR): Likewise.
31         (SEEK_END): Likewise.
32         (SEEK_SET): Likewise.
33         (TMP_MAX): Likewise.
34         (EOF): Use macro-int-constant.  Require < 0.
35         (NULL): Use macro-constant.  Require == 0.
36         (stdin): Require type to be FILE *.
37         (stdout): Likewise.
38         (stderr): Likewise.
39         * conform/data/stdlib.h-data (EXIT_FAILURE): Use
40         macro-int-constant.
41         (EXIT_SUCCESS): Likewise.
42         (NULL): Use macro-constant.  Require == 0.
43         (RAND_MAX): Use macro-int-constant.
44         [ISO99 || ISO11] (lldiv_t): Require also for these standards.
45         [C99-based standards] (strtof): Require function.
46         [C99-based standards] (strtold): Likewise.
47         [C99-based standards] (strtoll): Likewise.
48         [C99-based standards] (strtoull): Likewise.
49         [ISO || ISO99 || ISO11] (stddef.h): Do not allow header.
50         [ISO || ISO99 || ISO11] (limits.h): Likewise.
51         [ISO || ISO99 || ISO11] (math.h): Likewise.
52         [ISO || ISO99 || ISO11] (sys/wait.h): Likewise.
53         (str*): Change to str[abcdefghijklmnopqrstuvwxyz]*.
54         [ISO || ISO99 || ISO11] (*_t): Do not allow.
55
56 2012-05-24  Andreas Schwab  <schwab@linux-m68k.org>
57
58         [BZ #14132]
59         * argp/argp-help.c (dgettext) [_LIBC]: Remove use of INTUSE.
60         * argp/argp-parse.c (dgettext) [_LIBC]: Likewise.
61         * intl/dgettext.c (DCGETTEXT): Likewise.
62         * intl/gettext.c (DCGETTEXT): Likewise.
63         * intl/l10nflist.c (__argz_count, __argz_stringify): Likewise.
64         * posix/regex_internal.h (gettext): Likewise.
65         * include/libintl.h (__dcgettext_internal, __dcngettext_internal):
66         Remove declaration.
67         * include/argz.h (__argz_count_internal)
68         (__argz_stringify_internal): Remove declaration.
69         (__argz_count, __argz_stringify): Declare hidden proto.
70         * intl/dcgettext.c: Remove use of INTDEF.
71         * string/argz-count.c: Replace INTDEF with libc_hidden_def.
72         * string/argz-stringify.c: Likewise.
73         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
74         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
75         Declare hidden proto.
76         * include/libio.h (_IO_free_backup_area, _IO_free_wbackup_area)
77         (_IO_padn, _IO_putc, _IO_sgetn, _IO_vfprintf, _IO_vfscanf):
78         Declare hidden proto.
79         * include/stdio.h (__asprintf_internal): Don't declare.
80         (__asprintf): Don't define as macro.  Declare hidden proto.
81         * include/stdio_ext.h (__fsetlocking_internal): Don't declare.
82         (__fsetlocking): Declare hidden proto.
83         * libio/iolibio.h (_IO_fdopen, _IO_fflush, _IO_ftell, _IO_fread)
84         (_IO_fwrite, _IO_setbuffer, _IO_setvbuf, _IO_vsprintf): Declare
85         hidden proto.
86         (_IO_vprintf, _IO_freopen, _IO_freopen64, _IO_setbuf)
87         (_IO_setlinebuf): Remove use of INTUSE.
88         (_IO_setbuffer_internal, _IO_fread_internal, _IO_fdopen_internal)
89         (_IO_vsprintf_internal, _IO_fflush_internal, _IO_fwrite_internal)
90         (_IO_ftell_internal, _IO_fputs_internal, _IO_setvbuf_internal):
91         Remove declaration.
92         * libio/libioP.h (INTUSE, INTDEF, INTDEF2): Don't define.
93         (_IO_do_flush): Remove use of INTUSE.
94         (_IO_switch_to_get_mode, _IO_init, _IO_sputbackc, _IO_un_link)
95         (_IO_link_in, _IO_doallocbuf, _IO_unsave_markers, _IO_setb)
96         (_IO_adjust_column, _IO_least_wmarker)
97         (_IO_switch_to_main_wget_area, _IO_switch_to_wbackup_area)
98         (_IO_switch_to_wget_mode, _IO_wsetb, _IO_sputbackwc)
99         (_IO_wdoallocbuf, _IO_default_uflow, _IO_wdefault_uflow)
100         (_IO_default_doallocate, _IO_wdefault_doallocate)
101         (_IO_default_finish, _IO_wdefault_finish, _IO_default_pbackfail)
102         (_IO_wdefault_pbackfail, _IO_default_xsputn, _IO_wdefault_xsputn)
103         (_IO_default_xsgetn, _IO_wdefault_xsgetn, _IO_do_write)
104         (_IO_wdo_write, _IO_flush_all, _IO_flush_all_linebuffered)
105         (_IO_file_doallocate, _IO_file_setbuf, _IO_file_seekoff)
106         (_IO_file_xsputn, _IO_file_xsgetn, _IO_file_stat, _IO_file_close)
107         (_IO_file_underflow, _IO_file_overflow, _IO_file_init)
108         (_IO_file_attach, _IO_file_fopen, _IO_file_read, _IO_file_sync)
109         (_IO_file_close_it, _IO_file_seek, _IO_file_finish)
110         (_IO_wfile_xsputn, _IO_wfile_sync, _IO_wfile_underflow)
111         (_IO_wfile_overflow, _IO_wfile_seekoff, _IO_str_underflow)
112         (_IO_str_overflow, _IO_str_pbackfail, _IO_str_seekoff)
113         (_IO_getline, _IO_getline_info, _IO_list_all): Declare hidden
114         proto.
115         (_IO_flush_all_internal, _IO_adjust_column_internal)
116         (_IO_default_uflow_internal, _IO_default_finish_internal)
117         (_IO_default_pbackfail_internal, _IO_default_xsputn_internal)
118         (_IO_default_xsgetn_internal, _IO_default_doallocate_internal)
119         (_IO_wdefault_finish_internal, _IO_wdefault_pbackfail_internal)
120         (_IO_wdefault_xsputn_internal, _IO_wdefault_xsgetn_internal)
121         (_IO_wdefault_doallocate_internal, _IO_wdefault_uflow_internal)
122         (_IO_file_doallocate_internal, _IO_file_setbuf_internal)
123         (_IO_file_seekoff_internal, _IO_file_xsputn_internal)
124         (_IO_file_xsgetn_internal, _IO_file_stat_internal)
125         (_IO_file_close_internal, _IO_file_close_it_internal)
126         (_IO_file_underflow_internal, _IO_file_overflow_internal)
127         (_IO_file_init_internal, _IO_file_attach_internal)
128         (_IO_file_fopen_internal, _IO_file_read_internal)
129         (_IO_file_sync_internal, _IO_file_seek_internal)
130         (_IO_file_finish_internal, _IO_wfile_xsputn_internal)
131         (_IO_wfile_seekoff_internal, _IO_wfile_sync_internal)
132         (_IO_str_underflow_internal, _IO_str_overflow_internal)
133         (_IO_str_pbackfail_internal, _IO_str_seekoff_internal)
134         (_IO_file_jumps_internal, _IO_wfile_jumps_internal)
135         (_IO_list_all_internal, _IO_link_in_internal)
136         (_IO_sputbackc_internal, _IO_wdoallocbuf_internal)
137         (_IO_sgetn_internal, _IO_flush_all_linebuffered_internal)
138         (_IO_switch_to_wget_mode_internal, _IO_unsave_markers_internal)
139         (_IO_switch_to_main_wget_area_internal, _IO_wdo_write_internal)
140         (_IO_do_write_internal, _IO_padn_internal)
141         (_IO_getline_info_internal, _IO_getline_internal)
142         (_IO_free_wbackup_area_internal, _IO_free_backup_area_internal)
143         (_IO_switch_to_wbackup_area_internal, _IO_setb_internal)
144         (_IO_sputbackwc_internal, _IO_switch_to_get_mode_internal)
145         (_IO_vfscanf_internal, _IO_vfprintf_internal)
146         (_IO_doallocbuf_internal, _IO_wsetb_internal, _IO_putc_internal)
147         (_IO_init_internal, _IO_un_link_internal): Don't declare.
148         * libio/fileops.c: Replace INTDEF with libc_hidden_def and INTDEF2
149         with libc_hidden_ver, remove use of INTUSE.
150         * libio/genops.c: Likewise.
151         * libio/freopen.c: Likewise.
152         * libio/freopen64.c: Likewise.
153         * libio/iofclose.c: Likewise.
154         * libio/iofdopen.c: Likewise.
155         * libio/iofflush.c: Likewise.
156         * libio/iofflush_u.c: Likewise.
157         * libio/iofgets.c: Likewise.
158         * libio/iofgets_u.c: Likewise.
159         * libio/iofopen.c: Likewise.
160         * libio/iofopncook.c: Likewise.
161         * libio/iofread.c: Likewise.
162         * libio/iofread_u.c: Likewise.
163         * libio/ioftell.c: Likewise.
164         * libio/iofwrite.c: Likewise.
165         * libio/iogetline.c: Likewise.
166         * libio/iogets.c: Likewise.
167         * libio/iogetwline.c: Likewise.
168         * libio/iopadn.c: Likewise.
169         * libio/iopopen.c: Likewise.
170         * libio/ioseekoff.c: Likewise.
171         * libio/ioseekpos.c: Likewise.
172         * libio/iosetbuffer.c: Likewise.
173         * libio/iosetvbuf.c: Likewise.
174         * libio/ioungetc.c: Likewise.
175         * libio/ioungetwc.c: Likewise.
176         * libio/iovdprintf.c: Likewise.
177         * libio/iovsprintf.c: Likewise.
178         * libio/iovsscanf.c: Likewise.
179         * libio/memstream.c: Likewise.
180         * libio/obprintf.c: Likewise.
181         * libio/oldfileops.c: Likewise.
182         * libio/oldiofclose.c: Likewise.
183         * libio/oldiofdopen.c: Likewise.
184         * libio/oldiofopen.c: Likewise.
185         * libio/oldiopopen.c: Likewise.
186         * libio/oldstdfiles.c: Likewise.
187         * libio/putc.c: Likewise.
188         * libio/setbuf.c: Likewise.
189         * libio/setlinebuf.c: Likewise.
190         * libio/stdfiles.c: Likewise.
191         * libio/strops.c: Likewise.
192         * libio/vasprintf.c: Likewise.
193         * libio/vscanf.c: Likewise.
194         * libio/vsnprintf.c: Likewise.
195         * libio/vswprintf.c: Likewise.
196         * libio/wfiledoalloc.c: Likewise.
197         * libio/wfileops.c: Likewise.
198         * libio/wgenops.c: Likewise.
199         * libio/wmemstream.c: Likewise.
200         * libio/wstrops.c: Likewise.
201         * libio/__fpurge.c: Likewise.
202         * libio/__fsetlocking.c: Likewise.
203         * assert/assert.c: Likewise.
204         * debug/fgets_chk.c: Likewise.
205         * debug/fgets_u_chk.c: Likewise.
206         * debug/fread_chk.c: Likewise.
207         * debug/fread_u_chk.c: Likewise.
208         * debug/gets_chk.c: Likewise.
209         * debug/obprintf_chk.c: Likewise.
210         * debug/vasprintf_chk.c: Likewise.
211         * debug/vdprintf_chk.c: Likewise.
212         * debug/vsnprintf_chk.c: Likewise.
213         * debug/vsprintf_chk.c: Likewise.
214         * malloc/mtrace.c: Likewise.
215         * misc/error.c: Likewise.
216         * misc/syslog.c: Likewise.
217         * stdio-common/asprintf.c: Likewise.
218         * stdio-common/fxprintf.c: Likewise.
219         * stdio-common/getw.c: Likewise.
220         * stdio-common/isoc99_fscanf.c: Likewise.
221         * stdio-common/isoc99_scanf.c: Likewise.
222         * stdio-common/isoc99_vfscanf.c: Likewise.
223         * stdio-common/isoc99_vscanf.c: Likewise.
224         * stdio-common/isoc99_vsscanf.c: Likewise.
225         * stdio-common/printf-prs.c: Likewise.
226         * stdio-common/printf_fp.c: Likewise.
227         * stdio-common/printf_fphex.c: Likewise.
228         * stdio-common/printf_size.c: Likewise.
229         * stdio-common/putw.c: Likewise.
230         * stdio-common/scanf.c: Likewise.
231         * stdio-common/sprintf.c: Likewise.
232         * stdio-common/tmpfile.c: Likewise.
233         * stdio-common/vfprintf.c: Likewise.
234         * stdio-common/vfscanf.c: Likewise.
235         * stdlib/strfmon_l.c: Likewise.
236         * sunrpc/openchild.c: Likewise.
237         * sunrpc/xdr_stdio.c: Likewise.
238         * sysdeps/ieee754/ldbl-opt/nldbl-compat.c: Likewise.
239         * sysdeps/mach/hurd/tmpfile.c: Likewise.
240
241 2012-05-24  Roland McGrath  <roland@hack.frob.com>
242
243         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
244
245         * sysdeps/unix/make-syscalls.sh: Support "syscall:vdso_name@VDSOVER"
246         in the third column, to generate for the shared library an IFUNC
247         that uses _dl_vdso_vsym.
248         * Makerules (COMPILE.c, compile-stdin.c): New variables.
249         * Makeconfig (object-suffixes-noshared): New variable.
250
251         * sysdeps/unix/sysv/linux/dl-vdso.h (PREPARE_VERSION_KNOWN): New macro.
252         (VDSO_NAME_LINUX_2_6, VDSO_HASH_LINUX_2_6): New macros.
253         (VDSO_NAME_LINUX_2_6_15, VDSO_HASH_LINUX_2_6_15): New macros.
254         (VDSO_NAME_LINUX_2_6_29, VDSO_HASH_LINUX_2_6_29): New macros.
255
256         [BZ #14132]
257         * include/sys/time.h (__gettimeofday): Remove macro.
258         (__gettimeofday, gettimeofday): Add libc_hidden_proto.
259         * time/gettimeofday.c (__gettimeofday): Remove #undef.
260         Remove INTDEF.
261         (__gettimeofday): Add libc_hidden_def.
262         (gettimeofday): Add libc_hidden_weak.
263         * sysdeps/mach/gettimeofday.c: Likewise.
264         * sysdeps/posix/gettimeofday.c: Likewise.
265         * sysdeps/unix/sysv/linux/powerpc/gettimeofday.c: Likewise.
266         * sysdeps/unix/sysv/linux/s390/gettimeofday.c: Likewise.
267         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c
268         (__gettimeofday_internal): Remove strong_alias.
269         (__gettimeofday): Add libc_hidden_def.
270         (gettimeofday): Add libc_hidden_weak.
271         * sysdeps/unix/syscalls.list (gettimeofday):
272         Remove __gettimeofday_internal alias.
273
274 2012-05-24  Daniel Jacobowitz  <drow@false.org>
275             H.J. Lu  <hongjiu.lu@intel.com>
276
277         [BZ #12495]
278         * malloc/malloc.c (SMALLBIN_CORRECTION): New.
279         (MIN_LARGE_SIZE, smallbin_index): Use it to handle 16-byte alignment.
280         (largebin_index_32_big): New.
281         (largebin_index): Use it for 16-byte alignment.
282         (sYSMALLOc): Handle MALLOC_ALIGNMENT > 2 * SIZE_SZ.  Don't update
283         correction with front_misalign.
284
285 2012-05-24  H.J. Lu  <hongjiu.lu@intel.com>
286
287         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/ld.abilist: New file.
288         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libBrokenLocale.abilist:
289         Likewise.
290         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libanl.abilist:
291         Likewise.
292         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libc.abilist:
293         Likewise.
294         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libcrypt.abilist:
295         Likewise.
296         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libdl.abilist:
297         Likewise.
298         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libm.abilist:
299         Likewise.
300         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libnsl.abilist:
301         Likewise.
302         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libpthread.abilist:
303         Likewise.
304         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libresolv.abilist:
305         Likewise.
306         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/librt.abilist:
307         Likewise.
308         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libthread_db.abilist:
309         Likewise.
310         * sysdeps/unix/sysv/linux/x86_64/x32/nptl/libutil.abilist:
311         Likewise.
312
313         * scripts/data/c++-types-x32-linux-gnu.data: New file.
314         * sysdeps/x86_64/x32/shlib-versions: Add x32 ABI entry.
315
316 2012-05-24  Joseph Myers  <joseph@codesourcery.com>
317
318         [BZ #10846]
319         [BZ #14036]
320         * math/libm-test.inc (exp_test): Add test from bug 14036.
321         (pow_test): Add test from bug 10846.
322
323         * math/gen-libm-test.pl (%beautify): Remove entries for exceptions
324         and other flags.
325         (special_function): Do not include flags in test name.
326         (parse_args): Likewise.
327         * sysdeps/i386/fpu/libm-test-ulps: Update.
328         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
329         * sysdeps/s390/fpu/libm-test-ulps: Likewise.
330         * sysdeps/sparc/fpu/libm-test-ulps: Likewise.
331         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
332
333         * math/gen-libm-test.pl (%beautify): Add entries for underflow
334         exceptions.
335         * math/libm-test.inc ("Philosophy"): Update comment about
336         exception testing.
337         (UNDERFLOW_EXCEPTION): New macro.
338         (UNDERFLOW_EXCEPTION_OK): Likewise.
339         (UNDERFLOW_EXCEPTION_FLOAT): Likewise.
340         (UNDERFLOW_EXCEPTION_OK_FLOAT): Likewise.
341         (UNDERFLOW_EXCEPTION_DOUBLE): Likewise.
342         (UNDERFLOW_EXCEPTION_LDOUBLE_IBM): Likewise.
343         (INVALID_EXCEPTION_OK): Update value.
344         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
345         (OVERFLOW_EXCEPTION_OK): Likewise.
346         (IGNORE_ZERO_INF_SIGN): Likewise.
347         (test_exceptions): Handle underflow exceptions.
348         (acos_test): Update for underflow exception expectations.
349         (cexp_test): Likewise.
350         (clog_test): Likewise.
351         (clog10_test): Likewise.
352         (csqrt_test): Likewise.
353         (ctan_test): Likewise.
354         (ctanh_test): Likewise.
355         (exp_test): Likewise.
356         (exp10_test): Likewise.
357         (exp2_test): Likewise.
358         (expm1_test): Likewise.
359         (fma_test): Likewise.
360         (j0_test): Likewise.
361         (jn_test): Likewise.
362         (nexttoward_test): Likewise.
363         (pow_test): Likewise.
364         (scalbn_test): Likewise.
365         (scalbln_test): Likewise.
366         (tan_test): Likewise.
367         (y1_test): Likewise.
368         * sysdeps/i386/fpu/libm-test-ulps: Update.
369         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
370
371 2012-05-23  David S. Miller  <davem@davemloft.net>
372
373         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
374         (__libc_sigaction): Remove unused local variables.
375
376 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
377
378         * sysdeps/unix/sysv/linux/x86_64/x32/configure: New file.
379
380 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
381
382         mktime: avoid signed integer overflow
383         * time/mktime.c (__mktime_internal): Do not mishandle the case
384         where diff == INT_MIN.
385
386         mktime: simplify computation of average
387         * time/mktime.c (ranged_convert): Use new time_t_avg function
388         instead of rolling our own (probably-slower) code.
389
390         mktime: do not assume signed right shift propagates sign bit
391         * time/mktime.c (isdst_differ): New static function.
392         (__mktime_internal): No need to normalize tm_isdst now.
393         (__mktime_internal, not_equal_tm): Use isdst_differ to compare
394         tm_isdst values.
395
396         mktime: merge another wrapv change from gnulib
397         * time/mktime.c (TYPE_MAXIMUM): Rework slightly to avoid diagnostics
398         from some compilers.
399
400         mktime: remove incorrect attempt at unusual arithmetics
401         * time/mktime.c (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove.
402         The code didn't really work on such machines anyway.
403         (TYPE_MINIMUM): Assume two's complement.
404         (twos_complement_arithmetic): Verify that long_int and time_t
405         are two's complement (or unsigned, in the latter case).
406
407         mktime: check signed shifts on long_int and time_t, too
408         * time/mktime.c (SHR): Check that shifts work as desired
409         on the types long_int and time_t too, as SHR is used on
410         such types.
411
412         mktime: do not assume 'long' is wide enough
413         * time/mktime.c (verify): Move decl up.
414         (long_int): New type.
415         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it,
416         to remove assumption in the code that 'long' is wide enough to
417         store year values.  This assumption is not true on x32 and on
418         some non-glibc platforms.
419
420         mktime: merge wrapv change from gnulib
421         * time/mktime.c (WRAPV): New macro.
422         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New static functions.
423         (guess_time_tm, __mktime_internal): Do not assume that signed
424         integer overflow wraps around; modern compilers generate code
425         where this assumption is no longer valid.
426
427 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
428
429         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
430         Replace "jmp L(pseudo_end)" with "ret".
431         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_ERROR_HANDLER):
432         Likewise.
433
434 2012-05-23  Andreas Jaeger  <aj@suse.de>
435
436         * sysdeps/unix/sysv/linux/syscalls.list: Add poll.
437         * sysdeps/unix/sysv/linux/poll.c: Remove file.
438
439 2012-05-23  Andreas Jaeger  <aj@suse.de>
440             Maximilian Attems  <max@stro.at>
441
442         * sysdeps/unix/sysv/linux/sys/reboot.h (RB_SW_SUSPEND, RB_KEXEC):
443         New macros.
444
445 2012-05-23  H.J. Lu  <hongjiu.lu@intel.com>
446
447         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Rearrange
448         code so that pseudo_end is just ret and the stack pointer is
449         correct also for static library in error case.
450
451 2012-05-23  Joseph Myers  <joseph@codesourcery.com>
452
453         * sysdeps/unix/sysv/linux/powerpc/chown.c: Add comment suggesting
454         move to syscalls.list.
455         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c: Likewise.
456         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c: Likewise.
457         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c: Likewise.
458         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c: Likewise.
459
460         * manual/install.texi (Running make install): Do not mention Linux
461         kernel version for which pt_chown is not needed.
462         (Linux): Do not mention problems with nscd with 2.0 kernels.
463         * INSTALL: Regenerated.
464
465 2012-05-23  Andreas Jaeger  <aj@suse.de>
466
467         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h
468         (MADV_DONTDUMP,MADV_DODUMP): New macros from Linux 3.4.
469         macro.
470         * sysdeps/unix/sysv/linux/s390/bits/mman.h
471         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
472         * sysdeps/unix/sysv/linux/sh/bits/mman.h
473         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
474         * sysdeps/unix/sysv/linux/i386/bits/mman.h
475         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
476         * sysdeps/unix/sysv/linux/sparc/bits/mman.h
477         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
478         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h
479         (MADV_DONTDUMP,MADV_DODUMP): Likewise.
480         * sysdeps/unix/sysv/linux/bits/in.h
481         (IP_MULTICAST_ALL,IP_UNICAST_IF): Likewise.
482
483 2012-05-22  Roland McGrath  <roland@hack.frob.com>
484
485         * sysdeps/unix/sysv/linux/dl-vdso.h (CHECK_HASH): Macro removed.
486         (PREPARE_VERSION): Just use assert instead, it will be elided
487         under [NDEBUG] anyway.
488
489 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
490
491         * sysdeps/unix/sysv/linux/Makefile: Include
492         $(firstword $(wildcard $(sysdirs:=/sysctl.mk))).
493         (sysdep_routines): Remove sysctl.
494         * sysdeps/unix/sysv/linux/bits/sysctl.h: New file.
495         * sysdeps/unix/sysv/linux/sysctl.mk: Likewise.
496         * sysdeps/unix/sysv/linux/x86_64/bits/sysctl.h: Likewise.
497         * sysdeps/unix/sysv/linux/x86_64/x32/sysctl.mk: Likewise.
498         * sysdeps/unix/sysv/linux/sys/sysctl.h: Include <bits/sysctl.h>.
499
500 2012-05-22  Andreas Jaeger  <aj@suse.de>
501
502         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S: Rearrange code so
503         that pseudo_end is just ret and the stack pointer is correct also
504         for static library in error case.
505
506 2012-05-22  Paul Pluzhnikov  <ppluzhnikov@google.com>
507
508         [BZ #14122]
509         * nss/nsswitch.c (defconfig_entries): New variable.
510         (__nss_database_lookup): Don't leak defconfig entries.
511         (nss_parse_service_list): Don't leak on error paths.
512         (free_database_entries): New function.
513         (free_defconfig): New function.
514         (free_mem): Move common code to free_database_entries.
515
516 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
517
518         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile (sysdep_routines):
519         Add arch_prctl.
520         * sysdeps/unix/sysv/linux/x86_64/x32/arch_prctl.c: New file.
521
522         * sysdeps/unix/sysv/linux/wordsize-64/posix_fallocate.c
523         (posix_fallocate): Use INTERNAL_SYSCALL_TYPES if it is defined.
524         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (INLINE_SYSCALL_TYPES):
525         New macro.
526         (INTERNAL_SYSCALL_NCS_TYPES): Likewise.
527         (INTERNAL_SYSCALL_TYPES): Likewise.
528         (LOAD_ARGS_TYPES_[1-6]): Likewise.
529         (LOAD_REGS_TYPES_[1-6]): Likewise.
530         (LOAD_ARGS_[1-6]): Use LOAD_ARGS_TYPES_[1-6].
531         (LOAD_REGS_[1-6]): Use LOAD_REGS_TYPES_[1-6].
532
533 2012-05-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
534
535         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: Add compat symbol
536         copysignl for GLIBC_2_0.
537         * sysdeps/powerpc/powerpc32/power7/fpu/s_finite.S: Add compat symbol
538         finitel for GLIBC_2.0 and __finitel for GLIBC_2_1.
539         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: Add compat symbol
540         logbl for GLIBC_2_0.
541         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: Likewise.
542         * sysdeps/powerpc/powerpc64/power7/fpu/s_finite.S: Likewise.
543
544 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
545
546         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Don't include
547         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
548
549         * sysdeps/unix/sysv/linux/i386/sysdep.h (SYSCALL_ERROR_HANDLER):
550         Use "neg %eax".
551
552         * time/mktime.c: Update copyright years.
553
554 2012-05-22  Paul Eggert  <eggert@cs.ucla.edu>
555
556         mktime: merge comment-quoting-style change from gnulib
557         * time/mktime.c: Quote 'like this' in comments.
558         The GNU coding standards suggest that we no longer quote `like this',
559         as "`" and "'" are typically rendered asymmetrically nowadays.
560         The typical gnulib style is to quote 'like this' when quoting
561         code, and "like this" when quoting English.
562
563         * time/mktime.c (compile-command): Add "-I.".
564
565         mktime: merge mktime-internal.h change from gnulib
566         * time/mktime.c [!_LIBC]: Include "mktime-internal.h".
567
568         mktime: merge time_r change from gnulib
569         * time/mktime.c [!_LIBC]: Do not include "time_r.h".
570
571         mktime: merge DEBUG change from gnulib
572         * time/mktime.c (mktime) [DEBUG]: #undef before #define-ing, in
573         case system <time.h> has a #define.
574
575         mktime: merge <sys/types.h> change from gnulib
576         * time/mktime.c: Do not include <sys/types.h>; no longer needed,
577         since <time.t> is now guaranteed to define time_t.
578
579         mktime: merge HAVE_CONFIG_H change from gnulib
580         * time/mktime.c: Include <config.h> if !_LIBC, not if HAVE_CONFIG_H.
581
582 2012-05-22  H.J. Lu  <hongjiu.lu@intel.com>
583
584         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
585         Use "neg %eax".
586
587         * sysdeps/unix/sysv/linux/bits/resource.h (RLIM_INFINITY): Use
588         __rlim_t cast.
589         (struct rusage): Use anonymous union to pad each field to
590         __syscall_slong_t.
591
592 2012-05-21  David S. Miller  <davem@davemloft.net>
593
594         * Makefules (o-iterator): Remove .s cases.
595         (compile-command.s): Delete.
596         (COMPILE.s): Delete.
597         * sysdeps/unix/make-syscalls.sh: Remove .s file tests.
598
599 2012-05-21  Joseph Myers  <joseph@codesourcery.com>
600
601         * configure.in (libc_cv_predef_stack_protector): Only consider
602         "foobar" and "__stack_chk_fail" lines in libc_undefs.
603         * configure: Regenerated.
604
605 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
606
607         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (SYSCALL_SET_ERRNO):
608         New macro.  Use R*LP on int and pointer.
609         (SYSCALL_ERROR_HANDLER): Use SYSCALL_SET_ERRNO.
610         * sysdeps/unix/sysv/linux/x86_64/x32/lseek.S: New file.
611         * sysdeps/unix/sysv/linux/x86_64/x32/llseek.S: Likewise.
612         * sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h: Likewise.
613
614         * sysdeps/gnu/bits/utmp.h (struct lastlog): Check
615         [__WORDSIZE_TIME64_COMPAT32] instead of
616         [__WORDSIZE == 64 && __WORDSIZE_COMPAT32].
617         (struct utmp): Likewise.
618         * sysdeps/gnu/bits/utmpx.h (struct utmpx): Likewise.
619         * sysdeps/powerpc/powerpc32/bits/wordsize.h (__WORDSIZE_COMPAT32):
620         Renamed to ...
621         (__WORDSIZE_TIME64_COMPAT32): This.
622         * sysdeps/powerpc/powerpc64/bits/wordsize.h: Likewise.
623         * sysdeps/sparc/sparc32/bits/wordsize.h: Likewise.
624         * sysdeps/sparc/sparc64/bits/wordsize.h: Likewise.
625         * sysdeps/unix/sysv/linux/powerpc/bits/wordsize.h: Likewise.
626         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE_COMPAT32): Removed.
627         (__WORDSIZE_TIME64_COMPAT32): New macro.
628
629 2012-05-21  Andreas Jaeger  <aj@suse.de>
630
631         * sysdeps/i386/i686/multiarch/wcschr-c.c: Redefine libc_hidden_def
632         only if [SHARED]. Add prototype for __wcschr_ia32.
633
634 2012-05-21  Roland McGrath  <roland@hack.frob.com>
635
636         * sysdeps/x86_64/setjmp.S [PTR_MANGLE] [__ILP32__]: Preserve high bits
637         of %rbp unmolested in the jmp_buf while mangling the low bits.
638         * sysdeps/x86_64/__longjmp.S [PTR_DEMANGLE] [__ILP32__]: Restore the
639         unmolested high bits of %rbp while demangling the low bits.
640         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Likewise.
641
642 2012-05-21  Andreas Jaeger  <aj@suse.de>
643
644         * include/shlib-compat.h (libc_sunrpc_symbol): New macro.
645         * sunrpc/svc_simple.c: Use it for registerrpc.
646         * sunrpc/xcrypt.c: Use it for passwd2des.
647
648         * malloc/malloc.c: Include shlib-compat.h for SHLIB_COMPAT.
649
650 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
651
652         * sysdeps/unix/sysv/linux/bits/statvfs.h (_STATVFSBUF_F_UNUSED):
653         Don't define if [__SYSCALL_WORDSIZE != 32].
654         * sysdeps/x86_64/bits/wordsize.h (__SYSCALL_WORDSIZE):
655         New macro.
656
657 2012-05-21  Bruno Haible  <bruno@clisp.org>
658             Andreas Jaeger  <aj@suse.de>
659
660         [BZ #13691], Revert breakage of iconv() converter for TCVN-5712.
661         * iconvdata/tcvn5712-1.c (BODY for FROM_LOOP): Don't consider
662         inptr and inend for must_buffer_ch.
663         * wcsmbs/tst-mbsnrtowcs.c: Remove file.
664         * wcsmbs/Makefile (tests): Remove tst-mbsnrtowcs.
665         * stdio-common/Makefile (tests): Remove bug15.
666         (bug15-ENV): Remove macro.
667         * stdio-common/bug15.c: Remove, we do not support vi_VN.TCVN5712-1
668         anymore.
669
670 2012-05-19  Andreas Jaeger  <aj@suse.de>
671             Roland McGrath  <roland@hack.frob.com>
672
673         * manual/contrib.texi: Completely rewritten. It contains now an
674         alphabetical list of contributors and their contributions.
675
676 2012-05-21  Richard Henderson  <rth@twiddle.net>
677
678         * misc/getauxval.c (__getauxval): Use unsigned long int.
679         * misc/sys/auxv.h: Include <sys/cdefs.h>.
680         (getauxval): Use unsigned long int.
681
682 2012-05-21  H.J. Lu  <hongjiu.lu@intel.com>
683
684         * sysdeps/unix/sysv/linux/x86_64/x32/syscalls.list: New file.
685
686 2012-05-21  Roland McGrath  <roland@hack.frob.com>
687
688         * malloc/malloc.c [!SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_16)]
689         (MALLOC_ALIGNMENT): Set it to the greater of 2 * SIZE_SZ and
690         __alignof__ (long double).
691
692 2012-05-21  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
693
694         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
695
696 2012-05-20  Richard Henderson  <rth@twiddle.net>
697
698         * misc/getauxval.c: New file.
699         * misc/sys/auxv.h: New file.
700         * misc/Makefile (headers): Add sys/auxv.h, bits/hwcap.h.
701         (routines): Add getauxval.
702         * misc/Versions (GLIBC_2.16): Add __getauxval, getauxval.
703         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): Add _dl_auxv.
704         * elf/dl-sysdep.c (_dl_auxv): Remove.
705         (_dl_sysdep_start, _dl_show_auxv): Use GLRO to access _dl_auxv.
706         * elf/dl-support.c (_dl_auxv): New variable.
707         (_dl_aux_init): Initialize it.
708         * manual/startup.texi (Auxiliary Vector): New node.
709         * sysdeps/generic/bits/hwcap.h: New file.
710         * sysdeps/powerpc/bits/hwcap.h: New file, split out from ...
711         * sysdeps/powerpc/sysdep.h: ... here.  Include it.
712         * sysdeps/sparc/bits/hwcap.h: New file, split out from ...
713         * sysdeps/sparc/sysdep.h: ... here.  Include it.
714         * sysdeps/unix/sysv/linux/s390/bits/hwcap.h: New file.
715         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: Update.
716         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
717         Update.
718         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: Update.
719         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: Update.
720         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: Update.
721         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: Update.
722         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
723         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: Update.
724         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: Update.
725         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Update.
726
727 2012-05-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
728
729         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
730
731 2012-05-19  David S. Miller  <davem@davemloft.net>
732
733         * sysdeps/sparc/fpu/libm-test-ulps: Update.
734
735 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
736
737         [BZ #14123]
738         * math/s_ccosh.c: Include <float.h>
739         (__ccosh): Avoid internal overflow calculating sinh and cosh
740         values before multiplying by sin and cos values.
741         * math/s_ccoshf.c: Likewise.
742         * math/s_ccoshl.c: Likewise.
743         * math/s_csin.c: Likewise.
744         * math/s_csinf.c: Likewise.
745         * math/s_csinl.c: Likewise.
746         * math/s_csinh.c: Likewise.
747         * math/s_csinhf.c: Likewise.
748         * math/s_csinhl.c: Likewise.
749         * math/libm-test.inc (ccos_test): Add more tests.
750         (ccosh_test): Likewise.
751         (csin_test): Likewise.
752         (csinh_test): Likewise.
753         * sysdeps/i386/fpu/libm-test-ulps: Update.
754         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
755
756 2012-05-19  H.J. Lu  <hongjiu.lu@intel.com>
757
758         * sysdeps/unix/sysv/linux/wordsize-64/preadv.c: New file.
759         * sysdeps/unix/sysv/linux/wordsize-64/pwritev.c: Likewise.
760
761         * sysdeps/x86_64/x32/_itoa.h: Add comment.
762
763 2012-05-19  Joseph Myers  <joseph@codesourcery.com>
764
765         * sysdeps/powerpc/soft-fp/Makefile: Remove file.
766         * sysdeps/powerpc/soft-fp/Subdirs: Likewise.
767         * sysdeps/powerpc/soft-fp/Versions: Likewise.
768         * sysdeps/powerpc/soft-fp/q_add.c: Likewise.
769         * sysdeps/powerpc/soft-fp/q_cmp.c: Likewise.
770         * sysdeps/powerpc/soft-fp/q_cmpe.c: Likewise.
771         * sysdeps/powerpc/soft-fp/q_div.c: Likewise.
772         * sysdeps/powerpc/soft-fp/q_dtoq.c: Likewise.
773         * sysdeps/powerpc/soft-fp/q_feq.c: Likewise.
774         * sysdeps/powerpc/soft-fp/q_fge.c: Likewise.
775         * sysdeps/powerpc/soft-fp/q_fgt.c: Likewise.
776         * sysdeps/powerpc/soft-fp/q_fle.c: Likewise.
777         * sysdeps/powerpc/soft-fp/q_flt.c: Likewise.
778         * sysdeps/powerpc/soft-fp/q_fne.c: Likewise.
779         * sysdeps/powerpc/soft-fp/q_itoq.c: Likewise.
780         * sysdeps/powerpc/soft-fp/q_lltoq.c: Likewise.
781         * sysdeps/powerpc/soft-fp/q_mul.c: Likewise.
782         * sysdeps/powerpc/soft-fp/q_neg.c: Likewise.
783         * sysdeps/powerpc/soft-fp/q_qtod.c: Likewise.
784         * sysdeps/powerpc/soft-fp/q_qtoi.c: Likewise.
785         * sysdeps/powerpc/soft-fp/q_qtoll.c: Likewise.
786         * sysdeps/powerpc/soft-fp/q_qtos.c: Likewise.
787         * sysdeps/powerpc/soft-fp/q_qtou.c: Likewise.
788         * sysdeps/powerpc/soft-fp/q_qtoull.c: Likewise.
789         * sysdeps/powerpc/soft-fp/q_sqrt.c: Likewise.
790         * sysdeps/powerpc/soft-fp/q_stoq.c: Likewise.
791         * sysdeps/powerpc/soft-fp/q_sub.c: Likewise.
792         * sysdeps/powerpc/soft-fp/q_ulltoq.c: Likewise.
793         * sysdeps/powerpc/soft-fp/q_util.c: Likewise.
794         * sysdeps/powerpc/soft-fp/q_utoq.c: Likewise.
795         * sysdeps/powerpc/soft-fp/sfp-machine.h: Likewise.
796
797 2012-05-18  Andreas Jaeger  <aj@suse.de>
798
799         * csu/.gitignore: Delete.
800
801 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
802
803         * sysdeps/unix/sysv/linux/bits/timex.h: Include <bits/types.h>.
804         (timex): Use __syscall_slong_t.
805
806 2012-05-18  Andreas Jaeger  <aj@suse.de>
807             Carlos O'Donell  <carlos_odonell@mentor.com>
808
809         * manual/install.texi (Configuring and compiling): Update
810         description about files modified in the source directory.
811         * INSTALL: Regenerated.
812
813 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
814
815         * sysdeps/unix/x86_64/sysdep.S: Use RAX_LP to access return
816         value.  Use "or" to set return value to -1.
817         * sysdeps/unix/sysv/linux/x86_64/sysdep.S: Use RAX_LP to
818         negate return value.
819
820 2012-05-18  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
821
822         * sysdeps/powerpc/powerpc32/power4/Makefile (CFLAGS-wordcopy.c,
823         CFLAGS-memmove.c): remove -ftree-loop-linear which causes a build
824         failure if the compiler has Graphite support disabled.
825         * sysdeps/powerpc/powerpc32/power4/fpu/Makefile (CFLAGS-mpa.c):
826         Likewise.
827         * sysdeps/powerpc/powerpc64/power4/Makefile (CFLAGS-wordcopy.c,
828         CFLAGS-memmove.c): Likewise.
829         * sysdeps/powerpc/powerpc64/power4/fpu/Makefile (CFLAGS-mpa.c):
830         Likewise.
831
832 2012-05-18  H.J. Lu  <hongjiu.lu@intel.com>
833
834         * sysdeps/x86_64/x32/_itoa.h: New file.
835
836         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): Use
837         getdents system call only if kernel and user dirents have the
838         same d_ino and d_off.
839
840         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
841         LLONG_MAX != LONG_MAX.
842         (_itoa_word): Use _ITOA_WORD_TYPE on value.
843         (_fitoa_word): Likewise.
844
845         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Fold copyright
846         years.
847         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Likewise.
848         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h: Likewise.
849         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Likewise.
850
851         * sysdeps/unix/sysv/linux/x86_64/bits/sigcontext.h: Don't
852         include <bits/wordsize.h>.  Check __x86_64__ instead of
853         __WORDSIZE.
854         (sigcontext): Use "__uint64_t" instead of "unsigned long int"
855         if __x86_64__ is defined.  Use anonymous union on fpstate.
856
857         * sysdeps/unix/sysv/linux/x86_64/sys/user.h (user): Use
858         anonymous union.
859
860 2012-05-18  Andreas Schwab  <schwab@linux-m68k.org>
861
862         * sysdeps/powerpc/powerpc32/dl-start.S (_dl_start_user): Use
863         INTUSE on _dl_argv, and _rtld_local instead of _rtld_global.
864         * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S [IS_IN_rtld]:
865         Refer to _rtld_local_ro instead of _rtld_global_ro.
866         * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S [IS_IN_rtld]:
867         Likewise.
868         * sysdeps/powerpc/powerpc64/__longjmp-common.S [IS_IN_rtld]:
869         Likewise.
870         * sysdeps/powerpc/powerpc64/setjmp-common.S [IS_IN_rtld]:
871         Likewise.
872         * sysdeps/powerpc/powerpc64/dl-trampoline.S [SHARED]: Likewise.
873         * sysdeps/powerpc/powerpc64/dl-machine.h: Use _rtld_local instead
874         of _rtld_global, and rtld_progname instead of _dl_argv[0].
875
876         * sysdeps/powerpc/powerpc32/dl-machine.c
877         (__elf_machine_runtime_setup) [PROF]: Don't reference
878         _dl_prof_resolve.
879
880 2012-05-18  Andreas Jaeger  <aj@suse.de>
881
882         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Make inline
883         function only available for GCCs before 3.4 since GCC 3.4
884         introduced a builtin.
885         (lrint): Likewise.
886         (llrintf): Likewise.
887         (llrint): Likewise.
888         (fmaxf): Likewise.
889         (fmax): Likewise.
890         (fminf): Likewise.
891         (fmin): Likewise.
892         (rint): Likewise.
893         (rintf): Likewise.
894         (nearbyint): Likewise.
895         (nearbyintf): Likewise.
896         (ceil): Likewise.
897         (ceilf): Likewise.
898         (floor): Likewise.
899         (floorf): Likewise.
900
901 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
902
903         * sysdeps/unix/sysv/linux/pselect.c (data): Use __syscall_ulong_t
904         on both fields and cast pointer to __syscall_ulong_t.
905
906         * bits/types.h (__fsword_t): New type.
907         * bits/typesizes.h (__FSWORD_T_TYPE): New macro.
908         sysdeps/mach/hurd/bits/typesizes.h (__FSWORD_T_TYPE): Likewise.
909         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
910         (__FSWORD_T_TYPE): Likewise.
911         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
912         (__FSWORD_T_TYPE): Likewise.
913         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
914         (__FSWORD_T_TYPE): Likewise.
915         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h
916         (__FSWORD_T_TYPE): Likewise.
917         * sysdeps/unix/sysv/linux/bits/statfs.h (statfs): Replace
918         __SWORD_TYPE with __fsword_t.
919         (statfs64): Likewise.
920
921 2012-05-17  David S. Miller  <davem@davemloft.net>
922
923         * crypt/sha512c-test.c (TIMEOUT): Increase to 32.
924
925 2012-05-17  Andreas Jaeger  <aj@suse.de>
926
927         * elf/tst-relsort1.c (do_test): Fix function declaration to avoid
928         warning.
929
930 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
931
932         * sysdeps/x86_64/tst-mallocalign1.c (test): Cast to unsigned long.
933
934 2012-05-17  Andreas Jaeger  <aj@suse.de>
935
936         * sysdeps/i386/dl-machine.h (elf_machine_rel): Declare refsym only
937         when it is used.
938
939 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
940
941         * stdio-common/bug22.c (TIMEOUT): Bump up from 30 to 60.
942
943 2012-05-17  H.J. Lu  <hongjiu.lu@intel.com>
944
945         * sysdeps/x86_64/Makefile (tests): Add tst-mallocalign1.
946         * sysdeps/x86_64/tst-mallocalign1.c: New file.
947
948 2012-05-17  Andreas Jaeger  <aj@suse.de>
949             Carlos O'Donell  <carlos_odonell@mentor.com>
950
951         [BZ #14059]
952         * sysdeps/x86_64/multiarch/init-arch.h
953         (bit_YMM_Usable): Rename to...
954         (bit_AVX_Usable): ... this.
955         (bit_FMA4_Usable): New macro.
956         (bit_XMM_state): New macro.
957         (bit_YMM_state): New macro.
958         [__ASSEMBLER__] (index_YMM_Usable): Rename to...
959         [__ASSEMBLER__] (index_AVX_Usable): ... this.
960         [__ASSEMBLER__] (index_FMA4_Usable): New macro.
961         (CPUID_OSXSAVE): New macro.
962         (CPUID_AVX): New macro.
963         (CPUID_FMA4): New macro.
964         (index_YMM_Usable): Rename to...
965         (index_AVX_Usable): ... this.
966         (HAS_AVX): Use HAS_ARCH_FEATURE.
967         (HAS_FMA4): Likewise.
968         (HAS_YMM_USABLE): Remove.
969         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
970         Enable AVX or FMA4 IFF YMM and XMM states are usable and the features
971         are present.
972         * sysdeps/x86_64/multiarch/strcmp.S: Use bit_AVX_Usable.
973         * sysdeps/i386/i686/multiarch/Makefile: Add test-multiarch to tests.
974         * sysdeps/x86_64/multiarch/Makefile: Likewise.
975         * sysdeps/i386/i686/multiarch/test-multiarch.c: New file.
976         * sysdeps/x86_64/multiarch/test-multiarch.c: New file.
977
978 2012-05-17  Chris Metcalf  <cmetcalf@tilera.com>
979
980         * math/libm-test.c: Support platforms without multiple rounding modes.
981         * math/bug-nextafter.c: Support platforms without FP exceptions.
982         * math/bug-nexttoward.c: Likewise.
983         * math/test-fenv.c: Likewise.
984         * math/test-misc.c: Likewise.
985         * stdlib/bug-getcontext.c: Likewise.
986
987 2012-05-17  Andreas Jaeger  <aj@suse.de>
988
989         * manual/examples/search.c (critter_cmp): Change signature to
990         avoid warnings.
991         * manual/string.texi (Collation Functions): Likewise.
992
993 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
994
995         * bits/types.h: Fold copyright years.
996         * bits/typesizes.h: Likewise.
997         * sysdeps/mach/hurd/bits/typesizes.h: Likewise.
998         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h: Likewise.
999         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h: Likewise.
1000         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h: Likewise.
1001         * time/time.h: Likewise.
1002
1003 2012-05-16  Paul Pluzhnikov  <ppluzhnikov@google.com>
1004
1005         [BZ #208]
1006         * malloc.c (int_mallinfo): Add parameter to accumulate statistics
1007         in instead of returning them.  Return void.
1008         (__libc_mallinfo): Accumulate over all arenas.
1009         (__malloc_stats): Adjust for change in int_mallinfo interface.
1010
1011 2012-05-16  Roland McGrath  <roland@hack.frob.com>
1012
1013         [BZ #10375]
1014         * configure.in (NM): Add AC_CHECK_TOOL for it.
1015         (libc_extra_cflags): New substituted variable.
1016         Check for -fstack-protector being used implicitly.
1017         * configure: Regenerated.
1018         * config.make.in (config-extra-cflags): New variable,
1019         gets @libc_extra_cflags@.
1020         * Makeconfig (CFLAGS): Add $(config-extra-cflags) near the front.
1021
1022         [BZ #10375]
1023         * configure.in: Check for _FORTIFY_SOURCE being predefined.
1024         (CPPUNDEFS): New substituted variable; add -U_FORTIFY_SOURCE if needed.
1025         * configure: Regenerated.
1026         * config.make.in (CPPUNDEFS): New substituted variable.
1027         * Makeconfig (CPPFLAGS): Put $(CPPUNDEFS) at the beginning.
1028         * Makerules ($(stdio_lim:h=st)): Use $(CPPUNDEFS).
1029         * time/ctime.c: Don't #undef __OPTIMIZE__ and ctime.
1030
1031 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1032
1033         * sysdeps/unix/sysv/linux/bits/mqueue.h: Include <bits/types.h>.
1034         (mq_attr): Use __syscall_slong_t.
1035
1036 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1037
1038         * sysdeps/unix/sysv/linux/x86_64/bits/stat.h (_STAT_VER_SVR4):
1039         Check __x86_64__ instead of __WORDSIZE.
1040         (_STAT_VER_LINUX): Likewise.
1041         (stat): Check __x86_64__ instead of __WORDSIZE.  Use
1042         __syscall_ulong_t and __syscall_slong_t.
1043         (stat64): Likewise.
1044
1045 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1046
1047         * sysdeps/unix/sysv/linux/x86_64/bits/typesizes.h: New file.
1048
1049 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1050
1051         * sysdeps/unix/sysv/linux/x86_64/bits/ipctypes.h: New file.
1052
1053 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1054
1055         * sysdeps/unix/sysv/linux/bits/ipc.h (ipc_perm): Use
1056         __syscall_ulong_t.
1057
1058         * sysdeps/unix/sysv/linux/x86_64/sys/ucontext.h: Don't
1059         include <bits/wordsize.h>.  Check __x86_64__ instead of
1060         __WORDSIZE.
1061         (greg_t): Use "__extension__ long long int" if __x86_64__ is
1062         defined.
1063         (mcontext_t): Replace "unsigned long" with "unsigned long long".
1064
1065         * sysdeps/unix/sysv/linux/x86_64/sys/user.h: Don't
1066         include <bits/wordsize.h>.  Check __x86_64__ instead of
1067         __WORDSIZE.
1068         (user_regs_struct): Use "__extension__ unsigned long long"
1069         instead of "unsigned long" if __x86_64__ is defined.
1070         (user): Likewise.  Pad after pointer field if __ILP32__ is
1071         defined.
1072
1073 2012-05-16  Joseph Myers  <joseph@codesourcery.com>
1074
1075         * configure.in (makeinfo): Require version 4.5 or later.  Allow
1076         versions 5 to 9.
1077         * configure: Regenerated.
1078         * manual/install.texi (texinfo): Increase version requirement to
1079         4.5 or later.
1080         * INSTALL: Regenerated.
1081
1082         * include/stdc-predef.h (__STDC_ISO_10646__): Increase to 201103L.
1083
1084 2012-05-16  H.J. Lu  <hongjiu.lu@intel.com>
1085
1086         * sysdeps/x86_64/x32/gmp-mparam.h: New file.
1087
1088         * sysdeps/x86_64/x32/ffs.c: New file.
1089
1090         * sysdeps/unix/sysv/linux/x86_64/bits/shm.h (shmatt_t): Use
1091         __syscall_ulong_t.
1092         (shmid_ds): Add __unused1 and __unused2 only if __x86_64__ isn't
1093         defined.  Use __syscall_ulong_t.
1094         (shminfo): Use __syscall_ulong_t.
1095         (shm_info): Likewise.
1096
1097         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semid_ds): Use
1098         __syscall_ulong_t.
1099
1100         * sysdeps/unix/sysv/linux/x86_64/bits/msq.h: Don't include
1101         <bits/wordsize.h>.
1102         (msgqnum_t): Use __syscall_ulong_t.
1103         (msglen_t): Likewise.
1104         (msqid_ds): Check __x86_64__ instead of __WORDSIZE.  Use
1105         __syscall_ulong_t.
1106
1107         * sysdeps/unix/sysv/linux/x86_64/bits/a.out.h: Don't include
1108         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
1109
1110         * sysdeps/unix/sysv/linux/x86_64/bits/siginfo.h: New file.
1111
1112         * sysdeps/x86_64/x32/divdi3.c: New dummy file.
1113         * sysdeps/x86_64/x32/symbol-hacks.h: Likewise.
1114
1115         * sysvipc/sys/msg.h (msgbuf): Replace long int with
1116         __syscall_slong_t.
1117
1118         * sysdeps/unix/sysv/linux/x86_64/sys/reg.h: Don't
1119         include <bits/wordsize.h>.  Check __x86_64__ instead of
1120         __WORDSIZE.
1121
1122         * sysdeps/unix/sysv/linux/x86_64/sys/procfs.h (elf_greg_t): Use
1123         "unsigned long long int" if __x86_64__ is defined.
1124         (elf_fpregset_t): Check __x86_64__ instead of __WORDSIZE.
1125
1126         * sysdeps/unix/sysv/linux/x86_64/sys/debugreg.h: Don't include
1127         <bits/wordsize.h>.  Check __x86_64__ instead of __WORDSIZE.
1128         (DR_CONTROL_RESERVED): Use ULL instead of UL suffix.
1129
1130         * sysdeps/unix/sysv/linux/x86_64/sigcontextinfo.h: Include
1131         <stdint.h>.
1132         (GET_PC): Cast to uintptr_t first.
1133         (GET_FRAME): Likewise.
1134         (GET_STACK): Likewise.
1135
1136         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort.c: New file.
1137         * sysdeps/unix/sysv/linux/x86_64/x32/alphasort64.c: Likewise.
1138         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko.c: Likewise.
1139         * sysdeps/unix/sysv/linux/x86_64/x32/fseeko64.c: Likewise.
1140         * sysdeps/unix/sysv/linux/x86_64/x32/ftello.c: Likewise.
1141         * sysdeps/unix/sysv/linux/x86_64/x32/ftello64.c: Likewise.
1142         * sysdeps/unix/sysv/linux/x86_64/x32/ftw.c: Likewise.
1143         * sysdeps/unix/sysv/linux/x86_64/x32/ftw64.c: Likewise.
1144         * sysdeps/unix/sysv/linux/x86_64/x32/glob.c: Likewise.
1145         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos.c: Likewise.
1146         * sysdeps/unix/sysv/linux/x86_64/x32/iofgetpos64.c: Likewise.
1147         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen.c: Likewise.
1148         * sysdeps/unix/sysv/linux/x86_64/x32/iofopen64.c: Likewise.
1149         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos.c: Likewise.
1150         * sysdeps/unix/sysv/linux/x86_64/x32/iofsetpos64.c: Likewise.
1151         * sysdeps/unix/sysv/linux/x86_64/x32/lockf.c: Likewise.
1152         * sysdeps/unix/sysv/linux/x86_64/x32/lockf64.c: Likewise.
1153         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp.c: Likewise.
1154         * sysdeps/unix/sysv/linux/x86_64/x32/mkostemp64.c: Likewise.
1155         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp.c: Likewise.
1156         * sysdeps/unix/sysv/linux/x86_64/x32/mkstemp64.c: Likewise.
1157         * sysdeps/unix/sysv/linux/x86_64/x32/scandir.c: Likewise.
1158         * sysdeps/unix/sysv/linux/x86_64/x32/scandir64.c: Likewise.
1159         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat.c: Likewise.
1160         * sysdeps/unix/sysv/linux/x86_64/x32/scandirat64.c: Likewise.
1161         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile.c: Likewise.
1162         * sysdeps/unix/sysv/linux/x86_64/x32/tmpfile64.c: Likewise.
1163         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort.c: Likewise.
1164         * sysdeps/unix/sysv/linux/x86_64/x32/versionsort64.c: Likewise.
1165
1166 2012-05-16  Andreas Schwab  <schwab@linux-m68k.org>
1167
1168         * Makerules (+depfiles): Also collect depfiles from .oS in
1169         $(extra-objs).
1170         * sysdeps/ieee754/ldbl-opt/Makefile (extra-objs): Add $(addsuffix
1171         .oS, $(libnldbl-routines)).
1172
1173         * Makerules (native-compile-mkdep-flags): Define.
1174         * sunrpc/Makefile (extra-objs): Add $(addprefix
1175         cross-,$(rpcgen-objs)), don't add $(cross-rpcgen-objs).
1176         ($(cross-rpcgen-objs)): Use $(native-compile-mkdep-flags) instead
1177         of $(compile-mkdep-flags).  Depend on $(before-compile) instead of
1178         calling $(make-target-directory).
1179
1180 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1181
1182         * bits/types.h (__snseconds_t): Removed.
1183         * time/time.h (struct timespec): Replace __snseconds_t with
1184         __syscall_slong_t.
1185         * bits/typesizes.h (__SNSECONDS_T_TYPE): Removed.
1186         * sysdeps/mach/hurd/bits/typesizes.h (__SNSECONDS_T_TYPE):
1187         Likewise.
1188         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1189         (__SNSECONDS_T_TYPE): Likewise.
1190         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1191         (__SNSECONDS_T_TYPE): Likewise.
1192         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1193         (__SNSECONDS_T_TYPE): Likewise.
1194
1195 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1196
1197         * sysdeps/mach/hurd/bits/typesizes.h
1198         (__SYSCALL_SLONG_TYPE): New macro.
1199         (__SYSCALL_ULONG_TYPE): Likewise.
1200
1201 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1202
1203         * bits/types.h (__syscall_slong_t): New type.
1204         (__syscall_ulong_t): Likewise.
1205
1206         * bits/typesizes.h (__SYSCALL_SLONG_TYPE): New macro.
1207         (__SYSCALL_ULONG_TYPE): Likewise.
1208         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
1209         (__SYSCALL_SLONG_TYPE): Likewise.
1210         (__SYSCALL_ULONG_TYPE): Likewise.
1211         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
1212         (__SYSCALL_SLONG_TYPE): Likewise.
1213         (__SYSCALL_ULONG_TYPE): Likewise.
1214         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
1215         (__SYSCALL_SLONG_TYPE): Likewise.
1216         (__SYSCALL_ULONG_TYPE): Likewise.
1217
1218 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1219
1220         * sysdeps/unix/sysv/linux/x86_64/Makefile (gen-as-const-headers):
1221         Add sigaltstack-offsets.sym.
1222         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S: Include
1223         <sigaltstack-offsets.h>.
1224         (CALL_FAIL): Use RSP_LP to operate on stack.  Use RDI_LP on
1225         longjmp_msg pointer.
1226         (____longjmp_chk): Use R8_LP and RDX_LP on SP and PC.  Use
1227         R*_LP, sizeSS, oSS_FLAGS, oSS_SP and oSS_SIZE for alternate
1228         signal stack.
1229         * sysdeps/unix/sysv/linux/x86_64/sigaltstack-offsets.sym: New.
1230
1231 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
1232
1233         * elf/stackguard-macros.h: Remove file.
1234         * sysdeps/generic/stackguard-macros.h: New file.
1235         * sysdeps/i386/stackguard-macros.h: Likewise.
1236         * sysdeps/powerpc/powerpc32/stackguard-macros.h: Likewise.
1237         * sysdeps/powerpc/powerpc64/stackguard-macros.h: Likewise.
1238         * sysdeps/s390/s390-32/stackguard-macros.h: Likewise.
1239         * sysdeps/s390/s390-64/stackguard-macros.h: Likewise.
1240         * sysdeps/sparc/sparc32/stackguard-macros.h: Likewise.
1241         * sysdeps/sparc/sparc64/stackguard-macros.h: Likewise.
1242         * sysdeps/x86_64/stackguard-macros.h: Likewise.
1243         * nptl/tst-stackguard1.c: Include <stackguard-macros.h> not
1244         <elf/stackguard-macros.h>.
1245
1246         [BZ #14109]
1247         * sysdeps/unix/sysv/linux/powerpc/sys/procfs.h (elf_vrreg_t): Use
1248         __aligned__ in attribute.
1249         * sysdeps/unix/sysv/linux/s390/sys/ucontext.h (__psw_t): Likewise.
1250         (gregset_t): Likewise.
1251
1252 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1253
1254         * sysdeps/x86_64/Implies (wordsize-64): Moved to ....
1255         * sysdeps/x86_64/64/Implies-after: Here.  New file.
1256         * sysdeps/x86_64/x32/Implies-after: New file.
1257
1258 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1259
1260         * sysdeps/x86_64/dl-trampoline.h: Use R*_LP to pass arguments
1261         and access return value for _dl_profile_fixup.  Use R10_LP to
1262         load frame size.
1263
1264 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1265
1266         * sysdeps/unix/sysv/linux/x86_64/x32/init-first.c: New.
1267
1268 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1269
1270         * sysdeps/x86_64/sysdep.h: Allowed to be include more than once.
1271         * sysdeps/x86_64/x32/sysdep.h: New file.
1272
1273 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1274
1275         * sysdeps/x86_64/__longjmp.S: Use R*_LP on SP and PC.
1276         * sysdeps/x86_64/setjmp.S: Likewise.
1277
1278 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1279
1280         * sysdeps/ieee754/dbl-64/wordsize-64/e_log10.c: New file.
1281         * sysdeps/ieee754/dbl-64/wordsize-64/e_log2.c: New file.
1282         * sysdeps/ieee754/dbl-64/e_log2.c: Fixing indents.
1283         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise and also
1284         remove unused global constant.
1285
1286 2012-05-15  Chris Metcalf  <cmetcalf@tilera.com>
1287
1288         * sysdeps/unix/sysv/linux/getsysstats.c: Remove duplicate
1289         include of <not-cancel.h>.
1290
1291 2012-05-15  Roland McGrath  <roland@hack.frob.com>
1292
1293         * nscd/nscd-client.h (__nscd_acquire_maplock): Fix formatting.
1294
1295 2012-05-15  Jeff Law  <law@redhat.com>
1296             Andreas Jaeger  <aj@suse.de>
1297
1298         [BZ #13594]
1299         * nscd/nscd-client.h (__nscd_acquire_maplock): New function, split
1300         out from...
1301         * nscd/nscd_helper.c (__nscd_get_map_ref): ... here.
1302         * nscd/nscd-client.h: Add __nscd_acquire_maplock.
1303         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): Add locking to
1304         code changing __hst_map_handle.map.
1305
1306 2012-05-15  Roland McGrath  <roland@hack.frob.com>
1307
1308         * configure.in (sysnames): Look for Implies-before and Implies-after
1309         files.
1310         * configure: Regenerated.
1311
1312 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1313
1314         * sysdeps/unix/sysv/linux/x86_64/sigaction.c (RESTORE2): Replace
1315         8-byte data alignment with LP_SIZE alignment.
1316
1317 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1318
1319         * sysdeps/unix/sysv/linux/x86_64/clone.S: Load pointer to TID
1320         into R10_LP.
1321
1322 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1323
1324         * sysdeps/unix/sysv/linux/x86_64/x32/dl-cache.h: New.
1325
1326 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1327
1328         * sysdeps/unix/sysv/linux/x86_64/x32/Makefile: New file.
1329         * sysdeps/unix/sysv/linux/x86_64/x32/getcpu.c: Likewise.
1330         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu-static.c:
1331         Likewise.
1332         * sysdeps/unix/sysv/linux/x86_64/x32/sched_getcpu.S: Likewise.
1333
1334 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1335
1336         * sysdeps/x86_64/stackinfo.h (stackinfo_get_sp): Use RSP_LP.
1337         (stackinfo_sub_sp): Likewise.
1338
1339 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1340
1341         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Load pointers into
1342         RAX_LP.
1343
1344 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1345
1346         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Load cache sizes
1347         into R*_LP.
1348
1349 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1350
1351         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Load cache
1352         sizes into R*_LP.
1353
1354 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1355
1356         * sysdeps/x86_64/strcmp.S: Load pointers into R*_LP.
1357
1358 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1359
1360         * sysdeps/x86_64/memcpy.S: Load __x86_64_data_cache_size_half
1361         into R11_LP and load __x86_64_shared_cache_size_half into
1362         R8_LP.
1363
1364 2012-05-15  H.J. Lu  <hongjiu.lu@intel.com>
1365
1366         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Load cache size into
1367         R8_LP.
1368
1369 2012-05-15  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
1370
1371         * sysdeps/powerpc/powerpc32/power7/fpu/s_logb.c: New file. Optimized
1372         logb for POWER7.
1373         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbf.c: New file. Optimized
1374         logbf for POWER7.
1375         * sysdeps/powerpc/powerpc32/power7/fpu/s_logbl.c: New file. Optimized
1376         logbl for POWER7.
1377         * sysdeps/powerpc/powerpc64/power7/fpu/s_logb.c: New file. Use
1378         powerpc32/power7/fpu/s_logb.c via #include.
1379         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbf.c: New file. Use
1380         powerpc32/power7/fpu/s_logbf.c via #include.
1381         * sysdeps/powerpc/powerpc64/power7/fpu/s_logbl.c: New file. Use
1382         powerpc32/power7/fpu/s_logbl.c via #include.
1383
1384 2012-05-15  Joseph Myers  <joseph@codesourcery.com>
1385
1386         * README.libm: Remove file.
1387
1388 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1389
1390         * sysdeps/x86_64/start.S: Simulate popping 4-byte argument
1391         count for x32.  Use R*_LP and omit operand-size suffix.
1392
1393 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1394
1395         * shlib-versions: Move x86_64-.*-linux.* entries to ...
1396         * sysdeps/x86_64/64/shlib-versions: Here.  New file.
1397         * sysdeps/x86_64/x32/shlib-versions: New file.
1398
1399 2012-05-14  Roland McGrath  <roland@hack.frob.com>
1400
1401         * sysdeps/unix/sysv/linux/dl-osinfo.h (dl_fatal): Function removed.
1402         * elf/rtld.c (dl_main) [DL_SYSDEP_OSCHECK]:
1403         Use _dl_fatal_printf instead.
1404
1405 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
1406
1407         * sysdeps/unix/sysv/linux/configure.in (minimum_kernel): Always
1408         set if not set by the user.  Do not allow for being unset.
1409         * sysdeps/unix/sysv/linux/configure: Regenerated.
1410
1411 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1412
1413         * sysdeps/x86_64/dl-machine.h (elf_machine_load_address): Remove
1414         the `q' suffix from lea and replace .quad with ASM_ADDR.
1415
1416 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1417
1418         * sysdeps/unix/sysv/linux/x86_64/sysdep.h (PTR_MANGLE): Remove
1419         the `q' suffix from xor/rol instructions.  Use $2*LP_SIZE+1
1420         instead of $17.
1421         (PTR_DEMANGLE): Likewise.
1422
1423 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1424
1425         * sysdeps/x86_64/sysdep.h (LP_SIZE): New macro.
1426         (LP_OP): Likewise.
1427         (ASM_ADDR): Likewise.
1428         (RAX_LP): Likewise.
1429         (RBP_LP): Likewise.
1430         (RBX_LP): Likewise.
1431         (RCX_LP): Likewise.
1432         (RDI_LP): Likewise.
1433         (RSI_LP): Likewise.
1434         (RSP_LP): Likewise.
1435         (R8_LP): Likewise.
1436         (R9_LP): Likewise.
1437         (R10_LP): Likewise.
1438         (R10_LP): Likewise.
1439         (R11_LP): Likewise.
1440         (R12_LP): Likewise.
1441         (R13_LP): Likewise.
1442         (R14_LP): Likewise.
1443         (R15_LP): Likewise.
1444
1445 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1446
1447         * sysdeps/x86_64/x32/dl-machine.h: New file.
1448
1449 2012-05-14  Andreas Jaeger  <aj@suse.de>
1450
1451         * manual/Makefile (subdir): Remove export of subdir.
1452         (all): Remove target.
1453         (.PHONY): Remove all from list.
1454         (mkinstalldirs): Remove.
1455         (.PHONY): Remove installdirs from list.
1456         ($(inst_infodir)/libc.info): Use make-target-directory.
1457         (installdirs): Remove.
1458         (subdir_%): Remove.
1459         (glibc-targets): Remove.
1460         (lib): Remove.
1461         (stubs): Remove.
1462         ($(objpfx)stubs ../po/manual.pot): Remove.
1463         ($(objpfx)stamp%): Remove.
1464         (make-target-directory): Remove.
1465         (subdir_install): Remove.
1466         (routines): Remove.
1467         (aux): Remove.
1468         (sources): Remove.
1469         (objects): Remove.
1470         (headers): Remove.
1471
1472         [BZ #13750]
1473         * manual/.gitignore: Remove, it's not needed anymore.
1474         * manual/libc-texinfo.sh: Pass OUTDIR as extra argument, create
1475         all files in it.
1476         * manual/Makefile (dvi, pdf, info, html): Depend on files in build
1477         directory.
1478         (texis): Renamed to $(objpfx)texis.
1479         (texis-path): New, contains path to generated files.
1480         (chapters.%): Use texis-path for complete path, add extra argument
1481         libc-texinfo.sh.
1482         (libc.dvi, libc.pdf, libc.info, libc.pdf): Add $(objfpx) as prefix.
1483         (libc/index.html, summary.texi): Add $(objpfx) as prefix.
1484         (summary,texi, stamp-summary): Use complete path of
1485         files. Generate files in build dir.
1486         (dir-add.texi): Build in build dir.
1487         (libm-err.texi,stamp-libm-err): Likewise.
1488         (version.texi, stamp-version): Likewise.
1489         (.%c.texi): Likewise.
1490         (%.info,%.dvi,%.pdf): Add $(objpfx) as prefix, build in build dir.
1491         (mostlyclean): Remove target.
1492         (realclean): Remove target.
1493         (generated): Add new variable with contents from mostlyclean and
1494         realclean, remove entries duplicated in common-mostlyclean, add
1495         stamp-libm-err and stamp-version.
1496         (generated-dirs): Add libc directory.
1497         ($(inst_infodir)/libc.info): Install files from build dir.
1498
1499         * manual/install.texi (Configuring and compiling): Adjust since
1500         the info files are not part of the tar ball anymore.
1501
1502 2012-05-14  Andreas Jaeger  <aj@suse.de>
1503
1504         * sysdeps/unix/sysv/linux/getcwd.c (__getcwd): Remove unused
1505         variable.
1506
1507 2012-05-14  Joseph Myers  <joseph@codesourcery.com>
1508
1509         [BZ #13717]
1510         * sysdeps/unix/sysv/linux/configure.in (arch_minimum_kernel): Set
1511         to 2.2.0 where earlier.
1512         * sysdeps/unix/sysv/linux/configure: Regenerated.
1513         * sysdeps/unix/sysv/linux/getcwd.c [!__ASSUME_GETCWD_SYSCALL]:
1514         Remove conditional code.
1515         [__ASSUME_GETCWD_SYSCALL]: Make code unconditional.
1516         * sysdeps/unix/sysv/linux/i386/chown.c [!__ASSUME_LCHOWN_SYSCALL]:
1517         Remove conditional code.
1518         [!__NR_lchown]: Likewise.
1519         [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
1520         [__NR_lchown]: Likewise.
1521         * sysdeps/unix/sysv/linux/i386/fchownat.c (fchownat): Remove
1522         comment referencing __ASSUME_LCHOWN_SYSCALL.
1523         * sysdeps/unix/sysv/linux/i386/sigaction.c
1524         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1525         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1526         * sysdeps/unix/sysv/linux/if_index.c [!__ASSUME_SIOCGIFNAME]:
1527         Remove conditional code.
1528         [__ASSUME_SIOCGIFNAME ]: Make code unconditional.
1529         (__protocol_available): Remove #if 0 code.
1530         * sysdeps/unix/sysv/linux/ifreq.c [!__ASSUME_SIOCGIFNAME]: Remove
1531         conditional code.
1532         [__ASSUME_SIOCGIFNAME]: Make code unconditional.
1533         * sysdeps/unix/sysv/linux/kernel-features.h
1534         (__ASSUME_GETCWD_SYSCALL): Don't define.
1535         (__ASSUME_REALTIME_SIGNALS): Likewise.
1536         (__ASSUME_PREAD_SYSCALL): Likewise.
1537         (__ASSUME_PWRITE_SYSCALL): Likewise.
1538         (__ASSUME_POLL_SYSCALL): Likewise.
1539         (__ASSUME_LCHOWN_SYSCALL): Likewise.
1540         (__ASSUME_SETRESUID_SYSCALL): Define for all kernel versions for
1541         non-SPARC.
1542         (__ASSUME_SIOCGIFNAME): Don't define.
1543         (__ASSUME_MSG_NOSIGNAL): Likewise.
1544         (__ASSUME_SENDFILE): Define unconditionally.
1545         (__ASSUME_PROC_SELF_FD_SYMLINK): Don't define.
1546         * sysdeps/unix/sysv/linux/poll.c [!__ASSUME_POLL_SYSCALL]: Remove
1547         conditional code.
1548         [__ASSUME_POLL_SYSCALL]: Make code unconditional.
1549         * sysdeps/unix/sysv/linux/powerpc/chown.c (__chown)
1550         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
1551         (__chown) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
1552         * sysdeps/unix/sysv/linux/powerpc/fchownat.c (fchownat)
1553         [!__ASSUME_LCHOWN_SYSCALL]: Remove conditional code.
1554         (fchownat) [__ASSUME_LCHOWN_SYSCALL]: Make code unconditional.
1555         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread.c
1556         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1557         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1558         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pread64.c
1559         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1560         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1561         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite.c
1562         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1563         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1564         * sysdeps/unix/sysv/linux/powerpc/powerpc32/pwrite64.c
1565         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1566         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1567         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread.c
1568         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1569         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1570         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pread64.c
1571         [!__ASSUME_PREAD_SYSCALL]: Remove conditional code.
1572         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite.c
1574         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1575         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1576         * sysdeps/unix/sysv/linux/powerpc/powerpc64/pwrite64.c
1577         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1578         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1579         * sysdeps/unix/sysv/linux/pread.c [!__ASSUME_PREAD_SYSCALL]:
1580         Remove conditional code.
1581         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1582         * sysdeps/unix/sysv/linux/pread64.c [!__ASSUME_PREAD_SYSCALL]:
1583         Remove conditional code.
1584         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1585         * sysdeps/unix/sysv/linux/ptsname.c (__ptsname_internal)
1586         [__LINUX_KERNEL_VERSION < 131443]: Remove conditional code.
1587         * sysdeps/unix/sysv/linux/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
1588         Remove conditional code.
1589         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1590         * sysdeps/unix/sysv/linux/pwrite64.c [!__ASSUME_PWRITE_SYSCALL]:
1591         Remove conditional code.
1592         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1593         * sysdeps/unix/sysv/linux/sh/pread.c [!__ASSUME_PREAD_SYSCALL]:
1594         Remove conditional code.
1595         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1596         * sysdeps/unix/sysv/linux/sh/pread64.c [!__ASSUME_PREAD_SYSCALL]:
1597         Remove conditional code.
1598         [__ASSUME_PREAD_SYSCALL]: Make code unconditional.
1599         * sysdeps/unix/sysv/linux/sh/pwrite.c [!__ASSUME_PWRITE_SYSCALL]:
1600         Remove conditional code.
1601         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1602         * sysdeps/unix/sysv/linux/sh/pwrite64.c
1603         [!__ASSUME_PWRITE_SYSCALL]: Remove conditional code.
1604         [__ASSUME_PWRITE_SYSCALL]: Make code unconditional.
1605         * sysdeps/unix/sysv/linux/sigaction.c
1606         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1607         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1608         * sysdeps/unix/sysv/linux/sigpending.c
1609         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1610         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1611         * sysdeps/unix/sysv/linux/sigprocmask.c
1612         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1613         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1614         * sysdeps/unix/sysv/linux/sigsuspend.c
1615         [!__ASSUME_REALTIME_SIGNALS]: Remove conditional code.
1616         [__ASSUME_REALTIME_SIGNALS]: Make code unconditional.
1617         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c
1618         (__libc_missing_rt_sigs): Remove.
1619         (__libc_sigaction) [__NR_rt_sigaction]: Make code unconditional.
1620         (__libc_sigaction): Do not handle ENOSYS from rt_sigaction.
1621         * sysdeps/unix/sysv/linux/syslog.c [!__ASSUME_MSG_NOSIGNAL]:
1622         Remove conditional code.
1623         [__ASSUME_MSG_NOSIGNAL]: Make code unconditional.
1624         * sysdeps/unix/sysv/linux/testrtsig.h (kernel_has_rtsig): Always
1625         return 1.
1626         * sysdeps/unix/sysv/linux/ttyname.c (ttyname)
1627         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Remove conditional code.
1628         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r)
1629         [!__ASSUME_PROC_SELF_FD_SYMLINK]: Likewise.
1630
1631 2012-05-14  Andreas Jaeger  <aj@suse.de>
1632
1633         * sysdeps/i386/fpu/bits/mathinline.h (__pow2): Remove,
1634         it's not used in glibc.
1635         (__coshm1): Likewise.
1636         (__acosh1p): Likewise.
1637         (__sgn): Likewise.
1638
1639         * manual/string.texi (Copying and Concatenation): Add missing
1640         variable in concat example.
1641         Reported by David C. Rankin <drankinatty@suddenlinkmail.com>.
1642
1643 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1644
1645         [BZ #14103]
1646         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Replace
1647         __builtin_clzl with __builtin_clzll.
1648
1649 2012-05-14  H.J. Lu  <hongjiu.lu@intel.com>
1650
1651         [BZ #14104]
1652         * sysdeps/unix/sysv/linux/check_pf.c (cache): Use
1653         libc_freeres_ptr.
1654
1655 2012-05-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
1656
1657         * sysdeps/i386/i686/fpu/multiarch/Makefile: New file.
1658         * sysdeps/i386/i686fpu/multiarch/e_expf.c: New file.
1659         * sysdeps/i386/i686fpu/multiarch/e_expf-ia32.S: New file.
1660         * sysdeps/i386/i686/fpu/multiarch/e_expf-sse2.S: New file.
1661
1662 2012-05-14  Mike Frysinger  <vapier@gentoo.org>
1663
1664         * NEWS: Update ia64 info.
1665
1666 2012-05-12  Andreas Schwab  <schwab@linux-m68k.org>
1667
1668         * sysdeps/powerpc/memmove.c (MEMMOVE): Don't return a value if
1669         used as bcopy.
1670
1671 2012-05-12  Thomas Schwinge  <thomas@codesourcery.com>
1672
1673         * io/dup3.c (dup3): Rename to __dup3, add weak alias for dup3.
1674         * sysdeps/unix/syscalls.list (dup3): Likewise.
1675         * libio/freopen.c (freopen): Invoke __dup3 instead of dup3.
1676         * libio/freopen64.c (freopen64): Invoke __dup3 instead of dup3.
1677
1678 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1679
1680         * elf/stackguard-macros.h (STACK_CHK_GUARD) [__x86_64__]: Use
1681         "%c1" with "i" (offsetof (tcbhead_t, stack_guard)).
1682
1683 2012-05-11  H.J. Lu  <hongjiu.lu@intel.com>
1684
1685         * elf/tls-macros.h (TLS_LE): Use mov instead of movq to load
1686         thread pointer.
1687         (TLS_IE): Use mov/add instead of movq/addq to load thread
1688         pointer.
1689         (TLS_GD_PREFIX): New.
1690         (TLS_GD): Use it.
1691
1692 2012-05-11  David S. Miller  <davem@davemloft.net>
1693
1694         * sysdeps/sparc/fpu/bits/fenv.h (__fenv_stfsr): Add __volatile__.
1695         * sysdeps/sparc/fpu/fpu_control.h (_FPU_GETCW): Likewise.
1696         (_FPU_SETCW): Likewise.
1697
1698 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1699
1700         * sysdeps/x86_64/dl-trampoline.S: Check if RTLD_SAVESPACE_SSE
1701         is 32-byte aligned.
1702
1703 2012-05-11  Andreas Schwab  <schwab@linux-m68k.org>
1704
1705         [BZ #11837]
1706         * iconvdata/gb18030.c: Update tables.
1707         (BODY for FROM_LOOP): Update.  Handle two-byte encoded non-BMP
1708         characters specially.
1709         (BODY for TO_LOOP): Add encoding of missing ranges.
1710
1711 2012-05-11  Thomas Schwinge  <thomas@codesourcery.com>
1712
1713         [BZ #13673]
1714         * sysdeps/mach/hurd/accept4.c: Replace FSF snail mail address with URL.
1715         * sysdeps/mach/hurd/dup3.c: Likewise.
1716         * sysdeps/mach/hurd/readlinkat.c: Likewise.
1717         * sysdeps/powerpc/memmove.c:: Likewise.
1718
1719 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1720
1721         * sysdeps/x86_64/dl-machine.h (elf_machine_rela_relative): Handle
1722         R_X86_64_RELATIVE64 only if RTLD_BOOTSTRAP isn't defined.
1723
1724 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
1725
1726         * elf/elf.h (R_X86_64_RELATIVE64): New.
1727         (R_X86_64_NUM): Updated.
1728         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Handle
1729         R_X86_64_RELATIVE64.  Always use Elf64_Addr with R_X86_64_64.
1730         (elf_machine_rela_relative): Handle R_X86_64_RELATIVE64.
1731         * sysdeps/x86_64/Makefile (tests): Add tst-quad1 tst-quad2
1732         tst-quad1pie tst-quad2pie
1733         (modules-names): Add tst-quadmod1 tst-quadmod2.
1734         ($(objpfx)tst-quad1): New dependency.
1735         ($(objpfx)tst-quad2): Likewise.
1736         ($(objpfx)tst-quad1pie): Likewise.
1737         ($(objpfx)tst-quad2pie): Likewise.
1738         * sysdeps/x86_64/tst-quad1.c: New file.
1739         * sysdeps/x86_64/tst-quad1pie.c: New file.
1740         * sysdeps/x86_64/tst-quad2.c: Likewise.
1741         * sysdeps/x86_64/tst-quad2pie.c: Likewise.
1742         * sysdeps/x86_64/tst-quadmod1.S: Likewise.
1743         * sysdeps/x86_64/tst-quadmod1pie.S: Likewise.
1744         * sysdeps/x86_64/tst-quadmod2.S: Likewise.
1745         * sysdeps/x86_64/tst-quadmod2pie.S: Likewise.
1746
1747 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1748
1749         * io/fcntl.h (mode_t, off_t, pid_t): Define types.
1750         (__mode_t_defined, __off_t_defined, __pid_t_defined): Define macros.
1751         * streams/stropts.h (t_scalar_t): Define type.
1752
1753         * sysdeps/generic/paths.h (_PATH_MAN): Set to "/usr/share/man"
1754         (_PATH_PRESERVE): Set to "/var/lib".
1755         (_PATH_RWHODIR): Set to "/var/spool/rwho".
1756
1757         * sysdeps/mach/hurd/openat.c (__openat): Set type of MODE to mode_t
1758         instead of int.
1759
1760         * sysdeps/mach/hurd/xmknodat.c (__xmknodat): Deallocate NODE port only
1761         if __dir_mkfile succeeded.
1762
1763         * sysdeps/mach/hurd/dup3.c: Lock _hurd_dtable_lock before
1764         checking for _hurd_dtablesize.  Unlock it right after having
1765         finished _hurd_dtable allocation.
1766
1767 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1768
1769         * sysdeps/mach/hurd/configure.in: Remove warning for --prefix=[...].
1770         * sysdeps/mach/hurd/configure: Regenerated.
1771         * sysdeps/unix/sysv/linux/configure.in: Move --prefix=/usr
1772         special-casing to...
1773         * sysdeps/gnu/configure.in: ... this new file.
1774         * sysdeps/unix/sysv/linux/configure: Regenerated.
1775         * sysdeps/gnu/configure: New generated file.
1776
1777         * sysdeps/mach/hurd/bits/stat.h (struct stat): Align to what is done
1778         for Linux: use nsec instead of usec, as well as:
1779         [__USE_MISC || __USE_XOPEN2K8] (st_atim, st_mtim, st_ctim): New
1780         members of type struct timespec.
1781         [__USE_MISC || __USE_XOPEN2K8] (st_atime, st_mtime, st_ctime):
1782         New macros.
1783         (struct stat64): Likewise.
1784         (_STATBUF_ST_NSEC): New macro.
1785         * sysdeps/mach/hurd/xstatconv.c (xstat64_conv): Adapt to that.
1786
1787         * hurd/lookup-retry.c (__hurd_file_name_lookup_retry): Use
1788         __strtoul_internal rather than strtoul.
1789
1790 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1791
1792         * hurd/hurdsock.c (_hurd_socket_server): Check for negative domains,
1793         and reject them.
1794
1795 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1796
1797         * sysdeps/mach/hurd/setresgid.c (__setresgid): Handle the -1 case,
1798         which preserves existing values.
1799         * sysdeps/mach/hurd/setresuid.c (__setresuid): Likewise.
1800
1801 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1802
1803         * hurd/hurdselect.c (_hurd_select): Return EINVAL for negative
1804         TIMEOUT values.  Return EINVAL for NFDS values either negative or
1805         greater than FD_SETSIZE.
1806
1807 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1808
1809         * sysdeps/mach/hurd/brk.c (_hurd_set_brk): When more space needs to be
1810         allocated, call __vm_protect to finish enabling the existing space, and
1811         pass a copy of _hurd_data_end instead of PAGEBRK to __vm_allocate to
1812         allocate the remainder.
1813
1814 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1815
1816         * sysdeps/mach/hurd/recvfrom.c (__recvfrom): Check also for a null
1817         address port.  Set ADDR_LEN to 0 when not filling ADDRARG.
1818
1819 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1820
1821         * sysdeps/mach/hurd/readlinkat.c: New file, heavily derived from
1822         sysdeps/mach/hurd/readlink.c.
1823
1824         * posix/tst-sysconf.c (posix_options): Only use
1825         _POSIX_PRIORITIZED_IO, _POSIX_PRIORITY_SCHEDULING, and
1826         _POSIX_SYNCHRONIZED_IO when they are defined
1827         * sysdeps/mach/hurd/bits/posix_opt.h:
1828         (_POSIX_PRIORITY_SCHEDULING): Undefine macro.
1829         (_XOPEN_REALTIME): Undefine macro.
1830         (_XOPEN_REALTIME_THREADS): Undefine macro.
1831         (_XOPEN_SHM): Undefine macro.
1832         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_INHERIT): Define
1833         macro to -1.
1834         [__USE_XOPEN2K8] (_POSIX_THREAD_ROBUST_PRIO_PROTECT): Define
1835         macro to -1.
1836         (_POSIX_ASYNC_IO): Undefine macro.
1837         (_POSIX_PRIORITIZED_IO): Undefine macro.
1838         (_POSIX_SPIN_LOCKS): Define macro to -1.
1839
1840         * bits/sigaction.h [__USE_XOPEN2K8]: Define SA_RESTART,
1841         SA_NODEFER, SA_RESETHAND.
1842         * sysdeps/mach/hurd/bits/fcntl.h [__USE_XOPEN2K8]: Define
1843         O_NOFOLLOW, O_DIRECTORY, O_CLOEXEC, F_GETOWN, F_SETOWN,
1844         F_DUPFD_CLOEXEC.
1845
1846 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1847
1848         * elf/Makefile (pldd-modules): Define unconditionally.
1849
1850 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1851
1852         * sysdeps/mach/hurd/opendir.c (__opendirat): New function.
1853
1854 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1855
1856         * hurd/hurdchdir.c (_hurd_change_directory_port_from_name):
1857         Return ENOENT when name is empty.
1858         * sysdeps/mach/hurd/chroot.c (chroot): Likewise.
1859
1860 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1861
1862         * include/libc-symbols.h [NO_HIDDEN] (hidden_nolink): New macro.
1863
1864         * nss/makedb.c (MAP_POPULATE): If not defined, define to zero.
1865
1866 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1867
1868         Fix mlock in all cases except non-readable pages.
1869         * sysdeps/mach/hurd/mlock.c (mlock): Give VM_PROT_READ
1870         instead of VM_PROT_ALL as parameter to __vm_wire function.
1871
1872         * sysdeps/mach/hurd/mkdir.c: Include <string.h>.
1873         (__mkdir): When path is `/', just fail with EEXIST.
1874         * sysdeps/mach/hurd/mkdirat.c: Likewise.
1875
1876 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1877
1878         * nss/makedb.c: Include <sys/param.h> (for MAX and roundup), and
1879         <sys/uio.h> (for writev).
1880         * nss/nss_db/db-initgroups.c: Include <limits.h> (for ULONG_MAX),
1881         and <sys/param.h> (for MIN).
1882
1883 2012-05-10  Pino Toscano  <toscano.pino@tiscali.it>
1884
1885         * sysdeps/mach/nanosleep.c: Return EINVAL for invalid values of
1886         REQUESTED_TIME.  Properly set the remaining time and return EINTR
1887         if interrupted.
1888
1889 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1890
1891         * sysdeps/mach/hurd/Makefile ($(common-objpfx)linkobj/libc.so):
1892         Depend on against $(link-rpcuserlibs).
1893
1894 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1895
1896         * sysdeps/generic/ldsodefs.h [LIBC_STACK_END_NOT_RELRO]
1897         (__libc_stack_end): Do not use attribute_relro.
1898         * sysdeps/mach/hurd/dl-sysdep.h (LIBC_STACK_END_NOT_RELRO): Define.
1899         * sysdeps/mach/hurd/i386/init-first.c (init): Update __libc_stack_end
1900         to libthread-provided value.
1901         * sysdeps/mach/hurd/dl-sysdep.c (__libc_stack_end): Do not use
1902         attribute_relro.
1903
1904 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1905
1906         [BZ #3748]
1907         * bits/libc-lock.h (__libc_once_get): New macro.
1908         * sysdeps/mach/bits/libc-lock.h: Likewise.
1909         * sysdeps/mach/hurd/bits/libc-lock.h: Likewise.
1910         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Use __libc_once_get
1911         instead of using implementation details.
1912
1913         * libio/fileops.c: Unconditionally include <kernel-features.h>.
1914         * libio/freopen.c: Likewise.
1915         * libio/freopen64.c: Likewise.
1916         * misc/syslog.c: Likewise.
1917         * nscd/connections.c: Likewise.
1918         * nscd/netgroupcache.c: Likewise.
1919         * sysdeps/posix/getcwd.c: Likewise.
1920
1921 2012-05-10  Roland McGrath  <roland@hack.frob.com>
1922
1923         * math/w_ilogbf.c: Add #include <limits.h>.
1924
1925 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1926
1927         * sysdeps/mach/hurd/setitimer.c (setitimer_locked): Use common exit
1928         path instead of returning without unlocking.
1929
1930         * sysdeps/mach/hurd/bits/ioctls.h (_IOIW): New macro for
1931         immediate-write ioctls.
1932         * sysdeps/mach/hurd/ioctl.c: Handle cases with no arguments.
1933
1934 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1935
1936         * sysdeps/mach/hurd/i386/init-first.c (init): Use
1937         __builtin_frame_address instead of making assumptions about the
1938         location of the return address relative to DATA.  Force early load of
1939         the return address.
1940         (_dl_init_first, doinit1 in doinit in _hurd_stack_setup): Don't use
1941         __builtin_frame_address.
1942
1943         dup3 for GNU Hurd.
1944         * include/unistd.h: Declare __dup3 and use libc_hidden_proto on it.
1945         * sysdeps/mach/hurd/dup3.c: New file, copy from dup2.c.  Evolve it to
1946         implement dup3 and do some further code clean-ups.
1947         * sysdeps/mach/hurd/dup2.c (__dup2): Reimplement using __dup3.
1948         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_DUP3): Define.
1949
1950 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1951
1952         * sysdeps/mach/hurd/dl-sysdep.c: Conditionalize contents on [SHARED].
1953
1954         * hurd/hurd/fd.h (_hurd_fd_get): Call HURD_CRITICAL_BEGIN/
1955         HURD_CRITICAL_END around holding _hurd_dtable_lock.
1956         * sysdeps/mach/hurd/dirfd (dirfd): Likewise.
1957         * sysdeps/mach/hurd/opendir.c (_hurd_fd_opendir): Call
1958         HURD_CRITICAL_BEGIN/HURD_CRITICAL_END around holding
1959         d->port.lock.
1960
1961         * hurd/catch-signal.c (hurd_catch_signal): Use sigsetjmp/siglongjmp
1962         instead of setjmp/longjmp to restore the signal mask.  Call sigsetjmp
1963         when handler == SIG_ERR, not when handler != SIG_ERR.
1964
1965 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1966
1967         * sysdeps/mach/hurd/bits/socket.h: New file, copy from the bsd4.4 one.
1968         (SOCK_MAX, SOCK_TYPE_MASK, SOCK_CLOEXEC, SOCK_NONBLOCK): New
1969         definitions.
1970
1971         accept4 for GNU Hurd.
1972         * include/sys/socket.h (__libc_accept4): New prototype.
1973         * sysdeps/mach/hurd/accept4.c: New file, copy from accept.c.  Evolve it
1974         to implement __libc_accept4.
1975         * sysdeps/mach/hurd/accept.c (accept): Reimplement using
1976         __libc_accept4.
1977         * sysdeps/mach/hurd/kernel-features.h (__ASSUME_ACCEPT4): Define.
1978
1979         * sysdeps/mach/hurd/i386/____longjmp_chk.S: New file.
1980         * sysdeps/mach/hurd/i386/signal-defines.sym: New file.
1981         * sysdeps/mach/hurd/i386/Makefile (gen-as-const-headers): Add
1982         signal-defines.sym.
1983
1984 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1985
1986         * bits/in.h (SOL_IP, SOL_IPV6, SOL_ICMPV6): New macros.
1987
1988 2012-05-10  Thomas Schwinge  <thomas@schwinge.name>
1989
1990         * sysdeps/mach/hurd/dl-sysdep.c (open_file): Do not raise
1991         assertion on O_CLOEXEC flag.
1992         * hurd/hurd/fd.h: Update comment to mention O_CLOEXEC.
1993         * hurd/intern-fd.c: Likewise.
1994         * hurd/port2fd.c: Likewise.
1995
1996 2012-05-10  Samuel Thibault  <samuel.thibault@ens-lyon.org>
1997
1998         [BZ #3906]
1999         * bits/in.h (IPV6_PKTINFO): Define new macro.
2000         (IPV6_RXINFO,IPV6_TXINFO,SCM_SRCINFO): Redefine to IPV6_PKTINFO.
2001
2002 2012-05-09  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2003
2004         [BZ #13954]
2005         [BZ #13955]
2006         [BZ #13956]
2007         * sysdeps/ieee754/dbl-64/s_logb.c (__logb): Fix for subnormal number.
2008         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c (__logb): Likewise.
2009         * sysdeps/ieee754/flt-32/s_logbf.c (__logf): Likewise.
2010         * sysdeps/ieee754/ldbl-128/s_logbl.c (__logbl): Likewise.
2011         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c (__logbl): Likewise.
2012         * sysdeps/ieee754/ldbl-96/s_logbl.c (__logbl): Likewise.
2013         * math/libm-test.inc (logb_test) : Additional logb tests.
2014
2015 2012-05-09  Andreas Schwab  <schwab@linux-m68k.org>
2016             Andreas Jaeger  <aj@suse.de>
2017
2018         * configure.in (obsolete-rpc): Add new option --enable-obsolete-rpc.
2019         * configure: Regenerated.
2020         * config.h.in (LINK_OBSOLETE_RPC): New macro.
2021         * config.make.in (link-obsolete-rpc): New substituted variable.
2022         * include/libc-symbols.h (libc_hidden_nolink_sunrpc): Rename from
2023         libc_hidden_nolink and define based on LINK_OBSOLETE_RPC.
2024         * sunrpc/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
2025         (shared-only-routines): Don't set it under [link-obsolete-rpc],
2026         so that libc.a contains the symbols.
2027         * nis/Makefile (headers) [link-obsolete-rpc]: Add rpc headers.
2028         * sunrpc/auth_des.c: Use libc_hidden_nolink_sunrpc.
2029         * sunrpc/auth_none.c: Likewise.
2030         * sunrpc/auth_unix.c: Likewise.
2031         * sunrpc/authdes_prot.c: Likewise.
2032         * sunrpc/authuxprot.c: Likewise.
2033         * sunrpc/clnt_gen.c: Likewise.
2034         * sunrpc/clnt_perr.c: Likewise.
2035         * sunrpc/clnt_raw.c: Likewise.
2036         * sunrpc/clnt_simp.c: Likewise.
2037         * sunrpc/clnt_tcp.c: Likewise.
2038         * sunrpc/clnt_udp.c: Likewise.
2039         * sunrpc/clnt_unix.c: Likewise.
2040         * sunrpc/des_crypt.c: Likewise.
2041         * sunrpc/des_soft.c: Likewise.
2042         * sunrpc/get_myaddr.c: Likewise.
2043         * sunrpc/key_call.c: Likewise.
2044         * sunrpc/key_prot.c: Likewise.
2045         * sunrpc/netname.c: Likewise.
2046         * sunrpc/pm_getmaps.c: Likewise.
2047         * sunrpc/pm_getport.c: Likewise.
2048         * sunrpc/pmap_clnt.c: Likewise.
2049         * sunrpc/pmap_prot.c: Likewise.
2050         * sunrpc/pmap_prot2.c: Likewise.
2051         * sunrpc/pmap_rmt.c: Likewise.
2052         * sunrpc/publickey.c: Likewise.
2053         * sunrpc/rpc_cmsg.c: Likewise.
2054         * sunrpc/rpc_common.c: Likewise.
2055         * sunrpc/rpc_dtable.c: Likewise.
2056         * sunrpc/rpc_prot.c: Likewise.
2057         * sunrpc/rpc_thread.c: Likewise.
2058         * sunrpc/rtime.c: Likewise.
2059         * sunrpc/svc.c: Likewise.
2060         * sunrpc/svc_auth.c: Likewise.
2061         * sunrpc/svc_raw.c: Likewise.
2062         * sunrpc/svc_run.c: Likewise.
2063         * sunrpc/svc_tcp.c: Likewise.
2064         * sunrpc/svc_udp.c: Likewise.
2065         * sunrpc/svc_unix.c: Likewise.
2066         * sunrpc/svcauth_des.c: Likewise.
2067         * sunrpc/xcrypt.c: Likewise.
2068         * sunrpc/xdr.c: Likewise.
2069         * sunrpc/xdr_array.c: Likewise.
2070         * sunrpc/xdr_float.c: Likewise.
2071         * sunrpc/xdr_intXX_t.c: Likewise.
2072         * sunrpc/xdr_mem.c: Likewise.
2073         * sunrpc/xdr_rec.c: Likewise.
2074         * sunrpc/xdr_ref.c: Likewise.
2075         * sunrpc/xdr_sizeof.c: Likewise.
2076         * sunrpc/xdr_stdio.c: Likewise.
2077
2078 2012-05-10  Roland McGrath  <roland@hack.frob.com>
2079
2080         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Fix typo in last
2081         change.  Update copyright years.
2082
2083 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
2084
2085         * include/stdc-predef.h (__STDC_NO_THREADS__): Define.
2086
2087 2012-05-10  Maxim Kuvyrkov  <maxim@codesourcery.com>
2088             Joseph Myers  <joseph@codesourcery.com>
2089             Paul Pluzhnikov  <ppluzhnikov@google.com>
2090
2091         [BZ #14012]
2092         * sunrpc/Makefile [cross-compiling] (headers): Enable additions
2093         requiring rpcgen.
2094         [cross-compiling] (extra-libs): Likewise.
2095         [cross-compiling] (extra-libs-others): Likewise.
2096         [cross-compiling] (librpcsvc-routines): Likewise.
2097         [cross-compiling] (librpcsvc-inhibit-o): Likewise.
2098         [cross-compiling] (omit-deps): Likewise.
2099         (sunrpc-CPPFLAGS): New variable.
2100         (CPPFLAGS): Define using $(sunrpc-CPPFLAGS).
2101         (BUILD_CPPFLAGS): Append $(sunrpc-CPPFLAGS).
2102         (cross-rpcgen-objs): New variable.
2103         (extra-objs): Append $(cross-rpcgen-objs).
2104         ($(cross-rpcgen-objs)): New rule.
2105         ($(objpfx)cross-rpcgen): Likewise.
2106         (rpcgen-cmd): Define to use $(built-program-file).  Expand
2107         comment.
2108         ($(objpfx)rpcsvc/%.stmp): Depend on cross-rpcgen.
2109         ($(objpfx)x%.stmp): Likewise.
2110         * sunrpc/proto.h [IS_IN_build] (_): Define.
2111         [IS_IN_build] (_libc_intl_domainname): Likewise.
2112
2113 2012-05-10  H.J. Lu  <hongjiu.lu@intel.com>
2114
2115         * sysdeps/x86_64/dl-machine.h (elf_machine_rela) [__ILP32__]:
2116         Sign extend relocation result to 64 bits for R_X86_64_DTPOFF64
2117         and R_X86_64_TPOFF64.
2118
2119 2012-05-10  Joseph Myers  <joseph@codesourcery.com>
2120
2121         * sysdeps/unix/sysv/linux/syscalls.list (alarm): Add entry from
2122         sysdeps/unix/sysv/syscalls.list.
2123         (stime): Likewise.
2124         (utime): Likewise.
2125         * sysdeps/unix/sysv/syscalls.list: Remove file.
2126
2127 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
2128
2129         [BZ #3440]
2130         * locale/bits/locale.h (__LC_CTYPE, __LC_NUMERIC, __LC_TIME)
2131         (__LC_COLLATE, __LC_MONETARY, __LC_MESSAGES, __LC_ALL, __LC_PAPER)
2132         (__LC_NAME, __LC_ADDRESS, __LC_TELEPHONE, __LC_MEASUREMENT)
2133         (__LC_IDENTIFICATION): Make these macros useful in #if
2134         expressions, as required by C99.
2135
2136 2012-05-10  Andreas Schwab  <schwab@linux-m68k.org>
2137
2138         * sunrpc/Makefile (extra-objs) [$(build-shared) = yes]: Add
2139         $(addsuffix .os,$(rpc-compat-routines)).  Move include ../Rules
2140         after this.
2141
2142 2012-05-09  H.J. Lu  <hongjiu.lu@intel.com>
2143
2144         * stdlib/longlong.h: Updated from GCC.
2145
2146 2012-05-09  Andreas Jaeger  <aj@suse.de>
2147
2148         * nscd/nscd.c (run_modes): Make named enum, reorder so that
2149         default is first entry.
2150         (run_mode): Set type.
2151         (main): Remove informal message about syslog.
2152         (options): Fix typo.
2153
2154         [BZ #14053]
2155         * sysdeps/x86_64/fpu/bits/mathinline.h (lrintf): Add __volatile
2156         to asm.
2157         (lrint): Likewise.
2158         (llrintf): Likewise.
2159         (llrint): Likewise.
2160         (rint): Likewise.
2161         (rintf): Likewise.
2162         (nearbyint): Likewise.
2163         (nearbyintf): Likewise.
2164
2165 2012-05-09  Andreas Jaeger  <aj@suse.de>
2166             Pedro Alves  <palves@redhat.com>
2167
2168         * nscd/nscd.c (run_mode): Use enum.
2169         (main): Cleanup coding style issue.
2170
2171 2012-05-09  Alexandre Oliva  <aoliva@redhat.com>
2172             Andreas Jaeger  <aj@suse.de>
2173
2174         * nscd/nscd.c (go_background): Replaced with...
2175         (run_mode): ... this.
2176         (RUN_FOREGROUND, RUN_DAEMONIZE, RUN_DEBUG): Add.
2177         (options): Add -F --foreground.
2178         (main): Implement it.
2179         (parse_opt): Parse it.
2180
2181 2012-05-09  Andreas Jaeger  <aj@suse.de>
2182
2183         [BZ #14083]
2184         * string/bits/string2.h (strspn) [__GNUC_PREREQ(3, 2) &&
2185         !_HAVE_STRING_ARCH_strspn]: Cast zero to size_t to avoid
2186         -Wconversion warning.
2187         (strspn) [!__GNUC_PREREQ(3, 2) && !_HAVE_STRING_ARCH_strspn]:
2188         Likewise.
2189
2190 2012-05-09  Joseph Myers  <joseph@codesourcery.com>
2191
2192         * conform/data/locale.h-data (NULL): Use macro-constant.  Require
2193         == 0.
2194         (LC_ALL): Use macro-int-constant.
2195         (LC_COLLATE): Likewise.
2196         (LC_CTYPE): Likewise.
2197         (LC_MESSAGES): Likewise.
2198         (LC_MONETARY): Likewise.
2199         (LC_NUMERIC): Likewise.
2200         (LC_TIME): Likewise.
2201         [ISO || ISO99 || ISO11] (LC_MESSAGES): Do not require.
2202         (LC_*): Change to LC_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
2203         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2204         * conform/data/math.h-data (HUGE_VAL): Use macro-constant.
2205         Specify type.
2206         [C99-based standards] (float_t): Expect type.
2207         [C99-based standards] (double_t): Expect type.
2208         [C99-based standards] (HUGE_VALF): Use macro-constant.  Specify
2209         type.
2210         [C99-based standards] (HUGE_VALL): Likewise.
2211         [C99-based standards] (INFINITY): Likewise.
2212         [C99-based standards] (NAN): Likewise.
2213         [C99-based standards] (FP_INFINITE): Use macro-int-constant.
2214         [C99-based standards] (FP_NAN): Likewise.
2215         [C99-based standards] (FP_NORMAL): Likewise.
2216         [C99-based standards] (FP_SUBNORMAL): Likewise.
2217         [C99-based standards] (FP_ZERO): Likewise.
2218         [C99-based standards] (FP_FAST_FMA): Use
2219         optional-macro-int-constant.  Specify type.  Require == 1.
2220         [C99-based standards] (FP_FAST_FMAF): Likewise.
2221         [C99-based standards] (FP_FAST_FMAL): Likewise.
2222         [C99-based standards] (FP_ILOGB0): Use macro-int-constant.
2223         [C99-based standards] (FP_ILOGBNAN): Likewise.
2224         [C99-based standards] (MATH_ERRNO): Use macro-int-constant.
2225         Specify type.
2226         [C99-based standards] (MATH_ERREXCEPT): Likewise.
2227         [C99-based standards] (math_errhandling): Specify type.
2228         [ISO99 || ISO11] (signgam): Do not allow.
2229         [non-C99-based standards] (copysignf): Do not allow.
2230         [non-C99-based standards] (exp2f): Likewise.
2231         [non-C99-based standards] (log2f): Likewise.
2232         [non-C99-based standards] (modff): Allow.
2233         [non-C99-based standards] (erff): Do not allow.
2234         [non-C99-based standards] (erfcf): Likewise.
2235         [non-C99-based standards] (gammaf): Likewise.
2236         [non-C99-based standards] (hypotf): Likewise.
2237         [non-C99-based standards] (j0f): Likewise.
2238         [non-C99-based standards] (j1f): Likewise.
2239         [non-C99-based standards] (jnf): Likewise.
2240         [non-C99-based standards] (lgammaf): Likewise.
2241         [non-C99-based standards] (tgammaf): Likewise.
2242         [non-C99-based standards] (y0f): Likewise.
2243         [non-C99-based standards] (y1f): Likewise.
2244         [non-C99-based standards] (ynf): Likewise.
2245         [non-C99-based standards] (isnanf): Likewise.
2246         [non-C99-based standards] (acoshf): Likewise.
2247         [non-C99-based standards] (asinhf): Likewise.
2248         [non-C99-based standards] (atanhf): Likewise.
2249         [non-C99-based standards] (cbrtf): Likewise.
2250         [non-C99-based standards] (expm1f): Likewise.
2251         [non-C99-based standards] (ilogbf): Likewise.
2252         [non-C99-based standards] (log1pf): Likewise.
2253         [non-C99-based standards] (logbf): Likewise.
2254         [non-C99-based standards] (nextafterf): Likewise.
2255         [non-C99-based standards] (remainderf): Likewise.
2256         [non-C99-based standards] (rintf): Likewise.
2257         [non-C99-based standards] (scalbf): Likewise.
2258         [non-C99-based standards] (copysignl): Likewise.
2259         [non-C99-based standards] (exp2l): Likewise.
2260         [non-C99-based standards] (log2l): Likewise.
2261         [non-C99-based standards] (modfl): Allow.
2262         [non-C99-based standards] (erfl): Do not allow.
2263         [non-C99-based standards] (erfcl): Likewise.
2264         [non-C99-based standards] (gammal): Likewise.
2265         [non-C99-based standards] (hypotl): Likewise.
2266         [non-C99-based standards] (j0l): Likewise.
2267         [non-C99-based standards] (j1l): Likewise.
2268         [non-C99-based standards] (jnl): Likewise.
2269         [non-C99-based standards] (lgammal): Likewise.
2270         [non-C99-based standards] (tgammal): Likewise.
2271         [non-C99-based standards] (y0l): Likewise.
2272         [non-C99-based standards] (y1l): Likewise.
2273         [non-C99-based standards] (ynl): Likewise.
2274         [non-C99-based standards] (isnanl): Likewise.
2275         [non-C99-based standards] (acoshl): Likewise.
2276         [non-C99-based standards] (asinhl): Likewise.
2277         [non-C99-based standards] (atanhl): Likewise.
2278         [non-C99-based standards] (cbrtl): Likewise.
2279         [non-C99-based standards] (expm1l): Likewise.
2280         [non-C99-based standards] (ilogbl): Likewise.
2281         [non-C99-based standards] (log1pl): Likewise.
2282         [non-C99-based standards] (logbl): Likewise.
2283         [non-C99-based standards] (nextafterl): Likewise.
2284         [non-C99-based standards] (remainderl): Likewise.
2285         [non-C99-based standards] (rintl): Likewise.
2286         [non-C99-based standards] (scalbl): Likewise.
2287         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2288         [non-C99-based standards] (FP_*): Do not allow.
2289         [C99-based standards] (FP_*): Change to
2290         FP_[ABCDEFGHIJKLMNOPQRSTUVWXYZ]*.
2291         * conform/data/setjmp.h-data [ISO || ISO99 || ISO11] (*_t): Do not
2292         allow.
2293         * conform/data/signal.h-data (SIG_DFL): Use macro-constant.
2294         (SIG_ERR): Likewise.
2295         [X/Open-based standards] (SIG_HOLD): Likewise.
2296         (SIG_IGN): Likewise.
2297         (SIGABRT): Use macro-int-constant.  Specify type.  Require
2298         positive value.
2299         (SIGFPE): Likewise.
2300         (SIGILL): Likewise.
2301         (SIGINT): Likewise.
2302         (SIGSEGV): Likewise.
2303         (SIGTER): Likewise.
2304         [!ISO && !ISO99 && !ISO11] (SIGALRM): Likewise.
2305         [!ISO && !ISO99 && !ISO11] (SIGHUP): Likewise.
2306         [!ISO && !ISO99 && !ISO11] (SIGIO): Likewise.
2307         [!ISO && !ISO99 && !ISO11] (SIGKILL): Likewise.
2308         [!ISO && !ISO99 && !ISO11] (SIGPIPE): Likewise.
2309         [!ISO && !ISO99 && !ISO11] (SIGQUIT): Likewise.
2310         [!ISO && !ISO99 && !ISO11] (SIGUSR1): Likewise.
2311         [!ISO && !ISO99 && !ISO11] (SIGUSR2): Likewise.
2312         [!ISO && !ISO99 && !ISO11] (SIGCHLD): Likewise.
2313         [!ISO && !ISO99 && !ISO11] (SIGCONT): Likewise.
2314         [!ISO && !ISO99 && !ISO11] (SIGSTOP): Likewise.
2315         [!ISO && !ISO99 && !ISO11] (SIGTSTP): Likewise.
2316         [!ISO && !ISO99 && !ISO11] (SIGTTIN): Likewise.
2317         [!ISO && !ISO99 && !ISO11] (SIGTTOU): Likewise.
2318         [!ISO && !ISO99 && !ISO11] (SIGBUS): Likewise.
2319         [!ISO && !ISO99 && !ISO11] (SIGPOLL): Likewise.
2320         [!ISO && !ISO99 && !ISO11] (SIGPROF): Likewise.
2321         [!ISO && !ISO99 && !ISO11] (SIGSYS): Likewise.
2322         [X/Open-based standards] (SIGTRAP): Likewise.
2323         [!ISO && !ISO99 && !ISO11] (SIGURG): Likewise.
2324         [!ISO && !ISO99 && !ISO11] (SIGVTALRM): Likewise.
2325         [!ISO && !ISO99 && !ISO11] (SIGXCPU): Likewise.
2326         [!ISO && !ISO99 && !ISO11] (SIGXFSZ): Likewise.
2327         * conform/data/stdarg.h-data [ISO || ISO99 || ISO11] (*_t): Do not
2328         allow.
2329
2330 2012-05-08  Ian Wienand  <ianw@vmware.com>
2331
2332         [BZ #14080]
2333         * time/tzset.c (__tzset_parse_tz): Update default rules for
2334         daylight time changes in the Energy Policy Act of 2005.
2335
2336 2012-05-09  Andreas Jaeger  <aj@suse.de>
2337
2338         [BZ #13983]
2339         * elf/ldconfig.c (parse_conf): Change string to make clear that
2340         ldconfig only issued a warning if ld.so.conf does not exist.
2341
2342 2012-05-08  David S. Miller  <davem@davemloft.net>
2343
2344         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: Use
2345         movxtod instead of popping the value on the stack.
2346
2347         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2348
2349 2012-05-08  Carlos O'Donell  <carlos_odonell@mentor.com>
2350
2351         * config.h.in: Add HAVE_ARM_PCS_VFP.
2352
2353 2012-05-08  Roland Mc Grath  <roland@hack.frob.com>
2354
2355         [BZ #13979]
2356         * include/features.h: Warn if user requests __FORTIFY_SOURCE
2357         checking but the checks are disabled for any reason.
2358
2359 2012-05-08  H.J. Lu  <hongjiu.lu@intel.com>
2360
2361         * sysdeps/x86_64/dl-machine.h: Replace Elf64_XXX with ElfW(XXX)
2362         and ELF64_R_TYPE with ELFW(R_TYPE).
2363
2364 2012-05-08  Joseph Myers  <joseph@codesourcery.com>
2365
2366         * sysdeps/unix/sysv/syscalls.list (pause): Remove.
2367         (ulimit): Likewise.
2368
2369         * sysdeps/unix/sysv/syscalls.list (setrlimit): Remove.
2370         (settimeofday): Likewise.
2371
2372 2012-05-08  Mike Frysinger  <vapier@gentoo.org>
2373
2374         * inet/arpa/tftp.h (struct tftphdr): Rename th_u to th_u1.  Add
2375         a struct th_u2 inside the union, and move tu_block/tu_code into
2376         a new th_u3 union of tu_block/tu_code inside of that.  Move
2377         th_data[1] into the th_u2 as tu_data[0].  Change tu_stuff[1] to
2378         tu_stuff[0].  Add a new tu_padding[4] to keep sizeof() the same.
2379         (th_block): Change to th_u1.th_u2.th_u3.tu_block.
2380         (th_code): Change to th_u1.th_u2.th_u3.tu_code.
2381         (th_stuff): Change to th_u1.tu_stuff.
2382         (th_data): Define.
2383         (th_msg): Change to th_u1.th_u2.tu_data.
2384
2385 2012-05-07  David S. Miller  <davem@davemloft.net>
2386
2387         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2388
2389         [BZ #14074]
2390         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK_CALL): New macro.
2391         (SETUP_PIC_REG): Use it.
2392         (SETUP_PIC_REG_LEAF): Use it.
2393
2394 2012-05-07  Joseph Myers  <joseph@codesourcery.com>
2395
2396         [BZ #13885]
2397         [BZ #13923]
2398         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2399         USE_AS_EXPM1L.
2400         (EXPL_FINITE): Likewise.
2401         (FLDLOG): Likewise.
2402         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
2403         * sysdeps/i386/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
2404         e_expl.S.
2405         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2406         USE_AS_EXPM1L.
2407         (EXPL_FINITE): Likewise.
2408         (FLDLOG): Likewise.
2409         (IEEE754_EXPL) [USE_AS_EXPM1L]: Support use as expm1l.
2410         * sysdeps/x86_64/fpu/s_expm1l.S: Define USE_AS_EXPM1L and include
2411         e_expl.S.
2412         * math/libm-test.inc (expm1_test): Add more tests.  Do not disable
2413         test of -max_value argument for long double.
2414         * sysdeps/i386/fpu/libm-test-ulps: Update.
2415         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
2416
2417 2012-05-06  David S. Miller  <davem@davemloft.net>
2418
2419         * scripts/data/localplt-sparc-linux-gnu.data: Add '?' markers to
2420         quad soft-float symbols whose references which are compiler
2421         generated.
2422         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
2423
2424 2012-05-06  Joseph Myers  <joseph@codesourcery.com>
2425
2426         [BZ #13884]
2427         [BZ #13914]
2428         * sysdeps/i386/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2429         USE_AS_EXP10L.
2430         (EXPL_FINITE): Likewise.
2431         (FLDLOG): Likewise.
2432         (c0): Likewise.
2433         (c1): Likewise.
2434         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
2435         Adjust comments for base varying.
2436         (__expl_finite): Change alias to EXPL_FINITE.
2437         * sysdeps/i386/fpu/e_exp10l.S: Define USE_AS_EXP10L and include
2438         e_expl.S.
2439         * sysdeps/ieee754/dbl-64/e_exp10.c: New file.
2440         * sysdeps/ieee754/ldbl-128/e_exp10l.c: Likewise.
2441         * sysdeps/ieee754/ldbl-128ibm/e_exp10l.c: Likewise.
2442         * sysdeps/x86_64/fpu/e_exp10l.S: Likewise.
2443         * sysdeps/x86_64/fpu/e_expl.S (IEEE754_EXPL): Define conditional on
2444         USE_AS_EXP10L.
2445         (EXPL_FINITE): Likewise.
2446         (FLDLOG): Likewise.
2447         (c0): Likewise.
2448         (c1): Likewise.
2449         (__ieee754_expl): Change to IEEE754_EXPL.  Use FLDLOG macro.
2450         Adjust comments for base varying.
2451         (__expl_finite): Change alias to EXPL_FINITE.
2452         * math/libm-test.inc (exp10_test): Add more tests.  Do not disable
2453         tests for bugs.
2454         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
2455
2456         [BZ #14064]
2457         * math/libm-test.inc (check_float_internal): Correct ulp
2458         calculation for subnormal expected results.
2459
2460 2012-05-06  Andreas Jaeger  <aj@suse.de>
2461
2462         * Makeconfig (+math-flags): New, set to -frounding-math.
2463         (+cflags): Add +math-flags so that all of glibc gets compiled with
2464         it.
2465
2466         * sysdeps/x86_64/fpu/libm-test-ulps: Updated.
2467
2468 2012-05-05  Joseph Myers  <joseph@codesourcery.com>
2469
2470         * math/libm-test.inc (hypot_test) [TEST_DOUBLE && TEST_INLINE]:
2471         Disable one test.
2472
2473         [BZ #13787]
2474         [BZ #13922]
2475         [BZ #14036]
2476         * sysdeps/i386/fpu/e_expl.S (csat): New constant.
2477         (__ieee754_expl): Allow for and saturate large arguments.
2478         * sysdeps/ieee754/dbl-64/w_exp.c (o_threshold): Remove variable.
2479         (u_threshold): Likewise.
2480         (__exp): Call __ieee754_exp before checking for overflow and
2481         underflow.
2482         * sysdeps/ieee754/flt-32/w_expf.c (o_threshold): Remove variable.
2483         (u_threshold): Likewise.
2484         (__expf): Call __ieee754_expf before checking for overflow and
2485         underflow.
2486         * sysdeps/ieee754/ldbl-96/w_expl.c (o_threshold): Remove variable.
2487         (u_threshold): Likewise.
2488         (__expl): Call __ieee754_expl before checking for overflow and
2489         underflow.
2490         * sysdeps/x86_64/fpu/e_expl.S (csat): New constant.
2491         (__ieee754_expl): Allow for and saturate large arguments.
2492         * math/libm-test.inc (exp_test): Add another test.  Do not allow
2493         missing overflow exception on overflow.
2494         (expm1_test): Do not allow missing overflow exception on overflow.
2495
2496         * sysdeps/i386/fpu/e_expl.c: Move to ...
2497         * sysdeps/i386/fpu/e_expl.S: ... here.  Write directly in assembly
2498         rather than using inline asm.
2499         * sysdeps/x86_64/fpu/e_expl.c: Remove file.
2500         * sysdeps/x86_64/fpu/e_expl.S: Copy from
2501         sysdeps/i386/fpu/e_expl.S, adjusted for x86_64.
2502
2503         * sysdeps/unix/sysv/syscalls.list (ftime): Remove.
2504         (nice): Likewise.
2505         (poll): Likewise.
2506         (signal): Likewise.
2507         (time): Likewise.
2508         (times): Likewise.
2509
2510 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2511
2512         * sysdeps/unix/syscalls.list (adjtime): Add entry from
2513         sysdeps/unix/common/syscalls.list.
2514         (fchmod): Likewise.
2515         (fchown): Likewise.
2516         (ftruncate): Likewise.
2517         (getrusage): Likewise.
2518         (gettimeofday): Likewise.
2519         (setpgid): Likewise.
2520         (setregid): Likewise.
2521         (setreuid): Likewise.
2522         (sigaction): Likewise.
2523         (truncate): Likewise.
2524         (vhangup): Likewise.
2525         * sysdeps/unix/common/syscalls.list: Remove file.
2526         * sysdeps/unix/bsd/Implies: Don't include unix/common.
2527         * sysdeps/unix/sysv/linux/Implies: Likewise.
2528
2529 2012-05-04  H.J. Lu  <hongjiu.lu@intel.com>
2530
2531         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: Moved to ...
2532         * sysdeps/unix/sysv/linux/x86_64/64/nptl/ld.abilist: Here.
2533         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist:
2534         Moved to ...
2535         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libBrokenLocale.abilist:
2536         Here.
2537         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: Moved
2538         to ...
2539         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libanl.abilist: Here.
2540         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: Moved
2541         to ...
2542         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libc.abilist: Here.
2543         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: Moved
2544         to ...
2545         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libcrypt.abilist: Here.
2546         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: Moved
2547         to ...
2548         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libdl.abilist: Here.
2549         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: Moved
2550         to ...
2551         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libm.abilist: Here.
2552         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: Moved
2553         to ...
2554         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libnsl.abilist: Here.
2555         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: Moved
2556         to ...
2557         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libpthread.abilist:
2558         Here.
2559         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: Moved
2560         to ...
2561         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libresolv.abilist:
2562         Here.
2563         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: Moved
2564         to ...
2565         * sysdeps/unix/sysv/linux/x86_64/64/nptl/librt.abilist: Here.
2566         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist:
2567         Moved to ...
2568         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libthread_db.abilist:
2569         Here.
2570         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: Moved
2571         to ...
2572         * sysdeps/unix/sysv/linux/x86_64/64/nptl/libutil.abilist: Here.
2573
2574 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2575
2576         * sysdeps/unix/common/bits/dirent.h: Remove file.
2577         * sysdeps/unix/common/bits/fcntl.h: Likewise.
2578
2579         * sysdeps/unix/bsd/bits/dirent.h: Remove file.
2580         * sysdeps/unix/bsd/bits/fcntl.h: Likewise.
2581         * sysdeps/unix/bsd/bsd4.4/isatty.c: Likewise.
2582         * sysdeps/unix/bsd/isatty.c: Likewise.
2583         * sysdeps/unix/bsd/tcdrain.c: Likewise.
2584         * sysdeps/unix/bsd/tcgetattr.c: Likewise.
2585         * sysdeps/unix/bsd/tcsetattr.c: Likewise.
2586
2587 2012-05-04  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2588
2589         [BZ #13563]
2590         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c (__ieee754_acosl): Fix
2591         long double comparison inaccuracies.
2592         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c (__ieee754_asinl): Likewise.
2593         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
2594
2595 2012-05-04  Andreas Schwab  <schwab@linux-m68k.org>
2596
2597         * sysdeps/unix/make-syscalls.sh: Fix check for version aliases.
2598         * sysdeps/unix/sysv/linux/i386/syscalls.list: Revert last change.
2599
2600 2012-05-04  Joseph Myers  <joseph@codesourcery.com>
2601
2602         [BZ #14049]
2603         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Check for trailing
2604         nonzero digits before rounding a hex value.
2605         * stdlib/tst-strtod.c (tests): Add another test.
2606
2607 2012-05-03  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
2608
2609         * sysdeps/s390/fpu/libm-test-ulps: Update.
2610
2611 2012-05-03  Andreas Jaeger  <aj@suse.de>
2612
2613         * malloc/mcheck.c (mcheck): Add barrier so that malloc/free pair
2614         does not get optimized out.
2615         (malloc_opt_barrier): New.
2616
2617 2012-05-03  Andreas Jaeger  <aj@suse.de>
2618             Roland McGrath  <roland@hack.frob.com>
2619
2620         * Makerules (.PRECIOUS): Add %.symlist pattern to prevent
2621         intermediate file deletion.
2622         (generated): Add .symlist files.
2623
2624 2012-05-03  Joseph Myers  <joseph@codesourcery.com>
2625
2626         [BZ #13775]
2627         * libio/bits/stdio-ldbl.h [__USE_XOPEN2K8] (__dprintf_chk):
2628         Redirect under this condition.
2629         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
2630         [__USE_GNU] (__dprintf_chk): Not under this condition.
2631         [__USE_GNU] (__vdprintf_chk): Likewise.
2632         * libio/bits/stdio2.h [__USE_XOPEN2K8] (__dprintf_chk): Declare
2633         under this condition.
2634         [__USE_XOPEN2K8] (__vdprintf_chk): Likewise.
2635         [__USE_XOPEN2K8] (dprintf): Define under this condition.
2636         [__USE_XOPEN2K8] (vdprintf): Likewise.
2637         [__USE_GNU] (__dprintf_chk): Not under this condition.
2638         [__USE_GNU] (__vdprintf_chk): Likewise.
2639         [__USE_GNU] (dprintf): Likewise.
2640         [__USE_GNU] (vdprintf): Likewise.
2641
2642 2012-05-03  Roland McGrath  <roland@hack.frob.com>
2643
2644         * elf/Makefile (common-generated): Set this instead of generated for
2645         .dyn, .phdr, .jmprel files.  Remove $(common-objpfx) from the
2646         $(all-built-dso)-derived lists.
2647
2648 2012-05-03  Andreas Jaeger  <aj@suse.de>
2649
2650         * sysdeps/i386/fpu/libm-test-ulps: Update.
2651
2652         * FAQ: Removed.
2653         * FAQ.in: Likewise.
2654         * scripts/gen-FAQ.pl: Likewise.
2655         * manual/install.texi (Installation): Point to online location of
2656         FAQ.
2657         * Makefile (files-for-dist): Remove FAQ.
2658         (FAQ): Remove.
2659
2660 2012-05-02  Allan McRae  <allan@archlinux.org>
2661
2662         * elf/Makefile: (LDFLAGS-nodel2mod3.so: Use $(no-as-needed).
2663         (LDFLAGS-reldepmod5.so): Likewise.
2664         (LDFLAGS-reldep6mod1.so): Likewise.
2665         (LDFLAGS-reldep6mod4.so): Likewise.
2666         (LDFLAGS-reldep8mod3.so): Likewise.
2667         (LDFLAGS-unload4mod1.so): Likewise.
2668         (LDFLAGS-unload4mod2.so): Likewise.
2669         (LDFLAGS-tst-initorder): Likewise.
2670         (LDFLAGS-tst-initordera2.so): Likewise.
2671         (LDFLAGS-tst-initordera3.so): Likewise.
2672         (LDFLAGS-tst-initordera4.so): Likewise.
2673         (LDFLAGS-tst-initorderb2.so): Likewise.
2674         (LDFLAGS-noload): Likewise.
2675         (LDFLAGS-next): Likewise.
2676         (LDFLAGS-order2mod1.so): Likewise.
2677         (LDFLAGS-order2mod2.so): Likewise.
2678         (LDFLAGS-tst-initorder2): Likewise.
2679         (LDFLAGS-tst-initorder2a.so): Likewise.
2680         (LDFLAGS-tst-initorder2b.so): Likewise.
2681         (LDFLAGS-tst-initorder2c.so): Likewise.
2682         * stdlib/Makefile: (LDFLAGS-tst-putenv): Likewise.
2683
2684 2012-05-02  David S. Miller  <davem@davemloft.net>
2685
2686         * sysdeps/sparc/fpu/libm-test-ulps: Update.
2687
2688 2012-05-02  Paul Pluzhnikov  <ppluzhnikov@google.com>
2689
2690         [BZ #14055]
2691         * elf/dl-sysdep.c (_dl_show_auxv): Add bounds check.
2692
2693 2012-05-02  Andreas Jaeger  <aj@suse.de>
2694
2695         * math/Makefile (CPPFLAGS-test-ildoubl.c): Add -frounding-math
2696         since we manipulate rounding mode.
2697         (CPPFLAGS-test-idouble.c): Likewise.
2698         (CPPFLAGS-test-ifloat.c): Likewise.
2699         (CFLAGS-test-ldouble.c): Likewise.
2700         (CFLAGS-test-double.c): Likewise.
2701         (CFLAGS-test-float.c): Likewise.
2702         (CFLAGS-test-misc.c): Likewise.
2703         (CFLAGS-test-test-fenv.c): Likewise.
2704
2705 2012-05-02  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
2706
2707         [BZ #2550]
2708         [BZ #2570]
2709         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Use floating-point
2710         comparisons to determine direction to adjust input.
2711
2712 2012-05-01  Roland McGrath  <roland@hack.frob.com>
2713
2714         * elf/Makefile ($(objpfx)check-localplt.out): Redirect the test's
2715         output to the target.
2716
2717         * scripts/localplt.awk: New file.
2718         * elf/Makefile ($(objpfx)check-localplt): Target removed.
2719         (check-localplt-CFLAGS): Variable removed.
2720         ($(all-built-dso:=.jmprel)): New static pattern rule.
2721         (generated): Add those targets.
2722         (localplt-built-dso): New variable.
2723         ($(objpfx)check-localplt.out): Use the script on the .jmprel files.
2724
2725         * elf/check-localplt.c: File removed.
2726
2727         * scripts/check-execstack.awk: New file.
2728         * elf/Makefile ($(objpfx)check-execstack): Target removed.
2729         (check-execstack-CFLAGS): Variable removed.
2730         ($(objpfx)check-execstack.h): Target removed.
2731         ($(objpfx)execstack-default): New target.
2732         (generated): Add that instead of check-execstack.h.
2733         ($(all-built-dso:=.phdr)): New static pattern rule.
2734         (generated): Add those targets.
2735         * elf/check-execstack.c: File removed.
2736
2737         * scripts/check-textrel.awk: New file.
2738         * elf/Makefile ($(objpfx)check-textrel): Target removed.
2739         (check-textrel-CFLAGS): Variable removed.
2740         (all-built-dso): Use := to define.o
2741         ($(all-built-dso:=.dyn)): New static pattern rule.
2742         (generated): Add those targets.
2743         ($(objpfx)check-textrel.out): Use the script on the .dyn files.
2744         * config.make.in (READELF): New substituted variable.
2745         * elf/check-textrel.c: File removed.
2746
2747 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
2748
2749         * conform/data/assert.h-data [ISO || ISO99 || ISO11] (*_t): Do not
2750         allow.
2751         * conform/data/ctype.h-data [C99-based standards] (isblank):
2752         Expect function.
2753         (is*): Change to is[abcdefghijklmnopqrstuvwxyz]*.
2754         (to*): Change to to[abcdefghijklmnopqrstuvwxyz]*.
2755         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2756         * conform/data/errno.h-data (EDOM): Use macro-int-constant.
2757         Specify type.  Require positive value.
2758         (EILSEQ): Likewise.
2759         (ERANGE): Likewise.
2760         [ISO || POSIX] (EILSEQ): Do not expect.
2761         [!ISO && !ISO99 && !ISO11] (E2BIG): Use macro-int-constant.
2762         Specify type.  Require positive value.
2763         [!ISO && !ISO99 && !ISO11] (EACCES): Likewise.
2764         [!ISO && !ISO99 && !ISO11] (EADDRINUSE): Likewise.
2765         [!ISO && !ISO99 && !ISO11] (EADDRNOTAVAIL): Likewise.
2766         [!ISO && !ISO99 && !ISO11] (EAFNOSUPPORT): Likewise.
2767         [!ISO && !ISO99 && !ISO11] (EAGAIN): Likewise.
2768         [!ISO && !ISO99 && !ISO11] (EALREADY): Likewise.
2769         [!ISO && !ISO99 && !ISO11] (EBADF): Likewise.
2770         [!ISO && !ISO99 && !ISO11] (EBADMSG): Likewise.
2771         [!ISO && !ISO99 && !ISO11] (EBUSY): Likewise.
2772         [!ISO && !ISO99 && !ISO11] (ECANCELED): Likewise.
2773         [!ISO && !ISO99 && !ISO11] (ECHILD): Likewise.
2774         [!ISO && !ISO99 && !ISO11] (ECONNABORTED): Likewise.
2775         [!ISO && !ISO99 && !ISO11] (ECONNREFUSED): Likewise.
2776         [!ISO && !ISO99 && !ISO11] (ECONNRESET): Likewise.
2777         [!ISO && !ISO99 && !ISO11] (EDEADLK): Likewise.
2778         [!ISO && !ISO99 && !ISO11] (EDESTADDRREQ): Likewise.
2779         [!ISO && !ISO99 && !ISO11] (EDQUOT): Likewise.
2780         [!ISO && !ISO99 && !ISO11] (EEXIST): Likewise.
2781         [!ISO && !ISO99 && !ISO11] (EFAULT): Likewise.
2782         [!ISO && !ISO99 && !ISO11] (EFBIG): Likewise.
2783         [!ISO && !ISO99 && !ISO11] (EHOSTUNREACH): Likewise.
2784         [!ISO && !ISO99 && !ISO11] (EIDRM): Likewise.
2785         [!ISO && !ISO99 && !ISO11] (EINPROGRESS): Likewise.
2786         [!ISO && !ISO99 && !ISO11] (EINTR): Likewise.
2787         [!ISO && !ISO99 && !ISO11] (EINVAL): Likewise.
2788         [!ISO && !ISO99 && !ISO11] (EIO): Likewise.
2789         [!ISO && !ISO99 && !ISO11] (EISCONN): Likewise.
2790         [!ISO && !ISO99 && !ISO11] (EISDIR): Likewise.
2791         [!ISO && !ISO99 && !ISO11] (ELOOP): Likewise.
2792         [!ISO && !ISO99 && !ISO11] (EMFILE): Likewise.
2793         [!ISO && !ISO99 && !ISO11] (EMLINK): Likewise.
2794         [!ISO && !ISO99 && !ISO11] (EMSGSIZE): Likewise.
2795         [!ISO && !ISO99 && !ISO11] (EMULTIHOP): Likewise.
2796         [!ISO && !ISO99 && !ISO11] (ENAMETOOLONG): Likewise.
2797         [!ISO && !ISO99 && !ISO11] (ENETDOWN): Likewise.
2798         [!ISO && !ISO99 && !ISO11] (ENETUNREACH): Likewise.
2799         [!ISO && !ISO99 && !ISO11] (ENFILE): Likewise.
2800         [!ISO && !ISO99 && !ISO11] (ENOBUFS): Likewise.
2801         [!ISO && !ISO99 && !ISO11] (ENODATA): Likewise.
2802         [!ISO && !ISO99 && !ISO11] (ENODEV): Likewise.
2803         [!ISO && !ISO99 && !ISO11] (ENOENT): Likewise.
2804         [!ISO && !ISO99 && !ISO11] (ENOEXEC): Likewise.
2805         [!ISO && !ISO99 && !ISO11] (ENOLCK): Likewise.
2806         [!ISO && !ISO99 && !ISO11] (ENOLINK): Likewise.
2807         [!ISO && !ISO99 && !ISO11] (ENOMEM): Likewise.
2808         [!ISO && !ISO99 && !ISO11] (ENOMSG): Likewise.
2809         [!ISO && !ISO99 && !ISO11] (ENOPROTOOPT): Likewise.
2810         [!ISO && !ISO99 && !ISO11] (ENOSPC): Likewise.
2811         [!ISO && !ISO99 && !ISO11] (ENOSR): Likewise.
2812         [!ISO && !ISO99 && !ISO11] (ENOSTR): Likewise.
2813         [!ISO && !ISO99 && !ISO11] (ENOSYS): Likewise.
2814         [!ISO && !ISO99 && !ISO11] (ENOTCONN): Likewise.
2815         [!ISO && !ISO99 && !ISO11] (ENOTDIR): Likewise.
2816         [!ISO && !ISO99 && !ISO11] (ENOTEMPTY): Likewise.
2817         [!ISO && !ISO99 && !ISO11] (ENOTSOCK): Likewise.
2818         [!ISO && !ISO99 && !ISO11] (ENOTSUP): Likewise.
2819         [!ISO && !ISO99 && !ISO11] (ENOTTY): Likewise.
2820         [!ISO && !ISO99 && !ISO11] (ENXIO): Likewise.
2821         [!ISO && !ISO99 && !ISO11] (EOPNOTSUPP): Likewise.
2822         [!ISO && !ISO99 && !ISO11] (EOVERFLOW): Likewise.
2823         [!ISO && !ISO99 && !ISO11] (EPERM): Likewise.
2824         [!ISO && !ISO99 && !ISO11] (EPIPE): Likewise.
2825         [!ISO && !ISO99 && !ISO11] (EPROTO): Likewise.
2826         [!ISO && !ISO99 && !ISO11] (EPROTONOSUPPORT): Likewise.
2827         [!ISO && !ISO99 && !ISO11] (EPROTOTYPE): Likewise.
2828         [!ISO && !ISO99 && !ISO11] (EROFS): Likewise.
2829         [!ISO && !ISO99 && !ISO11] (ESPIPE): Likewise.
2830         [!ISO && !ISO99 && !ISO11] (ESRCH): Likewise.
2831         [!ISO && !ISO99 && !ISO11] (ESTALE): Likewise.
2832         [!ISO && !ISO99 && !ISO11] (ETIME): Likewise.
2833         [!ISO && !ISO99 && !ISO11] (ETIMEDOUT): Likewise.
2834         [!ISO && !ISO99 && !ISO11] (ETXTBSY): Likewise.
2835         [!ISO && !ISO99 && !ISO11] (EWOULDBLOCK): Likewise.
2836         [!ISO && !ISO99 && !ISO11] (EXDEV): Likewise.
2837         [XOPEN2K8 || defined POSIX2008] (ENOTRECOVERABLE): Likewise.
2838         [XOPEN2K8 || defined POSIX2008] (EOWNERDEAD): Likewise.
2839         * conform/data/float.h-data (FLT_RADIX): Use macro-int-constant.
2840         Require >= 2.
2841         (FLT_ROUNDS): Expect as macro, not constant.
2842         (FLT_MANT_DIG): Use macro-int-constant.
2843         (DBL_MANT_DIG): Likewise.
2844         (LDBL_MANT_DIG): Likewise.
2845         (FLT_DIG): Likewise.
2846         (DBL_DIG): Likewise.
2847         (LDBL_DIG): Likewise.
2848         (FLT_MIN_EXP): Use macro-int-constant.  Require < 0.
2849         (DBL_MIN_EXP): Likewise.
2850         (LDBL_MIN_EXP): Likewise.
2851         (FLT_MAX_EXP): Use macro-int-constant.
2852         (DBL_MAX_EXP): Likewise.
2853         (LDBL_MAX_EXP): Likewise.
2854         (FLT_MAX_10_EXP): Likewise.
2855         (DBL_MAX_10_EXP): Likewise.
2856         (LDBL_MAX_10_EXP): Likewise.
2857         (FLT_MAX): Use macro-constant.
2858         (DBL_MAX): Likewise.
2859         (LDBL_MAX): Likewise.
2860         (FLT_EPSILON): Use macro-constant.  Give upper bound.
2861         (DBL_EPSILON): Likewise.
2862         (LDBL_EPSILON): Likewise.
2863         (FLT_MIN): Likewise.
2864         (DBL_MIN): Likewise.
2865         (LDBL_MIN): Likewise.
2866         [C99-based standards] (DECIMAL_DIG): Use macro-int-constant.
2867         [C99-based standards] (FLT_EVAL_METHOD): Likewise.
2868         [ISO11] (DBL_HAS_SUBNORM): Use macro-int-constant.
2869         [ISO11] (FLT_HAS_SUBNORM): Likewise.
2870         [ISO11] (LDBL_HAS_SUBNORM): Likewise.
2871         [ISO11] (DBL_DECIMAL_DIG): Likewise.
2872         [ISO11] (FLT_DECIMAL_DIG): Likewise.
2873         [ISO11] (LDBL_DECIMAL_DIG): Likewise.
2874         [ISO11] (DBL_TRUE_MIN): Use macro-constant.
2875         [ISO11] (FLT_TRUE_MIN): Likewise.
2876         [ISO11] (LDBL_TRUE_MIN): Likewise.
2877         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2878         * conform/data/limits.h-data (CHAR_BIT): Use macro-int-constant.
2879         (SCHAR_MIN): Use macro-int-constant.  Specify type.
2880         (SCHAR_MAX): Likewise.
2881         (UCHAR_MAX): Likewise.
2882         (CHAR_MIN): Likewise.
2883         (CHAR_MAX): Likewise.
2884         (MB_LEN_MAX): Use macro-int-constant.
2885         (SHRT_MIN): Use macro-int-constant.  Specify type.
2886         (SHRT_MAX): Likewise.
2887         (USHRT_MAX): Likewise.
2888         (INT_MAX): Likewise.
2889         (INT_MIN): Use macro-int-constant.  Specify type.  Make upper
2890         bound negative.
2891         (UINT_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2892         bound with "U".
2893         (LONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2894         bound with "L".
2895         (LONG_MIN): Use macro-int-constant.  Specify type.  Make upper
2896         bound negative.  Suffix upper bound with "L".
2897         (ULONG_MAX): Use macro-int-constant.  Specify type.  Suffix lower
2898         bound with "UL".
2899         [C99-based standards] (LLONG_MIN): Use macro-int-constant.
2900         Specify type.
2901         [C99-based standards] (LLONG_MAX): Likewise.
2902         [C99-based standards] (ULLONG_MAX): Likewise.
2903         * conform/data/stddef.h-data (NULL): Use macro-constant.  Require
2904         == 0.
2905         [ISO11] (max_align_t): Require type.
2906         [ISO || ISO99 || ISO11] (*_t): Do not allow.
2907
2908         * conform/conformtest.pl ($CFLAGS_namespace): Define separately
2909         from $CFLAGS, without defining away __attribute__ calls.
2910         (checknamespace): Use $CFLAGS_namespace.
2911
2912         * conform/conformtest.pl (@keywords): Only include C99 keywords
2913         for standards based on C99 or C11.
2914
2915         * conform/data/iso646.h-data [ISO || POSIX || XPG3 || XPG4]:
2916         Disable tests.
2917         * conform/data/stdint.h-data [ISO || POSIX || XPG3 || XPG4 ||
2918         UNIX98]: Likewise.
2919
2920         * conform/conformtest.pl: Handle "macro-int-constant" and test for
2921         usability of symbols in #if.
2922
2923         * conform/conformtest.pl: If macro or constant types start
2924         "promoted:", expect the symbol to be of the following type
2925         promoted by the integer promotions.
2926
2927         * conform/conformtest.pl: Parse all "constant" and "macro" lines
2928         in one place.  Also handle "macro-constant".
2929
2930         * conform/conformtest.pl: Only accept expected macro values with
2931         "==".  Parse all "macro" lines in one place.
2932         * conform/data/stdlib.h-data: Use "==" form on "macro" lines.
2933
2934         * conform/conformtest.pl: Handle braced types on "constant" lines
2935         instead of handling "typed-constant".
2936         * conform/data/signal.h-data: Use "constant" instead of
2937         "typed-constant".
2938
2939         * conform/conformtest.pl: Handle "optional-" at start of lines in
2940         one place rather than duplicating several cases.  Handle each
2941         format of "macro" line with initial "optional-".
2942
2943         * conform/conformtest.pl: Only accept expected constant or
2944         optional-constant values with "==".  Parse all "constant" lines in
2945         one place.  Parse all "optional-constant" lines in one place.
2946         * conform/data/cpio.h-data: Use "==" form on "constant" lines.
2947         * conform/data/fmtmsg.h-data: Likewise.
2948         * conform/data/netinet/in.h-data: Likewise.
2949         * conform/data/tar.h-data: Likewise.
2950         * conform/data/limits.h-data: Use "==" form on "constant" and
2951         "optional-constant" lines.
2952
2953         * conform/conformtest.pl: Use -ansi for XPG3, XPG4 and UNIX98.
2954         Use -std=c99 for XOPEN2K.
2955         (@knownproblems): Remove.
2956         (newtoken): Don't check %isknown.
2957
2958         * conform/data/math.h-data [XPG3 || XPG4 || UNIX98] (fpclassify):
2959         Do not expect macro.
2960         [XPG3 || XPG4 || UNIX98] (isfinite): Likewise.
2961         [XPG3 || XPG4 || UNIX98] (isinf): Likewise.
2962         [XPG3 || XPG4 || UNIX98] (isnan): Likewise.
2963         [XPG3 || XPG4 || UNIX98] (isnormal): Likewise.
2964         [XPG3 || XPG4 || UNIX98] (signbit): Likewise.
2965         [XPG3 || XPG4 || UNIX98] (isgreater): Likewise.
2966         [XPG3 || XPG4 || UNIX98] (isgreaterequal): Likewise.
2967         [XPG3 || XPG4 || UNIX98] (isless): Likewise.
2968         [XPG3 || XPG4 || UNIX98] (islessequal): Likewise.
2969         [XPG3 || XPG4 || UNIX98] (islessgreater): Likewise.
2970         [XPG3 || XPG4 || UNIX98] (isunordered): Likewise.
2971         [XPG3 || XPG4 || UNIX98] (isnan): Expect as function.
2972         [XPG3 || XPG4 || UNIX98] (HUGE_VALF): Do not expect.
2973         [XPG3 || XPG4 || UNIX98] (HUGE_VALL): Likewise.
2974         [XPG3 || XPG4 || UNIX98] (INFINITY): Likewise.
2975         [XPG3 || XPG4 || UNIX98] (NAN): Likewise.
2976         [XPG3 || XPG4 || UNIX98] (FP_INFINITE): Likewise.
2977         [XPG3 || XPG4 || UNIX98] (FP_NAN): Likewise.
2978         [XPG3 || XPG4 || UNIX98] (FP_NORMAL): Likewise.
2979         [XPG3 || XPG4 || UNIX98] (FP_SUBNORMAL): Likewise.
2980         [XPG3 || XPG4 || UNIX98] (FP_ZERO): Likewise.
2981         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMA): Likewise.
2982         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAF): Likewise.
2983         [XPG3 || XPG4 || UNIX98] (FP_FAST_FMAL): Likewise.
2984         [XPG3 || XPG4 || UNIX98] (FP_ILOGB0): Likewise.
2985         [XPG3 || XPG4 || UNIX98] (FP_ILOGBNAN): Likewise.
2986         [XPG3 || XPG4 || UNIX98] (copysign): Likewise.
2987         [XPG3 || XPG4 || UNIX98] (exp2): Likewise.
2988         [XPG3 || XPG4 || UNIX98] (log2): Likewise.
2989         [XPG3 || XPG4 || UNIX98] (tgama): Likewise.
2990         [XPG3] (acosh): Likewise.
2991         [XPG3] (asinh): Likewise.
2992         [XPG3] (atanh): Likewise.
2993         [XPG3] (cbrt): Likewise.
2994         [XPG3] (expm1): Likewise.
2995         [XPG3] (ilogb): Likewise.
2996         [XPG3] (log1p): Likewise.
2997         [XPG3] (logb): Likewise.
2998         [XPG3] (nextafter): Likewise.
2999         [XPG3 || XPG4 || UNIX98] (nexttoward): Likewise.
3000         [XPG3 || XPG4 || UNIX98] (nearbyint): Likewise.
3001         [XPG3] (remainder): Likewise.
3002         [XPG3] (rint): Likewise.
3003         [XPG3 || XPG4 || UNIX98] (round): Likewise.
3004         [XPG3 || XPG4 || UNIX98] (trunc): Likewise.
3005         [XPG3 || XPG4 || UNIX98] (lrint): Likewise.
3006         [XPG3 || XPG4 || UNIX98] (llrint): Likewise.
3007         [XPG3 || XPG4 || UNIX98] (lround): Likewise.
3008         [XPG3 || XPG4 || UNIX98] (llround): Likewise.
3009         [XPG3 || XPG4 || UNIX98] (remquo): Likewise.
3010         [UNIX98 || XOPEN2K] (scalb): Expect.
3011         [XPG3 || XPG4 || UNIX98] (scalbn): Do not expect.
3012         [XPG3 || XPG4 || UNIX98] (scalbln): Likewise.
3013         [XPG3 || XPG4 || UNIX98] (fdim): Likewise.
3014         [XPG3 || XPG4 || UNIX98] (fmax): Likewise.
3015         [XPG3 || XPG4 || UNIX98] (fmin): Likewise.
3016         [XPG3 || XPG4 || UNIX98] (fma): Likewise.
3017         [XPG3 || XPG4 || UNIX98] (nan): Likewise.
3018         [XPG3 || XPG4 || UNIX98] (acosf): Likewise.
3019         [XPG3 || XPG4 || UNIX98] (asinf): Likewise.
3020         [XPG3 || XPG4 || UNIX98] (atanf): Likewise.
3021         [XPG3 || XPG4 || UNIX98] (atan2f): Likewise.
3022         [XPG3 || XPG4 || UNIX98] (ceilf): Likewise.
3023         [XPG3 || XPG4 || UNIX98] (copysignf): Likewise.
3024         [XPG3 || XPG4 || UNIX98] (cosf): Likewise.
3025         [XPG3 || XPG4 || UNIX98] (coshf): Likewise.
3026         [XPG3 || XPG4 || UNIX98] (expf): Likewise.
3027         [XPG3 || XPG4 || UNIX98] (exp2f): Likewise.
3028         [XPG3 || XPG4 || UNIX98] (fabsf): Likewise.
3029         [XPG3 || XPG4 || UNIX98] (floorf): Likewise.
3030         [XPG3 || XPG4 || UNIX98] (fmodf): Likewise.
3031         [XPG3 || XPG4 || UNIX98] (frexpf): Likewise.
3032         [XPG3 || XPG4 || UNIX98] (ldexpf): Likewise.
3033         [XPG3 || XPG4 || UNIX98] (logf): Likewise.
3034         [XPG3 || XPG4 || UNIX98] (log10f): Likewise.
3035         [XPG3 || XPG4 || UNIX98] (log2f): Likewise.
3036         [XPG3 || XPG4 || UNIX98] (modff): Likewise.
3037         [XPG3 || XPG4 || UNIX98] (powf): Likewise.
3038         [XPG3 || XPG4 || UNIX98] (sinf): Likewise.
3039         [XPG3 || XPG4 || UNIX98] (sinhf): Likewise.
3040         [XPG3 || XPG4 || UNIX98] (sqrtf): Likewise.
3041         [XPG3 || XPG4 || UNIX98] (tanf): Likewise.
3042         [XPG3 || XPG4 || UNIX98] (tanhf): Likewise.
3043         [XPG3 || XPG4 || UNIX98] (erff): Likewise.
3044         [XPG3 || XPG4 || UNIX98] (erfcf): Likewise.
3045         [XPG3 || XPG4 || UNIX98] (gammaf): Likewise.
3046         [XPG3 || XPG4 || UNIX98] (hypotf): Likewise.
3047         [XPG3 || XPG4 || UNIX98] (j0f): Likewise.
3048         [XPG3 || XPG4 || UNIX98] (j1f): Likewise.
3049         [XPG3 || XPG4 || UNIX98] (jnf): Likewise.
3050         [XPG3 || XPG4 || UNIX98] (lgammaf): Likewise.
3051         [XPG3 || XPG4 || UNIX98] (tgammaf): Likewise.
3052         [XPG3 || XPG4 || UNIX98] (y0f): Likewise.
3053         [XPG3 || XPG4 || UNIX98] (y1f): Likewise.
3054         [XPG3 || XPG4 || UNIX98] (ynf): Likewise.
3055         [XPG3 || XPG4 || UNIX98] (acoshf): Likewise.
3056         [XPG3 || XPG4 || UNIX98] (asinhf): Likewise.
3057         [XPG3 || XPG4 || UNIX98] (atanhf): Likewise.
3058         [XPG3 || XPG4 || UNIX98] (cbrtf): Likewise.
3059         [XPG3 || XPG4 || UNIX98] (expm1f): Likewise.
3060         [XPG3 || XPG4 || UNIX98] (ilogbf): Likewise.
3061         [XPG3 || XPG4 || UNIX98] (log1pf): Likewise.
3062         [XPG3 || XPG4 || UNIX98] (logbf): Likewise.
3063         [XPG3 || XPG4 || UNIX98] (nextafterf): Likewise.
3064         [XPG3 || XPG4 || UNIX98] (nexttowardf): Likewise.
3065         [XPG3 || XPG4 || UNIX98] (nearbyintf): Likewise.
3066         [XPG3 || XPG4 || UNIX98] (remainderf): Likewise.
3067         [XPG3 || XPG4 || UNIX98] (rintf): Likewise.
3068         [XPG3 || XPG4 || UNIX98] (roundf): Likewise.
3069         [XPG3 || XPG4 || UNIX98] (truncf): Likewise.
3070         [XPG3 || XPG4 || UNIX98] (lrintf): Likewise.
3071         [XPG3 || XPG4 || UNIX98] (llrintf): Likewise.
3072         [XPG3 || XPG4 || UNIX98] (lroundf): Likewise.
3073         [XPG3 || XPG4 || UNIX98] (llroundf): Likewise.
3074         [XPG3 || XPG4 || UNIX98] (remquof): Likewise.
3075         [XPG3 || XPG4 || UNIX98] (scalbf): Likewise.
3076         [XPG3 || XPG4 || UNIX98] (scalbnf): Likewise.
3077         [XPG3 || XPG4 || UNIX98] (scalblnf): Likewise.
3078         [XPG3 || XPG4 || UNIX98] (fdimf): Likewise.
3079         [XPG3 || XPG4 || UNIX98] (fmaxf): Likewise.
3080         [XPG3 || XPG4 || UNIX98] (fminf): Likewise.
3081         [XPG3 || XPG4 || UNIX98] (fmaf): Likewise.
3082         [XPG3 || XPG4 || UNIX98] (nanf): Likewise.
3083         [XPG3 || XPG4 || UNIX98] (acosl): Likewise.
3084         [XPG3 || XPG4 || UNIX98] (asinl): Likewise.
3085         [XPG3 || XPG4 || UNIX98] (atanl): Likewise.
3086         [XPG3 || XPG4 || UNIX98] (atan2l): Likewise.
3087         [XPG3 || XPG4 || UNIX98] (ceill): Likewise.
3088         [XPG3 || XPG4 || UNIX98] (copysignl): Likewise.
3089         [XPG3 || XPG4 || UNIX98] (cosl): Likewise.
3090         [XPG3 || XPG4 || UNIX98] (coshl): Likewise.
3091         [XPG3 || XPG4 || UNIX98] (expl): Likewise.
3092         [XPG3 || XPG4 || UNIX98] (exp2l): Likewise.
3093         [XPG3 || XPG4 || UNIX98] (fabsl): Likewise.
3094         [XPG3 || XPG4 || UNIX98] (floorl): Likewise.
3095         [XPG3 || XPG4 || UNIX98] (fmodl): Likewise.
3096         [XPG3 || XPG4 || UNIX98] (frexpl): Likewise.
3097         [XPG3 || XPG4 || UNIX98] (ldexpl): Likewise.
3098         [XPG3 || XPG4 || UNIX98] (logl): Likewise.
3099         [XPG3 || XPG4 || UNIX98] (log10l): Likewise.
3100         [XPG3 || XPG4 || UNIX98] (log2l): Likewise.
3101         [XPG3 || XPG4 || UNIX98] (modfl): Likewise.
3102         [XPG3 || XPG4 || UNIX98] (powl): Likewise.
3103         [XPG3 || XPG4 || UNIX98] (sinl): Likewise.
3104         [XPG3 || XPG4 || UNIX98] (sinhl): Likewise.
3105         [XPG3 || XPG4 || UNIX98] (sqrtl): Likewise.
3106         [XPG3 || XPG4 || UNIX98] (tanl): Likewise.
3107         [XPG3 || XPG4 || UNIX98] (tanhl): Likewise.
3108         [XPG3 || XPG4 || UNIX98] (erfl): Likewise.
3109         [XPG3 || XPG4 || UNIX98] (erfcl): Likewise.
3110         [XPG3 || XPG4 || UNIX98] (gammal): Likewise.
3111         [XPG3 || XPG4 || UNIX98] (hypotl): Likewise.
3112         [XPG3 || XPG4 || UNIX98] (j0l): Likewise.
3113         [XPG3 || XPG4 || UNIX98] (j1l): Likewise.
3114         [XPG3 || XPG4 || UNIX98] (jnl): Likewise.
3115         [XPG3 || XPG4 || UNIX98] (lgammal): Likewise.
3116         [XPG3 || XPG4 || UNIX98] (tgammal): Likewise.
3117         [XPG3 || XPG4 || UNIX98] (y0l): Likewise.
3118         [XPG3 || XPG4 || UNIX98] (y1l): Likewise.
3119         [XPG3 || XPG4 || UNIX98] (ynl): Likewise.
3120         [XPG3 || XPG4 || UNIX98] (acoshl): Likewise.
3121         [XPG3 || XPG4 || UNIX98] (asinhl): Likewise.
3122         [XPG3 || XPG4 || UNIX98] (atanhl): Likewise.
3123         [XPG3 || XPG4 || UNIX98] (cbrtl): Likewise.
3124         [XPG3 || XPG4 || UNIX98] (expm1l): Likewise.
3125         [XPG3 || XPG4 || UNIX98] (ilogbl): Likewise.
3126         [XPG3 || XPG4 || UNIX98] (log1pl): Likewise.
3127         [XPG3 || XPG4 || UNIX98] (logbl): Likewise.
3128         [XPG3 || XPG4 || UNIX98] (nextafterl): Likewise.
3129         [XPG3 || XPG4 || UNIX98] (nexttowardl): Likewise.
3130         [XPG3 || XPG4 || UNIX98] (nearbyintl): Likewise.
3131         [XPG3 || XPG4 || UNIX98] (remainderl): Likewise.
3132         [XPG3 || XPG4 || UNIX98] (rintl): Likewise.
3133         [XPG3 || XPG4 || UNIX98] (roundl): Likewise.
3134         [XPG3 || XPG4 || UNIX98] (truncl): Likewise.
3135         [XPG3 || XPG4 || UNIX98] (lrintl): Likewise.
3136         [XPG3 || XPG4 || UNIX98] (llrintl): Likewise.
3137         [XPG3 || XPG4 || UNIX98] (lroundl): Likewise.
3138         [XPG3 || XPG4 || UNIX98] (llroundl): Likewise.
3139         [XPG3 || XPG4 || UNIX98] (remquol): Likewise.
3140         [XPG3 || XPG4 || UNIX98] (scalbl): Likewise.
3141         [XPG3 || XPG4 || UNIX98] (scalbnl): Likewise.
3142         [XPG3 || XPG4 || UNIX98] (scalblnl): Likewise.
3143         [XPG3 || XPG4 || UNIX98] (fdiml): Likewise.
3144         [XPG3 || XPG4 || UNIX98] (fmaxl): Likewise.
3145         [XPG3 || XPG4 || UNIX98] (fminl): Likewise.
3146         [XPG3 || XPG4 || UNIX98] (fmal): Likewise.
3147         [XPG3 || XPG4 || UNIX98] (nanl): Likewise.
3148
3149         * conform/conformtest.pl: Define _XOPEN_SOURCE as well as
3150         _XOPEN_SOURCE_EXTENDED for XPG4.
3151
3152         * conform/conformtest.pl: Handle "symbol" lines for allow-header.
3153
3154         * Makeconfig (localtime): Remove variable.
3155         (inst_localtime-file): Likewise.
3156
3157 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3158
3159         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/ld.abilist:
3160         Update.
3161         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libc.abilist:
3162         Update.
3163         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libm.abilist:
3164         Update.
3165         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/libpthread.abilist:
3166         Update.
3167         * sysdeps/unix/sysv/linux/powerpc/powerpc32/fpu/nptl/librt.abilist:
3168         Update.
3169         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist:
3170         Update.
3171         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist:
3172         Update.
3173         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist:
3174         Update.
3175         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
3176         Update.
3177
3178 2012-05-01  Joseph Myers  <joseph@codesourcery.com>
3179
3180         [BZ #2550]
3181         [BZ #2570]
3182         * math/s_nexttowardf.c (__nexttowardf): Use floating-point
3183         comparisons to determine direction to adjust input.
3184         * sysdeps/i386/fpu/s_nexttoward.c (__nexttoward): Likewise.
3185         * sysdeps/i386/fpu/s_nexttowardf.c(__nexttowardf): Likewise.
3186         * sysdeps/ieee754/ldbl-128/s_nexttoward.c (__nexttoward):
3187         Likewise.
3188         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c (__nexttowardf):
3189         Likewise.
3190         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c (__nexttowardf):
3191         Likewise.
3192         * sysdeps/ieee754/ldbl-96/s_nexttoward.c (__nexttoward): Likewise.
3193         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c (__nexttowardf):
3194         Likewise.
3195         * sysdeps/ieee754/ldbl-opt/s_nexttowardfd.c (__nldbl_nexttowardf):
3196         Likewise.
3197         * math/libm-test.inc (nexttoward_test): Add more tests.
3198
3199 2012-05-01  Andreas Schwab  <schwab@linux-m68k.org>
3200
3201         [BZ #14040]
3202         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S (nearbyintl): Define
3203         in version GLIBC_2.1, not GLIBC_2.0.
3204         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S (nearbyintl):
3205         Likewise.
3206
3207 2012-04-30  Joseph Myers  <joseph@codesourcery.com>
3208
3209         [BZ #13942]
3210         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Calculate 1 - x^2 as
3211         (1 - x) * (1 + x).
3212         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
3213         * sysdeps/i386/fpu/e_asin.S (__ieee754_asin): Likewise.
3214         * math/libm-test.inc (acos_test): Add more tests.
3215         (asin_test): Likewise.
3216         * sysdeps/i386/fpu/libm-test-ulps: Update.
3217         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
3218
3219         [BZ #14034]
3220         * sysdeps/i386/fpu/e_acos.S (__ieee754_acos): Take absolute value
3221         of square root.
3222         * sysdeps/i386/fpu/e_acosf.S (__ieee754_acosf): Likewise.
3223         * sysdeps/i386/fpu/e_acosl.c (__ieee754_acosl): Likewise.
3224         * math/libm-test.inc (acos_test_tonearest): New function.
3225         (acos_test_towardzero): Likewise.
3226         (acos_test_downward): Likewise.
3227         (acos_test_upward): Likewise.
3228         (asin_test_tonearest): Likewise.
3229         (asin_test_towardzero): Likewise.
3230         (asin_test_downward): Likewise.
3231         (asin_test_upward): Likewise.
3232         (main): Call the new functions.
3233         * sysdeps/i386/fpu/libm-test-ulps: Update.
3234         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3235
3236         [BZ #13884]
3237         [BZ #13924]
3238         * math/e_exp10.c: Include <float.h>.
3239         (__ieee754_exp10): Handle underflow here rather than multiplying
3240         large negative argument by M_LN10.
3241         * math/e_exp10f.c (__ieee754_exp10f): Call __ieee754_exp instead
3242         of __ieee754_expf.
3243         * math/e_exp10l.c: Include <float.h>.
3244         (__ieee754_exp10l): Handle underflow here rather than multiplying
3245         large negative argument by M_LN10l.
3246         * math/libm-test.inc (exp10_test): Add another test.  Do not allow
3247         spurious overflow exception on underflow.
3248
3249 2012-04-29  Marek Polacek  <polacek@redhat.com>
3250
3251         * misc/sys/cdefs.h (__attribute_artificial__): New macro.
3252         (__fortify_function): New macro.
3253         (__extern_always_inline): Don't use __attribute__ ((__artificial__)).
3254         * libio/bits/stdio-ldbl.h: Use __fortify_function in place of
3255         __extern_always_inline.
3256         * libio/bits/stdio2.h: Likewise.
3257         * libio/bits/stdio.h: Likewise.
3258         * string/string.h: Likewise.
3259         * string/bits/string3.h: Likewise.
3260         * include/stdio.h: Likewise.
3261         * stdlib/bits/stdlib.h: Likewise.
3262         * stdlib/stdlib.h: Likewise.
3263         * rt/bits/mqueue2.h: Likewise.
3264         * rt/mqueue.h: Likewise.
3265         * posix/bits/unistd.h: Likewise.
3266         * posix/unistd.h: Likewise.
3267         * io/bits/poll2.h: Likewise.
3268         * io/bits/fcntl2.h: Likewise.
3269         * io/fcntl.h: Likewise.
3270         * io/sys/poll.h: Likewise.
3271         * misc/bits/syslog.h: Likewise.
3272         * misc/bits/syslog-ldbl.h: Likewise.
3273         * misc/sys/syslog.h: Likewise.
3274         * socket/bits/socket2.h: Likewise.
3275         * socket/sys/socket.h: Likewise.
3276         * debug/tst-chk1.c: Likewise.
3277         * wcsmbs/bits/wchar2.h: Likewise.
3278         * wcsmbs/bits/wchar-ldbl.h: Likewise.
3279         * wcsmbs/wchar.h: Likewise.
3280
3281 2012-04-29  Andreas Jaeger  <aj@suse.de>
3282
3283         * Makerules (tests): Remove enable-check-abi protection.
3284         (check-abi-warn): Remove.
3285         (check-abi-%): Remove check-abi-warn usage.
3286
3287         * configure.in: Remove check-abi configure option.
3288         * configure: Regenerated.
3289         * config.make.in (enable-check-abi): Remove.
3290
3291 2012-04-28  Andreas Schwab  <schwab@linux-m68k.org>
3292
3293         [BZ #14033]
3294         * math/bits/math-finite.h [__NO_LONG_DOUBLE_MATH]: Redirect long
3295         double functions to double *_finite functions.
3296
3297         [BZ #13941]
3298         * sysdeps/ieee754/ldbl-128ibm/ldbl2mpn.c
3299         (__mpn_extract_long_double): Use DBL_MIN_EXP instead of
3300         LDBL_MIN_EXP.
3301         * stdio-common/Makefile (tests): Add tst-sprintf3.
3302         * stdio-common/tst-sprintf3.c: New file.
3303
3304         * elf/Makefile ($(objpfx)tst-leaks1-mem, $(objpfx)noload-mem)
3305         ($(objpfx)tst-unused-dep.out): Don't run when cross-compiling.
3306
3307 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
3308
3309         * conform/conformtest.pl: Remove duplicate typed-constant
3310         handling.
3311
3312 2012-04-28  David S. Miller  <davem@davemloft.net>
3313
3314         * Makerules (%.abilist): Add vpath on sysdep_dirs.
3315         (check-abi-%): Remove AWK script prerequisite and explicit
3316         abilist directory.
3317         (check-abi): Rewrite to just diff the symlist with the abilist.
3318         (config-tls, config-abi-config): Delete, no longer used.
3319         (update-abi-%): Remove AWK script and explicit abilist directory.
3320         (update-abi): Rewrite to simply compare and conditionally copy the
3321         symlist and the sysdep abilist file.  Remove update-abi-config
3322         checks.
3323         * abilist/ld.abilist: Remove.
3324         * abilist/libBrokenLocale.abilist: Remove.
3325         * abilist/libanl.abilist: Remove.
3326         * abilist/libcrypt.abilist: Remove.
3327         * abilist/libdl.abilist: Remove.
3328         * abilist/librt.abilist: Remove.
3329         * abilist/libthread_db.abilist: Remove.
3330         * abilist/libutil.abilist: Remove.
3331         * scripts/extract-abilist.awk: Remove.
3332         * scripts/merge-abilist.awk: Remove.
3333         * sysdeps/generic/libcidn.abilist: New file.
3334         * sysdeps/generic/libnss_compat.abilist: New file.
3335         * sysdeps/generic/libnss_db.abilist: New file.
3336         * sysdeps/generic/libnss_dns.abilist: New file.
3337         * sysdeps/generic/libnss_files.abilist: New file.
3338         * sysdeps/generic/libnss_hesiod.abilist: New file.
3339         * sysdeps/generic/libnss_nis.abilist: New file.
3340         * sysdeps/generic/libnss_nisplus.abilist: New file.
3341         * sysdeps/unix/sysv/linux/i386/nptl/ld.abilist: New file.
3342         * sysdeps/unix/sysv/linux/i386/nptl/libanl.abilist: New file.
3343         * sysdeps/unix/sysv/linux/i386/nptl/libBrokenLocale.abilist: New
3344         file.
3345         * sysdeps/unix/sysv/linux/i386/nptl/libc.abilist: New file.
3346         * sysdeps/unix/sysv/linux/i386/nptl/libcrypt.abilist: New file.
3347         * sysdeps/unix/sysv/linux/i386/nptl/libdl.abilist: New file.
3348         * sysdeps/unix/sysv/linux/i386/nptl/libm.abilist: New file.
3349         * sysdeps/unix/sysv/linux/i386/nptl/libnsl.abilist: New file.
3350         * sysdeps/unix/sysv/linux/i386/nptl/libpthread.abilist: New file.
3351         * sysdeps/unix/sysv/linux/i386/nptl/libresolv.abilist: New file.
3352         * sysdeps/unix/sysv/linux/i386/nptl/librt.abilist: New file.
3353         * sysdeps/unix/sysv/linux/i386/nptl/libthread_db.abilist: New
3354         file.
3355         * sysdeps/unix/sysv/linux/i386/nptl/libutil.abilist: New file.
3356         * sysdeps/unix/sysv/linux/x86_64/nptl/ld.abilist: New file.
3357         * sysdeps/unix/sysv/linux/x86_64/nptl/libanl.abilist: New file.
3358         * sysdeps/unix/sysv/linux/x86_64/nptl/libBrokenLocale.abilist: New
3359         file.
3360         * sysdeps/unix/sysv/linux/x86_64/nptl/libc.abilist: New file.
3361         * sysdeps/unix/sysv/linux/x86_64/nptl/libcrypt.abilist: New file.
3362         * sysdeps/unix/sysv/linux/x86_64/nptl/libdl.abilist: New file.
3363         * sysdeps/unix/sysv/linux/x86_64/nptl/libm.abilist: New file.
3364         * sysdeps/unix/sysv/linux/x86_64/nptl/libnsl.abilist: New file.
3365         * sysdeps/unix/sysv/linux/x86_64/nptl/libpthread.abilist: New
3366         file.
3367         * sysdeps/unix/sysv/linux/x86_64/nptl/libresolv.abilist: New file.
3368         * sysdeps/unix/sysv/linux/x86_64/nptl/librt.abilist: New file.
3369         * sysdeps/unix/sysv/linux/x86_64/nptl/libthread_db.abilist: New
3370         file.
3371         * sysdeps/unix/sysv/linux/x86_64/nptl/libutil.abilist: New file.
3372         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/ld.abilist:
3373         New file.
3374         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libanl.abilist:
3375         New file.
3376         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libBrokenLocale.abilist:
3377         New file.
3378         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libc.abilist:
3379         New file.
3380         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libcrypt.abilist:
3381         New file.
3382         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libdl.abilist:
3383         New file.
3384         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libm.abilist:
3385         New file.
3386         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libnsl.abilist:
3387         New file.
3388         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libpthread.abilist:
3389         New file.
3390         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libresolv.abilist:
3391         New file.
3392         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/librt.abilist:
3393         New file.
3394         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libthread_db.abilist:
3395         New file.
3396         * sysdeps/unix/sysv/linux/powerpc/powercp32/fpu/nptl/libutil.abilist:
3397         New file.
3398         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/ld.abilist: New
3399         file.
3400         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libanl.abilist:
3401         New file.
3402         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libBrokenLocale.abilist:
3403         New file.
3404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libc.abilist: New
3405         file.
3406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libcrypt.abilist:
3407         New file.
3408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libdl.abilist:
3409         New file.
3410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libm.abilist: New
3411         file.
3412         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libnsl.abilist:
3413         New file.
3414         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libpthread.abilist:
3415         New file.
3416         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libresolv.abilist:
3417         New file.
3418         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/librt.abilist:
3419         New file.
3420         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libthread_db.abilist:
3421         New file.
3422         * sysdeps/unix/sysv/linux/powerpc/powerpc64/nptl/libutil.abilist:
3423         New file.
3424         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/ld.abilist: New file.
3425         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libanl.abilist: New
3426         file.
3427         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libBrokenLocale.abilist:
3428         New file.
3429         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libc.abilist: New
3430         file.
3431         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libcrypt.abilist: New
3432         file.
3433         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libdl.abilist: New
3434         file.
3435         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libm.abilist: New
3436         file.
3437         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libnsl.abilist: New
3438         file.
3439         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libpthread.abilist:
3440         New file.
3441         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libresolv.abilist: New
3442         file.
3443         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/librt.abilist: New
3444         file.
3445         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libthread_db.abilist:
3446         New file.
3447         * sysdeps/unix/sysv/linux/s390/s390-32/nptl/libutil.abilist: New
3448         file.
3449         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/ld.abilist: New file.
3450         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libanl.abilist: New
3451         file.
3452         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libBrokenLocale.abilist:
3453         New file.
3454         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libc.abilist: New
3455         file.
3456         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libcrypt.abilist: New
3457         file.
3458         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libdl.abilist: New
3459         file.
3460         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libm.abilist: New
3461         file.
3462         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libnsl.abilist: New
3463         file.
3464         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libpthread.abilist:
3465         New file.
3466         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libresolv.abilist: New
3467         file.
3468         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/librt.abilist: New
3469         file.
3470         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libthread_db.abilist:
3471         New file.
3472         * sysdeps/unix/sysv/linux/s390/s390-64/nptl/libutil.abilist: New
3473         file.
3474         * sysdeps/unix/sysv/linux/sh/nptl/ld.abilist: New file.
3475         * sysdeps/unix/sysv/linux/sh/nptl/libanl.abilist: New file.
3476         * sysdeps/unix/sysv/linux/sh/nptl/libBrokenLocale.abilist: New
3477         file.
3478         * sysdeps/unix/sysv/linux/sh/nptl/libc.abilist: New file.
3479         * sysdeps/unix/sysv/linux/sh/nptl/libcrypt.abilist: New file.
3480         * sysdeps/unix/sysv/linux/sh/nptl/libdl.abilist: New file.
3481         * sysdeps/unix/sysv/linux/sh/nptl/libm.abilist: New file.
3482         * sysdeps/unix/sysv/linux/sh/nptl/libnsl.abilist: New file.
3483         * sysdeps/unix/sysv/linux/sh/nptl/libpthread.abilist: New file.
3484         * sysdeps/unix/sysv/linux/sh/nptl/libresolv.abilist: New file.
3485         * sysdeps/unix/sysv/linux/sh/nptl/librt.abilist: New file.
3486         * sysdeps/unix/sysv/linux/sh/nptl/libthread_db.abilist: New file.
3487         * sysdeps/unix/sysv/linux/sh/nptl/libutil.abilist: New file.
3488         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/ld.abilist: New file.
3489         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libanl.abilist: New
3490         file.
3491         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libBrokenLocale.abilist:
3492         New file.
3493         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libc.abilist: New
3494         file.
3495         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libcrypt.abilist: New
3496         file.
3497         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libdl.abilist: New
3498         file.
3499         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libm.abilist: New
3500         file.
3501         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libnsl.abilist: New
3502         file.
3503         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libpthread.abilist:
3504         New file.
3505         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libresolv.abilist:
3506         New file.
3507         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/librt.abilist: New
3508         file.
3509         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libthread_db.abilist:
3510         New file.
3511         * sysdeps/unix/sysv/linux/sparc/sparc32/nptl/libutil.abilist: New
3512         file.
3513         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/ld.abilist: New file.
3514         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libanl.abilist: New
3515         file.
3516         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libBrokenLocale.abilist:
3517         New file.
3518         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libc.abilist: New
3519         file.
3520         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libcrypt.abilist: New
3521         file.
3522         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libdl.abilist: New
3523         file.
3524         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libm.abilist: New
3525         file.
3526         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libnsl.abilist: New
3527         file.
3528         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libpthread.abilist:
3529         New file.
3530         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libresolv.abilist:
3531         New file.
3532         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/librt.abilist: New
3533         file.
3534         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libthread_db.abilist:
3535         New file.
3536         * sysdeps/unix/sysv/linux/sparc/sparc64/nptl/libutil.abilist: New
3537         file.
3538
3539 2012-04-28  Joseph Myers  <joseph@codesourcery.com>
3540
3541         * conform/conformtest.pl: Fix typo in handling typed-constant from
3542         allow-header.
3543
3544 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
3545
3546         * README: Cut down references to pre-2.6 Linux kernels and
3547         Linuxthreads.  Update lists of configurations in libc and ports
3548         and sort alphabetically.  Say "or newer" with Linux kernel version
3549         requirements.
3550
3551         * config.h.in [IS_IN_build]: Allow compiling without optimization.
3552
3553 2012-04-27  Ryan S. Arnold  <rsa@linux.vnet.ibm.com>
3554
3555         [BZ #887]
3556         * math/libm-test.inc (logb_test_downward): New test to expose
3557         erroneous negative sign on -0.0 result of logb[l](1) in FE_DOWNWARD
3558         rounding mode.
3559
3560 2012-04-27  Joseph Myers  <joseph@codesourcery.com>
3561
3562         [BZ #14027]
3563         * math/fclrexcpt.c (__feclearexcept): Return zero if nothing needs
3564         to be done.
3565         * math/fraiseexcpt.c (__feraiseexcept): Likewise.
3566         * math/fsetexcptflg.c (__fesetexceptflag): Likewise.
3567
3568 2012-04-26  Joseph Myers  <joseph@codesourcery.com>
3569
3570         * sysdeps/unix/i386/brk.S: Remove file.
3571         * sysdeps/unix/i386/dl-brk.S: Likewise.
3572         * sysdeps/unix/i386/pipe.S: Likewise.
3573         * sysdeps/unix/i386/sigreturn.S: Likewise.
3574         * sysdeps/unix/i386/syscall.S: Likewise.
3575         * sysdeps/unix/i386/vfork.S: Likewise.
3576         * sysdeps/unix/i386/wait.S: Likewise.
3577
3578         * sysdeps/unix/common/tcsendbrk.c: Move to ...
3579         * sysdeps/unix/sysv/linux/tcsendbrk.c: ... here.
3580
3581         * configure.in (arm*-none*): Do not allow without
3582         --enable-hacker-mode.
3583         (netbsd*): Remove case setting base_os.
3584         (386bsd*): Likewise.
3585         (freebsd*): Likewise.
3586         (bsdi*): Likewise.
3587         (osf*): Likewise.
3588         (sunos*): Likewise.
3589         (ultrix*): Likewise.
3590         (newsos*): Likewise.
3591         (dynix*): Likewise.
3592         (*bsd*): Likewise.
3593         (sysv*): Likewise.
3594         (isc*): Likewise.
3595         (esix*): Likewise.
3596         (sco*): Likewise.
3597         (minix*): Likewise.
3598         (irix4*): Likewise.
3599         (irix6*): Likewise.
3600         (solaris[2-9]*): Likewise.
3601         (none): Likewise.
3602         * configure: Regenerated.
3603
3604 2012-04-26  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3605
3606         [BZ #11521]
3607         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c (__ctanhl): Avoid internal
3608         overflow or cancellation in calculating denominator.
3609         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c (__ctanl): Likewise.
3610         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c (__ieee754_sinhl): Breaking
3611         down expression to avoid unexpected rounding in newer GCCs.
3612         * sysdeps/powerpc/fpu/libm-test-ulps: Update for ctan, ctanh fix.
3613
3614 2012-04-26  David S. Miller  <davem@davemloft.net>
3615
3616         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Generate
3617         long-double compat symbols.
3618         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
3619         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
3620         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
3621         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: Likewise.
3622         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
3623         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Likewise.
3624         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: Likewise.
3625         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: Likewise.
3626         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: Likewise.
3627         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: Likewise.
3628         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: Likewise.
3629         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: Likewise.
3630         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
3631
3632 2012-04-25  David S. Miller  <davem@davemloft.net>
3633
3634         * sysdeps/sparc/sparc32/bits/atomic.h: Include sysdep.h to get
3635         HWCAP_* values only after the memory barriers have been defined.
3636         (atomic_full_barrier): Define.
3637         (atomic_read_barrier): Define.
3638         (atomic_write_barrier): Define.
3639
3640 2012-04-26  Siddhesh Poyarekar  <siddhesh@redhat.com>
3641
3642         * shlib-versions: Add libgcc_s version information.
3643         * sysdeps/generic/libgcc_s.h: Remove.
3644         * sysdeps/generic/framestate.c: Include gnu/lib-names.h instead of
3645         libgcc_s.h.
3646         * sysdeps/gnu/unwind-resume.c: Likewise.
3647         * scripts/test-installation.pl: Remove libgcc_s from link_libs.
3648
3649 2012-04-25  David S. Miller  <davem@davemloft.net>
3650
3651         * sysdeps/unix/sparc/brk.S: Delete.
3652         * sysdeps/unix/sparc/dl-brk.S: Delete.
3653         * sysdeps/unix/sparc/pipe.S: Delete.
3654         * sysdeps/unix/sparc/sysdep.S: Delete.
3655         * sysdeps/unix/sparc/sysdep.h: Delete.
3656         * sysdeps/unix/sparc/vfork.S: Delete.
3657         * sysdeps/sparc/sysdep.h (SPARC_PIC_THUNK, SPARC_PIC_REG,
3658         SPARC_PIC_REG_LEAF, ENTRY, END, LOC): Define.
3659         * sysdeps/unix/sysv/linux/sparc/sysdep.h (ret, ret_NOERRNO,
3660         ret_ERRVAL, r0, r1, MOVE): Define.
3661         (JUMPTARGET): Remove.
3662         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Don't include
3663         sysdeps/unix/sparc/sysdep.h
3664         (ENTRY, END): Remove.
3665         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
3666
3667 2012-04-25  Joseph Myers  <joseph@codesourcery.com>
3668
3669         * Makerules (native-compile): Use $(BUILD_LDFLAGS).
3670         (ALL_BUILD_CFLAGS): Use $(BUILD_CPPFLAGS) -D_GNU_SOURCE
3671         -DIS_IN_build.
3672
3673         * timezone/README: Update upstream location and email address for
3674         tzcode and tzdata.
3675         * timezone/zdump.c: Update from tzcode 2012b.
3676         * timezone/zic.c: Likewise.
3677
3678         * configure.in (libc_cv_as_needed): Remove test.
3679         * configure: Regenerated.
3680         * Makeconfig [$(have-as-needed) != yes] (as-needed): Remove
3681         conditional definition.
3682         [$(have-as-needed) != yes] (no-as-needed): Likewise.
3683         [$(have-as-needed) != yes] (libgcc_eh): Likewise.
3684         * config.make.in (have-as-needed): Remove variable.
3685
3686 2012-04-25  Siddhesh Poyarekar  <siddhesh@redhat.com>
3687             Paul Pluzhnikov  <ppluzhnikov@google.com>
3688
3689         * elf/dl-minimal.c (__strtoul_internal): Parse hexadecimal and octal
3690         strings correctly.
3691
3692 2012-04-25  Chung-Lin Tang  <cltang@codesourcery.com>
3693
3694         * sysdeps/sh/memcpy.S: Remove include of endian.h, change
3695         preprocessor endian tests to '#ifdef __BIG_ENDIAN__'.
3696         * sysdeps/sh/strlen.S: Likewise.
3697
3698 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3699
3700         * sysdeps/unix/fork.S: Remove file.
3701         * sysdeps/unix/i386/fork.S: Likewise.
3702         * sysdeps/unix/sparc/fork.S: Likewise.
3703
3704         * sysdeps/unix/system.c: Remove file.
3705         * sysdeps/unix/bsd/bsd4.4/system.c: Likewise.
3706
3707         * sysdeps/unix/getegid.S: Remove file.
3708         * sysdeps/unix/geteuid.S: Likewise.
3709
3710 2012-04-24  Roland McGrath  <roland@hack.frob.com>
3711
3712         * scripts/check-localplt.awk: New file.
3713         * elf/Makefile ($(objpfx)check-localplt.out): Use that script instead
3714         of diff.
3715         * scripts/data/localplt-generic.data: Add a comment.
3716
3717         * sysdeps/mach/hurd/symlink.c: Don't call __mach_port_deallocate on
3718         NODE when __dir_mkfile failed.
3719         * sysdeps/mach/hurd/symlinkat.c: Likewise.
3720         Reported by Ludovic Courtès <ludo@gnu.org>.
3721
3722 2012-04-24  Andreas Jaeger  <aj@suse.de>
3723
3724         * Makerules (common-clean): Also remove gen-as-const-headers
3725         files.
3726
3727 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3728
3729         * Makerules (native-compile): Do not change working directory for
3730         build.  Use $(OUTPUT_OPTION) in command.
3731         (ALL_BUILD_CFLAGS): Use $(common-objpfx) to find config.h.
3732
3733 2012-04-24  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3734
3735         [BZ #13886]
3736         * sysdeps/powerpc/powerpc64/fpu/s_floorl.S: Delete file. Use the
3737         sysdeps/ieee754/ldbl-128ibm/s_floorl.c version instead.
3738         * math/libm-test.inc (floor_test): Add more tests.
3739         * sysdeps/powerpc/fpu/libm-test-ulps: Update for pow tests.
3740
3741 2012-04-24  Joseph Myers  <joseph@codesourcery.com>
3742
3743         * sysdeps/unix/getdents.c: Remove file.
3744         * sysdeps/unix/sysv/getdents.c: Likewise.
3745         * sysdeps/unix/sysv/syscalls.list (s_getdents): Remove.
3746
3747         * sysdeps/unix/syscalls.list (madvise): Add syscall from
3748         sysdeps/unix/mman/syscalls.list.
3749         (mmap): Likewise.
3750         (mprotect): Likewise.
3751         (msync): Likewise.
3752         (munmap): Likewise.
3753         * sysdeps/unix/bsd/bsd4.4/Implies: Remove.
3754         * sysdeps/unix/mman/syscalls.list: Remove.
3755         * sysdeps/unix/sysv/linux/Implies: Don't include unix/mman.
3756
3757         * configure.in (libc_cv_libgcc_s_suffix): Remove test.
3758         (libc_cv_as_needed): Don't use $libc_cv_libgcc_s_suffix.
3759         * configure: Regenerated.
3760         * Makeconfig [$(have-as-needed) = yes] (libgcc_eh): Don't use
3761         $(libgcc_s_suffix).
3762         * config.make.in (libgcc_s_suffix): Remove variable.
3763
3764 2012-04-23  Joseph Myers  <joseph@codesourcery.com>
3765
3766         * sysdeps/unix/sysv/gethostname.c: Move to ...
3767         * sysdeps/posix/gethostname.c: ... here.
3768
3769         * sysdeps/unix/execve.S: Remove file.
3770
3771         * sysdeps/unix/_exit.S: Remove file.
3772
3773 2012-04-23  Andreas Jaeger  <aj@suse.de>
3774
3775         [BZ #13739]
3776         * manual/Makefile: Remove make dist support, there's no
3777         need for a stand-alone documentation tar ball.
3778         (TEXI2DVI): Define always, it's not in Makeconfig.
3779         (dist): Removed.
3780         (tar-it): Removed.
3781         (edition): Removed.
3782         (glibc-doc-$(edition).tar): Removed
3783         (%.Z): Removed.
3784         (%.gz): Removed.
3785         (%.uu): Removed.
3786         (ETAGS): Remove, it's in Makeconfig.
3787         (move-if-change): Remove, it's in Makeconfig.
3788
3789 2013-04-23  Paul Eggert  <eggert@cs.ucla.edu>
3790
3791         [BZ #13970]
3792         * stdlib/stdlib.h: Remove warn_unused_result attribute from strtol etc.
3793         (strtod, strtof, strtold, strtol, strtoul, strtoq)
3794         (strtouq, strtoll, strtoull, strtol_l, strtoul_l, strtoll_l, strtoull_l)
3795         (strtod_l, strtof_l, strtold_l): Remove __wur.
3796         It is not necessarily an error to ignore strtol's return value.
3797         One can reliably look at the stored endptr to decide whether
3798         the number had valid syntax.
3799
3800 2012-04-21  Andreas Jaeger  <aj@suse.de>
3801
3802         [BZ #13739]
3803         * sysdeps/s390/s390-64/Makefile (distribute): Remove variable.
3804
3805 2012-04-21  Joseph Myers  <joseph@codesourcery.com>
3806
3807         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.0): Add sysinfo.
3808         * sysdeps/unix/sysv/Versions: Remove file.
3809
3810 2012-04-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
3811
3812         [BZ #13927]
3813         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
3814
3815 2012-04-21  Nick Alcock  <nick.alcock@oracle.com>
3816
3817         [BZ #7064]
3818         * sysdeps/unix/sysv/linux/i386/syscalls.list: Omit explicit
3819         version from __vm86.
3820
3821 2012-04-20  Joseph Myers  <joseph@codesourcery.com>
3822
3823         * sysdeps/unix/common/lxstat.c: Remove file.
3824         * sysdeps/unix/common/syscalls.list (sys_lstat): Remove.
3825
3826         * sysdeps/unix/sysv/Makefile: Remove file.
3827
3828         * sysdeps/unix/sysv/direct.h: Remove file.
3829
3830         * sysdeps/unix/sysv/bits/dirent.h: Remove file.
3831         * sysdeps/unix/sysv/bits/fcntl.h: Likewise.
3832         * sysdeps/unix/sysv/bits/local_lim.h: Likewise.
3833         * sysdeps/unix/sysv/bits/signum.h: Likewise.
3834         * sysdeps/unix/sysv/bits/stat.h: Likewise.
3835         * sysdeps/unix/sysv/bits/utmp.h: Likewise.
3836         * sysdeps/unix/sysv/bits/utsname.h: Likewise.
3837
3838         * sysdeps/unix/sysv/setrlimit.c: Remove file.
3839
3840         * sysdeps/unix/xmknod.c: Remove file.
3841         * sysdeps/unix/syscalls.list (sys_mknod): Remove.
3842
3843         * sysdeps/unix/sysv/settimeofday.c: Remove file.
3844
3845         * sysdeps/unix/sysv/i386/time.S: Remove file.
3846
3847         * sysdeps/unix/fxstat.c: Remove file.
3848         * sysdeps/unix/xstat.c: Likewise.
3849         * sysdeps/unix/syscalls.list (sys_fstat, sys_stat): Remove.
3850
3851         * sysdeps/unix/sysv/sigaction.c: Remove file.
3852
3853         * sysdeps/unix/sysv/Makefile [termio.h not in sysdep_headers]
3854         (sysdep_headers): Remove variable.
3855         [termio.h not in sysdep_headers] (generated): Likewise.
3856         [termio.h not in sysdep_headers] ($(objpfx)termio.h): Remove rule.
3857         * sysdeps/unix/sysv/sysv_termio.h: Remove file.
3858         * sysdeps/unix/sysv/tcdrain.c: Likewise.
3859         * sysdeps/unix/sysv/tcflow.c: Likewise.
3860         * sysdeps/unix/sysv/tcflush.c: Likewise.
3861         * sysdeps/unix/sysv/tcgetattr.c: Likewise.
3862         * sysdeps/unix/sysv/tcgetpgrp.c: Likewise.
3863         * sysdeps/unix/sysv/tcsendbrk.c: Likewise.
3864         * sysdeps/unix/sysv/tcsetattr.c: Likewise.
3865         * sysdeps/unix/sysv/tcsetpgrp.c: Likewise.
3866
3867         * sysdeps/unix/siglist.c: Remove file.
3868
3869         * sysdeps/unix/getppid.S: Remove file.
3870
3871         * sysdeps/unix/mkdir.c: Remove file.
3872         * sysdeps/unix/rmdir.c: Likewise.
3873
3874 2012-04-19  Andreas Schwab  <schwab@linux-m68k.org>
3875
3876         * sysdeps/gnu/errlist-compat.awk (END): Correct computation of
3877         ERR_MAX value.
3878         * sysdeps/unix/sysv/linux/Versions (GLIBC_2.12): Adjust
3879         errlist-compat value.
3880
3881 2012-04-18  David S. Miller  <davem@davemloft.net>
3882
3883         * sysdeps/generic/memcopy.h (reg_char): Delete.
3884         * debug/strcat_chk.c: Use char, not reg_char.
3885         * debug/strcpy_chk.c: Likewise.
3886         * debug/strncat_chk.c: Likewise.
3887         * debug/strncpy_chk.c: Likewise.
3888         * string/memchr.c: Likewise.
3889         * string/memrchr.c: Likewise.
3890         * string/rawmemchr.c: Likewise.
3891         * string/strcat.c: Likewise.
3892         * string/strchr.c: Likewise.
3893         * string/strchrnul.c: Likewise.
3894         * string/strcmp.c: Likewise.
3895         * string/strcpy.c: Likewise.
3896         * string/strncat.c: Likewise.
3897         * string/strncmp.c: Likewise.
3898         * string/strncpy.c: Likewise.
3899
3900 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3901
3902         * sysdeps/powerpc/memmove.c: New file based on string/memmove.c where
3903         __builtin_memcopy is called when src and dest ranges are known to not
3904         overlap.
3905
3906 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3907
3908         * sysdeps/powerpc/powerpc64/power6/wordcopy.c
3909         (_wordcopy_fwd_dest_aligned): Replace switch with a parameterized
3910         fwd_align_merge macro call.
3911         (_wordcopy_bwd_dest_aligned): Replace switch with a parameterized
3912         bwd_align_merge macro call.
3913         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3914
3915 2012-04-18  Will Schmidt  <will_schmidt@vnet.ibm.com>
3916
3917         * sysdeps/powerpc/powerpc64/power6/wordcopy.c: Add fwd_align_merge and
3918         bwd_align_merge macros.
3919         (_wordcopy_fwd_dest_aligned): Use fwd_align_merge macro calls.
3920         (_wordcopy_bwd_dest_aligned): Use bwd_align_merge macro calls.
3921         * sysdeps/powerpc/powerpc32/power6/wordcopy.c: Likewise.
3922
3923 2012-04-18  David S. Miller  <davem@davemloft.net>
3924
3925         * sysdeps/sparc/sparc64/memcopy.h: Delete.
3926
3927 2012-04-18  Andreas Jaeger  <aj@suse.de>
3928
3929         [BZ# 6794]
3930         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Moved to ...
3931         * sysdeps/ieee754/ldbl-96/e_ilogbl.c: ... here.
3932         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3933
3934         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Moved to ...
3935         * sysdeps/ieee754/ldbl-128/e_ilogbl.c: ... here.
3936         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3937
3938         * sysdeps/ieee754/ldbl-64-128/s_ilogbl.c: Moved to ...
3939         * sysdeps/ieee754/ldbl-64-128/e_ilogbl.c: ... here.
3940         Adjust for changed ldbl-128 files.
3941
3942         * sysdeps/sparc/sparc64/soft-fp/s_ilogbl.c: Moved to ...
3943         * sysdeps/sparc/sparc64/soft-fp/e_ilogbl.c: ... here.
3944         Rename __ilogbl to __ieee754_ilogbl and remove weak_alias.
3945
3946 2012-04-17  David S. Miller  <davem@davemloft.net>
3947
3948         * sysdeps/sparc/sparc32/memcopy.h: Delete.
3949
3950 2012-04-17  Andreas Schwab  <schwab@linux-m68k.org>
3951
3952         * sysdeps/i386/fpu/e_ilogb.S: Remove __ilogb*_finite alias.
3953         * sysdeps/i386/fpu/e_ilogbf.S: Likewise.
3954         * sysdeps/i386/fpu/e_ilogbl.S: Likewise.
3955         * sysdeps/x86_64/fpu/e_ilogbl.S: Likewise.
3956         * sysdeps/ieee754/dbl-64/e_ilogb.c: Likewise.
3957         * sysdeps/ieee754/flt-32/e_ilogbf.c: Likewise.
3958
3959 2012-04-17  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
3960
3961         [BZ #6794]
3962         * math/Makefile: Add e_ilogb and w_ilogb, remove s_logb.
3963         * math/libm-test.inc: Add ilogb errno and exception tests.
3964         * math/w_ilogb.c: New file: ilogb wrapper.
3965         * math/w_ilogbf.c: New file: ilogbf wrapper.
3966         * math/w_ilogbl.c: New file: ilogbl wrapper.
3967         * sysdeps/generic/math_private.h: Add __ieee754_ilogb[l|f] prototypes.
3968         * sysdeps/i386/fpu/s_ilogb.S: Moved to ...
3969         * sysdeps/i386/fpu/e_ilogb.S: ... here. Also fixed a FE_DIVBYZERO
3970         exception being thrown with 0.0 as argument.
3971         * sysdeps/i386/fpu/s_ilogbf.S: Moved to ...
3972         * sysdeps/i386/fpu/e_ilogbf.S: ... here. Also fixed a FE_DIVBYZERO
3973         exception being thrown with 0.0 as argument.
3974         * sysdeps/i386/fpu/s_ilogbl.S: Moved to ...
3975         * sysdeps/i386/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3976         exception being thrown with 0.0 as argument.
3977         * sysdeps/x86_64/fpu/s_ilogbl.S: Moved to ...
3978         * sysdeps/x86_64/fpu/e_ilogbl.S: ... here. Also fixed a FE_DIVBYZERO
3979         exception being thrown with 0.0 as argument.
3980         * sysdeps/ieee754/dbl-64/s_ilogb.c: Moved to ...
3981         * sysdeps/ieee754/dbl-64/e_ilogb.c: ... here.
3982         * sysdeps/ieee754/flt-32/s_ilogbf.c: Moved to ...
3983         * sysdeps/ieee754/flt-32/e_ilogbf.c: ... here.
3984         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Moved to ...
3985         * sysdeps/ieee754/ldbl-128ibm/e_ilogbl.c: ... here.
3986         * sysdeps/ieee754/ldbl-opt/s_ilogb.c: Moved to ...
3987         * sysdeps/ieee754/ldbl-opt/w_ilogb.c: ... here.
3988         * sysdeps/ieee754/ldbl-opt/w_ilogbl.c: New file: ilogbl wrapper.
3989
3990 2012-04-17  Petr Baudis  <pasky@ucw.cz>
3991
3992         * include/sys/uio.h: Change __vector to __iovec to avoid clash
3993         with altivec.
3994
3995 2012-04-16  Marek Polacek  <polacek@redhat.com>
3996
3997         * elf/pldd-xx.c: Rename static_assert to pldd_assert.
3998
3999 2012-04-16  Marek Polacek  <polacek@redhat.com>
4000
4001         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Reverse the
4002         operands of fdivp instruction.
4003
4004 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
4005
4006         * elf/tst-auditmod1.c: Check __ILP32__ instead of __LP64__.
4007         * elf/tst-auditmod3b.c: Likewise.
4008         * elf/tst-auditmod4b.c: Likewise.
4009         * elf/tst-auditmod5b.c: Likewise.
4010         * elf/tst-auditmod6b.c: Likewise.
4011         * elf/tst-auditmod6c.c: Likewise.
4012         * elf/tst-auditmod7b.c: Likewise.
4013         * sysdeps/x86_64/ffsll.c (ffsl): Likewise.
4014         * sysdeps/x86_64/preconfigure.in: Likewise.
4015         * sysdeps/x86_64/preconfigure: Regenerated.
4016
4017 2012-04-13  H.J. Lu  <hongjiu.lu@intel.com>
4018
4019         * sysdeps/x86_64/bits/wordsize.h (__WORDSIZE): Also check
4020         __ILP32__.
4021
4022 2012-04-13  Antoine Balestrat <merkil33@gmail.com>
4023
4024         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
4025         (__get_clockfreq_via_proc_openprom): Fix test on wrong variable.
4026
4027 2012-04-13  Chris Leonard  <cjlhomeaddress@gmail.com>
4028
4029         [BZ #13973]
4030         * locale/iso-639.def: Fix gl language name. Spotted by
4031         Yaron Shahrabani.
4032
4033 2012-04-12  Roland McGrath  <roland@hack.frob.com>
4034
4035         [BZ #2074]
4036         * libio/libio.h (__io_write_fn): Update comment.
4037
4038 2012-04-12  Petr Baudis  <pasky@ucw.cz>
4039
4040         [BZ #2074]
4041         * stdio.texi (Hook Functions): The user provided writer function
4042         is not allowed to return -1.
4043
4044 2012-04-11  David S. Miller  <davem@davemloft.net>
4045
4046         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4047
4048 2012-04-11  Mike Frysinger  <vapier@gentoo.org>
4049
4050         * .gitignore: Add /ports, /linuxthreads, and /linuxthreads_db.
4051         Add a leading slash to rtkaio.
4052
4053 2012-04-11  Jim Meyering  <meyering@redhat.com>
4054
4055         [BZ #11959]
4056         * libio/stdio.h (fwrite, fwrite_unlocked): Remove __wur.
4057         It is not necessarily an error to ignore fwrite's return
4058         value.  One can reliably use ferror to test for errors after
4059         the fact.
4060
4061 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
4062
4063         * bits/types.h (__snseconds_t): New type.
4064         * time/time.h (struct timespec): Use __snseconds_t on tv_nsec.
4065
4066         * bits/typesizes.h (__SNSECONDS_T_TYPE): New macro.
4067         * sysdeps/unix/bsd/bsd4.4/freebsd/bits/typesizes.h
4068         (__SNSECONDS_T_TYPE): Likewise.
4069         * sysdeps/unix/sysv/linux/s390/bits/typesizes.h
4070         (__SNSECONDS_T_TYPE): Likewise.
4071         * sysdeps/unix/sysv/linux/sparc/bits/typesizes.h
4072         (__SNSECONDS_T_TYPE): Likewise.
4073
4074 2012-04-10  Andreas Jaeger  <aj@suse.de>
4075
4076         [BZ #2636]
4077         * manual/time.texi (Processor Time): Return type of times is
4078         elapsed real time since an arbitrary point in the past.
4079         (CPU Time): Move CLK_TCK from here...
4080         (Processor Time): ...to here.  Correct description.
4081         * manual/conf.texi (Constants for Sysconf): Correct description of
4082         _SC_CLK_TCK.
4083
4084 2012-04-10  David S. Miller  <davem@davemloft.net>
4085
4086         [BZ #13967]
4087         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Handle the case
4088         where the is a gap between DT_REL(A) and DT_JMPREL.
4089
4090 2012-04-10  H.J. Lu  <hongjiu.lu@intel.com>
4091
4092         * sysdeps/x86_64/bits/byteswap.h: Include <features.h>.
4093         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
4094         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
4095
4096 2012-04-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
4097
4098         * elf/dl-support.c (_dl_inhibit_cache): New variable.
4099         * elf/rtld.c (_rtld_global_ro): New member _dl_inhibit_cache.
4100         (dl_main): Handle --inhibit-cache.
4101         * sysdeps/generic/ldsodefs.h (struct rtld_global_ro): New member
4102         _dl_inhibit_cache.
4103         * elf/dl-load.c (_dl_map_object): Use it.
4104         * elf/Makefile: Define SYSCONFDIR when building rtld.c.
4105
4106 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
4107
4108         [BZ #13872]
4109         * sysdeps/i386/fpu/e_powl.S (p78): New object.
4110         (__ieee754_powl): Saturate large exponents rather than testing for
4111         overflow of y*log2(x).
4112         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
4113         * math/libm-test.inc (pow_test): Do not permit spurious overflow
4114         exceptions.
4115
4116         [BZ #11521]
4117         * math/s_ctan.c: Include <float.h>.
4118         (__ctan): Avoid internal overflow or cancellation in calculating
4119         denominator.
4120         * math/s_ctanf.c: Likewise.
4121         * math/s_ctanl.c: Likewise.
4122         * math/s_ctanh.c: Likewise.
4123         * math/s_ctanhf.c: Likewise.
4124         * math/s_ctanhl.c: Likewise.
4125         * math/libm-test.inc (ctan_test): Add more tests.
4126         (ctanh_test): Likewise.
4127         * sysdeps/i386/fpu/libm-test-ulps: Update.
4128         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4129
4130 2012-04-09  Andreas Jaeger  <aj@suse.de>
4131
4132         [BZ #6894]
4133         * manual/filesys.texi (Directory Entries): Mention that d_namlen
4134         is an optional BSD extension.
4135
4136         [BZ #10254]
4137         * manual/stdio.texi (Opening Streams): Document additional fopen
4138         parameters.
4139
4140 2012-04-09  Roland McGrath  <roland@hack.frob.com>
4141
4142         * sysdeps/i386/fpu/bits/mathinline.h (__sincos_code): Don't clobber
4143         %eax without telling the compiler.
4144
4145 2012-04-09  Carlos O'Donell  <carlos_odonell@mentor.com>
4146
4147         [BZ # 13963]
4148         * manual/install.texi: Use sourceware.org.
4149
4150 2012-04-09  Joseph Myers  <joseph@codesourcery.com>
4151
4152         [BZ #13873]
4153         * sysdeps/ieee754/dbl-64/e_pow.c (huge, tiny): New variables.
4154         (__ieee754_pow): Generate overflow and underflow using huge*huge
4155         and tiny*tiny rather than just returning constant infinity or zero
4156         for large exponents.
4157         * math/libm-test.inc (pow_test): Require overflow exceptions for
4158         applicable cases of large exponents.
4159
4160         [BZ #706]
4161         * sysdeps/i386/fpu/e_pow.S (p10): New object.
4162         (__ieee754_pow): Use iterative multiplication algorithm only for
4163         integer exponents with absolute value below 1024.  Check for odd
4164         integer exponents when using algorithm for real exponents.
4165         * math/libm-test.inc (pow_test): Add more tests.
4166         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
4167
4168 2012-04-08  Joseph Myers  <joseph@codesourcery.com>
4169
4170         [BZ #13705]
4171         * math/libm-test.inc (exp_test): Do not allow overflow exception
4172         on underflow test.
4173
4174 2012-04-08  Aurelien Jarno  <aurelien@aurel32.net>
4175
4176         [BZ #13705]
4177         * sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
4178         instead of __kernel_standard_f.
4179
4180 2012-04-08  Mike Frysinger  <vapier@gentoo.org>
4181
4182         * sysdeps/i386/i686/memset_chk.S: Update copyright year.
4183         * sysdeps/x86_64/memset_chk.S: Likewise.
4184
4185 2012-04-08  Andreas Jaeger  <aj@suse.de>
4186
4187         [BZ #10153]
4188         * manual/startup.texi (Environment Access): Describe return value
4189         for putenv and setenv.
4190
4191         [BZ #6895]
4192         * manual/filesys.texi (Directory Entries): Add description for
4193         DT_LNK.
4194
4195         [BZ #6890]
4196         * manual/filesys.texi (Directory Entries): Clarify that it's file
4197         system not operating system in the description of DT_UNKNOWN.
4198
4199         [BZ #6578]
4200         * manual/syslog.texi (closelog): Fix reference, it's openlog.
4201
4202 2012-04-08  Stephen Compall  <s11@member.fsf.org>
4203
4204         [BZ #6649]
4205         * manual/llio.texi (Opening and Closing Files): Add cross
4206         reference to explain mode argument.
4207
4208 2012-04-07  Mike Frysinger  <vapier@gentoo.org>
4209
4210         * sysdeps/i386/i686/memset_chk.S: Change PIC to SHARED.
4211         * sysdeps/x86_64/memset_chk.S: Likewise.
4212
4213 2012-04-07  David S. Miller  <davem@davemloft.net>
4214
4215         * elf/elf.h (R_SPARC_WDISP10): Define.
4216         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Handle
4217         R_SPARC_SIZE32.
4218         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Handle
4219         R_SPARC_SIZE64 and R_SPARC_H34.
4220
4221 2012-04-07  Carlos O'Donell  <carlos_odonell@mentor.com>
4222
4223         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Simplify
4224         conditions and remove no longer applicable assertion.
4225
4226 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
4227
4228         * bits/byteswap.h: Include <features.h>.
4229         (__bswap_32): Use __builtin_bswap32 for GCC >= 4.2.
4230         (__bswap_64): Use __builtin_bswap64 for GCC >= 4.2.
4231
4232 2012-04-06  H.J. Lu  <hongjiu.lu@intel.com>
4233
4234         * bits/byteswap.h (__bswap_16): Removed.
4235         Include <bits/byteswap-16.h> to get __bswap_16.
4236         * sysdeps/i386/bits/byteswap.h: Likewise.
4237         * sysdeps/s390/bits/byteswap.h: Likewise.
4238         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4239         * bits/byteswap-16.h: New file.
4240         * sysdeps/i386/bits/byteswap-16.h: Likewise.
4241         * sysdeps/s390/bits/byteswap-16.h: Likewise.
4242         * sysdeps/x86_64/bits/byteswap-16.h: Likewise.
4243         * string/Makefile (headers): Add bits/byteswap-16.h.
4244
4245 2012-04-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
4246
4247         [BZ #13895]
4248         * nss/nsswitch.c (nss_load_library, __nss_lookup_function): Avoid
4249         extra indirection.
4250         * nss/Makefile (tests-static, tests): Add tst-nss-static.
4251         * nss/tst-nss-static.c: New.
4252
4253 2012-04-06  Robert Millan  <rmh@gnu.org>
4254
4255         [BZ #6486]
4256         * manual/llio.texi (File Position Primitive): lseek
4257         refers to WHENCE when it really means OFFSET.
4258
4259 2012-04-06  Andreas Jaeger  <aj@suse.de>
4260
4261         * nss/nss_db/db-initgroups.c: Include <string.h> for strlen and
4262         strncmp declarations.
4263
4264         * abilist/libc.abilist: Add __poll and __ppoll.
4265
4266 2012-04-05  David S. Miller  <davem@davemloft.net>
4267
4268         * scripts/check-local-headers.sh: Accept a host triplet in the
4269         path matched by the exclude regexp.
4270
4271         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Reduce down to one
4272         definition.
4273         * sysdeps/powerpc/powerpc32/dl-machine.h
4274         (ELF_MACHINE_PLTREL_OVERLAP): Delete.
4275         * sysdeps/s390/s390-32/dl-machine.h
4276         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
4277         * sysdeps/sparc/sparc32/dl-machine.h
4278         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
4279         * sysdeps/sparc/sparc64/dl-machine.h
4280         (ELF_MACHINE_PLTREL_OVERLAP): Likewise.
4281
4282         * elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off
4283         lazy binding.
4284         * elf/dl-lookup.c (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore
4285         undefined symbol errors.
4286
4287         * elf/rtld.c (dl_main): Skip VDSO when checking for unused
4288         DT_NEEDED entries.
4289
4290 2012-04-05  Michael Matz  <matz@suse.de>
4291
4292         [BZ #13592]
4293         * sysdeps/x86_64/memset.S: Fix size paramater comparisions.
4294
4295 2012-04-05  Andreas Jaeger  <aj@suse.de>
4296
4297         [BZ #13908]
4298         * stdlib/stdlib.h: Don't warn about unused result of mktemp, fix
4299         comment.
4300
4301 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4302
4303         * sysdeps/sh/sh4/fpu/fesetround.c (fesetround): Fix return value
4304         which ROUND is no valid rounding mode.
4305
4306 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4307
4308         * sysdeps/sh/sh4/fpu/fegetenv.c (fegetenv): Set fpscr register which
4309         read again.
4310         * sysdeps/sh/sh4/fpu/ftestexcept.c: Likewise.
4311
4312 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4313
4314         * sysdeps/sh/sh4/fpu/fraiseexcpt.c (feraiseexcept): Produce
4315         an exception using FPU order intentionally.
4316
4317 2012-04-05  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
4318
4319         * sysdeps/sh/sh4/fpu/fedisblxcpt.c: New file.
4320         * sysdeps/sh/sh4/fpu/feenablxcpt.c: New file.
4321         * sysdeps/sh/sh4/fpu/fegetexcept.c: New file.
4322         * sysdeps/sh/sh4/fpu/feupdateenv.c: New file.
4323
4324 2012-04-05  Simon Josefsson  <simon@josefsson.org>
4325
4326         [BZ #12340]
4327         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Return ERANGE instead of
4328         EINVAL when BUFLEN is too smal.
4329
4330 2012-04-05  Thomas Schwinge  <thomas@codesourcery.com>
4331
4332         [BZ #13553]
4333         * sysdeps/mach/i386/machine-lock.h: Use volatile instead of __volatile.
4334         * sysdeps/mach/powerpc/machine-lock.h: Likewise.
4335
4336 2012-04-03  Andreas Jaeger  <aj@suse.de>
4337
4338         [BZ #13938]
4339         * manual/setjmp.texi (System V contexts): Fix sentence.
4340
4341         [BZ #13926]
4342         * sysdeps/i386/bits/byteswap.h [!__GNUC__](__bswap_constant_64):
4343         New macro for this case.
4344         [!__GNUC__] (__bswap_64): New inline function for this case.
4345         * sysdeps/x86_64/bits/byteswap.h: Likewise.
4346         * bits/byteswap.h: Likewise.
4347         * sysdeps/s390/bits/byteswap.h: [!__GNUC__] (__bswap_64): Use
4348         ull, guard with __GLIBC_HAVE_LONG_LONG.
4349
4350         * string/endian.h (htobe64,htole64,be64toh,le64toh): Guard with
4351         __GLIBC_HAVE_LONG_LONG.
4352
4353         * string/byteswap.h (bswap_64): Guard with __GLIBC_HAVE_LONG_LONG.
4354         Include <features.h> for __GLIBC_HAVE_LONG_LONG.
4355
4356 2012-04-02 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
4357
4358         [BZ #13691]
4359         * iconvdata/tcvn5712-1.c (FROM_LOOP): Test end of input using
4360         inptr and inend, rather than using last_ch.
4361
4362 2012-04-02  David S. Miller  <davem@davemloft.net>
4363
4364         With help from Paul Eggert, Carlos O'Donell, and Roland McGrath.
4365         * stdio-common/printf-parse.h (read_int): Change return type to
4366         'int', return -1 on INT_MAX overflow.
4367         * stdio-common/vfprintf.c (vfprintf): Validate width and precision
4368         against overflow of INT_MAX.  Set errno to EOVERFLOW when 'done'
4369         overflows INT_MAX.  Check for overflow of in-format-string precision
4370         values properly.  Use EOVERFLOW rather than ERANGE throughout.  Use
4371         SIZE_MAX not INT_MAX for integer overflow test.
4372         * stdio-common/printf-parsemb.c: If read_int signals an overflow,
4373         skip the construct in the format string but do not record anything.
4374         * stdio-common/bug22.c: Adjust to test both width/prevision
4375         INT_MAX overflow as well as total length INT_MAX overflow.  Check
4376         explicitly for proper errno values.
4377
4378 2012-04-02  Thomas Schwinge  <thomas@codesourcery.com>
4379
4380         * string/test-memcmp.c [! WIDE]: #include <limits.h> for CHAR_MIN,
4381         CHAR_MAX.
4382         * string/test-strcmp.c [! WIDE]: Likewise.
4383         * time/tst-mktime2.c: Likewise for INT_MAX.
4384         * string/test-string.h: #include <sys/param.h> for MIN.
4385
4386         * csu/init-first.c (__libc_init_first): Call __ctype_init.
4387         * sysdeps/i386/init-first.c (init): Likewise.
4388         * sysdeps/mach/hurd/i386/init-first.c (posixland_init): Likewise.
4389         * sysdeps/mach/hurd/powerpc/init-first.c (posixland_init): Likewise.
4390         * sysdeps/sh/init-first.c (init): Likewise.
4391
4392 2012-04-01  Ulrich Drepper  <drepper@gmail.com>
4393
4394         * po/ru.po: Update from translation team.
4395         * po/vi.po: Likewise.
4396
4397 2012-03-31  Siddhesh Poyarekar  <siddhesh@redhat.com>
4398
4399         * resolv/nss_dns/dns-host.c: Merge copyright years.
4400
4401 2012-03-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
4402
4403         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
4404         Optimize memcpy with prefetch if
4405         DATA_CACHE_SIZE_HALF <= len <  SHARED_CACHE_SIZE_HALF and
4406         src, dst pointers have unequal 16 byte alignments.
4407
4408 2012-03-30  Siddhesh Poyarekar  <siddhesh@redhat.com>
4409
4410         [BZ #13928]
4411         * resolv/nss_dns/dns-host.c (getanswer_r): Also consider ttl
4412         from a CNAME entry and return the minimum ttl for the query.
4413         (gaih_getanswer_slice): Likewise.
4414
4415 2012-03-30  Jeff Law  <law@redhat.com>
4416
4417         * crypt/md5-crypt.c (__md5_crypt_r): Avoid unbounded alloca uses
4418         due to long keys.
4419         * crypt/sha256-crypt.c (__sha256_crypt_r): Likewise.
4420         * crypt/sha512-crypt.c (__sha512_crypt_r): Likewise.
4421
4422         * resolv/nss_dns/dns-host.c: Update copyright year.
4423
4424 2012-03-30  Ulrich Drepper  <drepper@gmail.com>
4425
4426         * resolv/res_send.c (send_dg): Use sendmmsg if we have to write two
4427         requests to save a system call.  Fix check that all bytes are sent.
4428
4429         * sysdeps/unix/sysv/linux/bits/socket.h (struct mmsghdr): Fix up
4430         comments for sendmmsg.
4431
4432 2012-03-30  Tulio Magno Quites Machado Filho  <tuliom@linux.vnet.ibm.com>
4433
4434         [BZ #13691]
4435         * iconvdata/tcvn5712-1.c (FROM_LOOP): Fix a bug when converting strings
4436         with only 1 character between 0x0041 and 0x01b0.
4437         * wcsmbs/Makefile (tests): Add tst-mbsnrtowcs.
4438         * wcsmbs/tst-mbsnrtowcs.c: New file.
4439
4440 2012-03-29  David S. Miller  <davem@davemloft.net>
4441
4442         * libio/fileops.c (_IO_new_file_xsputn): Don't try to optimize
4443         small copies by hand.
4444
4445 2012-03-28  Siddhesh Poyarekar  <siddhesh@redhat.com>
4446
4447         [BZ #13761]
4448         * nis/nss_compat/compat-initgroups.c (getgrent_next_nss,
4449         _nss_compat_initgroups_dyn): Fall back to malloc/free
4450         for large group memberships.
4451
4452 2012-03-28  David S. Miller  <davem@davemloft.net>
4453
4454         * sysdeps/sparc/sparc32/memcpy.S: Implement mempcpy using a stub
4455         that branches into memcpy.
4456         * sysdeps/sparc/sparc64/memcpy.S: Likewise.
4457         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara1.S: Likewise.
4458         * sysdeps/sparc/sparc64/multiarch/memcpy-niagara2.S: Likewise.
4459         * sysdeps/sparc/sparc64/multiarch/memcpy-ultra3.S: Likewise.
4460         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Add mempcpy multiarch
4461         bits.
4462         * sysdeps/sparc/sparc64/rtld-memcpy.c: Include generic mempcpy
4463         implementation too.
4464         * sysdeps/sparc/mempcpy.S: New file.
4465
4466         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Provide a hidden def to
4467         the IFUNC routine in the libc case.
4468         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
4469
4470         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memset.c: New file.
4471         * sysdeps/sparc/sparc32/sparcv9/multiarch/rtld-memcpy.c: New file.
4472         * sysdeps/sparc/sparc32/sparcv9/rtld-memset.c: New file.
4473         * sysdeps/sparc/sparc32/sparcv9/rtld-memcpy.c: New file.
4474         * sysdeps/sparc/sparc64/multiarch/rtld-memset.c: New file.
4475         * sysdeps/sparc/sparc64/multiarch/rtld-memcpy.c: New file.
4476         * sysdeps/sparc/sparc64/rtld-memset.c: New file.
4477         * sysdeps/sparc/sparc64/rtld-memcpy.c: New file.
4478
4479         * sysdeps/sparc/sparc64/multiarch/memset-niagara1.S: Unroll main
4480         loop to 256 bytes instead of 64 bytes and fix test signedness.
4481
4482         * sysdeps/sparc/Makefile: Add -fPIC to ASFLAGS-.os here....
4483         * sysdeps/sparc/sparc32/Makefile: rather than here...
4484         * sysdeps/sparc/sparc64/Makefile: and here.
4485
4486 2012-03-28  Ulrich Drepper  <drepper@gmail.com>
4487
4488         * malloc/mallocbug.c: Avoid warnings about unused variables.
4489
4490 2012-02-22  Siddhesh Poyarekar  <siddhesh@redhat.com>
4491
4492         [BZ #13760]
4493         * resolv/nss_dns/dns-host.c (gaih_getanswer): Look for errno
4494         in the right place. Discard and retry query if response is
4495         larger than input buffer size.
4496
4497 2012-03-28  Joseph Myers  <joseph@codesourcery.com>
4498
4499         [BZ #369]
4500         [BZ #2678]
4501         [BZ #3866]
4502         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Take absolute value of
4503         x for large integer exponent.
4504         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Likewise.
4505         * sysdeps/i386/fpu/e_powl.S (__ieee754_powl): Likewise.  Adjust
4506         sign of result as needed afterwards.
4507         * sysdeps/x86_64/fpu/e_powl.S (__ieee754_powl): Likewise.
4508         * sysdeps/ieee754/k_standard.c (__kernel_standard): Handle sign of
4509         result for underflowing pow the same as for overflow.
4510         (__kernel_standard_l): Handle powl overflow and underflow here
4511         rather than calling __kernel_standard.
4512         * math/libm-test.inc (pow_test): Add more tests.
4513
4514         [BZ #3868]
4515         [BZ #13879]
4516         [BZ #13910]
4517         [BZ #13911]
4518         [BZ #13912]
4519         [BZ #13913]
4520         [BZ #13915]
4521         [BZ #13916]
4522         [BZ #13917]
4523         [BZ #13918]
4524         [BZ #13919]
4525         [BZ #13920]
4526         [BZ #13921]
4527         * sysdeps/generic/math_private.h (__kernel_standard_l): Declare.
4528         * sysdeps/ieee754/k_standard.c: Include <float.h>.
4529         (__kernel_standard_l): New function.
4530         * math/w_acoshl.c (__acoshl): Use __kernel_standard_l instead of
4531         __kernel_standard.
4532         * math/w_acosl.c (__acosl): Likewise.
4533         * math/w_asinl.c (__asinl): Likewise.
4534         * math/w_atan2l.c (__atan2l): Likewise.
4535         * math/w_atanhl.c (__atanhl): Likewise.
4536         * math/w_coshl.c (__coshl): Likewise.
4537         * math/w_exp10l.c (__exp10l): Likewise.
4538         * math/w_exp2l.c (__exp2l): Likewise.
4539         * math/w_fmodl.c (__fmodl): Likewise.
4540         * math/w_hypotl.c (__hypotl): Likewise.
4541         * math/w_j0l.c (__j0l, __y0l): Likewise.
4542         * math/w_j1l.c (__j1l, __y1l): Likewise.
4543         * math/w_jnl.c (__jnl, __ynl): Likewise.
4544         * math/w_lgammal.c (__lgammal): Likewise.
4545         * math/w_log10l.c (__log10l): Likewise.
4546         * math/w_log2l.c (__log2l): Likewise.
4547         * math/w_logl.c (__logl): Likewise.
4548         * math/w_powl.c (__powl): Likewise.
4549         * math/w_remainderl.c (__remainderl): Likewise.
4550         * math/w_scalbl.c (sysv_scalbl): Likewise.
4551         * math/w_sinhl.c (__sinhl): Likewise.
4552         * math/w_sqrtl.c (__sqrtl): Likewise.
4553         * math/w_tgammal.c (__tgammal): Likewise.
4554         * sysdeps/ieee754/ldbl-128/w_expl.c (__expl): Likewise.
4555         * sysdeps/ieee754/ldbl-96/w_expl.c (__expl): Likewise.
4556         * math/libm-test.inc (acos_test): Add more tests.
4557         (acosh_test): Likewise.
4558         (asin_test): Likewise.
4559         (atanh_test): Likewise.
4560         (exp_test): Likewise.
4561         (exp10_test): Likewise.
4562         (exp2_test): Likewise.
4563         (expm1_test): Likewise.
4564         (lgamma_test): Likewise.
4565         (log_test): Likewise.
4566         (log10_test): Likewise.
4567         (log1p_test): Likewise.
4568         (log2_test): Likewise.
4569         (pow_test): Do not allow some spurious overflow exceptions.
4570         (sqrt_test): Add more tests.
4571         (tgamma_test): Likewise.
4572         (y0_test): Likewise.
4573         (y1_test): Likewise.
4574         (yn_test): Likewise.
4575
4576 2012-03-27  Anton Blanchard  <anton@samba.org>
4577
4578         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Define MAP_STACK and
4579         MAP_HUGETLB.
4580         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
4581         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
4582         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
4583
4584 2012-03-27  David S. Miller  <davem@davemloft.net>
4585
4586         * conform/Makefile: Run run-conformtest.sh using $(BASH).
4587
4588         * sysdeps/sparc/sparc64/Makefile (ASFLAGS-.os): Move before
4589         have-as-vis3 check.
4590
4591 2012-03-27  Andreas Jaeger  <aj@suse.de>
4592
4593         * sysdeps/x86_64/elf/configure.in: Moved to ...
4594         * sysdeps/x86_64/configure.in: ... here.
4595         * sysdeps/x86_64/elf/start.S: Moved to ...
4596         * sysdeps/x86_64/start.S: ... here.
4597         * sysdeps/x86_64/elf/configure: Delete.
4598
4599         * sysdeps/x86_64/configure.in: Merge contents from
4600         sysdeps/i386/configure.in (without i686 check).
4601
4602         * sysdeps/i386/elf/Versions: Merge into ...
4603         * sysdeps/i386/Versions: ... this.
4604         * sysdeps/i386/elf/Versions: Delete file.
4605         * sysdeps/i386/elf/start.S: Moved to ...
4606         * sysdeps/i386/start.S: ...here.
4607         * sysdeps/i386/elf/configure.in: Merge into...
4608         * sysdeps/i386/configure.in: ...here.
4609         * sysdeps/i386/elf/configure.in: Delete file.
4610         * sysdeps/i386/elf/configure: Delete file.
4611
4612         * sysdeps/generic/elf/backtracesyms.c: Moved to ...
4613         * debug/backtracesyms.c: ... here.
4614         * sysdeps/generic/elf/backtracesymsfd.c: Moved to ...
4615         * debug/backtracesymsfd.c: ... here.
4616         * sysdeps/generic/elf/ifunc-sel.h: Moved to ...
4617         * sysdeps/generic/ifunc-sel.h: ... here.
4618
4619         * sysdeps/unix/i386/start.c: Delete file.
4620         * sysdeps/unix/sparc/start.c: Delete file.
4621         * sysdeps/unix/start.c: Delete file.
4622
4623         * sysdeps/sh/elf/configure.in: Moved to ...
4624         * sysdeps/sh/configure.in: ... here.
4625         * sysdeps/sh/elf/start.S: Moved to ...
4626         * sysdeps/sh/start.S: ... here.
4627         * sysdeps/sh/elf/configure: Delete file.
4628
4629         * sysdeps/powerpc/powerpc64/elf/bzero.S: Moved to ...
4630         * sysdeps/powerpc/powerpc64/bzero.S: ... here.
4631         * sysdeps/powerpc/powerpc64/elf/entry.h: Moved to ...
4632         * sysdeps/powerpc/powerpc64/entry.h: ... here.
4633         * sysdeps/powerpc/powerpc64/elf/start.S: Moved to ...
4634         * sysdeps/powerpc/powerpc64/start.S: here.
4635         * sysdeps/powerpc/powerpc64/elf/Makefile: Merge into ...
4636         * sysdeps/powerpc/powerpc64/Makefile: ... this.
4637         * sysdeps/powerpc/powerpc64/elf/configure.in: Merge into ...
4638         * sysdeps/powerpc/powerpc64/configure.in: ... this.
4639         * sysdeps/powerpc/powerpc64/elf/configure: Delete file.
4640
4641         * sysdeps/powerpc/powerpc32/elf/bzero.S: Moved to ...
4642         * sysdeps/powerpc/powerpc32/bzero.S: ... here.
4643         * sysdeps/powerpc/powerpc32/elf/start.S: Moved to ...
4644         * sysdeps/powerpc/powerpc32/start.S: ... here.
4645         * sysdeps/powerpc/powerpc32/elf/configure.in: Merge into ...
4646         * sysdeps/powerpc/powerpc32/configure.in: ... this.
4647         * sysdeps/powerpc/powerpc32/elf/configure: Delete file.
4648
4649         * sysdeps/powerpc/elf/ifunc-sel.h: Moved to ...
4650         * sysdeps/powerpc/ifunc-sel.h: ... here.
4651         * sysdeps/powerpc/elf/rtld-global-offsets.sym: Moved to ...
4652         * sysdeps/powerpc/rtld-global-offsets.sym: ... here.
4653
4654         * sysdeps/sparc/elf/configure.in: Moved to ...
4655         * sysdeps/sparc/configure.in: ... here.
4656         * sysdeps/sparc/elf/configure: Delete file.
4657         * sysdeps/sparc/sparc32/elf/start.S: Moved to ...
4658         * sysdeps/sparc/sparc32/start.S: ... here.
4659         * sysdeps/sparc/sparc64/elf/start.S: Moved to ...
4660         * sysdeps/sparc/sparc64/start.S: ... here.
4661         * sysdeps/sparc/sparc32/elf/Makefile: Merged into ...
4662         * sysdeps/sparc/sparc32/Makefile: ... this.
4663         * sysdeps/sparc/sparc64/elf/Makefile: Merged into ...
4664         * sysdeps/sparc/sparc64/Makefile: ... this.
4665
4666         * sysdeps/s390/s390-32/elf/bsd-_setjmp.S: Moved to ...
4667         * sysdeps/s390/s390-32/bsd-_setjmp.S: ... here.
4668         * sysdeps/s390/s390-32/elf/bsd-setjmp.S: Moved to ...
4669         * sysdeps/s390/s390-32/bsd-setjmp.S: ... here.
4670         * sysdeps/s390/s390-32/elf/setjmp.S: Moved to ...
4671         * sysdeps/s390/s390-32/setjmp.S: ... here.
4672         * sysdeps/s390/s390-32/elf/configure.in: Moved to ...
4673         * sysdeps/s390/s390-32/configure.in: ... here.
4674         * sysdeps/s390/s390-32/elf/configure: Delete file.
4675         * sysdeps/s390/s390-32/elf/start.S: Moved to ...
4676         * sysdeps/s390/s390-32/start.S: ... here.
4677
4678         * sysdeps/s390/s390-64/elf/bsd-_setjmp.S: Moved to ...
4679         * sysdeps/s390/s390-64/bsd-_setjmp.S: ... here.
4680         * sysdeps/s390/s390-64/elf/bsd-setjmp.S: Moved to ...
4681         * sysdeps/s390/s390-64/bsd-setjmp.S: ... here.
4682         * sysdeps/s390/s390-64/elf/setjmp.S: Moved to ...
4683         * sysdeps/s390/s390-64/setjmp.S: ... here.
4684         * sysdeps/s390/s390-64/elf/configure.in: Moved to ...
4685         * sysdeps/s390/s390-64/configure.in: ... here
4686         * sysdeps/s390/s390-64/elf/configure: Delete file.
4687         * sysdeps/s390/s390-64/elf/start.S: Moved to ...
4688         * sysdeps/s390/s390-64/start.S: ... here.
4689         * sysdeps/s390/s390-64/elf/configure: Delete.
4690
4691         * configure.in: Remove support for elf directories in sysdeps.
4692
4693         * configure: Regenerated.
4694         * sysdeps/i386/configure: Regenerated.
4695         * sysdeps/powerpc/powerpc32/configure: Regenerated.
4696         * sysdeps/powerpc/powerpc64/configure: Regenerated.
4697         * sysdeps/s390/s390-32/configure: Regenerated.
4698         * sysdeps/s390/s390-64/configure: Regenerated.
4699         * sysdeps/sh/configure: Regenerated.
4700         * sysdeps/sparc/configure: Regenerated.
4701         * sysdeps/x86_64/configure: Regenerated.
4702
4703 2012-03-26  Andreas Schwab  <schwab@linux-m68k.org>
4704
4705         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4706
4707         * sysdeps/ieee754/ldbl-128ibm/e_expl.c (lomark): Adjust to take
4708         denormal result into account.
4709
4710 2012-03-25  Roland McGrath  <roland@hack.frob.com>
4711
4712         * posix/confstr.c (confstr): Lift RESTENVS definition to function scope.
4713         Reported by Allan McRae <allan@archlinux.org>.
4714
4715 2012-03-23  Jeff Law  <law@redhat.com>
4716
4717         * nss/getnssent.c (__nss_getent): Fix typo.
4718
4719 2012-03-23  David S. Miller  <davem@davemloft.net>
4720
4721         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4722
4723 2012-03-23  H.J. Lu  <hongjiu.lu@intel.com>
4724
4725         * sysdeps/x86_64/dl-tlsdesc.h (tlsdesc): Use anonymous union
4726         to pad to uint64_t for each field.
4727         (dl_tls_index): Replace unsigned long with uint64_t.
4728
4729 2012-03-23  Daniel Jacobowitz  <dmj@google.com>
4730         Paul Pluzhnikov  <ppluzhnikov@google.com>
4731
4732         [BZ #6528]
4733         * grp/Makefile (otherlibs): Don't set it.
4734         * inet/Makefile (otherlibs): Likewise.
4735         * login/Makefile (otherlibs): Likewise.
4736         * nscd/Makefile (otherlibs): Likewise.
4737         * posix/Makefile (otherlibs): Likewise.
4738         * pwd/Makefile (otherlibs): Likewise.
4739         * rt/Makefile (otherlibs): Likewise.
4740         * sunrpc/Makefile (otherlibs): Likewise.
4741         * nss/Makefile (otherlibs): Likewise.
4742         Add libnss_files to routines and static-only-routines.
4743         ($(objpfx)getent): Remove rule.
4744         * resolv/Makefile: Add libnss_dns and libresolv to routines and
4745         static-only-routines.
4746
4747 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
4748
4749         [BZ #13892]
4750         * math/s_cexp.c: Include <float.h>.
4751         (__cexp): Handle exp result overflowing not necessarily
4752         overflowing both real and imaginary parts of result.
4753         * math/s_cexpf.c: Likewise.
4754         * math/s_cexpl.c: Likewise.
4755         * math/libm-test.inc (cexp_test): Add more tests.
4756         * sysdeps/i386/fpu/libm-test-ulps: Update.
4757         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4758
4759 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4760
4761         * include/link.h (ELFW): New macro.
4762         * sysdeps/x86_64/dl-irel.h: Replace Elf64_XXX with ElfW(XXX).
4763         Replace ELF64_R_TYPE with ELFW(R_TYPE).
4764
4765 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4766
4767         * sysdeps/x86_64/dl-tls.h (dl_tls_index): Replace unsigned long
4768         with uint64_t.
4769
4770 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4771
4772         * sysdeps/generic/ldsodefs.h (struct La_x32_regs): New forward
4773         declaration.
4774         (struct La_x32_retval): Likewise.
4775
4776 2012-03-22  H.J. Lu  <hongjiu.lu@intel.com>
4777
4778         * sysdeps/x86_64/preconfigure.in: New file.
4779         * sysdeps/x86_64/preconfigure: New generated file.
4780
4781 2012-03-22  Joseph Myers  <joseph@codesourcery.com>
4782
4783         [BZ #13824]
4784         * math/e_exp2l.c: Include <float.h>.
4785         (__ieee754_exp2l): Handle overflow and underflow cases
4786         separately.  Only pass fractional part of argument to
4787         __ieee754_expl.
4788         * math/libm-test.inc (exp2_test): Add more tests.
4789
4790         * sysdeps/ieee754/ldbl-128/k_cosl.c (__kernel_cosl): Negate y if
4791         negating x to take absolute value.
4792         * sysdeps/ieee754/ldbl-128/k_sincosl.c (__kernel_sincosl):
4793         Likewise.
4794         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c (__kernel_cosl): Likewise.
4795         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c (__kernel_sincosl):
4796         Likewise.
4797         * sysdeps/ieee754/ldbl-128/k_sinl.c (__kernel_sinl): Negate y when
4798         computing low part if x was negated.
4799         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c (__kernel_sinl): Likewise.
4800
4801 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4802
4803         * elf/tst-auditmod1.c: Support la_x32_gnu_pltenter and
4804         la_x32_gnu_pltexit.
4805         (pltexit): Cast int_retval to ptrdiff_t.
4806         * elf/tst-auditmod3b.c: Likewise.
4807         * elf/tst-auditmod4b.c: Likewise.
4808         * elf/tst-auditmod5b.c: Likewise.
4809         * elf/tst-auditmod6b.c: Likewise.
4810         * elf/tst-auditmod6c.c: Likewise.
4811         * elf/tst-auditmod7b.c: Likewise.
4812
4813         * sysdeps/generic/ldsodefs.h (audit_ifaces): Add x32_gnu_pltenter
4814         and x32_gnu_pltexit.
4815
4816         * sysdeps/x86_64/bits/link.h: Check __x86_64__ instead of
4817         __ELF_NATIVE_CLASS.
4818         (La_x32_regs): New macro.
4819         (La_x32_retval): Likewise.
4820         (la_x32_gnu_pltenter): New function prototype.
4821         (la_x32_gnu_pltexit): Likewise.
4822
4823 2012-03-21  Andreas Schwab  <schwab@linux-m68k.org>
4824
4825         * sysdeps/ieee754/ldbl-128ibm/e_powl.c (huge, tiny): Correct
4826         exponent.
4827
4828         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
4829
4830         * configure.in (libc_cv_cc_nofma): Check for option to disable
4831         generation of FMA instructions.
4832         * configure: Regenerate.
4833         * config.make.in (config-cflags-nofma): Set from libc_cv_cc_nofma.
4834         * sysdeps/ieee754/dbl-64/Makefile: New file.
4835         * sysdeps/x86_64/fpu/multiarch/Makefile (libm-sysdep_routines):
4836         Remove brandred-fma4.
4837         (CFLAGS-brandred-fma4.c): Remove.
4838         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Remove.
4839         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c (__branred): Don't
4840         define.
4841         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c (__branred): Don't
4842         define.
4843
4844 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4845
4846         * stdio-common/_itoa.c: Check _ITOA_NEEDED instead of
4847         LLONG_MAX != LONG_MAX.
4848         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4849         (_fitoa_word): Likewise.
4850         * stdio-common/_itowa.c: Check _ITOA_NEEDED instead of
4851         LLONG_MAX != LONG_MAX.
4852         * stdio-common/_itowa.h: Include <_itoa.h>.
4853         (_itowa_word): Use _ITOA_WORD_TYPE on value.
4854         (_itowa): New macro.  Defined only if _ITOA_NEEDED is false.
4855         * sysdeps/generic/_itoa.h (_ITOA_NEEDED): New macro.  Defined
4856         only if not defined.
4857         (_ITOA_WORD_TYPE): Likewise.
4858         (_itoa_word): Use _ITOA_WORD_TYPE on value.
4859         Check !_ITOA_NEEDED instead of LONG_MAX == LLONG_MAX.
4860
4861 2012-03-21  David S. Miller  <davem@davemloft.net>
4862
4863         * sysdeps/sparc/fpu/libm-test-ulps: Update.
4864
4865 2012-03-21  H.J. Lu  <hongjiu.lu@intel.com>
4866
4867         * sysdeps/unix/sysv/linux/configure.in: Check x86_64* instead
4868         of x86_64 when setting libc_cv_slibdir, libdir and
4869         libc_cv_localedir.
4870         * sysdeps/unix/sysv/linux/configure: Regenerated.
4871
4872 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4873
4874         * manual/lang.texi (Old Varargs): Remove section.
4875         (How Variadic): Update menu.
4876         (va_start): Do not mention varargs.h.
4877
4878 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4879             Joseph Myers  <joseph@codesourcery.com>
4880
4881         * configure.in (libc_cv_ssp): Use LIBC_TRY_CC_OPTION instead of a
4882         link test.
4883         * configure: Regenerated.
4884
4885 2012-03-21  Thomas Schwinge  <thomas@codesourcery.com>
4886
4887         * conform/conformtest.pl: Handle --tmpdir argument, defaulting to /tmp.
4888         * conform/run-conformtest.sh: Pass --tmpdir argument when invoking
4889         conformtest.pl
4890
4891 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4892
4893         * NOTES: Remove.
4894         * Makefile (files-for-dist): Remove NOTES.
4895         (NOTES): Remove rule.
4896         * README: Don't refer to NOTES.
4897         * manual/creature.texi: Don't include macros.texi.
4898         * manual/intro.texi (creature.texi): Remove comment referring to
4899         NOTES.
4900
4901         * aclocal.m4 (LIBC_TRY_CC_OPTION): New macro.
4902         * configure.in (libc_cv_cc_submachine): Use LIBC_TRY_CC_OPTION.
4903         * configure: Regenerated.
4904         * sysdeps/i386/configure.in (libc_cv_cc_sse4): Use
4905         LIBC_TRY_CC_OPTION.
4906         (libc_cv_as_i686): Likewise.
4907         (libc_cv_cc_avx): Likewise.
4908         (libc_cv_cc_sse2avx): Likewise.
4909         (libc_cv_cc_fma4): Likewise.
4910         (libc_cv_cc_novzeroupper): Likewise.
4911         * sysdeps/i386/configure: Regenerated.
4912
4913         [BZ #13883]
4914         * sysdeps/i386/fpu/s_cexp.S: Remove.
4915         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
4916         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
4917         * math/libm-test.inc (cexp_test): Add more tests.
4918         * sysdeps/i386/fpu/libm-test-ulps: Update.
4919         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
4920
4921 2012-03-21  Allan McRae  <allan@archlinux.org>
4922
4923         * timezone/Makefile: Do not install iso3166.tab and zone.tab
4924
4925 2012-03-21  Joseph Myers  <joseph@codesourcery.com>
4926
4927         [BZ #13871]
4928         * math/w_exp2.c: Do not include <float.h>.
4929         (o_threshold, u_threshold): Remove.
4930         (__exp2): Calculate result before checking finiteness and calling
4931         __kernel_standard.
4932         * math/w_exp2f.c: Likewise.
4933         * math/w_exp2l.c: Likewise.
4934         * math/libm-test.inc (exp2_test): Require overflow exception for
4935         1e6 input.
4936
4937         [BZ #3866]
4938         * sysdeps/i386/fpu/e_pow.S (__ieee754_pow): Test for y outside the
4939         range of signed 64-bit integers before using fistpll.  Remove
4940         checks for whether integers fit in mantissa bits.
4941         * sysdeps/i386/fpu/e_powf.S (__ieee754_powf): Test for y outside
4942         the range of signed 32-bit integers before using fistpl.  Remove
4943         checks for whether integers fit in mantissa bits.
4944         * sysdeps/i386/fpu/e_powl.S (p64): New object.
4945         (__ieee754_powl): Test for y outside the range of signed 64-bit
4946         integers before using fistpll.  Reduce 64-bit values to 63-bit
4947         ones as needed.
4948         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Ensure
4949         divide-by-zero is raised for zero to large negative powers.
4950         * sysdeps/x86_64/fpu/e_powl.S (p64): New object.
4951         (__ieee754_powl): Test for y outside the range of signed 64-bit
4952         integers before using fistpll.  Reduce 64-bit values to 63-bit
4953         ones as needed.
4954         * math/libm-test.inc (pow_test): Add more tests.
4955
4956 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
4957
4958         * debug/backtracesymsfd.c: Include <_itoa.h> instead of
4959         <stdio-common/_itoa.h>.
4960         * debug/segfault.c: Likewise.
4961         * elf/dl-cache.c: Likewise.
4962         * elf/dl-minimal.c: Likewise.
4963         * elf/dl-misc.c: Likewise.
4964         * elf/dl-sysdep.c: Likewise.
4965         * elf/dl-version.c: Likewise.
4966         * elf/rtld.c: Likewise.
4967         * hurd/hurdsock.c: Likewise.
4968         * hurd/lookup-retry.c: Likewise.
4969         * malloc/malloc.c: Likewise.
4970         * malloc/mtrace.c: Likewise.
4971         * nscd/nscd_getgr_r.c: Likewise.
4972         * nscd/nscd_getpw_r.c: Likewise.
4973         * nscd/nscd_getserv_r.c: Likewise.
4974         * posix/getopt_init.c: Likewise.
4975         * posix/wordexp.c: Likewise.
4976         * stdio-common/_itoa.c: Likewise.
4977         * stdio-common/printf_fphex.c: Likewise.
4978         * stdio-common/vfprintf.c: Likewise.
4979         * string/_strerror.c: Likewise.
4980         * sysdeps/generic/elf/backtracesymsfd.c: Likewise.
4981         * sysdeps/i386/i686/hp-timing.h: Likewise.
4982         * sysdeps/mach/_strerror.c: Likewise.
4983         * sysdeps/mach/hurd/powerpc/register-dump.h: Likewise.
4984         * sysdeps/mach/hurd/sethostid.c: Likewise.
4985         * sysdeps/mach/hurd/xmknodat.c: Likewise.
4986         * sysdeps/mach/xpg-strerror.c: Likewise.
4987         * sysdeps/powerpc/powerpc32/dl-machine.c: Likewise.
4988         * sysdeps/powerpc/powerpc32/power4/hp-timing.h: Likewise.
4989         * sysdeps/powerpc/powerpc32/register-dump.h: Likewise.
4990         * sysdeps/powerpc/powerpc64/dl-machine.c: Likewise.
4991         * sysdeps/powerpc/powerpc64/hp-timing.h: Likewise.
4992         * sysdeps/powerpc/powerpc64/register-dump.h: Likewise.
4993         * sysdeps/sparc/sparc32/sparcv9/hp-timing.h: Likewise.
4994         * sysdeps/sparc/sparc64/hp-timing.h: Likewise.
4995         * sysdeps/unix/sysv/linux/fd_to_filename.h: Likewise.
4996         * sysdeps/unix/sysv/linux/futimes.c: Likewise.
4997         * sysdeps/unix/sysv/linux/i386/register-dump.h: Likewise.
4998         * sysdeps/unix/sysv/linux/ptsname.c: Likewise.
4999         * sysdeps/unix/sysv/linux/s390/s390-32/register-dump.h: Likewise.
5000         * sysdeps/unix/sysv/linux/s390/s390-64/register-dump.h: Likewise.
5001         * sysdeps/unix/sysv/linux/sh/sh3/register-dump.h: Likewise.
5002         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Likewise.
5003         * sysdeps/unix/sysv/linux/sparc/sparc32/register-dump.h: Likewise.
5004         * sysdeps/unix/sysv/linux/sparc/sparc64/register-dump.h: Likewise.
5005         * sysdeps/unix/sysv/linux/ttyname.c: Likewise.
5006         * sysdeps/unix/sysv/linux/ttyname_r.c: Likewise.
5007         * sysdeps/unix/sysv/linux/x86_64/register-dump.h: Likewise.
5008
5009         * stdio-common/_itoa.c: Include <_itoa.h> instead of "_itoa.h".
5010
5011         * stdio-common/_itoa.h: Moved to ...
5012         * sysdeps/generic/_itoa.h: Here.
5013
5014         * stdio-common/_itowa.c: Include <_itowa.h> instead of "_itowa.h".
5015
5016         * stdio-common/printf_fphex.c: Include <_itoa.h> and <_itowa.h>
5017         instead of "_itoa.h" and "_itowa.h".
5018         * stdio-common/vfprintf.: Likewise.
5019
5020 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
5021
5022         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't include
5023         <bits/wordsize.h>.
5024         (__signbitf): Check __x86_64__ instead of __WORDSIZE.
5025         (__signbit): Likwise.
5026         (llrintf): Likwise.
5027         (llrint): Likwise.
5028
5029 2012-03-20  H.J. Lu  <hongjiu.lu@intel.com>
5030
5031         * sysdeps/x86_64/bits/setjmp.h (__jmp_buf): Support x86-64 with
5032         __WORDSIZE != 64.
5033
5034 2012-03-20  Joseph Myers  <joseph@codesourcery.com>
5035
5036         * math/gen-libm-test.pl (%beautify): Add OVERFLOW_EXCEPTION and
5037         OVERFLOW_EXCEPTION_OK.
5038         * math/libm-test.inc ("Philosophy"): Update comment about
5039         exception testing.
5040         (OVERFLOW_EXCEPTION): Define.
5041         (OVERFLOW_EXCEPTION_OK): Likewise.
5042         (INVALID_EXCEPTION_OK): Renumber.
5043         (DIVIDE_BY_ZERO_EXCEPTION_OK): Likewise.
5044         (IGNORE_ZERO_INF_SIGN): Likewise.
5045         (test_exceptions): Handle FE_OVERFLOW.
5046         (exp10_test): Expect overflow exceptions.
5047         (exp2_test): Likewise.
5048         (expm1_test): Likewise.
5049         (nextafter_test): Likewise.
5050         (pow_test): Likewise.
5051         (scalbn_test): Likewise.
5052         (scalbln_test): Likewise.
5053
5054 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5055
5056         * sysdeps/x86_64/bits/atomic.h
5057         (__arch_c_compare_and_exchange_val_64_acq): Use atomic64_t on
5058         64bit integer.
5059         (atomic_exchange_acq): Likewise.
5060         (__arch_exchange_and_add_body): Likewise.
5061         (__arch_add_body): Likewise.
5062         (atomic_add_negative): Likewise.
5063         (atomic_add_zero): Likewise.
5064
5065 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5066
5067         * sysdeps/x86_64/fpu/bits/fenv.h: Don't include <bits/wordsize.h>.
5068         (fenv_t): Check __x86_64__ instead of __WORDSIZE.
5069
5070 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5071
5072         * sysdeps/x86_64/bits/mathdef.h: Don't include <bits/wordsize.h>.
5073         Check __x86_64__ instead of __WORDSIZE.
5074
5075 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5076
5077         * sysdeps/unix/sysv/linux/x86_64/ldd-rewrite.sed: Support x32.
5078
5079 2012-03-19  David S. Miller  <davem@davemloft.net>
5080
5081         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5082
5083         * sysdeps/sparc/fpu/fenv_private.h: New file.
5084         * sysdeps/sparc/fpu/math_private.h: Use it.
5085         (libc_feholdexcept, libc_feholdexceptf, libc_feholdexceptl):
5086         Remove.
5087         (libc_feholdexcept_setround, libc_feholdexcept_setroundf,
5088         (libc_feholdexcept_setroundl): Remove.
5089         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl):
5090         Remove.
5091         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Remove.
5092         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvf): Remove.
5093
5094 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5095
5096         * sysdeps/x86_64/fpu/math_private.h (EXTRACT_WORDS64): Use
5097         int64_t instead of long int.
5098         (INSERT_WORDS64): Likwise.
5099
5100 2012-03-19  H.J. Lu  <hongjiu.lu@intel.com>
5101
5102         * sysdeps/x86_64/jmpbuf-unwind.h (_JMPBUF_CFA_UNWINDS_ADJ): Cast
5103         _Unwind_GetCFA return to _Unwind_Ptr first.
5104
5105 2012-03-19  Joseph Myers  <joseph@codesourcery.com>
5106
5107         [BZ #13629]
5108         * math/s_clog.c: Include <float.h>.
5109         (__clog): Scale large or subnormal inputs.
5110         * math/s_clogf.c: Likewise.
5111         * math/s_clogl.c: Likewise.
5112         * math/s_clog10.c: Include <float.h>.
5113         (M_LOG10_2): Define.
5114         (__clog10): Scale large or subnormal inputs.
5115         * math/s_clog10f.c: Likewise.
5116         * math/s_clog10l.c: Likewise.
5117         * math/libm-test.inc (clog_test): Add more tests.
5118         (clog10_test): Likewise.
5119         * sysdeps/i386/fpu/libm-test-ulps: Update.
5120         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5121
5122         [BZ #11451]
5123         * sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Scale large
5124         x and y.
5125         * math/libm-test.inc (atan2_test): Add another test.
5126
5127         * Makerules (common-objdir-compile): Remove.
5128         * sysdeps/unix/Makefile (config-generated): Do not add
5129         $(unix-generated) to variable.
5130         [generic bits/local_lim.h] (mk-local_lim-CFLAGS): Remove variable.
5131         [generic bits/local_lim.h] ($(common-objpfx)bits/local_lim.h):
5132         Remove rule.
5133         [generic bits/local_lim.h] ($(common-objpfx)mk-local_lim):
5134         Likewise.
5135         [generic bits/local_lim.h] (before-compile): Do not append to
5136         variable.
5137         [generic bits/local_lim.h] (common-generated): Likewise.
5138         [generic sys/param.h] (before-compile): Do not append to variable.
5139         [generic sys/param.h] ($(common-objpfx)sys/param.h): Remove rule.
5140         [generic sys/param.h] ($(common-objpfx)param.h.c): Likewise.
5141         [generic sys/param.h] ($(common-objpfx)param.h.dep): Likewise.
5142         [generic sys/param.h] ($(common-objpfx)param.h.dep): Do not
5143         include.
5144         [generic sys/param.h] (sys/param.h-includes): Remove variable.
5145         [generic sys/param.h] (sys/param.h-includes): Remove rule.
5146         [generic sys/param.h] ($(addprefix
5147         $(common-objpfx),$(sys/param.h-includes))): Likewise.
5148         [generic sys/param.h] (common-generated): Do not append to
5149         variable.
5150         [generic sys/param.h] (sysdep_headers): Likewise.
5151         [generic bits/errno.h] (before-compile): Do not append to
5152         variable.
5153         [generic bits/errno.h] ($(common-objpfx)bits/errno.h): Remove
5154         rule.
5155         [generic bits/errno.h] ($(common-objpfx)make-errnos): Likewise.
5156         [generic bits/errno.h] ($(common-objpfx)make-errnos.c): Likewise.
5157         [generic bits/errno.h] ($(common-objpfx)errnos): Likewise.
5158         [generic bits/errno.h] (common-generated): Do not append to
5159         variable.
5160         [generic bits/ioctls.h] (before-compile): Do not append to
5161         variable.
5162         [generic bits/ioctls.h] ($(common-objpfx)bits/ioctls.h): Remove
5163         rule.
5164         [generic bits/ioctls.h] (ioctl-includes): Remove variable.
5165         [generic bits/ioctls.h] (make-ioctls-CFLAGS): Likewise.
5166         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls): Remove
5167         rule.
5168         [generic bits/ioctls.h] ($(common-objpfx)make-ioctls.c): Likewise.
5169         [generic bits/ioctls.h] (bits_termios.h): Remove variable.
5170         [generic bits/ioctls.h] ($(common-objpfx)ioctls): Remove rule.
5171         [generic bits/ioctls.h] (common-generated): Do not append to
5172         variable.
5173         [generic sys/syscall.h] (syscall.h): Remove variable.
5174         [generic sys/syscall.h] ($(common-objpfx)sys/syscall.h): Remove
5175         rule.
5176         [generic sys/syscall.h] (before-compile): Do not append to
5177         variable.
5178         [generic sys/syscall.h] (common-generated): Likewise.
5179         * sysdeps/unix/errnos-tmpl.c: Remove file.
5180         * sysdeps/unix/errnos.awk: Likewise.
5181         * sysdeps/unix/ioctls-tmpl.c: Likewise.
5182         * sysdeps/unix/ioctls.awk: Likewise.
5183         * sysdeps/unix/mk-local_lim.c: Likewise.
5184         * sysdeps/unix/snarf-ioctls: Likewise.
5185
5186 2012-03-19  Richard Henderson  <rth@twiddle.net>
5187
5188         * sysdeps/i386/fpu/fenv_private.h: New file.
5189         * sysdeps/i386/fpu/math_private.h: Use it.
5190         (math_opt_barrier, math_force_eval): Remove.
5191         (libc_feholdexcept_setround_53bit): Remove.
5192         (libc_feupdateenv_53bit): Remove.
5193         * sysdeps/x86_64/fpu/math_private.h: Likewise.
5194         (math_opt_barrier, math_force_eval): Remove.
5195         (libc_feholdexcept): Remove.
5196         (libc_feholdexcept_setround): Remove.
5197         (libc_fetestexcept, libc_fesetenv): Remove.
5198         (libc_feupdateenv_test): Remove.
5199         (libc_feupdateenv, libc_feholdsetround): Remove.
5200         (libc_feresetround): Remove.
5201
5202         * sysdeps/i386/fpu/feholdexcpt.c (feholdexcept): Avoid the fldenv.
5203         * sysdeps/x86_64/fpu/feholdexcpt.c (feholdexcept): Likewise.
5204
5205         * sysdeps/generic/math_private.h (default_libc_feupdateenv_test): New.
5206         (libc_feupdateenv_test, libc_feupdateenv_testf): New.
5207         (libc_feupdateenv_testl): New.
5208         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv_test): New.
5209         (libc_feupdateenv_testf): New.
5210         (libc_feupdateenv): Use libc_feupdateenv_test.
5211         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Use libc_feupdateenv_test.
5212         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Likewise.
5213
5214         * sysdeps/generic/math_private.h (libc_feholdsetround): New.
5215         (libc_feholdsetroundf, libc_feholdsetroundl): New.
5216         (libc_feresetround, libc_feresetroundf, libc_feresetroundl): New.
5217         (libc_feresetround_noex): New.
5218         (libc_feresetround_noexf): New.
5219         (libc_feresetround_noexl): New.
5220         (SET_RESTORE_ROUND, SET_RESTORE_ROUNDF, SET_RESTORE_ROUNDL): New.
5221         (SET_RESTORE_ROUND_NOEX, SET_RESTORE_ROUND_NOEXF): New.
5222         (SET_RESTORE_ROUND_NOEXL, SET_RESTORE_ROUND_53BIT): New.
5223         * sysdeps/ieee754/dbl-64/e_exp.c (__ieee754_exp): Use
5224         SET_RESTORE_ROUND.
5225         * sysdeps/ieee754/dbl-64/e_pow.c (__ieee754_pow): Likewise.
5226         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Use SET_RESTORE_ROUND_53BIT.
5227         (__cos): Likewise.
5228         * sysdeps/ieee754/dbl-64/s_tan.c (__tan): Likewise.
5229         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Use
5230         SET_RESTORE_ROUND_NOEX.
5231         * sysdeps/ieee754/dbl-64/e_exp2f.c (__ieee754_exp2f): Use
5232         SET_RESTORE_ROUND_NOEXF.
5233         * sysdeps/ieee754/flt-32/e_expf.c (__ieee754_expf): Likewise.
5234         * sysdeps/x86_64/fpu/math_private.h (libc_feholdsetround): New.
5235         (libc_feholdsetroundf): New.
5236         (libc_feresetround, libc_feresetroundf): New.
5237
5238         * sysdeps/i386/fpu/math_private.h: Include <fenv.h>, <fpu_control.h>.
5239         (libc_feholdexcept_setround_53bit): Convert from macro to function.
5240         (libc_feupdateenv_53bit): Likewise.  Don't force _FPU_EXTENDED.
5241
5242         * sysdeps/generic/math_private.h: Include <fenv.h>.
5243         (default_libc_feholdexcept): New.
5244         (default_libc_feholdexcept_setround): New.
5245         (default_libc_fesetenv, default_libc_feupdateenv): New.
5246         (libc_feholdexcept): Only define if undefined.
5247         (libc_feholdexceptf, libc_feholdexceptl): Likewise.
5248         (libc_feholdexcept_setround, libc_feholdexcept_setroundf): Likewise.
5249         (libc_feholdexcept_setroundl): Likewise.
5250         (libc_feholdexcept_setround_53bit): Likewise.
5251         (libc_fetestexcept, libc_fetestexceptf, libc_fetestexceptl): Likewise.
5252         (libc_fesetenv, libc_fesetenvf, libc_fesetenvl): Likewise.
5253         (libc_feupdateenv, libc_feupdateenvf, libc_feupdateenvl): Likewise.
5254         (libc_feupdateenv_53bit): Likewise.
5255         * sysdeps/x86_64/fpu/math_private.h: Include <fenv.h>.
5256         (libc_feholdexcept): Convert from macro to inline function.
5257         (libc_feholdexcept_setround, libc_fetestexcept): Likewise.
5258         (libc_fesetenv, libc_feupdateenv): Likewise.
5259
5260         * sysdeps/generic/math_private.h (GET_HIGH_WORD): Define only if
5261         not previously defined.
5262         (GET_LOW_WORD, EXTRACT_WORDS64, INSERT_WORDS): Likewise.
5263         (INSERT_WORDS64, SET_HIGH_WORD, SET_LOW_WORD): Likewise.
5264         (GET_FLOAT_WORD, SET_FLOAT_WORD): Likewise.
5265         * sysdeps/ieee754/dbl-64/wordsize-64/math_private.h: New file.
5266         * sysdeps/ieee754/flt-32/math_private.h: New file.
5267         * sysdeps/x86_64/fpu/math_private.h: Move the include_next of
5268         math_private.h below SET_FLOAT_WORD.
5269         (__isnan, __isinf_ns, __finite): Remove.
5270         (__isnanf, __isinf_nsf, __finitef): Remove.
5271
5272 2012-03-18  Andreas Schwab  <schwab@linux-m68k.org>
5273
5274         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5275
5276 2012-03-17  David S. Miller  <davem@davemloft.net>
5277
5278         [BZ #6471]
5279         * sysdeps/unix/sysv/linux/sparc/Versions: Add __getshmlba entry
5280         for 2.16.
5281
5282 2012-03-16  David S. Miller  <davem@davemloft.net>
5283
5284         * sysdeps/unix/sysv/linux/shmat.c (shmat): Use -1l to avoid
5285         warnings.
5286
5287         [BZ #6471]
5288         * sysdeps/unix/sysv/linux/shmat.c (shmat): Test for syscall errors
5289         properly.
5290         * sysdeps/unix/sysv/linux/sparc/getshmlba.c: New file.
5291         * sysdeps/unix/sysv/linux/sparc/Makefile: Add getshmlba to
5292         sysdep_routines when subdir is sysvipc.
5293         * sysdeps/unix/sysv/linux/sparc/bits/shm.h (SHMLBA): Use new
5294         __getshmlba helper.
5295
5296         * sysdeps/sparc/fpu/libm-test/ulps: Update.
5297
5298 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5299
5300         * sysdeps/x86_64/ffsll.c (ffsl): Define alias only under
5301         [__LP64__].
5302
5303 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5304
5305         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Moved to ...
5306         * sysdeps/ieee754/dbl-64/wordsize-64/s_llround.c: This.
5307         (__lround): Renamed to ...
5308         (__llround): This.  Replace long int with long long int.
5309         Define lround functions as aliases of llround functions.
5310         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Empty file.
5311
5312 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5313
5314         * sysdeps/unix/sysv/linux/x86_64/makecontext.c (__makecontext):
5315         Use greg_t on sp.  Use unsigned int on idx_uc_link.  Cast
5316         adresses to uintptr_t.  Replace "long int" and "unsigned long
5317         int" with "greg_t" on va_arg.
5318
5319 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5320
5321         * sysdeps/generic/ldconfig.h (FLAG_X8664_LIBX32): New macro.
5322         * elf/cache.c (print_entry): Handle FLAG_X8664_LIBX32.
5323
5324         * sysdeps/unix/sysv/linux/i386/readelflib.c (process_elf_file):
5325         Move e_machine check before EI_CLASS check.  Handle x32
5326         libraries.  Check EM_IA_64 only if SKIP_EM_IA_64 isn't defined.
5327         * sysdeps/unix/sysv/linux/x86_64/readelflib.c: Just define
5328         SKIP_EM_IA_64 and include
5329         <sysdeps/unix/sysv/linux/i386/readelflib.c>.
5330
5331         * sysdeps/unix/sysv/linux/x86_64/dl-cache.h:
5332         Don't include <sysdeps/unix/sysv/linux/sparc/dl-cache.h>.
5333         (add_system_dir): New macro.
5334
5335         * sysdeps/unix/sysv/linux/x86_64/ldconfig.h
5336         (SYSDEP_KNOWN_INTERPRETER_NAMES): Add /libx32/ld-linux-x32.so.2.
5337
5338 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
5339
5340         [BZ #2551]
5341         [BZ #2552]
5342         [BZ #2553]
5343         [BZ #2554]
5344         [BZ #2562]
5345         [BZ #2563]
5346         [BZ #2565]
5347         [BZ #2566]
5348         [BZ #2576]
5349         * math/w_j0.c (j0): Don't produce TLOSS errors for POSIX libm.
5350         (y0): Likewise.
5351         * math/w_j0f.c (j0f): Likewise.
5352         (y0f): Likewise.
5353         * math/w_j0l.c (__j0l): Likewise.
5354         (__y0l): Likewise.
5355         * math/w_j1.c (j1): Likewise.
5356         (y1): Likewise.
5357         * math/w_j1f.c (j1f): Likewise.
5358         (y1f): Likewise.
5359         * math/w_j1l.c (__j1l): Likewise.
5360         (__y1l): Likewise.
5361         * math/w_jn.c (jn): Likewise.
5362         (yn): Likewise.
5363         * math/w_jnf.c (jnf): Likewise.
5364         (ynf): Likewise.
5365         * math/w_jnl.c (__jnl): Likewise.
5366         (__ynl): Likewise.
5367         * math/libm-test.inc (j0_test): Add more tests.
5368         (j1_test): Likewise.
5369         (jn_test): Likewise.  Add trailing semicolon to existing test.
5370         (y0_test): Likewise.
5371         (y1_test): Likewise.
5372         * sysdeps/i386/fpu/libm-test-ulps: Update.
5373         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5374
5375         [BZ #13851]
5376         [BZ #13854]
5377         * sysdeps/ieee754/dbl-64/s_tan.c (tan): Use
5378         libc_feholdexcept_setround_53bit and libc_feupdateenv_53bit.
5379         * sysdeps/ieee754/ldbl-96/k_tanl.c: New file.
5380         * sysdeps/ieee754/ldbl-96/s_tanl.c: Include <errno.h>.
5381         (__tanl): Set errno for infinite argument.
5382         * sysdeps/i386/fpu/mptan.c: Remove.
5383         * sysdeps/i386/fpu/s_tan.S: Likewise.
5384         * sysdeps/i386/fpu/s_tanl.S: Likewise.
5385         * sysdeps/x86_64/fpu/k_tanl.c: Likewise.
5386         * sysdeps/x86_64/fpu/s_tanl.S: Likewise.
5387         * math/libm-test.inc (tan_test): Add more tests and enable more
5388         tests for double and long double.
5389         * sysdeps/i386/fpu/libm-test-ulps: Update.
5390         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5391
5392 2012-03-16  Jan Kratochvil  <jan.kratochvil@redhat.com>
5393
5394         * sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
5395         (_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
5396
5397 2012-03-16  Roland McGrath  <roland@hack.frob.com>
5398
5399         * aclocal.m4 (LIBC_PRECONFIGURE): New macro.
5400         * configure.in: Use it for both main tree and add-ons.
5401         * configure: Regenerated.
5402
5403 2012-03-16  H.J. Lu  <hongjiu.lu@intel.com>
5404
5405         * time/offtime.c (__offtime): Use time_t on days, rem, y and yg.
5406
5407 2012-03-16  Joseph Myers  <joseph@codesourcery.com>
5408
5409         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Include generator program
5410         in comment.
5411
5412         [BZ #13851]
5413         * sysdeps/ieee754/ldbl-96/e_rem_pio2l.c: New file.
5414         * sysdeps/ieee754/ldbl-96/k_cosl.c: Likewise.
5415         * sysdeps/ieee754/ldbl-96/k_sinl.c: Likewise.
5416         * sysdeps/ieee754/ldbl-96/t_sincosl.c: Likewise.
5417         * sysdeps/ieee754/ldbl-96/s_cosl.c (__cosl): Correct test for
5418         infinite argument.
5419         * sysdeps/ieee754/ldbl-96/s_sinl.c (__sinl): Likewise.
5420         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Handle __FLT_EVAL_METHOD__
5421         != 0 for prec == 2.
5422         * sysdeps/i386/fpu/e_rem_pio2l.c: Remove.
5423         * sysdeps/i386/fpu/k_rem_pio2.c: Likewise.
5424         * sysdeps/i386/fpu/s_cosl.S: Likewise.
5425         * sysdeps/i386/fpu/s_sincosl.S: Likewise.
5426         * sysdeps/i386/fpu/s_sinl.S: Likewise.
5427         * sysdeps/x86_64/fpu/e_rem_pio2l.c: Likewise.
5428         * sysdeps/x86_64/fpu/k_cosl.c: Likewise.
5429         * sysdeps/x86_64/fpu/k_sinl.c: Likewise.
5430         * sysdeps/x86_64/fpu/s_cosl.S: Likewise.
5431         * sysdeps/x86_64/fpu/s_sincosl.S: Likewise.
5432         * sysdeps/x86_64/fpu/s_sinl.S: Likewise.
5433         * math/libm-test.inc (cos_test): Add more tests and enable more
5434         tests for long double.
5435         (sin_test): Likewise.
5436         (sincos_test): Likewise.
5437         * sysdeps/i386/fpu/libm-test-ulps: Update.
5438         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5439
5440 2012-03-16  David S. Miller  <davem@davemloft.net>
5441
5442         * sysdeps/sparc/fpu/math_private.h: New file.
5443
5444 2012-03-15  David S. Miller  <davem@davemloft.net>
5445
5446         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma-vis3.S: New
5447         file.
5448         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fma.c: New file.
5449         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf-vis3.S: New
5450         file.
5451         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaf.c: New file.
5452         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma-vis3.S: New file.
5453         * sysdeps/sparc/sparc64/fpu/multiarch/s_fma.c: New file.
5454         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf-vis3.S: New file.
5455         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaf.c: New file.
5456         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add fma/fmaf
5457         sysdep routines.
5458         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5459
5460         * sysdeps/sparc/sparc32/fpu/s_fma.c: New file.
5461         * sysdeps/sparc/sparc64/fpu/s_fma.c: New file.
5462
5463         * sysdeps/sparc/sparc-ifunc.h: New file.
5464         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: Use
5465         sparc-ifunc.h
5466         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: Likewise.
5467         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S:
5468         Likewise.
5469         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S:
5470         Likewise.
5471         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: Likewise.
5472         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: Likewise.
5473         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: Likewise.
5474         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S:
5475         Likewise.
5476         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: Likewise.
5477         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: Likewise.
5478         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: Likewise.
5479         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: Likewise.
5480         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S:
5481         Likewise.
5482         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S:
5483         Likewise.
5484         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: Likewise.
5485         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: Likewise.
5486         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: Likewise.
5487         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: Likewise.
5488         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: Likewise.
5489         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: Likewise.
5490         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: Likewise.
5491         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: Likewise.
5492         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: Likewise.
5493         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: Likewise.
5494         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: Likewise.
5495         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: Likewise.
5496         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: Likewise.
5497         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: Likewise.
5498         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: Likewise.
5499         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: Likewise.
5500         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: Likewise.
5501         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: Likewise.
5502         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: Likewise.
5503         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: Likewise.
5504         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: Likewise.
5505         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: Likewise.
5506         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: Likewise.
5507         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: Likewise.
5508
5509 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
5510
5511         * sysdeps/powerpc/fpu/e_hypotf.c: Use double precision instead of
5512         scaling.
5513         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5514
5515 2012-03-15  Andreas Jaeger  <aj@suse.de>
5516
5517         [BZ #13852]
5518         * sysdeps/i386/fpu/e_rem_pio2f.c: Delete so that i386 uses the
5519         ieee754/flt-32 implementation for sin, cos and sincos.
5520         * sysdeps/i386/fpu/k_rem_pio2f.c: Likewise.
5521         * sysdeps/i386/fpu/s_cosf.S: Likewise.
5522         * sysdeps/i386/fpu/s_sincosf.S: Likewise.
5523         * sysdeps/i386/fpu/s_sinf.S: Likewise.
5524         * sysdeps/i386/fpu/s_tanf.S: Delete so that i386 uses the
5525         ieee754/flt-32 implementation for tan.
5526
5527         * math/libm-test.inc (cos_test): Enable some large input tests for
5528         float as well
5529         (sin_test): Likewise.
5530         (sincos_test): Likewise.
5531         (tan_test): Add tests for large input.
5532
5533         * sysdeps/i386/fpu/libm-test-ulps: Update.
5534
5535 2012-03-15  Andreas Jaeger  <aj@suse.de>
5536
5537         [BZ #13658]
5538         * math/libm-test.inc (cos_test): Add more test cases.
5539         (sin_test): Likewise.
5540         (sincos_test): Likewise.
5541
5542 2012-03-15  Andreas Jaeger  <aj@suse.de>
5543
5544         [BZ #13837]
5545         * math/libm-test.inc (cos_test): Add a test case for large input
5546         value.
5547         (sin_test): Likewise.
5548         (sincos_test): Likewise.
5549
5550 2012-03-15  Andreas Jaeger  <aj@suse.de>,
5551         Joseph Myers  <joseph@codesourcery.com>
5552
5553         [BZ #13658]
5554         * sysdeps/x86_64/fpu/s_sincos.S: Delete files so that
5555         x86-64 and i386 use the iee754/dbl-64 sin and cos implementation.
5556         * sysdeps/i386/fpu/branred.c: Likewise.
5557         * sysdeps/i386/fpu/dosincos.c: Likewise.
5558         * sysdeps/i386/fpu/mpa.c: Likewise.
5559         * sysdeps/i386/fpu/s_cos.S: Likewise.
5560         * sysdeps/i386/fpu/s_sin.S: Likewise.
5561         * sysdeps/i386/fpu/s_sincos.S: Likewise.
5562         * sysdeps/i386/fpu/sincos32.c: Likewise.
5563
5564         * sysdeps/generic/math_private.h (libc_feholdexcept_setround_53bit):
5565         Define.
5566         (libc_feupdateenv_53bit): Define.
5567         * sysdeps/i386/fpu/math_private.h (libc_feholdexcept_setround_53bit):
5568         Define.
5569         (libc_feupdateenv_53bit): Define.
5570
5571         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Do double arithmetic in
5572         53 bit (without extend i386 double precision).
5573
5574         * math/libm-test.inc (sincos_test): Add tests for large input.
5575         (sin): Likewise.
5576         (cos): Likewise.
5577
5578         * sysdeps/i386/fpu/libm-test-ulps: Update ULPs.
5579
5580 2012-03-15  Andreas Schwab  <schwab@linux-m68k.org>
5581
5582         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5583
5584 2012-03-15  David S. Miller  <davem@davemloft.net>
5585
5586         * sysdeps/sparc/sparc64/fpu/s_fmax.S: New file.
5587         * sysdeps/sparc/sparc64/fpu/s_fmaxf.S: New file.
5588         * sysdeps/sparc/sparc64/fpu/s_fmin.S: New file.
5589         * sysdeps/sparc/sparc64/fpu/s_fminf.S: New file.
5590         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmax.S: New file.
5591         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmaxf.S: New file.
5592         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fmin.S: New file.
5593         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fminf.S: New file.
5594         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmax.S: New file.
5595         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf-vis3.S: New file.
5596         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmaxf.S: New file.
5597         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin-vis3.S: New file.
5598         * sysdeps/sparc/sparc64/fpu/multiarch/s_fmin.S: New file.
5599         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf-vis3.S: New file.
5600         * sysdeps/sparc/sparc64/fpu/multiarch/s_fminf.S: New file.
5601         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax-vis3.S: New
5602         file.
5603         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmax.S: New file.
5604         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf-vis3.S: New
5605         file.
5606         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmaxf.S: New file.
5607         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin-vis3.S: New
5608         file.
5609         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fmin.S: New file.
5610         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf-vis3.S: New
5611         file.
5612         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fminf.S: New file.
5613         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new vis3
5614         fmin/fmax sysdep routines.
5615         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Likewise.
5616
5617 2012-03-14  David S. Miller  <davem@davemloft.net>
5618
5619         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil-vis3.S: New file.
5620         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceil.S: New file.
5621         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf-vis3.S: New file.
5622         * sysdeps/sparc/sparc64/fpu/multiarch/s_ceilf.S: New file.
5623         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite-vis3.S: New file.
5624         * sysdeps/sparc/sparc64/fpu/multiarch/s_finite.S: New file.
5625         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef-vis3.S: New file.
5626         * sysdeps/sparc/sparc64/fpu/multiarch/s_finitef.S: New file.
5627         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor-vis3.S: New file.
5628         * sysdeps/sparc/sparc64/fpu/multiarch/s_floor.S: New file.
5629         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf-vis3.S: New file.
5630         * sysdeps/sparc/sparc64/fpu/multiarch/s_floorf.S: New file.
5631         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf-vis3.S: New file.
5632         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinf.S: New file.
5633         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff-vis3.S: New file.
5634         * sysdeps/sparc/sparc64/fpu/multiarch/s_isinff.S: New file.
5635         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan-vis3.S: New file.
5636         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnan.S: New file.
5637         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf-vis3.S: New file.
5638         * sysdeps/sparc/sparc64/fpu/multiarch/s_isnanf.S: New file.
5639         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint-vis3.S: New file.
5640         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrint.S: New file.
5641         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf-vis3.S: New file.
5642         * sysdeps/sparc/sparc64/fpu/multiarch/s_lrintf.S: New file.
5643         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint-vis3.S: New file.
5644         * sysdeps/sparc/sparc64/fpu/multiarch/s_rint.S: New file.
5645         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf-vis3.S: New file.
5646         * sysdeps/sparc/sparc64/fpu/multiarch/s_rintf.S: New file.
5647         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: Add new VIS3
5648         routines.
5649         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil-vis3.S: New
5650         file.
5651         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceil.S: New file.
5652         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf-vis3.S: New
5653         file.
5654         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_ceilf.S: New file.
5655         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs-vis3.S: New
5656         file.
5657         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabs.S: New file.
5658         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf-vis3.S: New
5659         file.
5660         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_fabsf.S: New file.
5661         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor-vis3.S: New
5662         file.
5663         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floor.S: New file.
5664         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf-vis3.S: New
5665         file.
5666         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_floorf.S: New
5667         file.
5668         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint-vis3.S: New
5669         file.
5670         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrint.S: New
5671         file.
5672         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf-vis3.S:
5673         New file.
5674         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_llrintf.S: New
5675         file.
5676         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint-vis3.S: New
5677         file.
5678         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rint.S: New file.
5679         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf-vis3.S: New
5680         file.
5681         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_rintf.S: New file.
5682         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt-vis3.S: New
5683         file.
5684         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrt.S: New file.
5685         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf-vis3.S: New
5686         file.
5687         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/w_sqrtf.S: New file.
5688         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: Add new
5689         VIS3 routines.
5690
5691         * sysdeps/sparc/sparc32/sparcv9/fpu/unix/sysv/linux/multiarch/Implies:
5692         New file.
5693
5694         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5695
5696         * sysdeps/sparc/configure.in: New file.
5697         * sysdeps/sparc/configure: Generate.
5698         * configure.in (libc_cv_sparc_as_vis3): Substitute.
5699         * configure: Regenerate.
5700         * config.h.in (HAVE_AS_VIS3_SUPPORT): New.
5701         * config.make.in (have-as-vis3): New.
5702         * sysdeps/sparc/sparc32/sparcv9/Makefile (ASFLAGS-*): If VIS3 is
5703         available use -Av9d instead of -Av9a.
5704         * sysdeps/sparc/sparc64/Makefile: Likewise.
5705         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/Makefile: New file.
5706         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign-vis3.S:
5707         New file.
5708         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysign.S: New
5709         file.
5710         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf-vis3.S:
5711         New file.
5712         * sysdeps/sparc/sparc32/sparcv9/fpu/multiarch/s_copysignf.S: New
5713         file.
5714         * sysdeps/sparc/sparc64/fpu/multiarch/Makefile: New file.
5715         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit-vis3.S: New file.
5716         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbit.S: New file.
5717         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf-vis3.S: New file.
5718         * sysdeps/sparc/sparc64/fpu/multiarch/s_signbitf.S: New file.
5719
5720         * sysdeps/sparc/sparc64/fpu/s_copysign.S (__copysign): Use
5721         fzeros/fnegs to load 0x80000000 into a float register instead of
5722         using the stack.
5723         * sysdeps/sparc/sparc64/fpu/s_copysignf.S (__copysignf): Likewise.
5724
5725 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
5726
5727         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
5728         bits/syscall.h.
5729         ($(objpfx)syscall-%.h): Rename rule to $(objpfx)bits/syscall%h.
5730         ($(objpfx)syscall-%.d): Rename rule to $(objpfx)bits/syscall%d.
5731         ($(inst_includedir)/bits/syscall.h): Remove rule.
5732         ($(objpfx)bits/syscall.d): Include instead of
5733         $(objpfx)syscall-list.d.
5734         (generated): Change syscall-list.h and syscall-list.d to
5735         bits/syscall.h and bits/syscall.d.
5736
5737 2012-03-14  Roland McGrath  <roland@hack.frob.com>
5738
5739         [BZ #13846]
5740         * manual/llio.texi (Memory-mapped I/O): Fix wrong function name.
5741
5742 2012-03-14  Joseph Myers  <joseph@codesourcery.com>
5743
5744         [BZ #13841]
5745         * math/s_csqrt.c: Include <float.h>.
5746         (__csqrt): Scale large or subnormal inputs.
5747         * math/s_csqrtf.c: Likewise.
5748         * math/s_csqrtl.c: Likewise.
5749         * math/libm-test.inc (csqrt_test): Add more tests.
5750         * sysdeps/i386/fpu/libm-test-ulps: Update.
5751         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
5752
5753         [BZ #13840]
5754         * math/libm-test.inc (hypot_test): Add more tests.
5755
5756 2012-03-13  David S. Miller  <davem@davemloft.net>
5757
5758         [BZ #13840]
5759         * sysdeps/ieee754/flt-32/e_hypotf.c (__ieee754_hypotf): Rewrite to use
5760         double-precision for the calculation instead of scaling.
5761
5762 2012-03-13  Joseph Myers  <joseph@codesourcery.com>
5763
5764         * sysdeps/ieee754/dbl-64/s_nearbyint.c (__nearbyint): Do not
5765         manipulate bits before adding and subtracting TWO52[sx].
5766         * sysdeps/ieee754/dbl-64/s_rint.c (__rint): Likewise.
5767         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c (__nearbyint):
5768         Likewise.
5769         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c (__rint): Likewise.
5770
5771 2012-03-13  David S. Miller  <davem@davemloft.net>
5772
5773         * sysdeps/sparc/Makefile: Remove rtld-global-offsets.sym handling.
5774         * sysdeps/sparc/elf/rtld-global-offsets.sym: Delete.
5775         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Don't include
5776         rtld-global-offsets.h
5777         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
5778
5779         * sysdeps/ieee754/ldbl-128/s_expm1l.c (__expm1l): Use expl for
5780         large parameters.
5781
5782         * sysdeps/unix/sysv/linux/sparc/sparc64/dl-fxstatat64.c: New file.
5783
5784         * sysdeps/unix/sysv/linux/openat.c (OPENAT_NOT_CANCEL): Declare syscall
5785         'err' in the ifdef scope in which it is actually used.
5786
5787         * nss/nss_db/db-init.c: Include string.h
5788
5789 2012-03-12  David S. Miller  <davem@davemloft.net>
5790
5791         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
5792         masking out of the most significant byte of random value used.
5793         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5794         Fix coding style in previous change.
5795
5796         * sysdeps/unix/sysv/linux/kernel-features.h
5797         (__ASSUME_CLONE_THREAD_FLAGS): Set on sparc when 2.5.64 and later.
5798         (__ASSUME_TGKILL): Set on sparc when 2.6.1 and later, simplify
5799         expression.
5800         (__ASSUME_FADVISE64_64_SYSCALL): Set on sparc when 2.6.1 and
5801         later.
5802
5803 2012-03-11  David S. Miller  <davem@davemloft.net>
5804
5805         * sysdeps/unix/sysv/linux/sparc/sparc64/makecontext.c
5806         (__makecontext): Fix signedness of pointer casts setting up 'sp'.
5807         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL) Use 'long'
5808         for 'resultvar' otherwise things get truncated on 64-bit.
5809
5810         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
5811         Fix masking out of the most significant byte of random value used.
5812
5813         * sysdeps/sparc/fpu/libm-test-ulps: Update.
5814
5815 2012-03-10  Andreas Schwab  <schwab@linux-m68k.org>
5816
5817         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
5818
5819 2012-03-09  David S. Miller  <davem@davemloft.net>
5820
5821         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Protect local
5822         variables with appropriate CPP guards.
5823         * sysdeps/sparc/sparc32/dl-trampoline.S: Propagate the stack_ptr from the
5824         frame pointer, not the stack pointer.  Correct layout comments.  Fix test
5825         on resulting framesize and the management of the outregs buffer for pltexit.
5826         Preserve floating point return values across _dl_call_pltexit call.
5827         * sysdeps/sparc/sparc64/dl-trampoline.S: Fix test on resulting
5828         framesize and the management of the outregs buffer for pltexit.
5829         Preserve floating point return values across _dl_call_pltexit
5830         call.
5831         * elf/sotruss-lib.c (la_sparc32_gnu_pltenter, la_sparc64_gnu_pltenter,
5832         la_sparc32_gnu_pltexit, la_sparc64_gnu_pltexit): New functions.
5833         (print_exit): Fix format string for return register value.
5834
5835 2012-03-10  Joseph Myers  <joseph@codesourcery.com>
5836
5837         * sunrpc/Makefile (others): Add rpcgen.
5838         ($(objpfx)rpcgen): Remove special build rule and dependency on
5839         libc.
5840         * sunrpc/rpcgen.c: New file.
5841
5842 2012-03-09  Paul Eggert  <eggert@cs.ucla.edu>
5843
5844         [BZ #13673]
5845         * posix/bug-regex33.c: Replace FSF snail mail address with URL.
5846         * stdio-common/bug-vfprintf-nargs.c: Likewise.
5847         * sysdeps/i386/crti.S: Likewise.
5848         * sysdeps/i386/crtn.S: Likewise.
5849         * sysdeps/powerpc/powerpc32/crti.S: Likewise.
5850         * sysdeps/powerpc/powerpc32/crtn.S: Likewise.
5851         * sysdeps/powerpc/powerpc64/crti.S: Likewise.
5852         * sysdeps/powerpc/powerpc64/crtn.S: Likewise.
5853         * sysdeps/sh/crti.S: Likewise.
5854         * sysdeps/sh/crtn.S: Likewise.
5855         * sysdeps/x86_64/fpu/e_expf.S: Likewise.
5856
5857         [BZ #13673]
5858         * locale/programs/charmap-kw.gperf: Replace FSF snail mail address
5859         with URL.
5860         * locale/programs/locfile-kw.gperf: Likewise.
5861         * locale/programs/charmap-kw.h: Regenerated.
5862         * locale/programs/locfile-kw.h: Likewise.
5863
5864         [BZ #13673]
5865         * intl/plural.y: Replace FSF snail mail address with URL.
5866         * intl/plural.c: Regenerated.
5867
5868 2012-03-09  Richard Henderson  <rth@twiddle.net>
5869
5870         * include/math_private.h: Remove file.
5871         * math/math_private.h: Move file ...
5872         * sysdeps/generic/math_private.h: ... here.
5873
5874         * sysdeps/i386/fpu/math_private.h: Use include_next for math_private.h.
5875         * sysdeps/powerpc/fpu/math_private.h: Likewise.
5876         * sysdeps/x86_64/fpu/math_private.h: Likewise.
5877
5878         * sysdeps/i386/fpu/s_fpclassifyl.c: Use <> to include both <math.h>
5879         and <math_private.h>.
5880         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
5881         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
5882         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
5883         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
5884         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
5885         * sysdeps/ieee754/dbl-64/branred.c: Likewise.
5886         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
5887         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
5888         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
5889         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
5890         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
5891         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
5892         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
5893         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
5894         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
5895         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
5896         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
5897         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
5898         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
5899         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
5900         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
5901         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
5902         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
5903         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
5904         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Likewise.
5905         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
5906         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
5907         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
5908         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
5909         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
5910         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
5911         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
5912         * sysdeps/ieee754/dbl-64/s_cbrt.c: Likewise.
5913         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
5914         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
5915         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
5916         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
5917         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
5918         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
5919         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
5920         * sysdeps/ieee754/dbl-64/s_fpclassify.c: Likewise.
5921         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
5922         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
5923         * sysdeps/ieee754/dbl-64/s_isinf.c: Likewise.
5924         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: Likewise.
5925         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
5926         * sysdeps/ieee754/dbl-64/s_llrint.c: Likewise.
5927         * sysdeps/ieee754/dbl-64/s_llround.c: Likewise.
5928         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
5929         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
5930         * sysdeps/ieee754/dbl-64/s_lrint.c: Likewise.
5931         * sysdeps/ieee754/dbl-64/s_lround.c: Likewise.
5932         * sysdeps/ieee754/dbl-64/s_modf.c: Likewise.
5933         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
5934         * sysdeps/ieee754/dbl-64/s_remquo.c: Likewise.
5935         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
5936         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
5937         * sysdeps/ieee754/dbl-64/s_scalbln.c: Likewise.
5938         * sysdeps/ieee754/dbl-64/s_scalbn.c: Likewise.
5939         * sysdeps/ieee754/dbl-64/s_signbit.c: Likewise.
5940         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
5941         * sysdeps/ieee754/dbl-64/s_sincos.c: Likewise.
5942         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
5943         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
5944         * sysdeps/ieee754/dbl-64/s_trunc.c: Likewise.
5945         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
5946         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
5947         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
5948         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: Likewise.
5949         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: Likewise.
5950         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: Likewise.
5951         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
5952         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Likewise.
5953         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
5954         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: Likewise.
5955         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf.c: Likewise.
5956         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: Likewise.
5957         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
5958         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: Likewise.
5959         * sysdeps/ieee754/dbl-64/wordsize-64/s_lround.c: Likewise.
5960         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: Likewise.
5961         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Likewise.
5962         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: Likewise.
5963         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
5964         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
5965         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: Likewise.
5966         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: Likewise.
5967         * sysdeps/ieee754/dbl-64/wordsize-64/s_trunc.c: Likewise.
5968         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
5969         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
5970         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
5971         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
5972         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
5973         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
5974         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
5975         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
5976         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
5977         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
5978         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
5979         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
5980         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
5981         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
5982         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
5983         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
5984         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
5985         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
5986         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
5987         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
5988         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
5989         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
5990         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
5991         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
5992         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
5993         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
5994         * sysdeps/ieee754/flt-32/s_cbrtf.c: Likewise.
5995         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
5996         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
5997         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
5998         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
5999         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
6000         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
6001         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
6002         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
6003         * sysdeps/ieee754/flt-32/s_fpclassifyf.c: Likewise.
6004         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
6005         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
6006         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
6007         * sysdeps/ieee754/flt-32/s_isinff.c: Likewise.
6008         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
6009         * sysdeps/ieee754/flt-32/s_llrintf.c: Likewise.
6010         * sysdeps/ieee754/flt-32/s_llroundf.c: Likewise.
6011         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
6012         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
6013         * sysdeps/ieee754/flt-32/s_lrintf.c: Likewise.
6014         * sysdeps/ieee754/flt-32/s_lroundf.c: Likewise.
6015         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
6016         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
6017         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
6018         * sysdeps/ieee754/flt-32/s_remquof.c: Likewise.
6019         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
6020         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
6021         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
6022         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
6023         * sysdeps/ieee754/flt-32/s_signbitf.c: Likewise.
6024         * sysdeps/ieee754/flt-32/s_sincosf.c: Likewise.
6025         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
6026         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
6027         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
6028         * sysdeps/ieee754/flt-32/s_truncf.c: Likewise.
6029         * sysdeps/ieee754/k_standard.c: Likewise.
6030         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
6031         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
6032         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
6033         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
6034         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
6035         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
6036         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
6037         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
6038         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
6039         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
6040         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
6041         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
6042         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
6043         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
6044         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
6045         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
6046         * sysdeps/ieee754/ldbl-128/e_rem_pio2l.c: Likewise.
6047         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
6048         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
6049         * sysdeps/ieee754/ldbl-128/k_cosl.c: Likewise.
6050         * sysdeps/ieee754/ldbl-128/k_sincosl.c: Likewise.
6051         * sysdeps/ieee754/ldbl-128/k_sinl.c: Likewise.
6052         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
6053         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
6054         * sysdeps/ieee754/ldbl-128/s_atanl.c: Likewise.
6055         * sysdeps/ieee754/ldbl-128/s_cbrtl.c: Likewise.
6056         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
6057         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
6058         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
6059         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
6060         * sysdeps/ieee754/ldbl-128/s_expm1l.c: Likewise.
6061         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
6062         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
6063         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
6064         * sysdeps/ieee754/ldbl-128/s_fpclassifyl.c: Likewise.
6065         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
6066         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
6067         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: Likewise.
6068         * sysdeps/ieee754/ldbl-128/s_isinfl.c: Likewise.
6069         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
6070         * sysdeps/ieee754/ldbl-128/s_llrintl.c: Likewise.
6071         * sysdeps/ieee754/ldbl-128/s_llroundl.c: Likewise.
6072         * sysdeps/ieee754/ldbl-128/s_log1pl.c: Likewise.
6073         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
6074         * sysdeps/ieee754/ldbl-128/s_lrintl.c: Likewise.
6075         * sysdeps/ieee754/ldbl-128/s_lroundl.c: Likewise.
6076         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
6077         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
6078         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
6079         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
6080         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
6081         * sysdeps/ieee754/ldbl-128/s_remquol.c: Likewise.
6082         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
6083         * sysdeps/ieee754/ldbl-128/s_roundl.c: Likewise.
6084         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
6085         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
6086         * sysdeps/ieee754/ldbl-128/s_signbitl.c: Likewise.
6087         * sysdeps/ieee754/ldbl-128/s_sincosl.c: Likewise.
6088         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
6089         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
6090         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
6091         * sysdeps/ieee754/ldbl-128/s_truncl.c: Likewise.
6092         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
6093         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
6094         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
6095         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
6096         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
6097         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
6098         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
6099         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
6100         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
6101         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
6102         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
6103         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
6104         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
6105         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
6106         * sysdeps/ieee754/ldbl-128ibm/e_rem_pio2l.c: Likewise.
6107         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
6108         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6109         * sysdeps/ieee754/ldbl-128ibm/k_cosl.c: Likewise.
6110         * sysdeps/ieee754/ldbl-128ibm/k_sincosl.c: Likewise.
6111         * sysdeps/ieee754/ldbl-128ibm/k_sinl.c: Likewise.
6112         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
6113         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
6114         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Likewise.
6115         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
6116         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
6117         * sysdeps/ieee754/ldbl-128ibm/s_ctanhl.c: Likewise.
6118         * sysdeps/ieee754/ldbl-128ibm/s_ctanl.c: Likewise.
6119         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
6120         * sysdeps/ieee754/ldbl-128ibm/s_expm1l.c: Likewise.
6121         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
6122         * sysdeps/ieee754/ldbl-128ibm/s_finitel.c: Likewise.
6123         * sysdeps/ieee754/ldbl-128ibm/s_fpclassifyl.c: Likewise.
6124         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
6125         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
6126         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: Likewise.
6127         * sysdeps/ieee754/ldbl-128ibm/s_isinfl.c: Likewise.
6128         * sysdeps/ieee754/ldbl-128ibm/s_isnanl.c: Likewise.
6129         * sysdeps/ieee754/ldbl-128ibm/s_log1pl.c: Likewise.
6130         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
6131         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
6132         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
6133         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
6134         * sysdeps/ieee754/ldbl-128ibm/s_remquol.c: Likewise.
6135         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
6136         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
6137         * sysdeps/ieee754/ldbl-128ibm/s_signbitl.c: Likewise.
6138         * sysdeps/ieee754/ldbl-128ibm/s_sincosl.c: Likewise.
6139         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
6140         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
6141         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
6142         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
6143         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
6144         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
6145         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
6146         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
6147         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
6148         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
6149         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
6150         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
6151         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
6152         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
6153         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
6154         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
6155         * sysdeps/ieee754/ldbl-96/s_cbrtl.c: Likewise.
6156         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
6157         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
6158         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
6159         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
6160         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
6161         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
6162         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
6163         * sysdeps/ieee754/ldbl-96/s_fpclassifyl.c: Likewise.
6164         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
6165         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
6166         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: Likewise.
6167         * sysdeps/ieee754/ldbl-96/s_isinfl.c: Likewise.
6168         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
6169         * sysdeps/ieee754/ldbl-96/s_llrintl.c: Likewise.
6170         * sysdeps/ieee754/ldbl-96/s_llroundl.c: Likewise.
6171         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
6172         * sysdeps/ieee754/ldbl-96/s_lrintl.c: Likewise.
6173         * sysdeps/ieee754/ldbl-96/s_lroundl.c: Likewise.
6174         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
6175         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
6176         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
6177         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
6178         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
6179         * sysdeps/ieee754/ldbl-96/s_remquol.c: Likewise.
6180         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
6181         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
6182         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
6183         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
6184         * sysdeps/ieee754/ldbl-96/s_signbitl.c: Likewise.
6185         * sysdeps/ieee754/ldbl-96/s_sincosl.c: Likewise.
6186         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
6187         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
6188         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
6189         * sysdeps/ieee754/ldbl-96/s_truncl.c: Likewise.
6190         * sysdeps/ieee754/s_lib_version.c: Likewise.
6191         * sysdeps/ieee754/s_matherr.c: Likewise.
6192         * sysdeps/ieee754/s_signgam.c: Likewise.
6193         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
6194         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
6195         * sysdeps/powerpc/fpu/e_rem_pio2f.c: Likewise.
6196         * sysdeps/powerpc/fpu/k_cosf.c: Likewise.
6197         * sysdeps/powerpc/fpu/k_rem_pio2f.c: Likewise.
6198         * sysdeps/powerpc/fpu/k_sinf.c: Likewise.
6199         * sysdeps/powerpc/fpu/s_cosf.c: Likewise.
6200         * sysdeps/powerpc/fpu/s_float_bitwise.h: Likewise.
6201         * sysdeps/powerpc/fpu/s_isnan.c: Likewise.
6202         * sysdeps/powerpc/fpu/s_rint.c: Likewise.
6203         * sysdeps/powerpc/fpu/s_rintf.c: Likewise.
6204         * sysdeps/powerpc/fpu/s_sinf.c: Likewise.
6205         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
6206         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
6207         * sysdeps/powerpc/powerpc32/fpu/s_llrintf.c: Likewise.
6208         * sysdeps/powerpc/powerpc32/power4/fpu/slowexp.c: Likewise.
6209         * sysdeps/powerpc/powerpc32/power4/fpu/slowpow.c: Likewise.
6210         * sysdeps/powerpc/powerpc64/power4/fpu/slowexp.c: Likewise.
6211         * sysdeps/powerpc/powerpc64/power4/fpu/slowpow.c: Likewise.
6212         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
6213         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
6214
6215 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
6216
6217         * sunrpc/rpc_cout.c: Remove __GNU_LIBRARY__ conditionals.
6218         * sunrpc/rpc_main.c: Likewise.
6219         * sunrpc/rpc_svcout.c: Likewise.
6220
6221 2012-03-09  David S. Miller  <davem@davemloft.net>
6222
6223         * include/math_private.h: New file.
6224
6225 2012-03-09  Joseph Myers  <joseph@codesourcery.com>
6226
6227         * sysdeps/unix/sysv/linux/bits/socket_type.h: New file.
6228         * sysdeps/unix/sysv/linux/sparc/bits/socket_type.h: Likewise.
6229         * sysdeps/unix/sysv/linux/bits/socket.h: Get enum __socket_type
6230         from <bits/socket_type.h>.
6231         (enum __socket_type): Don't define here.
6232         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Remove.
6233         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
6234         bits/socket_type.h.
6235
6236         [BZ #13566]
6237         * libio/stdio.h (gets): Always declare for C++ up to C++11 without
6238         checking __USE_GNU.
6239
6240         * Makerules ($(inst_includedir)/%.h): New rule.
6241         * stdio-common/Makefile (headers): Add bits/stdio_lim.h.
6242         (install-others): Remove variable setting.
6243         ($(inst_includedir)/bits/stdio_lim.h): Remove rule.
6244
6245 2012-03-08  Richard Henderson  <rth@twiddle.net>
6246
6247         * sysdeps/powerpc/fpu/math_private.h (__ieee754_sqrt): Convert
6248         from macro to inline function; merge with the
6249         !__LIBC_INTERNAL_MATH_INLINES version.
6250         (__ieee754_sqrtf): Likewise.
6251
6252         * sysdeps/x86_64/fpu/math_private.h (__rint): Convert from macro
6253         to inline function.
6254         (__rintf, __floor, __floorf): Likewise.
6255
6256         * sysdeps/x86_64/fpu/math_private.h (__ieee754_sqrt): Convert from
6257         macro to inline function.
6258         (__ieee754_sqrtf, __ieee754_sqrtl): Likewise.
6259
6260         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Include <math_private.h>,
6261         not <math/math_private.h>.
6262
6263 2012-03-08  David S. Miller  <davem@davemloft.net>
6264
6265         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c: Update
6266         copyright year.
6267         * sysdeps/unix/sysv/linux/sparc/sysdep.h: Likewise.
6268
6269 2012-03-08  Thomas Schwinge  <thomas@codesourcery.com>
6270
6271         * resolv/gai_misc.c (handle_requests): Fix struct timespec
6272         normalization.
6273         * rt/tst-cpuclock2.c (test_nanosleep): Likewise.
6274         * sysdeps/pthread/aio_misc.c (handle_fildes_io): Likewise.
6275
6276 2012-03-08  Ulrich Drepper  <drepper@gmail.com>
6277
6278         * stdio-common/tst-fphex.c: Various cleanups.  The macros cannot
6279         be defined individually, they must be defined as a block.  Define
6280         S for printing a string instead of hidint the different by using a
6281         macro for adding the 'l'.
6282         * stdio-common/tst-fphex-wide.c: Adjust.
6283
6284 2012-03-07  Marek Polacek  <polacek@redhat.com>
6285
6286         * stdio-common/tst-long-dbl-fphex.c: Fix test for non ldbl-96 targets.
6287
6288 2012-03-08  Marek Polacek  <polacek@redhat.com>
6289
6290         [BZ #13806]
6291         * stdio-common/Makefile (tests): Add tst-fphex-wide.
6292         * stdio-common/tst-fphex.c: Define a few macros to make the
6293         test reusable.  Use them.
6294         * stdio-common/tst-fphex-wide.c: New file.
6295
6296 2012-03-08  Joseph Myers  <joseph@codesourcery.com>
6297
6298         [BZ #6911]
6299         * manual/macros.texi (gnusystems): New macro.
6300         (nongnusystems): Likewise.
6301         (gnulinuxhurdsystems): Likewise.
6302         (gnuhurdsystems): Likewise..
6303         (gnulinuxsystems): Likewise.
6304         * manual/charset.texi: Use new macros or @theglibc{} to refer to
6305         variants of the GNU system, not "GNU system".
6306         * manual/conf.texi: Likewise.
6307         * manual/errno.texi: Likewise.  Update example of errno macro
6308         expansion.
6309         * manual/filesys.texi: Likewise.
6310         (getumask): Document as specific to GNU/Hurd.
6311         * manual/install.texi: Likewise.  Reword some references to
6312         GNU/Linux.
6313         * manual/intro.texi: Likewise.
6314         * manual/io.texi: Likewise.
6315         (File Name Portability): Detail which constraints are inapplicable
6316         to all GNU systems and which are only inapplicable to GNU/Hurd.
6317         * manual/job.texi: Likewise.
6318         * manual/llio.texi: Likewise.
6319         (O_NOCTTY): Document as present on GNU/Linux.
6320         * manual/maint.texi: Likewise.
6321         * manual/memory.texi: Likewise.
6322         * manual/pattern.texi: Likewise.
6323         * manual/pipe.texi: Likewise.
6324         * manual/process.texi: Likewise.
6325         * manual/resource.texi: Likewise.
6326         (RUSAGE_CHILDREN): Remove statement about specifying a particular
6327         child on GNU/Hurd.
6328         * manual/setjmp.texi: Likewise.
6329         * manual/signal.texi: Likewise.
6330         * manual/startup.texi: Likewise.
6331         * manual/stdio.texi: Likewise.
6332         * manual/terminal.texi: Likewise.
6333         (ONLCR): Document as POSIX.
6334         (OXTABS): Document availability on GNU/Linux as XTABS.
6335         (ONOEOT): Document availability separately from other bits.
6336         (VLNEXT, VDISCARD, VSTATUS): Document availability individually.
6337         * manual/time.texi: Likewise.
6338         * manual/users.texi: Likewise.
6339         * INSTALL: Regenerated.
6340         * sysdeps/gnu/errlist.c: Regenerated.
6341
6342         * aclocal.m4 (LIBC_TRY_LINK_STATIC): New macro.
6343         * configure.in (libc_cv_preinit_array): Use LIBC_TRY_LINK_STATIC.
6344         (libc_cv_ctors_header): Likewise.  Use asm ("") instead of calling
6345         puts.
6346         * configure: Regenerated.
6347
6348 2012-03-07  Joseph Myers  <joseph@codesourcery.com>
6349
6350         * sysdeps/i386/configure.in (cpuid.h): Use AC_CHECK_HEADER with no
6351         default includes instead of AC_HEADER_CHECK.
6352         * sysdeps/i386/configure: Regenerated.
6353
6354         [BZ #10716]
6355         * math/s_cacosh.c (__cacosh): Convert negative log results to 0.
6356         * math/s_cacoshf.c (__cacoshf): Likewise.
6357         * math/s_cacoshl.c (__cacoshl): Likewise.
6358         * math/s_casinh.c (__casinh): Set signs of result from argument.
6359         * math/s_casinhf.c (__casinhf): Likewise.
6360         * math/s_casinhl.c (__casinhl): Likewise.
6361         * math/libm-test.inc (cacos_test, cacosh_test, casin_test)
6362         (casinh_test): Add more tests.
6363         * sysdeps/i386/fpu/libm-test-ulps: Update.
6364         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6365
6366 2012-03-07  Ulrich Drepper  <drepper@gmail.com>
6367
6368         * po/zh_TW.po: Update from translation team.
6369
6370         * login/Makefile (distribute): Remove variable.
6371         * catgets/Makefile: Likewise.
6372         * mach/Makefile: Likewise.
6373         * malloc/Makefile: Likewise.
6374         * misc/Makefile: Likewise.
6375         * iconv/Makefile: Likewise.
6376         * nscd/Makefile: Likewise.
6377         * hurd/Makefile: Likewise.
6378         * manual/Makefile: Likewise.
6379         * locale/Makefile: Likewise.
6380         * intl/Makefile: Likewise.
6381         * conform/Makefile: Likewise.
6382         * nss/Makefile: Likewise.
6383         * time/Makefile: Likewise.
6384         * soft-fp/Makefile: Likewise.
6385         * dirent/Makefile: Likewise.
6386         * gmon/Makefile: Likewise.
6387         * po/Makefile: Likewise.
6388         * rt/Makefile: Likewise.
6389         * socket/Makefile: Likewise.
6390         * math/Makefile: Likewise.
6391         * signal/Makefile: Likewise.
6392         * debug/Makefile: Likewise.
6393         * elf/Makefile: Likewise.
6394         * timezone/Makefile: Likewise.
6395         * stdlib/Makefile: Likewise.
6396         * iconvdata/Makefile: Likewise.
6397         * sunrpc/Makefile: Likewise.
6398         * io/Makefile: Likewise.
6399         * argp/Makefile: Likewise.
6400         * inet/Makefile: Likewise.
6401         * hesiod/Makefile: Likewise.
6402         * grp/Makefile: Likewise.
6403         * csu/Makefile: Likewise.
6404         * wctype/Makefile: Likewise.
6405         * crypt/Makefile: Likewise.
6406         * libio/Makefile: Likewise.
6407         * string/Makefile: Likewise.
6408         * nis/Makefile: Likewise.
6409         * resolv/Makefile: Likewise.
6410         * stdio-common/Makefile: Likewise.
6411         * wcsmbs/Makefile: Likewise.
6412         * dlfcn/Makefile: Likewise.
6413         * posix/Makefile: Likewise.
6414
6415         [BZ #6959]
6416         * timezone/Makefile: Don't install timezone files, just the programs
6417         and scripts.
6418
6419 2012-03-06  Ulrich Drepper  <drepper@gmail.com>
6420
6421         * nss/databases.def: Add missing gshadow entry.
6422
6423         * stdio-common/vfprintf.c: Fix formatting.  Missing copyright update.
6424
6425 2012-03-06  Marek Polacek  <polacek@redhat.com>
6426
6427         [BZ #13726]
6428         * sysdeps/ieee754/ldbl-96/printf_fphex.c: Adjust position of wnumstr.
6429         * sysdeps/x86_64/fpu/printf_fphex.c: Likewise.
6430         * stdio-common/Makefile (tests): Add tst-long-dbl-fphex.
6431         * stdio-common/tst-long-dbl-fphex.c: New file.
6432
6433 2012-03-06  David S. Miller  <davem@davemloft.net>
6434
6435         * sysdeps/unix/sysv/linux/sparc/sparc64/get_clockfreq.c
6436         (set_obp_int): New function.
6437         (get_obp_int): New function.
6438         (__get_clockfreq_via_dev_openprom): Likewise.
6439         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INTERNAL_SYSCALL_ERROR_P):
6440         Avoid unused variable warnings on 'val' and use builtin_expect.
6441         (INLINE_SYSCALL): Don't wrap INTERNAL_SYSCALL_ERROR_P with
6442         __builtin_expect.
6443         (INLINE_CLONE_SYSCALL): Likewise.
6444
6445 2012-03-05  David S. Miller  <davem@davemloft.net>
6446
6447         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6448
6449 2012-03-05  Andreas Schwab  <schwab@linux-m68k.org>
6450
6451         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6452
6453         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Drop exp(-x) term
6454         only for |x| >= 40.
6455         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
6456
6457 2012-03-05  H.J. Lu  <hongjiu.lu@intel.com>
6458
6459         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c (gettimeofday_ifunc):
6460         Replace gettimeofday with __vdso_gettimeofday.
6461
6462         * sysdeps/unix/sysv/linux/x86_64/init-first.c
6463         (_libc_vdso_platform_setup): Replace clock_gettime and getcpu with
6464         __vdso_clock_gettime and __vdso_getcpu.
6465
6466         * sysdeps/unix/sysv/linux/x86_64/time.c (time_ifunc): Replace
6467         time with __vdso_time.
6468
6469 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
6470
6471         * manual/lang.texi (size_t): Note types to which size_t may be
6472         equivalent with the GNU C Library, but do not describe when
6473         differences between them are significant.
6474
6475 2012-03-05  Andreas Jaeger  <aj@suse.de>
6476
6477         * sysdeps/i386/fpu/libm-test-ulps: Update.
6478
6479 2012-03-05  Joseph Myers  <joseph@codesourcery.com>
6480
6481         [BZ #3976]
6482         * sysdeps/ieee754/dbl-64/e_pow.c: Include <fenv.h>.
6483         (__ieee754_pow): Save and restore rounding mode and use
6484         round-to-nearest for main computations.
6485         * math/libm-test.inc (pow_test_tonearest): New function.
6486         (pow_test_towardzero): Likewise.
6487         (pow_test_downward): Likewise.
6488         (pow_test_upward): Likewise.
6489         (main): Call the new functions.
6490         * sysdeps/i386/fpu/libm-test-ulps: Update.
6491         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6492
6493         [BZ #3976]
6494         * math/libm-test.inc (cosh_test_tonearest): New function.
6495         (cosh_test_towardzero): Likewise.
6496         (cosh_test_downward): Likewise.
6497         (cosh_test_upward): Likewise.
6498         (sinh_test_tonearest): Likewise.
6499         (sinh_test_towardzero): Likewise.
6500         (sinh_test_downward): Likewise.
6501         (sinh_test_upward): Likewise.
6502         (main): Call the new functions.
6503         * sysdeps/i386/fpu/libm-test-ulps: Update.
6504         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6505
6506 2012-03-05  Tom de Vries  <tom@codesourcery.com>
6507
6508         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Ensure
6509         default stack guard is set in last bytes.
6510         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Same.
6511
6512 2012-03-05  Kees Cook  <keescook@chromium.org>
6513
6514         * stdio-common/vfprintf.c (vfprintf): add missing errno settings.
6515
6516         [BZ #13656]
6517         * stdio-common/vfprintf.c (vfprintf): Check for nargs overflow and
6518         possibly allocate from heap instead of stack.
6519         * stdio-common/bug-vfprintf-nargs.c: New file.
6520         * stdio-common/Makefile (tests): Add nargs overflow test.
6521
6522 2012-03-03  Andreas Schwab  <schwab@linux-m68k.org>
6523
6524         * sysdeps/powerpc/fpu/libm-test-ulps: Update.
6525
6526 2012-03-03  Marek Polacek  <polacek@redhat.com>
6527
6528         * include/sys/cdefs.h: Remove __GNUC_PREREQ macro.
6529         * math/math_private.h: Likewise.
6530         * stdlib/tst-strtod.c: Likewise.
6531         * sysdeps/i386/i486/bits/atomic.h: Likewise.
6532         * sysdeps/x86_64/bits/atomic.h: Likewise.
6533
6534 2012-03-02  David S. Miller  <davem@davemloft.net>
6535
6536         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrint.S: New file.
6537         * sysdeps/sparc/sparc32/sparcv9/fpu/s_llrintf.S: New file.
6538         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrint.S: New file.
6539         * sysdeps/sparc/sparc32/sparcv9/fpu/s_lrintf.S: New file.
6540         * sysdeps/sparc/sparc64/fpu/s_llrint.S: New file.
6541         * sysdeps/sparc/sparc64/fpu/s_llrintf.S: New file.
6542         * sysdeps/sparc/sparc64/fpu/s_lrint.S: New file.
6543         * sysdeps/sparc/sparc64/fpu/s_lrintf.S: New file.
6544
6545 2012-03-02  Roland McGrath  <roland@hack.frob.com>
6546
6547         [BZ #13792]
6548         * manual/examples/README: New file, says the example source files
6549         can be used under GPL>=2.
6550         * manual/Makefile (%.c.texi): Eat the leading part of the file until a
6551         line containing just "*/".
6552         * manual/examples/add.c: Add copyright header (GPL>=2).
6553         * manual/examples/argp-ex1.c: Likewise.
6554         * manual/examples/argp-ex2.c: Likewise.
6555         * manual/examples/argp-ex3.c: Likewise.
6556         * manual/examples/argp-ex4.c: Likewise.
6557         * manual/examples/atexit.c: Likewise.
6558         * manual/examples/db.c: Likewise.
6559         * manual/examples/dir.c: Likewise.
6560         * manual/examples/dir2.c: Likewise.
6561         * manual/examples/execinfo.c: Likewise.
6562         * manual/examples/filecli.c: Likewise.
6563         * manual/examples/filesrv.c: Likewise.
6564         * manual/examples/fmtmsgexpl.c: Likewise.
6565         * manual/examples/genpass.c: Likewise.
6566         * manual/examples/inetcli.c: Likewise.
6567         * manual/examples/inetsrv.c: Likewise.
6568         * manual/examples/isockad.c: Likewise.
6569         * manual/examples/longopt.c: Likewise.
6570         * manual/examples/memopen.c: Likewise.
6571         * manual/examples/memstrm.c: Likewise.
6572         * manual/examples/mkfsock.c: Likewise.
6573         * manual/examples/mkisock.c: Likewise.
6574         * manual/examples/mygetpass.c: Likewise.
6575         * manual/examples/pipe.c: Likewise.
6576         * manual/examples/popen.c: Likewise.
6577         * manual/examples/rprintf.c: Likewise.
6578         * manual/examples/search.c: Likewise.
6579         * manual/examples/select.c: Likewise.
6580         * manual/examples/setjmp.c: Likewise.
6581         * manual/examples/sigh1.c: Likewise.
6582         * manual/examples/sigusr.c: Likewise.
6583         * manual/examples/stpcpy.c: Likewise.
6584         * manual/examples/strdupa.c: Likewise.
6585         * manual/examples/strftim.c: Likewise.
6586         * manual/examples/strncat.c: Likewise.
6587         * manual/examples/subopt.c: Likewise.
6588         * manual/examples/swapcontext.c: Likewise.
6589         * manual/examples/termios.c: Likewise.
6590         * manual/examples/testopt.c: Likewise.
6591         * manual/examples/testpass.c: Likewise.
6592         * manual/examples/timeval_subtract.c: Likewise.
6593
6594         [BZ #13792]
6595         * manual/time.texi (Elapsed Time): Move timeval_subtract example
6596         function to ...
6597         * manual/timeval_subtract.c.texi: ... here, new file.
6598
6599 2012-03-02  David S. Miller  <davem@davemloft.net>
6600
6601         * sysdeps/sparc/fpu/libm-test-ulps: Update for recently added tests.
6602
6603 2012-03-02  Joseph Myers  <joseph@codesourcery.com>
6604
6605         [BZ #3976]
6606         * sysdeps/ieee754/dbl-64/s_sin.c: Include <fenv.h>
6607         (__sin): Save and restore rounding mode and use round-to-nearest
6608         for all computations.
6609         (__cos): Save and restore rounding mode and use round-to-nearest
6610         for all computations.
6611         * sysdeps/ieee754/dbl-64/s_tan.c: Include "math_private.h" and
6612         <fenv.h>.
6613         (tan): Save and restore rounding mode and use round-to-nearest for
6614         all computations.
6615         * math/libm-test.inc (cos_test_tonearest): New function.
6616         (cos_test_towardzero): Likewise.
6617         (cos_test_downward): Likewise.
6618         (cos_test_upward): Likewise.
6619         (sin_test_tonearest): Likewise.
6620         (sin_test_towardzero): Likewise.
6621         (sin_test_downward): Likewise.
6622         (sin_test_upward): Likewise.
6623         (tan_test_tonearest): Likewise.
6624         (tan_test_towardzero): Likewise.
6625         (tan_test_downward): Likewise.
6626         (tan_test_upward): Likewise.
6627         (main): Call the new functions.
6628         * sysdeps/i386/fpu/libm-test-ulps: Update.
6629         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6630
6631         [BZ #10135]
6632         * sysdeps/ieee754/dbl-64/s_scalbln.c (__scalbln): First test for
6633         small n, then large n, before computing and testing k+n.
6634         * sysdeps/ieee754/dbl-64/s_scalbn.c (__scalbn): Likewise.
6635         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c (__scalbln):
6636         Likewise.
6637         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c (__scalbn):
6638         Likewise.
6639         * sysdeps/ieee754/flt-32/s_scalblnf.c (__scalblnf): Likewise.
6640         * sysdeps/ieee754/flt-32/s_scalbnf.c (__scalbnf): Likewise.
6641         * sysdeps/ieee754/ldbl-128/s_scalblnl.c (__scalblnl): Likewise.
6642         * sysdeps/ieee754/ldbl-128/s_scalbnl.c (__scalbnl): Likewise.
6643         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c (__scalblnl): Likewise.
6644         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c (__scalbnl): Likewise.
6645         * sysdeps/ieee754/ldbl-96/s_scalblnl.c (__scalblnl): Likewise.
6646         * sysdeps/ieee754/ldbl-96/s_scalbnl.c (__scalbnl): Likewise.
6647         * math/libm-test.inc (scalbn_test): Add more tests.
6648         (scalbln_test): Likewise.
6649
6650         * manual/filesys.texi (mode_t): Describe constraints on size and
6651         signedness, not exact equivalence to a particular type.
6652         (ino_t): Likewise.
6653         (ino64_t): Likewise.
6654         (dev_t): Likewise.
6655         (nlink_t): Likewise.
6656         (blkcnt_t): Likewise.
6657         (blkcnt64_t): Likewise.
6658         * manual/llio.texi (off_t): Likewise.
6659
6660         [BZ #3976]
6661         * sysdeps/ieee754/dbl-64/e_exp.c: Include <fenv.h>.
6662         (__ieee754_exp): Save and restore rounding mode and use
6663         round-to-nearest for all computations.
6664         * math/libm-test.inc (exp_test_tonearest): New function.
6665         (exp_test_towardzero): Likewise.
6666         (exp_test_downward): Likewise.
6667         (exp_test_upward): Likewise.
6668         (main): Call the new functions.
6669         * sysdeps/i386/fpu/libm-test-ulps: Update.
6670         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6671
6672 2012-03-01  Chris Demetriou  <cgd@google.com>
6673
6674         * sysdeps/gnu/errlist-compat.awk: Don't depend on AWK internals to
6675         have predictable order.
6676
6677 2012-03-01  David S. Miller  <davem@davemloft.net>
6678
6679         * sysdeps/unix/sysv/linux/sparc/sparc32/getpagesize.c: Delete.
6680
6681         * sysdeps/sparc/sparc64/fpu/s_finite.S: New file.
6682         * sysdeps/sparc/sparc64/fpu/s_finitef.S: New file.
6683         * sysdeps/sparc/sparc64/fpu/s_isinf.S: New file.
6684         * sysdeps/sparc/sparc64/fpu/s_isinff.S: New file.
6685
6686         * sysdeps/sparc/sparc32/fpu/s_signbit.S: New file.
6687         * sysdeps/sparc/sparc32/fpu/s_signbitf.S: New file.
6688         * sysdeps/sparc/sparc32/fpu/s_signbitl.S: New file.
6689         * sysdeps/sparc/sparc32/sparcv9/fpu/s_isnan.S: New file.
6690         * sysdeps/sparc/sparc64/fpu/s_isnan.S: New file.
6691         * sysdeps/sparc/sparc64/fpu/s_isnanf.S: New file.
6692         * sysdeps/sparc/sparc64/fpu/s_signbit.S: New file.
6693         * sysdeps/sparc/sparc64/fpu/s_signbitf.S: New file.
6694         * sysdeps/sparc/sparc64/fpu/s_signbitl.S: New file.
6695
6696         * sysdeps/sparc/fpu/libm-test-ulps: Update.
6697
6698         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Move...
6699         * sysdeps/sparc/fpu/libm-test-ulps: to here.
6700         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Delete.
6701
6702         * sysdeps/sparc/crti.S: Remove HAVE_BINUTILS_GOTDATA checks.
6703         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
6704         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
6705         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: Likewise.
6706         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: Likewise.
6707         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: Likewise.
6708         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: Likewise.
6709         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
6710         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
6711         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: Likewise.
6712         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: Likewise.
6713         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
6714         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
6715         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
6716         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
6717         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
6718         * config.h.in (HAVE_BINUTILS_GOTDATA): Delete.
6719         * sysdeps/sparc/elf/configure.in: Remove binutils GOTDATA checks.
6720         * sysdeps/sparc/elf/configure: Regenerated.
6721
6722 2012-03-01  Joseph Myers  <joseph@codesourcery.com>
6723
6724         * configure.in (AS, LD): Require binutils 2.20 or later.
6725         * configure: Regenerated.
6726         * manual/install.texi (Tools for Compilation): Give binutils 2.20
6727         as required minimum version.
6728         * INSTALL: Regenerated.
6729
6730         [BZ #2541]
6731         [BZ #4108]
6732         * sysdeps/ieee754/flt-32/s_erff.c (__erfcf): Mask out one more bit
6733         before squaring exponent.
6734         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c (__erfcl): Mask out whole
6735         bottom long double and 27 bits of top long double before squaring
6736         exponent.
6737         * math/libm-test.inc (erfc_test): Add more tests.
6738         * sysdeps/i386/fpu/libm-test-ulps: Update.
6739         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
6740         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6741
6742 2012-03-01  Kai Tietz  <ktietz@redhat.com>
6743
6744         * soft-fp/soft-fp.h (_FP_STRUCT_LAYOUT): New macro.
6745         * soft-fp/quad.h (_FP_UNION_Q): Use _FP_STRUCT_LAYOUT on struct
6746         containing bit-fields.
6747         * soft-fp/extended.h (_FP_UNION_E): Likewise.
6748         * soft-fp/single.h (_FP_UNION_S): Likewise.
6749         * soft-fp/double.h (_FP_UNION_D): Likewise.
6750
6751 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
6752
6753         [BZ #13786]
6754         * sysdeps/i386/i686/multiarch/strcmp.S [USE_AS_STRCASECMP_L]: Do
6755         not include ../strcmp.S.
6756         [USE_AS_STRNCASECMP_L]: Likewise.
6757         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c
6758         (__strcasecmp_l_ia32): Define as alias to __strcasecmp_l_nonascii.
6759         * sysdeps/i386/i686/multiarch/strncase_l-c.c
6760         (__strncasecmp_l_ia32): Define as alias to
6761         __strncasecmp_l_nonascii.
6762
6763         [BZ #5794]
6764         * math/libm-test.inc (expm1_test): Add test for bug 5794.
6765         * sysdeps/i386/fpu/libm-test-ulps: Update.
6766         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6767
6768         * sysdeps/i386/fpu/libm-test-ulps: Reduce some expected errors.
6769         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
6770
6771 2012-02-29  Jeff Law  <law@redhat.com>
6772
6773         * resolv/res_query.c (__libc_res_nquerydomain): Avoid
6774         out of bounds read.
6775
6776 2012-02-29  Marek Polacek  <polacek@redhat.com>
6777
6778         [BZ #13706]
6779         * elf/rtld.c (dl_main): Always set l_used to 1 for vDSO.
6780         * elf/Makefile: Add rules to run tst-unused-dep.out.
6781
6782 2012-02-28  David S. Miller  <davem@davemloft.net>
6783
6784         * sysdeps/sparc/sparc32/fpu/w_sqrt.S: New file.
6785         * sysdeps/sparc/sparc32/fpu/w_sqrtf.S: New file.
6786         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrt.S: New file.
6787         * sysdeps/sparc/sparc32/sparcv9/fpu/w_sqrtf.S: New file.
6788         * sysdeps/sparc/sparc64/fpu/w_sqrt.S: New file.
6789         * sysdeps/sparc/sparc64/fpu/w_sqrtf.S: New file.
6790
6791 2012-02-29  Joseph Myers  <joseph@codesourcery.com>
6792
6793         * math/libm-test.inc (llround_test): Move one test from
6794         lround_test.  Use TEST_f_L in moved test.
6795         (lround_test): Move misplaced test to llround_test.  Add testcase
6796         from bug 2561.
6797
6798 2012-02-28  Ulrich Drepper  <drepper@gmail.com>
6799
6800         * sysdeps/x86_64/fpu/e_expf.S: New file.
6801         Contributed by Dmitrieva Liubov <liubov.dmitrieva@gmail.com>.
6802
6803 2012-02-28  Stanislav Brabec  <sbrabec@suse.cz>
6804
6805         [BZ #13637]
6806         * posix/regex_internal.c (re_string_skip_chars): Fix miscomputation
6807         of remain_len that may cause incomplete multi-byte character and
6808         false match.
6809         * posix/bug-regex33.c: New file.
6810         * posix/Makefile (tests): Add bug-regex33.
6811
6812 2012-02-28  Joseph Myers  <joseph@codesourcery.com>
6813
6814         * manual/macros.texi: New file.
6815         * Makefile (INSTALL, NOTES): Depend on manual/macros.texi.
6816         * manual/libc.texinfo: Include macros.texi.
6817         * manual/creatute.texi: Likewise.
6818         * manual/install.texi: Likewise.
6819         * manual/arith.texi: Use macros @Theglibc{}, @theglibc{} and
6820         @glibcadj{} in references to the GNU C Library.
6821         * manual/charset.texi: Likewise.
6822         * manual/conf.texi: Likewise.
6823         * manual/contrib.texi: Likewise.  Consistently use "GNU C Library"
6824         when not using those macros.
6825         * manual/creature.texi: Likewise.
6826         * manual/crypt.texi: Likewise.
6827         * manual/errno.texi: Likewise.
6828         * manual/filesys.texi: Likewise.
6829         * manual/header.texi: Likewise.
6830         * manual/install.texi: Likewise.
6831         * manual/intro.texi: Likewise.
6832         * manual/io.texi: Likewise.
6833         * manual/job.texi: Likewise.
6834         * manual/lang.texi: Likewise.
6835         * manual/libc.texiinfo: Likewise.
6836         * manual/llio.texi: Likewise.
6837         * manual/locale.texi: Likewise.
6838         * manual/maint.texi: Likewise.
6839         * manual/math.texi: Likewise.
6840         * manual/memory.texi: Likewise.
6841         * manual/message.texi: Likewise.
6842         * manual/nss.texi: Likewise.
6843         * manual/pattern.texi: Likewise.
6844         * manual/process.texi: Likewise.
6845         * manual/resource.texi: Likewise.
6846         * manual/search.texi: Likewise.
6847         * manual/setjmp.texi: Likewise.
6848         * manual/signal.texi: Likewise.
6849         * manual/socket.texi: Likewise.
6850         * manual/startup.texi: Likewise.
6851         * manual/stdio.texi: Likewise.
6852         * manual/string.texi: Likewise.
6853         * manual/sysinfo.texi: Likewise.
6854         * manual/syslog.texi: Likewise.
6855         * manual/terminal.texi: Likewise.
6856         * manual/time.texi: Likewise.
6857         * manual/users.texi: Likewise.
6858         * INSTALL: Regenerated.
6859         * NOTES: Regenerated.
6860         * sysdeps/gnu/errlist.c: Regenerated.
6861
6862 2012-02-28  Andreas Schwab  <schwab@linux-m68k.org>
6863
6864         * include/dirent.h: Include <dirstream.h> before
6865         <dirent/dirent.h>.
6866
6867 2012-02-28  David S. Miller  <davem@davemloft.net>
6868
6869         * sysdeps/sparc/sparc32/fpu/s_copysign.S: New file.
6870         * sysdeps/sparc/sparc32/fpu/s_copysignf.S: New file.
6871         * sysdeps/sparc/sparc64/fpu/s_copysign.S: New file.
6872         * sysdeps/sparc/sparc64/fpu/s_copysignf.S: New file.
6873
6874 2012-02-27  David S. Miller  <davem@davemloft.net>
6875
6876         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floor.S: New file.
6877         * sysdeps/sparc/sparc32/sparcv9/fpu/s_floorf.S: New file.
6878         * sysdeps/sparc/sparc64/fpu/s_floor.S: New file.
6879         * sysdeps/sparc/sparc64/fpu/s_floorf.S: New file.
6880
6881         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix accidental use of
6882         frame pointer instead of stack pointer relative arg slot.
6883         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6884         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6885         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6886
6887 2012-02-27  Carlos O'Donell  <carlos_odonell@mentor.com>
6888
6889         [BZ #3992]
6890         * stdlib/fmtmsg.c: Use of uint32_t requires stdint.h.
6891
6892 2012-02-27  David S. Miller  <davem@davemloft.net>
6893
6894         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: Fix comment formatting.
6895         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: Likewise.
6896         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: Likewise.
6897         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: Likewise.
6898         * sysdeps/sparc/sparc64/fpu/s_ceil.S: Likewise.
6899         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: Likewise.
6900         * sysdeps/sparc/sparc64/fpu/s_rint.S: Likewise.
6901         * sysdeps/sparc/sparc64/fpu/s_rintf.S: Likewise.
6902
6903 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6904
6905         * configure.in (CC): Restrict allowed GCC versions to 4.3 and
6906         later.  Allow versions 5-9.
6907         * configure: Regenerated.
6908         * manual/install.texi (Tools for Compilation): Give GCC 4.3 as
6909         required minimum version and 4.6 as recommended version.  Do not
6910         mention bugs in GCC 2.7 and 2.8.
6911         * INSTALL: Regenerated.
6912
6913 2012-02-27  David S. Miller  <davem@davemloft.net>
6914
6915         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceil.S: New file.
6916         * sysdeps/sparc/sparc32/sparcv9/fpu/s_ceilf.S: New file.
6917         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rint.S: New file.
6918         * sysdeps/sparc/sparc32/sparcv9/fpu/s_rintf.S: New file.
6919         * sysdeps/sparc/sparc64/fpu/s_ceil.S: New file.
6920         * sysdeps/sparc/sparc64/fpu/s_ceilf.S: New file.
6921         * sysdeps/sparc/sparc64/fpu/s_rint.S: New file.
6922         * sysdeps/sparc/sparc64/fpu/s_rintf.S: New file.
6923
6924         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c (__nearbyintl): Do not
6925         manipulate bits before adding and subtracting TWO112[sx].
6926         * sysdeps/ieee754/ldbl-128/s_rintl.c (__rintl): Likewise.
6927
6928 2012-02-27  Roland McGrath  <roland@hack.frob.com>
6929
6930         [BZ #13775]
6931         * libio/bits/stdio-ldbl.h (vdprintf, dprintf): Put these under
6932         [__USE_XOPEN2K8] rather than [__USE_GNU], to match the stdio.h decls.
6933         * libio/stdio.h (vdprintf, dprintf): Remove comment about these not
6934         being in POSIX, because they are in 1003.1-2008.
6935
6936         * rt/tst-aio.c: Include <fcntl.h>.
6937         * rt/tst-aio7.c: Likewise.
6938         * rt/tst-aio64.c: Likewise.
6939
6940         * stdio-common/tst-fmemopen.c (main): Remove spurious const.
6941
6942 2012-02-27  Joseph Myers  <joseph@codesourcery.com>
6943
6944         * manual/install.texi (--with-headers): Describe headers as
6945         interface headers, not private headers.
6946         (Specific advice for GNU/Linux systems): Describe use of headers
6947         from "make headers_install", not private headers from older
6948         kernels.
6949         * INSTALL: Regenerated.
6950         * sysdeps/unix/sysv/linux/configure.in (LIBC_LINUX_VERSION):
6951         Change to 2.6.19.
6952         * sysdeps/unix/sysv/linux/configure: Regenerated.
6953
6954         * manual/llio.texi (fclean): Remove documentation.
6955
6956         * manual/Makefile (libc-texi-generated): New variable.  Include
6957         version.texi.
6958         (libc.dvi, libc.pdf, libc.info, libc/index.html): Depend on
6959         $(libc-texi-generated), not duplicated list of files.
6960         (version.texi, stamp-version): New rules.
6961         (realclean): Remove $(libc-texi-generated), not individual files
6962         from that list.  Do not remove dir-add.texinfo.
6963         * manual/libc.texinfo: Comment out uses of edition numbers and
6964         references to printed manual.  Remove last-updated dates.
6965         (EDITION): Comment out.
6966         (ISBN): Likewise.
6967         (VERSION, UPDATED): Remove.
6968         (version.texi): Include.
6969
6970 2012-02-27  Andreas Schwab  <schwab@linux-m68k.org>
6971
6972         * sysdeps/posix/spawni.c: Include <signal.h>.
6973         * sysdeps/pthread/aio_cancel.c: Include <fcntl.h>.
6974         * sysdeps/pthread/aio_fsync.c: Likewise.
6975
6976 2012-02-26  Ulrich Drepper  <drepper@gmail.com>
6977
6978         * conform/Makefile (tests): Run only when not cross-compiling and
6979         when fast-check is not defined.
6980
6981         * conform/conformtest.pl: XPG7 and POSIX2008 require C99.
6982         * conform/data/limits.h-data: Fixes for POSIX2008.
6983         * conform/run-conformtest.sh: Run all tests.
6984         * include/arpa/inet.h: Changes to allow conformtest.pl to use the
6985         headers.
6986         * include/bits/dlfcn.h: Likewise.
6987         * include/langinfo.h: Likewise.
6988         * include/monetary.h: Likewise.
6989         * include/sys/poll.h: Likewise.
6990
6991         * io/fcntl.h: Define AT_NO_AUTOMOUNT and AT_EMPTY_PATH only
6992         for __USE_GNU.
6993         * posix/spawn.h: Define __need_sigset_t.
6994         * posix/sys/wait.h: Don't include <sys/resource.h>, define id_t here.
6995         * posix/unistd.h: Declare ctermid only for XPG before XPG6.
6996         * rt/aio.h: Don't include fcntl.h and signal.h.  Use bits/siginfo.h
6997         to get sigevent_t only.
6998         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg and recvmmsg
6999         only for __USE_GNU.
7000         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
7001         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
7002         process_vm_writev only for __USE_GNU.
7003         * termios/termios.h: Declare tcgetsid also for POSIX2008.
7004
7005         * conform/Makefile: For now ignore errors from run-conformtest.
7006         * conform/conformtest.pl: Simplify code.  Add -ansi to CFLAGS for
7007         POSIX to avoid namespace pollution.  Don't prepend headers.
7008         * conform/data/aio.h-data: Fixes for POSIX testing.
7009         * conform/data/fcntl.h-data: Likewise.
7010         * conform/data/glob.h-data: Likewise.
7011         * conform/data/grp.h-data: Likewise.
7012         * conform/data/pthread.h-data: Likewise.
7013         * conform/data/pwd.h-data: Likewise.
7014         * conform/data/signal.h-data: Likewise.
7015         * conform/data/spawn.h-data: Likewise.
7016         * conform/data/stdio.h-data: Likewise.
7017         * conform/data/stdlib.h-data: Likewise.
7018         * conform/data/stropts.h-data: Likewise.
7019         * conform/data/sys/mman.h-data: Likewise.
7020         * conform/data/sys/stat.h-data: Likewise.
7021         * conform/data/sys/types.h-data: Likewise.
7022         * conform/data/sys/wait.h-data: Likewise.
7023         * conform/data/time.h-data: Likewise.
7024         * conform/data/unistd.h-data: Likewise.
7025         * conform/data/utime.h-data: Likewise.
7026
7027         * io/sys/stat.h: fchmod was always in POSIX.
7028         * posix/sys/wait.h: Include <sys/resource.h> only for waitid.
7029         * posix/unistd.h: fsync and ftruncate were in early POSIX as well.
7030         * rt/aio.h: Define __need_timespec before including <time.h>.
7031         * sysdeps/unix/sysv/linux/bits/siginfo.h: Don't name siginfo_t
7032         struct.  Add forward declaration of pthread_attr_t and use it in
7033         sigevent.
7034         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
7035         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
7036         * sysdeps/unix/sysv/linux/bits/time.h: Don't let __STRICT_ANSI__
7037         always remove CLK_TCK definition.
7038
7039 2012-02-26  Andreas Schwab  <schwab@linux-m68k.org>
7040
7041         * sysdeps/ieee754/dbl-64/k_tan.c: Replace with empty file.
7042
7043 2012-02-25  Ulrich Drepper  <drepper@gmail.com>
7044
7045         * conform/run-conformtest.sh: New file.
7046         * conform/Makefile: Run run-conformtest for tests.
7047         * conform/conformtest.pl: Many bug fixes.  Add ISO C99, ISO C11
7048         support.
7049
7050         * conform/data/uchar.h-data: New file.
7051         * conform/data/aio.h-data: Fixes for ISO C and POSIX 1995 testing.
7052         * conform/data/arpa/inet.h-data: Likewise.
7053         * conform/data/assert.h-data: Likewise.
7054         * conform/data/complex.h-data: Likewise.
7055         * conform/data/cpio.h-data: Likewise.
7056         * conform/data/ctype.h-data: Likewise.
7057         * conform/data/dirent.h-data: Likewise.
7058         * conform/data/dlfcn.h-data: Likewise.
7059         * conform/data/errno.h-data: Likewise.
7060         * conform/data/fcntl.h-data: Likewise.
7061         * conform/data/float.h-data: Likewise.
7062         * conform/data/fmtmsg.h-data: Likewise.
7063         * conform/data/fnmatch.h-data: Likewise.
7064         * conform/data/ftw.h-data: Likewise.
7065         * conform/data/glob.h-data: Likewise.
7066         * conform/data/grp.h-data: Likewise.
7067         * conform/data/iconv.h-data: Likewise.
7068         * conform/data/inttypes.h-data: Likewise.
7069         * conform/data/langinfo.h-data: Likewise.
7070         * conform/data/libgen.h-data: Likewise.
7071         * conform/data/limits.h-data: Likewise.
7072         * conform/data/locale.h-data: Likewise.
7073         * conform/data/math.h-data: Likewise.
7074         * conform/data/monetary.h-data: Likewise.
7075         * conform/data/mqueue.h-data: Likewise.
7076         * conform/data/ndbm.h-data: Likewise.
7077         * conform/data/net/if.h-data: Likewise.
7078         * conform/data/netdb.h-data: Likewise.
7079         * conform/data/netinet/in.h-data: Likewise.
7080         * conform/data/nl_types.h-data: Likewise.
7081         * conform/data/poll.h-data: Likewise.
7082         * conform/data/pthread.h-data: Likewise.
7083         * conform/data/pwd.h-data: Likewise.
7084         * conform/data/regex.h-data: Likewise.
7085         * conform/data/sched.h-data: Likewise.
7086         * conform/data/search.h-data: Likewise.
7087         * conform/data/semaphore.h-data: Likewise.
7088         * conform/data/setjmp.h-data: Likewise.
7089         * conform/data/signal.h-data: Likewise.
7090         * conform/data/spawn.h-data: Likewise.
7091         * conform/data/stdarg.h-data: Likewise.
7092         * conform/data/stdio.h-data: Likewise.
7093         * conform/data/stdlib.h-data: Likewise.
7094         * conform/data/string.h-data: Likewise.
7095         * conform/data/strings.h-data: Likewise.
7096         * conform/data/stropts.h-data: Likewise.
7097         * conform/data/sys/ipc.h-data: Likewise.
7098         * conform/data/sys/mman.h-data: Likewise.
7099         * conform/data/sys/msg.h-data: Likewise.
7100         * conform/data/sys/resource.h-data: Likewise.
7101         * conform/data/sys/select.h-data: Likewise.
7102         * conform/data/sys/sem.h-data: Likewise.
7103         * conform/data/sys/shm.h-data: Likewise.
7104         * conform/data/sys/socket.h-data: Likewise.
7105         * conform/data/sys/stat.h-data: Likewise.
7106         * conform/data/sys/statvfs.h-data: Likewise.
7107         * conform/data/sys/time.h-data: Likewise.
7108         * conform/data/sys/timeb.h-data: Likewise.
7109         * conform/data/sys/times.h-data: Likewise.
7110         * conform/data/sys/types.h-data: Likewise.
7111         * conform/data/sys/uio.h-data: Likewise.
7112         * conform/data/sys/un.h-data: Likewise.
7113         * conform/data/sys/utsname.h-data: Likewise.
7114         * conform/data/sys/wait.h-data: Likewise.
7115         * conform/data/syslog.h-data: Likewise.
7116         * conform/data/tar.h-data: Likewise.
7117         * conform/data/termios.h-data: Likewise.
7118         * conform/data/utime.h-data: Likewise.
7119         * conform/data/utmpx.h-data: Likewise.
7120         * conform/data/varargs.h-data: Likewise.
7121         * conform/data/wchar.h-data: Likewise.
7122         * conform/data/wctype.h-data: Likewise.
7123         * conform/data/wordexp.h-data: Likewise.
7124
7125         * include/stropts.h: New file.
7126         * include/uchar.h: New file.
7127         * include/aio.h: Changes to allow conformtest.pl to use the headers.
7128         * include/assert.h: Likewise.
7129         * include/ctype.h: Likewise.
7130         * include/dirent.h: Likewise.
7131         * include/dlfcn.h: Likewise.
7132         * include/fcntl.h: Likewise.
7133         * include/fnmatch.h: Likewise.
7134         * include/glob.h: Likewise.
7135         * include/grp.h: Likewise.
7136         * include/libio.h: Likewise.
7137         * include/locale.h: Likewise.
7138         * include/math.h: Likewise.
7139         * include/net/if.h: Likewise.
7140         * include/netdb.h: Likewise.
7141         * include/netinet/in.h: Likewise.
7142         * include/pthread.h: Likewise.
7143         * include/pwd.h: Likewise.
7144         * include/regex.h: Likewise.
7145         * include/sched.h: Likewise.
7146         * include/search.h: Likewise.
7147         * include/setjmp.h: Likewise.
7148         * include/signal.h: Likewise.
7149         * include/stdio.h: Likewise.
7150         * include/stdlib.h: Likewise.
7151         * include/string.h: Likewise.
7152         * include/sys/cdefs.h: Likewise.
7153         * include/sys/mman.h: Likewise.
7154         * include/sys/msg.h: Likewise.
7155         * include/sys/resource.h: Likewise.
7156         * include/sys/select.h: Likewise.
7157         * include/sys/socket.h: Likewise.
7158         * include/sys/stat.h: Likewise.
7159         * include/sys/statvfs.h: Likewise.
7160         * include/sys/time.h: Likewise.
7161         * include/sys/times.h: Likewise.
7162         * include/sys/uio.h: Likewise.
7163         * include/sys/utsname.h: Likewise.
7164         * include/sys/wait.h: Likewise.
7165         * include/termios.h: Likewise.
7166         * include/time.h: Likewise.
7167         * include/ulimit.h: Likewise.
7168         * include/unistd.h: Likewise.
7169         * include/utime.h: Likewise.
7170         * include/wchar.h: Likewise.
7171         * include/wctype.h: Likewise.
7172         * include/wordexp.h: Likewise.
7173
7174         * posix/tar.h (TSVTX): Should not be visible for POSIX before 2008.
7175
7176         * time/time.h: TIME_UTC must be a macro.
7177         Make timespec_get available for ISO C11 only as well.
7178
7179 2012-02-24  Ulrich Drepper  <drepper@gmail.com>
7180
7181         * stdlib/fmtmsg.c (fmtmsg): Lock around use of severity list.
7182         Reported by Peng Haitao <penght@cn.fujitsu.com>.
7183
7184 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
7185
7186         * configure.in: Use -o not -a in test for unsupported multi-arch.
7187
7188 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
7189
7190         * manual/texinfo.tex: Update to version 2012-01-19.16.
7191
7192 2012-02-24  Joseph Myers  <joseph@codesourcery.com>
7193
7194         * manual/Makefile (licenses): Change fdl-1.1.texi to fdl-1.3.texi.
7195
7196 2012-02-24  Roland McGrath  <roland@hack.frob.com>
7197
7198         [BZ #13738]
7199         * manual/libc.texinfo (FDL_VERSION): Set to 1.3.
7200         * manual/fdl-1.3.texi: New file.
7201         * manual/fdl-1.1.texi: File removed.
7202
7203         [BZ #13738]
7204         * manual/libc.texinfo (FDL_VERSION): New @set.
7205         Use it for mention of FDL in cover text.
7206         (Documentation License): Use it in @include file name.
7207
7208 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
7209             Roland McGrath  <roland@hack.frob.com>
7210
7211         [BZ #5461]
7212         * manual/arith.texi (strtoll): Refer to LLONG_MAX and LLONG_MIN,
7213         not LONG_LONG_MAX and LONG_LONG_MIN.
7214         * manual/lang.texi (LONG_LONG_MIN): Document first as ISO
7215         LLONG_MIN.  Refer to LONG_LONG_MIN only as older GCC-specific
7216         name.
7217         (LONG_LONG_MAX, LLONG_MAX, ULONG_LONG_MAX, ULLONG_MAX): Likewise.
7218
7219 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
7220
7221         [BZ #2547]
7222         [BZ #11365]
7223         * sysdeps/ieee754/flt-32/s_nearbyintf.c (__nearbyintf): Do not
7224         manipulate bits before adding and subtracting TWO23[sx].
7225         * math/libm-test.inc (nearbyint_test): Add more tests.
7226
7227 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
7228
7229         [BZ #2548]
7230         * sysdeps/ieee754/flt-32/s_rintf.c (__rintf): Do not manipulate
7231         bits before adding and subtracting TWO23[sx].
7232         * math/libm-test.inc (rint_test): Add more tests.
7233         (rint_test_tonearest): Likewise.
7234         (rint_test_towardzero): Likewise.
7235         (rint_test_downward): Likewise.
7236         (rint_test_upward: Likewise.
7237
7238 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
7239
7240         [BZ #10110]
7241         * include/stdc-predef.h: New file.  Extracted from features.h.
7242         * include/features.h: Include stdc-predef.h.
7243         * Makefile (headers): Add stdc-predef.h.
7244         * CONFORMANCE (Compiler limitations): Update.
7245
7246 2012-02-22  Joseph Myers  <joseph@codesourcery.com>
7247
7248         * manual/libc.texinfo (VERSION, UPDATED): Revert.
7249
7250 2012-02-21  David S. Miller  <davem@davemloft.net>
7251
7252         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: More jn test ULP updates.
7253         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
7254
7255 2012-02-20  David S. Miller  <davem@davemloft.net>
7256
7257         * sysdeps/sparc/sparc32/__longjmp.S: Unwind in the 'thread' path
7258         using a normal save/restore sequence, rather than allocating a
7259         dummy stack frame just to store a frame pointer and restore.
7260         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
7261
7262 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
7263
7264         * manual/install.texi: Fix stray word in line-wrapped comment.
7265
7266 2012-02-20  David S. Miller  <davem@davemloft.net>
7267
7268         * sysdeps/sparc/elf/configure.in (PI_STATIC_AND_HIDDEN): Define if
7269         both binutils and gcc support GOTDATA.
7270
7271         * sysdeps/unix/sparc/sysdep.h: Document why we don't use
7272         "rd %pc" in the PIC register setup sequences.
7273
7274         * sysdeps/sparc/crti.S: Try to use GOTDATA relocs.
7275         * sysdeps/sparc/sparc32/dl-machine.h (RTLD_START): Likewise.
7276         * sysdeps/sparc/sparc32/elf/start.S: Likewise.
7277         * sysdeps/sparc/sparc64/dl-machine.h (RTLD_START): Likewise.
7278         * sysdeps/sparc/sparc64/elf/start.S: Likewise.
7279         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Likewise.
7280         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
7281         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Likewise.
7282         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
7283         (SYSCALL_ERROR_HANDLER): Likewise.
7284         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Likewise.
7285         * sysdeps/unix/sysv/linux/sparc/sparc64/brk.S: Likewise.
7286         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
7287         (SYSCALL_ERROR_HANDLER): Likewise.
7288
7289         * config.h.in (HAVE_BINUTILS_GOTDATA): New.
7290         (HAVE_GCC_GOTDATA): New.
7291         * sysdeps/sparc/elf/configure.in: Test for GOTDATA
7292         relocation support in both binutils and gcc.
7293         * sysdeps/sparc/elf/configure: Regenerate.
7294
7295         * sysdeps/sparc/sparc32/elf/configure.in: Delete.
7296         * sysdeps/sparc/sparc32/elf/configure: Delete.
7297         * sysdeps/sparc/sparc64/elf/configure.in: Delete.
7298         * sysdeps/sparc/sparc64/elf/configure: Delete.
7299         * sysdeps/sparc/elf/configure.in: New file.
7300         * sysdeps/sparc/elf/configure: Generate.
7301
7302         * sysdeps/sparc/sparc32/elf/configure.in: Delete WDISP22 check.
7303         * sysdeps/sparc/sparc32/elf/configure: Regenerate.
7304         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
7305         * sysdeps/sparc/sparc64/elf/configure: Regenerate.
7306         * config.h.in (BROKEN_SPARC_WDISP22): Remove.
7307
7308 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
7309
7310         * manual/install.texi: Do not mention specific glibc version
7311         numbers.
7312         * manual/libc.texinfo (VERSION, UPDATED): Update.
7313         (@copying): Use @copyright{} and range of years.
7314
7315 2012-02-21  Joseph Myers  <joseph@codesourcery.com>
7316
7317         [BZ #13695]
7318         * csu/Makefile (distribute): Remove initfini.c and defs.awk.
7319         [crti.S not in sysdirs] (generated): Do not append.
7320         [crti.S not in sysdirs] (omit-deps): Likewise.
7321         [crti.S not in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Remove rule.
7322         [crti.S not in sysdirs] ($(objpfx)initfini.s): Likewise.
7323         [crti.S not in sysdirs] ($(objpfx)crti.S): Likewise.
7324         [crti.S not in sysdirs] ($(objpfx)crtn.S): Likewise.
7325         [crti.S not in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)):
7326         Likewise.
7327         [crti.S not in sysdirs] ($(objpfx)defs.h): Likewise.
7328         [crti.S not in sysdirs] (CFLAGS-initfini.s): Remove variable.
7329         [crti.S not in sysdirs] (initfini.c): Remove vpath directive.
7330         * csu/defs.awk: Remove file.
7331         * sysdeps/generic/initfini.c: Likewise.
7332         * sysdeps/powerpc/powerpc32/Makefile (CFLAGS-initfini.s): Remove
7333         variable.
7334         * sysdeps/powerpc/powerpc64/Makefile (CFLAGS-initfini.s):
7335         Likewise.
7336
7337 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
7338
7339         * sysdeps/unix/sysv/linux/bits/epoll.h: New file.
7340         * sysdeps/unix/sysv/linux/sparc/bits/epoll.h: Likewise.
7341         * sysdeps/unix/sysv/linux/x86_64/bits/epoll.h: Likewise.
7342         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Remove
7343         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
7344         * sysdeps/unix/sysv/linux/sys/epoll.h: Get flags from
7345         <bits/epoll.h>.
7346         (EPOLL_CLOEXEC, EPOLL_NONBLOCK): Don't define here.
7347         (__EPOLL_PACKED): Define to empty if not defined by
7348         <bits/epoll.h>.
7349         (struct epoll_event): Use __EPOLL_PACKED to make possibly packed.
7350         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7351         bits/epoll.h.
7352
7353 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
7354
7355         * sysdeps/unix/sysv/linux/bits/timerfd.h: New file.
7356         * sysdeps/unix/sysv/linux/sparc/bits/timerfd.h: Likewise.
7357         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Remove.
7358         * sysdeps/unix/sysv/linux/sys/timerfd.h: Get flags from
7359         <bits/timerfd.h>.
7360         (TFD_CLOEXEC, TFD_NONBLOCK): Don't define here.
7361         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7362         bits/timerfd.h.
7363
7364 2012-02-20  Joseph Myers  <joseph@codesourcery.com>
7365
7366         * sysdeps/i386/fpu/libm-test-ulps: Resort with gen-libm-test.pl -n
7367         in C locale.
7368         * sysdeps/powerpc/fpu/libm-test-ulps: Likewise.
7369         * sysdeps/sh/sh4/fpu/libm-test-ulps: Likewise.
7370         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Likewise.
7371         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7372
7373 2012-02-20  Aurelien Jarno  <aurelien@aurel32.net>
7374
7375         * sysdeps/sparc/sparc32/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7376         * sysdeps/sparc/sparc64/fpu/libm-test-ulps: Likewise.
7377
7378 2012-02-19  Andreas Schwab  <schwab@linux-m68k.org>
7379
7380         * manual/errno.texi (Error Codes): Add EHWPOISON entry.
7381         * sysdeps/unix/sysv/linux/bits/errno.h (EHWPOISON): Define if not
7382         defined.
7383         * sysdeps/unix/sysv/linux/sparc/bits/errno.h (EHWPOISON):
7384         Likewise.
7385         * sysdeps/unix/sysv/linux/sparc/Versions: Add new errlist compat
7386         entry for 2.16.
7387
7388 2012-02-19  Aurelien Jarno  <aurelien@aurel32.net>
7389
7390         * math/w_acos.c: Use non-signaling floating-point comparisons.
7391         * math/w_acosf.c: Likewise.
7392         * math/w_acosh.c: Likewise.
7393         * math/w_acoshf.c: Likewise.
7394         * math/w_acoshl.c: Likewise.
7395         * math/w_acosl.c: Likewise.
7396         * math/w_asin.c: Likewise.
7397         * math/w_asinf.c: Likewise.
7398         * math/w_asinl.c: Likewise.
7399         * math/w_atanh.c: Likewise.
7400         * math/w_atanhf.c: Likewise.
7401         * math/w_atanhl.c: Likewise.
7402         * math/w_exp2.c: Likewise.
7403         * math/w_exp2f.c: Likewise.
7404         * math/w_exp2l.c: Likewise.
7405         * math/w_j0.c: Likewise.
7406         * math/w_j0f.c: Likewise.
7407         * math/w_j0l.c: Likewise.
7408         * math/w_j1.c: Likewise.
7409         * math/w_j1f.c: Likewise.
7410         * math/w_j1l.c: Likewise.
7411         * math/w_jn.c: Likewise.
7412         * math/w_jnf.c: Likewise.
7413         * math/w_log.c: Likewise.
7414         * math/w_log10.c: Likewise.
7415         * math/w_log10f.c: Likewise.
7416         * math/w_log10l.c: Likewise.
7417         * math/w_log2.c: Likewise.
7418         * math/w_log2f.c: Likewise.
7419         * math/w_log2l.c: Likewise.
7420         * math/w_logf.c: Likewise.
7421         * math/w_logl.c: Likewise.
7422         * math/w_sqrt.c: Likewise.
7423         * math/w_sqrtf.c: Likewise.
7424         * math/w_sqrtl.c: Likewise.
7425         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
7426         * sysdeps/ieee754/dbl-64/w_exp.c: Likewise.
7427         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
7428         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
7429         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
7430
7431 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
7432
7433         [BZ #9739]
7434         * manual/string.texi (strnlen): Use correct parameter name in
7435         equivalent expression.
7436
7437 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
7438
7439         [BZ #11174]
7440         * manual/users.texi (seteuid): Consistently use neweuid for
7441         argument name.
7442
7443 2012-02-19  Joseph Myers  <joseph@codesourcery.com>
7444
7445         [BZ #13704]
7446         * manual/nss.texi (Services in the NSS configuration): Correct
7447         list of services in example configuration file.
7448
7449 2012-02-19  Nick Bowler  <nbowler@draconx.ca>
7450
7451         [BZ #11322]
7452         * manual/arith.texi: Remove statements about negative zero
7453         behaving identically to zero.
7454
7455 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
7456
7457         [BZ #5993]
7458         * manual/install.texi: Do not document upgrading from libc5.
7459
7460 2012-02-18  Joseph Myers  <joseph@codesourcery.com>
7461
7462         [BZ #4596]
7463         * manual/conf.texi (_POSIX_VERSION): Do not mention __POSIX__.
7464
7465 2012-02-18  David S. Miller  <davem@davemloft.net>
7466
7467         * sysdeps/unix/sparc/sysdep.h (SPARC_PIC_THUNK): New macro.
7468         (SETUP_PIC_REG): Use SPARC_PIC_THUNK and don't save and restore
7469         %o7 across the call.
7470         (SETUP_PIC_REG_LEAF): Do %o7 save/restore in this new macro
7471         instead.
7472         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Use
7473         SETUP_PIC_REG_LEAF.
7474         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
7475         * sysdeps/sparc/crti.S: Use SETUP_PIC_REG.
7476         * sysdeps/sparc/crtn.S: Likewise.
7477
7478 2012-02-17  Ulrich Drepper  <drepper@gmail.com>
7479
7480         * aout/Makefile: Remove.
7481
7482 2012-02-18  Rafe Kettler  <rafe.kettler@gmail.com>
7483
7484         [BZ #13058]
7485         * manual/examples/argp-ex1.c (main): Format definition in GNU
7486         style.
7487         * manual/examples/argp-ex2.c (main): Likewise.
7488         * manual/examples/argp-ex3.c (main): Likewise.
7489         * manual/examples/argp-ex4.c (main): Likewise.
7490         * manual/examples/longopt.c (main): Use new-style prototype
7491         definition.
7492         * manual/examples/strncat.c (main): Specify return type and use
7493         (void) for arguments.
7494         * manual/examples/subopt.c (main): Use char **argv argument.
7495
7496 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7497
7498         [BZ #5077]
7499         * manual/lang.texi (FLT_EPSILON): Avoid description depending on
7500         rounding modes.
7501
7502 2012-02-17  Fabrice Bauzac  <fabrice.bauzac@wanadoo.fr>
7503
7504         [BZ #6907]
7505         * manual/string.texi (strchr): Change when strchrnul is
7506         recommended.
7507
7508 2012-02-17  Dwayne Grant McConnell  <decimal@us.ibm.com>
7509
7510         [BZ #174]
7511         * manual/locale.texi (setlocale): Document LOCPATH.
7512
7513 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7514
7515         [BZ #10210]
7516         * manual/process.texi (execle): Move @dots{} before last argument.
7517
7518 2012-02-17  Paul Bolle  <pebolle@tiscali.nl>
7519
7520         [BZ #12047]
7521         * manual/charset.texi (Generic Charset Conversion): Fix typo
7522         (LC_TYPE -> LC_CTYPE).
7523
7524 2012-02-17  Nicolas Boulenguez  <nicolas.boulenguez@free.fr>
7525
7526         [BZ #5805]
7527         * manual/arith.texi (scalbn): Use @var{} on parameter names.
7528         (scalbnf): Likewise.
7529         (scalbnl): Likewise.
7530         (scalbln): Likewise.
7531         (scalblnf): Likewise.
7532         (scalblnl): Likewise.
7533         * manual/errno.texi (vwarn): Name last parameter as @var{ap}.
7534         (vwarnx): Likewise.
7535         (verr): Likewise.
7536         (verrx): Likewise.
7537         * manual/filesys.texi (telldir): Use braces around return type.
7538         * manual/llio.texi (mmap): Add space after comma.
7539         (mmap64): Likewise.
7540         * manual/math.texi (jn): Use @var{} on parameter names.
7541         (jnf): Likewise.
7542         (jnl): Likewise.
7543         (yn): Likewise.
7544         (ynf): Likewise.
7545         (ynl): Likewise.
7546         * manual/memory.texi (alloca): Remove semicolon on @deftypefun
7547         line.
7548         * manual/resource.texi (ulimit): Use @dots{} instead of literal
7549         "...".
7550         (sched_get_priority_min): Remove semicolon on @deftypefun line.
7551         (sched_get_priority_max): Likewise.
7552         * manual/signal.texi (sigvec): Add space after comma.
7553         * manual/socket.texi (if_nametoindex): Use @var{} on parameter
7554         names.
7555         (if_indextoname): Likewise.
7556         (if_freenameindex): Likewise.
7557         (sendto): Use ',' instead of '.' in prototype.
7558         * manual/startup.texi (syscall): Use @dots{} instead of literal
7559         "...".
7560         * manual/stdio.texi (__fpending): Separate initial words of
7561         paragraph from @deftypefun line.
7562         * manual/syslog.texi (syslog): Use @dots{} instead of literal
7563         "...".
7564         (vsyslog): Use @var{} on parameter names.
7565         * manual/terminal.texi (stty): Use @var{} on parameter names.
7566         * manual/users.texi (getutmp): Use @var{} on parameter names.
7567         (getutmpx): Likewise.
7568
7569 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7570
7571         [BZ #6884]
7572         * manual/stdio.texi (fopen): Fix typos in description of
7573         ",ccs=STRING".
7574
7575 2012-02-17  Aurelien Jarno  <aurelien@aurel32.net>
7576
7577         [BZ #4026]
7578         * sysdeps/unix/sysv/linux/clock_settime.c: include <time.h> to
7579         get clock_id definition.
7580
7581 2012-02-17  Thomas Schwinge  <thomas@schwinge.name>
7582
7583         [BZ #4822]
7584         * sysdeps/mach/hurd/malloc-machine.h: #include <sys/mman.h>.
7585         (madvise): Cast every argument to void on its own.
7586
7587 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7588
7589         [BZ #9902]
7590         * manual/startup.texi (Exit Status): Fix typo.
7591
7592 2012-02-17  Joseph Myers  <joseph@codesourcery.com>
7593
7594         [BZ #10140]
7595         * manual/examples/argp-ex1.c: Include <stdlib.h>.
7596         * manual/examples/argp-ex2.c: Likewise.
7597         * manual/examples/argp-ex3.c: Likewise.
7598
7599 2012-02-16  Richard Henderson  <rth@redhat.com>
7600
7601         * sysdeps/s390/s390-32/crti.S, sysdeps/s390/s390-32/crtn.S: New files.
7602         * sysdeps/s390/s390-32/initfini.c: Remove.
7603         * sysdeps/s390/s390-64/crti.S, sysdeps/s390/s390-64/crtn.S:
7604         * sysdeps/s390/s390-64/initfini.c: Remove.
7605
7606 2012-02-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
7607
7608         * sysdeps/sh/crti.S, sysdeps/sh/crtn.S: New files, based on
7609         compiler output for sysdeps/generic/initfini.c.
7610         * sysdeps/sh/elf/initfini.c: Remove file.
7611
7612 2012-02-16  David S. Miller  <davem@davemloft.net>
7613
7614         [BZ #11494]
7615         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h (O_FSYNC): Define.
7616
7617         * sysdeps/sparc/Makefile: Add -fPIC when building crt{i,n}.S
7618         * sysdeps/sparc/crti.S: New file.
7619         * sysdeps/sparc/crtn.S: New file.
7620         * sysdeps/sparc/sparc32/Makefile: Remove initfini handling.
7621         * sysdeps/sparc/sparc64/Makefile: Likewise.
7622
7623 2012-02-15  Mike Frysinger  <vapier@gentoo.org>
7624
7625         [BZ #3335]
7626         * sysdeps/unix/sysv/linux/getcwd.c: Include sys/param.h.
7627
7628 2012-02-15  Roland McGrath  <roland@hack.frob.com>
7629
7630         [BZ #4822]
7631         * sysdeps/mach/hurd/malloc-machine.h (madvise): New macro.
7632
7633         * mach/devstream.c (cookie_io_functions_t): Macro removed.
7634         (write, read, close): Likewise.
7635         Patch by Aurelien Jarno <aurelien@aurel32.net>.
7636
7637 2012-02-15  Joseph Myers  <joseph@codesourcery.com>
7638
7639         * sysdeps/unix/sysv/linux/bits/signalfd.h: New file.
7640         * sysdeps/unix/sysv/linux/sparc/bits/signalfd.h: Likewise.
7641         * sysdeps/unix/sysv/linux/sparc/sys/signalfd.h: Remove.
7642         * sysdeps/unix/sysv/linux/sys/signalfd.h: Get flags from
7643         <bits/signalfd.h>.
7644         (SFD_CLOEXEC, SFD_NONBLOCK): Don't define here.
7645         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7646         bits/signalfd.h.
7647
7648 2012-02-14  Marek Polacek  <polacek@redhat.com>
7649
7650         * sysdeps/x86_64/crti.S: New file.
7651         * sysdeps/x86_64/crtn.S: New file.
7652         * sysdeps/x86_64/elf/initfini.c: Remove file.
7653
7654 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
7655
7656         * sysdeps/unix/sysv/linux/bits/inotify.h: New file.
7657         * sysdeps/unix/sysv/linux/sparc/bits/inotify.h: Likewise.
7658         * sysdeps/unix/sysv/linux/sparc/sys/inotify.h: Remove.
7659         * sysdeps/unix/sysv/linux/sys/inotify.h: Get flags from
7660         <bits/inotify.h>.
7661         (IN_CLOEXEC, IN_NONBLOCK): Don't define here.
7662         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7663         bits/inotify.h.
7664
7665 2012-02-13  Joseph Myers  <joseph@codesourcery.com>
7666
7667         * sysdeps/unix/sysv/linux/bits/eventfd.h: New file.
7668         * sysdeps/unix/sysv/linux/sparc/bits/eventfd.h: Likewise.
7669         * sysdeps/unix/sysv/linux/sparc/sys/eventfd.h: Remove.
7670         * sysdeps/unix/sysv/linux/sys/eventfd.h: Get flags from
7671         <bits/eventfd.h>.
7672         (EFD_SEMAPHORE, EFD_CLOEXEC, EFD_NONBLOCK): Don't define here.
7673         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
7674         bits/eventfd.h.
7675
7676 2012-02-10  Thomas Schwinge  <thomas@codesourcery.com>
7677
7678         * sysdeps/i386/fpu/feupdateenv.c (__feupdateenv): Invoke
7679         __feraiseexcept instead of feraiseexcept.
7680
7681         * rt/tst-cpuclock1.c: Add a few comments, and error checking for
7682         nanosleep invocations.
7683         * rt/tst-cpuclock2.c: Print some values as intended, fix explanatory
7684         strings, and add error checking for a nanosleep invocations.
7685
7686 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
7687
7688         Replace FSF snail mail address with URLs, as per GNU coding standards.
7689         Most of the snail mail addresses were wrong anyway, and omitting
7690         them makes the source code easier to maintain.  Almost all of the
7691         changes are to license notices and to locale LC_IDENTIFICATION
7692         addresses, except for this one:
7693         * manual/libc.texinfo: In "Published by", give the FSF's URL,
7694         not its snail mail address.
7695
7696 2012-02-09  Richard Henderson  <rth@twiddle.net>
7697
7698         * sysdeps/unix/sysv/linux/internal_statvfs.c: Use <> for include
7699         of kernel-features.h.
7700
7701         * elf/dl-tls.c (update_get_addr): Avoid pointer type mismatch warning.
7702
7703 2012-02-08  Marek Polacek  <polacek@redhat.com>
7704
7705         * libio/libio.h: Remove _G_HAVE_SYS_CDEFS conditional.
7706         * sysdeps/mach/hurd/_G_config.h: Remove _G_HAVE_SYS_CDEFS macro.
7707         * sysdeps/gnu/_G_config.h: Likewise.
7708         * sysdeps/generic/_G_config.h: Likewise.
7709
7710 2012-02-08  Andreas Schwab  <schwab@linux-m68k.org>
7711
7712         * sysdeps/i386/fpu/libm-test-ulps: Reduce ldouble ULPs for jn
7713         tests.
7714         * sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
7715
7716         * sysdeps/powerpc/powerpc32/crti.S: New file.
7717         * sysdeps/powerpc/powerpc32/crtn.S: New file.
7718         * sysdeps/powerpc/powerpc64/crti.S: New file.
7719         * sysdeps/powerpc/powerpc64/crtn.S: New file.
7720
7721         * Makeconfig (have-initfini): Don't set.
7722         * config.make.in (have-initfini, need-nopic-initfini): Don't set.
7723         * configure.in (nopic_initfini): Don't substitute.
7724         * config.h.in (HAVE_INITFINI): Don't #undef.
7725         * csu/Makefile (CPPFLAGS): Don't add -DHAVE_INITFINI.
7726         * csu/gmon-start.c: Assume HAVE_INITFINI is defined.
7727
7728 2012-02-08  Joseph Myers  <joseph@codesourcery.com>
7729
7730         Support crti.S and crtn.S provided directly by architectures.
7731         * csu/Makefile [crti.S in sysdirs] (generated): Do not append.
7732         [crti.S in sysdirs] (omit-deps): Likewise.
7733         [crti.S in sysdirs] (CFLAGS-initfini.s): Do not define variable.
7734         [crti.S in sysdirs] ($(crtstuff:%=$(objpfx)%.o)): Disable rule.
7735         [crti.S in sysdirs] ($(objpfx)initfini.s): Likewise.
7736         [crti.S in sysdirs] ($(objpfx)crti.S): Likewise.
7737         [crti.S in sysdirs] ($(objpfx)crtn.S): Likewise.
7738         [crti.S in sysdirs] ($(patsubst %,$(objpfx)crt%.o,i n)): Likewise.
7739         [crti.S in sysdirs] ($(objpfx)defs.h): Likewise.
7740         [crti.S in sysdirs] (initfini.c): Remove vpath directive.
7741         * sysdeps/i386/crti.S, sysdeps/i386/crtn.S: New files, based on
7742         compiler output for sysdeps/generic/initfini.c.
7743         * sysdeps/i386/elf/Makefile: Remove file.
7744         * sysdeps/i386/Makefile (CFLAGS-initfini.s): Remove variable.
7745
7746 2012-02-07  Marek Polacek  <polacek@redhat.com>
7747
7748         * sysdeps/generic/_G_config.h: Remove _G_ARGS macro.
7749         * sysdeps/gnu/_G_config.h: Likewise.
7750         * sysdeps/mach/hurd/_G_config.h: Likewise.
7751
7752 2012-02-07  Marek Polacek  <polacek@redhat.com>
7753
7754         * math/Makefile (tests): Add tst-CMPLX2.
7755         * math/tst-CMPLX2.c: New file.
7756
7757 2012-02-07  Andreas Schwab  <schwab@linux-m68k.org>
7758
7759         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
7760
7761         * math/libm-test.inc (jn_test): Add missing L suffix.
7762
7763 2012-02-06  Marek Polacek  <polacek@redhat.com>
7764
7765         * sysdeps/s390/asm-syntax.h: Remove __ELF__ conditionals.
7766         * sysdeps/i386/fpu/e_powf.S: Likewise.
7767         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
7768         * sysdeps/i386/fpu/s_cexpl.S: Likewise.
7769         * sysdeps/i386/fpu/e_acosh.S: Likewise.
7770         * sysdeps/i386/fpu/e_pow.S: Likewise.
7771         * sysdeps/i386/fpu/s_asinhl.S: Likewise.
7772         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
7773         * sysdeps/i386/fpu/s_expm1.S: Likewise.
7774         * sysdeps/i386/fpu/s_frexpf.S: Likewise.
7775         * sysdeps/i386/fpu/e_log2.S: Likewise.
7776         * sysdeps/i386/fpu/e_log2l.S: Likewise.
7777         * sysdeps/i386/fpu/e_scalb.S: Likewise.
7778         * sysdeps/i386/fpu/e_powl.S: Likewise.
7779         * sysdeps/i386/fpu/s_log1p.S: Likewise.
7780         * sysdeps/i386/fpu/e_log10f.S: Likewise.
7781         * sysdeps/i386/fpu/s_cbrtf.S: Likewise.
7782         * sysdeps/i386/fpu/e_logl.S: Likewise.
7783         * sysdeps/i386/fpu/s_cbrt.S: Likewise.
7784         * sysdeps/i386/fpu/s_expm1l.S: Likewise.
7785         * sysdeps/i386/fpu/s_frexpl.S: Likewise.
7786         * sysdeps/i386/fpu/s_expm1f.S: Likewise.
7787         * sysdeps/i386/fpu/e_log2f.S: Likewise.
7788         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
7789         * sysdeps/i386/fpu/e_log.S: Likewise.
7790         * sysdeps/i386/fpu/s_cexp.S: Likewise.
7791         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
7792         * sysdeps/i386/fpu/s_log1pl.S: Likewise.
7793         * sysdeps/i386/fpu/e_logf.S: Likewise.
7794         * sysdeps/i386/fpu/e_log10l.S: Likewise.
7795         * sysdeps/i386/fpu/e_atanh.S: Likewise.
7796         * sysdeps/i386/fpu/s_log1pf.S: Likewise.
7797         * sysdeps/i386/fpu/s_asinhf.S: Likewise.
7798         * sysdeps/i386/fpu/s_cexpf.S: Likewise.
7799         * sysdeps/i386/fpu/e_log10.S: Likewise.
7800         * sysdeps/i386/fpu/s_frexp.S: Likewise.
7801         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
7802         * sysdeps/i386/fpu/s_asinh.S: Likewise.
7803         * sysdeps/i386/fpu/s_cbrtl.S: Likewise.
7804         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
7805         * sysdeps/i386/i686/fpu/e_logl.S: Likewise.
7806         * sysdeps/i386/asm-syntax.h: Likewise.
7807         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
7808         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
7809         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
7810         * sysdeps/x86_64/fpu/s_expm1l.S: Likewise.
7811         * sysdeps/x86_64/fpu/s_log1pl.S: Likewise.
7812         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
7813         * sysdeps/x86_64/fpu/s_copysignf.S: Likewise.
7814         * sysdeps/x86_64/fpu/s_copysign.S: Likewise.
7815         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
7816         * sysdeps/powerpc/sysdep.h: Likewise.
7817         * sysdeps/powerpc/powerpc64/sysdep.h: Likewise.
7818         * sysdeps/powerpc/powerpc32/sysdep.h: Likewise.
7819
7820 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
7821
7822         [BZ #411]
7823         * sysdeps/i386/sysdep.h (__i686): Undefine and redefine.
7824
7825 2012-02-06  Joseph Myers  <joseph@codesourcery.com>
7826
7827         * sysdeps/i386/sysdep.h: Include <features.h>.
7828         (GET_PC_THUNK, GET_PC_THUNK_STR): Define conditionally on compiler
7829         version.
7830
7831 2012-02-05  Joseph Myers  <joseph@codesourcery.com>
7832
7833         * sysdeps/i386/sysdep.h (SETUP_PIC_REG_STR, LOAD_PIC_REG_STR):
7834         Define.
7835         * sysdeps/unix/sysv/linux/i386/sysdep.h (check_consistency): Use
7836         LOAD_PIC_REG_STR.
7837
7838 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7839
7840         * sysdeps/i386/sysdep.h (GET_PC_THUNK, GET_PC_THUNK_STR): Define.
7841         (SETUP_PIC_REG): Use GET_PC_THUNK.
7842         * sysdeps/unix/sysv/linux/i386/sysdep.h: Use GET_PC_THUNK_STR
7843         macro.
7844
7845 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7846
7847         * sysdeps/i386/sysdep.h (SETUP_PIC_REG, LOAD_PIC_REG): Define also
7848         for non-PIC compilation.
7849         (SETUP_PIC_REG): Add .p2align directive.
7850         * sysdeps/i386/i686/memcmp.S: Use macros for PIC register setup.
7851         * sysdeps/i386/i686/multiarch/bcopy.S: Likewise.
7852         * sysdeps/i386/i686/multiarch/bzero.S: Likewise.
7853         * sysdeps/i386/i686/multiarch/memchr.S: Likewise.
7854         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Likewise.
7855         * sysdeps/i386/i686/multiarch/memcmp.S: Likewise.
7856         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Likewise.
7857         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
7858         * sysdeps/i386/i686/multiarch/memcpy.S: Likewise.
7859         * sysdeps/i386/i686/multiarch/memcpy_chk.S: Likewise.
7860         * sysdeps/i386/i686/multiarch/memmove.S: Likewise.
7861         * sysdeps/i386/i686/multiarch/memmove_chk.S: Likewise.
7862         * sysdeps/i386/i686/multiarch/mempcpy.S: Likewise.
7863         * sysdeps/i386/i686/multiarch/mempcpy_chk.S: Likewise.
7864         * sysdeps/i386/i686/multiarch/memrchr.S: Likewise.
7865         * sysdeps/i386/i686/multiarch/memset-sse2-rep.S: Likewise.
7866         * sysdeps/i386/i686/multiarch/memset-sse2.S: Likewise.
7867         * sysdeps/i386/i686/multiarch/memset.S: Likewise.
7868         * sysdeps/i386/i686/multiarch/memset_chk.S: Likewise.
7869         * sysdeps/i386/i686/multiarch/rawmemchr.S: Likewise.
7870         * sysdeps/i386/i686/multiarch/strcasecmp.S: Likewise.
7871         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Likewise.
7872         * sysdeps/i386/i686/multiarch/strcat.S: Likewise.
7873         * sysdeps/i386/i686/multiarch/strchr.S: Likewise.
7874         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Likewise.
7875         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Likewise.
7876         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
7877         * sysdeps/i386/i686/multiarch/strcpy-sse2.S: Likewise.
7878         * sysdeps/i386/i686/multiarch/strcpy.S: Likewise.
7879         * sysdeps/i386/i686/multiarch/strcspn.S: Likewise.
7880         * sysdeps/i386/i686/multiarch/strlen.S: Likewise.
7881         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
7882         * sysdeps/i386/i686/multiarch/strnlen.S: Likewise.
7883         * sysdeps/i386/i686/multiarch/strrchr.S: Likewise.
7884         * sysdeps/i386/i686/multiarch/strspn.S: Likewise.
7885         * sysdeps/i386/i686/multiarch/wcschr.S: Likewise.
7886         * sysdeps/i386/i686/multiarch/wcscmp.S: Likewise.
7887         * sysdeps/i386/i686/multiarch/wcscpy.S: Likewise.
7888         * sysdeps/i386/i686/multiarch/wcslen.S: Likewise.
7889         * sysdeps/i386/i686/multiarch/wcsrchr.S: Likewise.
7890         * sysdeps/i386/i686/multiarch/wmemcmp.S: Likewise.
7891
7892 2012-02-03  Joseph Myers  <joseph@codesourcery.com>
7893
7894         * math/tst-CMPLX.c: Include <stdio.h>.
7895
7896 2012-01-31  Joseph Myers  <joseph@codesourcery.com>
7897
7898         * sysdeps/powerpc/bits/mathdef.h (float_t): Always define as
7899         float.
7900         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
7901         * sysdeps/sparc/bits/mathdef.h: Likewise.
7902
7903 2012-01-31  Marek Polacek  <polacek@redhat.com>
7904
7905         * libio/libio.h: Don't define _PARAMS.
7906         * locale/programs/config.h: Don't define PARAMS.
7907         * stdlib/strtol_l.c: Likewise.
7908         (__strtol_l): Remove PARAMS from the prototype.
7909
7910 2012-01-31  Ulrich Drepper  <drepper@gmail.com>
7911
7912         * malloc/malloc.c: Remove name translation.  Don't use mixed-cap
7913         names.  Just use the correct names.  Remove unnecessary wrapper
7914         functions.
7915         * malloc/arena.c: Likewise.
7916         * malloc/hooks.c: Likewise.
7917
7918         * malloc/arena.c (arena_get2): Really don't call __get_nprocs if
7919         ARENA_TEST says not to.  Simplify test for creation of a new arena.
7920         Partially based on a patch by Siddhesh Poyarekar <siddhesh@redhat.com>.
7921
7922 2012-01-30  Ulrich Drepper  <drepper@gmail.com>
7923
7924         * elf/dl-tls.c (__tls_get_addr): Optimize by transforming all calls
7925         into tail calls.
7926         (update_get_addr): New function.
7927         (tls_get_addr_tail): Take GET_ADDR_ARGS parameter, remove
7928         GET_ADDR_MODULE parameter.
7929
7930 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7931
7932         * crypt/cert.c: Remove __STDC__ conditionals.
7933         * crypt/crypt-entry.c: Likewise.
7934         * crypt/crypt_util.c: Likewise.
7935         * libio/filedoalloc.c: Likewise.
7936         * libio/fileops.c: Likewise.
7937         * libio/genops.c: Likewise.
7938         * libio/iofclose.c: Likewise.
7939         * libio/iofdopen.c: Likewise.
7940         * libio/iofopen.c: Likewise.
7941         * libio/iofopen64.c: Likewise.
7942         * libio/iogetdelim.c: Likewise.
7943         * libio/iopopen.c: Likewise.
7944         * libio/obprintf.c: Likewise.
7945         * libio/oldfileops.c: Likewise.
7946         * libio/oldiofclose.c: Likewise.
7947         * libio/oldiofdopen.c: Likewise.
7948         * libio/oldiofopen.c: Likewise.
7949         * libio/oldiopopen.c: Likewise.
7950         * libio/wfiledoalloc.c: Likewise.
7951         * libio/wgenops.c: Likewise.
7952         * locale/programs/xmalloc.c: Likewise.
7953         * misc/syslog.c: Likewise.
7954         * stdio-common/xbug.c: Likewise.
7955         * string/memchr.c: Likewise.
7956         * string/memcmp.c: Likewise.
7957         * string/memrchr.c: Likewise.
7958         * string/rawmemchr.c: Likewise.
7959         * sysdeps/posix/getcwd.c: Likewise.
7960         * time/strftime_l.c: Likewise.
7961
7962 2012-01-30  Joseph Myers  <joseph@codesourcery.com>
7963
7964         * configure.in (libc_cv_cc_sse2avx): AC_SUBST.
7965         * config.make.in (config-cflags-sse2avx): Define.
7966         * sysdeps/x86_64/fpu/multiarch/Makefile (CFLAGS-slowexp-avx.c):
7967         Fix typo.
7968
7969 2012-01-29  Chris Metcalf  <cmetcalf@tilera.com>
7970
7971         * scripts/config.guess: Update from upstream config git repository.
7972         * scripts/config.sub: Likewise.
7973
7974 2012-01-28  Chris Metcalf  <cmetcalf@tilera.com>
7975
7976         * elf/elf.h (EM_TILEPRO, EM_TILEGX): New macros.
7977         (EM_NUM): Update.
7978         (R_TILEPRO_*, R_TILEGX_*): New macros.
7979
7980         * scripts/firstversions.awk: Fix bug in version range handling.
7981
7982         * sysdeps/unix/sysv/linux/grantpt.c: Use <> brackets for not-cancel.h.
7983
7984         * sysdeps/unix/sysv/linux/faccessat.c (faccessat): Call __fxstatat64.
7985
7986         * include/sys/epoll.h: New file.
7987         * sysdeps/unix/sysv/linux/epoll_pwait.c (epoll_pwait): Mark as
7988         libc_hidden_def.
7989
7990 2012-01-28  Ulrich Drepper  <drepper@gmail.com>
7991
7992         * sysdeps/x86_64/fpu/bits/mathinline.h (__signbitl): Optimize a bit.
7993         Avoid unnecessary __WORDSIZE == 64 test.
7994         (fmaxf): Use VEX format if possible.
7995         (fmax): Likewise.
7996         (fminf): Likewise.
7997         (fmin): Likewise.
7998
7999         * config.h.in: Define HAVE_SSE2AVX_SUPPORT.
8000         * math/math_private.h: Remove libc_fegetround* and
8001         libc_fesetround*.
8002         * sysdeps/i386/configure.in: Check for -msse2avx.
8003         * sysdeps/x86_64/fpu/math_private.h: Use VEX-encoded instructions
8004         also if SSE2AVX is defined.
8005         Remove libc_fegetround* and libc_fesetround*.
8006         * sysdeps/x86_64/fpu/multiarch/Makefile: Compile *-avx functions
8007         if config-cflags-sse2avx is yes.  Also add -DSSE2AVX to defines.
8008         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_AVX again instead
8009         of HAS_YMM_USABLE.
8010         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
8011         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
8012         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
8013         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
8014         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
8015
8016         * sysdeps/x86_64/fpu/math_private.h: Simplify use of AVX instructions.
8017
8018 2012-01-19  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
8019
8020         * sysdeps/powerpc/powerpc32/a2/memcpy.S: Fix for when cache line
8021         size is not set.
8022         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
8023
8024 2012-01-27  Ulrich Drepper  <drepper@gmail.com>
8025
8026         [BZ #13618]
8027         * elf/dl-open.c (dl_open_worker): Sort objects by dependency before
8028         relocation.
8029         * Makeconfig (libm): Define.
8030         * elf/Makefile: Add rules to build and run tst-relsort1.
8031         * elf/tst-relsort1.c: New file.
8032         * elf/tst-relsort1mod1.c: New file.
8033         * elf/tst-relsort1mod2.c: New file.
8034
8035 2012-01-27  Joseph Myers  <joseph@codesourcery.com>
8036
8037         * math/s_ldexp.c: Remove __STDC__ conditionals.
8038         * math/s_ldexpf.c: Likewise.
8039         * math/s_ldexpl.c: Likewise.
8040         * math/s_nextafter.c: Likewise.
8041         * math/s_nexttowardf.c: Likewise.
8042         * math/s_significand.c: Likewise.
8043         * math/s_significandf.c: Likewise.
8044         * math/s_significandl.c: Likewise.
8045         * math/w_jnl.c: Likewise.
8046         * sysdeps/i386/fpu/s_isinfl.c: Likewise.
8047         * sysdeps/i386/fpu/s_isnanl.c: Likewise.
8048         * sysdeps/i386/fpu/s_nextafterl.c: Likewise.
8049         * sysdeps/i386/fpu/s_nexttoward.c: Likewise.
8050         * sysdeps/i386/fpu/s_nexttowardf.c: Likewise.
8051         * sysdeps/ieee754/dbl-64/k_rem_pio2.c: Likewise.
8052         * sysdeps/ieee754/dbl-64/k_tan.c: Likewise.
8053         * sysdeps/ieee754/dbl-64/s_copysign.c: Likewise.
8054         * sysdeps/ieee754/dbl-64/s_erf.c: Likewise.
8055         * sysdeps/ieee754/dbl-64/s_fabs.c: Likewise.
8056         * sysdeps/ieee754/dbl-64/s_finite.c: Likewise.
8057         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
8058         * sysdeps/ieee754/dbl-64/s_frexp.c: Likewise.
8059         * sysdeps/ieee754/dbl-64/s_ilogb.c: Likewise.
8060         * sysdeps/ieee754/dbl-64/s_isnan.c: Likewise.
8061         * sysdeps/ieee754/dbl-64/s_logb.c: Likewise.
8062         * sysdeps/ieee754/dbl-64/s_nearbyint.c: Likewise.
8063         * sysdeps/ieee754/dbl-64/s_tanh.c: Likewise.
8064         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Likewise.
8065         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
8066         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
8067         * sysdeps/ieee754/flt-32/e_rem_pio2f.c: Likewise.
8068         * sysdeps/ieee754/flt-32/k_cosf.c: Likewise.
8069         * sysdeps/ieee754/flt-32/k_rem_pio2f.c: Likewise.
8070         * sysdeps/ieee754/flt-32/k_sinf.c: Likewise.
8071         * sysdeps/ieee754/flt-32/k_tanf.c: Likewise.
8072         * sysdeps/ieee754/flt-32/s_atanf.c: Likewise.
8073         * sysdeps/ieee754/flt-32/s_copysignf.c: Likewise.
8074         * sysdeps/ieee754/flt-32/s_cosf.c: Likewise.
8075         * sysdeps/ieee754/flt-32/s_erff.c: Likewise.
8076         * sysdeps/ieee754/flt-32/s_fabsf.c: Likewise.
8077         * sysdeps/ieee754/flt-32/s_finitef.c: Likewise.
8078         * sysdeps/ieee754/flt-32/s_frexpf.c: Likewise.
8079         * sysdeps/ieee754/flt-32/s_ilogbf.c: Likewise.
8080         * sysdeps/ieee754/flt-32/s_isnanf.c: Likewise.
8081         * sysdeps/ieee754/flt-32/s_logbf.c: Likewise.
8082         * sysdeps/ieee754/flt-32/s_nextafterf.c: Likewise.
8083         * sysdeps/ieee754/flt-32/s_sinf.c: Likewise.
8084         * sysdeps/ieee754/flt-32/s_tanf.c: Likewise.
8085         * sysdeps/ieee754/flt-32/s_tanhf.c: Likewise.
8086         * sysdeps/ieee754/k_standard.c: Likewise.
8087         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
8088         * sysdeps/ieee754/ldbl-128/k_tanl.c: Likewise.
8089         * sysdeps/ieee754/ldbl-128/s_asinhl.c: Likewise.
8090         * sysdeps/ieee754/ldbl-128/s_ceill.c: Likewise.
8091         * sysdeps/ieee754/ldbl-128/s_copysignl.c: Likewise.
8092         * sysdeps/ieee754/ldbl-128/s_cosl.c: Likewise.
8093         * sysdeps/ieee754/ldbl-128/s_erfl.c: Likewise.
8094         * sysdeps/ieee754/ldbl-128/s_fabsl.c: Likewise.
8095         * sysdeps/ieee754/ldbl-128/s_finitel.c: Likewise.
8096         * sysdeps/ieee754/ldbl-128/s_floorl.c: Likewise.
8097         * sysdeps/ieee754/ldbl-128/s_frexpl.c: Likewise.
8098         * sysdeps/ieee754/ldbl-128/s_ilogbl.c: Likewise.
8099         * sysdeps/ieee754/ldbl-128/s_isnanl.c: Likewise.
8100         * sysdeps/ieee754/ldbl-128/s_logbl.c: Likewise.
8101         * sysdeps/ieee754/ldbl-128/s_modfl.c: Likewise.
8102         * sysdeps/ieee754/ldbl-128/s_nearbyintl.c: Likewise.
8103         * sysdeps/ieee754/ldbl-128/s_nextafterl.c: Likewise.
8104         * sysdeps/ieee754/ldbl-128/s_nexttoward.c: Likewise.
8105         * sysdeps/ieee754/ldbl-128/s_nexttowardf.c: Likewise.
8106         * sysdeps/ieee754/ldbl-128/s_rintl.c: Likewise.
8107         * sysdeps/ieee754/ldbl-128/s_scalblnl.c: Likewise.
8108         * sysdeps/ieee754/ldbl-128/s_scalbnl.c: Likewise.
8109         * sysdeps/ieee754/ldbl-128/s_sinl.c: Likewise.
8110         * sysdeps/ieee754/ldbl-128/s_tanhl.c: Likewise.
8111         * sysdeps/ieee754/ldbl-128/s_tanl.c: Likewise.
8112         * sysdeps/ieee754/ldbl-128/w_expl.c: Likewise.
8113         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
8114         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
8115         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
8116         * sysdeps/ieee754/ldbl-128ibm/k_tanl.c: Likewise.
8117         * sysdeps/ieee754/ldbl-128ibm/s_asinhl.c: Likewise.
8118         * sysdeps/ieee754/ldbl-128ibm/s_ceill.c: Likewise.
8119         * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
8120         * sysdeps/ieee754/ldbl-128ibm/s_cosl.c: Likewise.
8121         * sysdeps/ieee754/ldbl-128ibm/s_erfl.c: Likewise.
8122         * sysdeps/ieee754/ldbl-128ibm/s_fabsl.c: Likewise.
8123         * sysdeps/ieee754/ldbl-128ibm/s_floorl.c: Likewise.
8124         * sysdeps/ieee754/ldbl-128ibm/s_frexpl.c: Likewise.
8125         * sysdeps/ieee754/ldbl-128ibm/s_ilogbl.c: Likewise.
8126         * sysdeps/ieee754/ldbl-128ibm/s_llrintl.c: Likewise.
8127         * sysdeps/ieee754/ldbl-128ibm/s_llroundl.c: Likewise.
8128         * sysdeps/ieee754/ldbl-128ibm/s_logbl.c: Likewise.
8129         * sysdeps/ieee754/ldbl-128ibm/s_lrintl.c: Likewise.
8130         * sysdeps/ieee754/ldbl-128ibm/s_lroundl.c: Likewise.
8131         * sysdeps/ieee754/ldbl-128ibm/s_modfl.c: Likewise.
8132         * sysdeps/ieee754/ldbl-128ibm/s_nearbyintl.c: Likewise.
8133         * sysdeps/ieee754/ldbl-128ibm/s_nextafterl.c: Likewise.
8134         * sysdeps/ieee754/ldbl-128ibm/s_nexttoward.c: Likewise.
8135         * sysdeps/ieee754/ldbl-128ibm/s_nexttowardf.c: Likewise.
8136         * sysdeps/ieee754/ldbl-128ibm/s_rintl.c: Likewise.
8137         * sysdeps/ieee754/ldbl-128ibm/s_roundl.c: Likewise.
8138         * sysdeps/ieee754/ldbl-128ibm/s_scalblnl.c: Likewise.
8139         * sysdeps/ieee754/ldbl-128ibm/s_scalbnl.c: Likewise.
8140         * sysdeps/ieee754/ldbl-128ibm/s_sinl.c: Likewise.
8141         * sysdeps/ieee754/ldbl-128ibm/s_tanhl.c: Likewise.
8142         * sysdeps/ieee754/ldbl-128ibm/s_tanl.c: Likewise.
8143         * sysdeps/ieee754/ldbl-128ibm/s_truncl.c: Likewise.
8144         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
8145         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
8146         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
8147         * sysdeps/ieee754/ldbl-96/s_ceill.c: Likewise.
8148         * sysdeps/ieee754/ldbl-96/s_copysignl.c: Likewise.
8149         * sysdeps/ieee754/ldbl-96/s_cosl.c: Likewise.
8150         * sysdeps/ieee754/ldbl-96/s_erfl.c: Likewise.
8151         * sysdeps/ieee754/ldbl-96/s_fabsl.c: Likewise.
8152         * sysdeps/ieee754/ldbl-96/s_finitel.c: Likewise.
8153         * sysdeps/ieee754/ldbl-96/s_floorl.c: Likewise.
8154         * sysdeps/ieee754/ldbl-96/s_frexpl.c: Likewise.
8155         * sysdeps/ieee754/ldbl-96/s_ilogbl.c: Likewise.
8156         * sysdeps/ieee754/ldbl-96/s_isnanl.c: Likewise.
8157         * sysdeps/ieee754/ldbl-96/s_logbl.c: Likewise.
8158         * sysdeps/ieee754/ldbl-96/s_nearbyintl.c: Likewise.
8159         * sysdeps/ieee754/ldbl-96/s_nextafterl.c: Likewise.
8160         * sysdeps/ieee754/ldbl-96/s_nexttoward.c: Likewise.
8161         * sysdeps/ieee754/ldbl-96/s_nexttowardf.c: Likewise.
8162         * sysdeps/ieee754/ldbl-96/s_rintl.c: Likewise.
8163         * sysdeps/ieee754/ldbl-96/s_sinl.c: Likewise.
8164         * sysdeps/ieee754/ldbl-96/s_tanhl.c: Likewise.
8165         * sysdeps/ieee754/ldbl-96/s_tanl.c: Likewise.
8166         * sysdeps/ieee754/s_matherr.c: Likewise.
8167         * sysdeps/powerpc/fpu/w_sqrt.c: Likewise.
8168         * sysdeps/powerpc/fpu/w_sqrtf.c: Likewise.
8169         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrt.c: Likewise.
8170         * sysdeps/powerpc/powerpc64/power4/fpu/w_sqrtf.c: Likewise.
8171
8172 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
8173
8174         * crypt/md5.h: Remove __STDC__ conditionals.
8175         * libio/libioP.h: Likewise.
8176         * locale/programs/config.h: Likewise.
8177         * sysdeps/generic/sysdep.h: Likewise.
8178         * sysdeps/i386/asm-syntax.h: Likewise.
8179         * sysdeps/s390/asm-syntax.h: Likewise.
8180         * sysdeps/unix/sysdep.h: Likewise.
8181         * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
8182         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
8183
8184 2012-01-26  Joseph Myers  <joseph@codesourcery.com>
8185
8186         * libio/libio.h: Remove __STDC__ conditionals.
8187         * malloc/obstack.h: Likewise.
8188         * math/complex.h: Likewise.
8189         * math/math.h: Likewise.
8190         * sysdeps/generic/_G_config.h: Likewise.
8191         * sysdeps/gnu/_G_config.h: Likewise.
8192         * sysdeps/mach/hurd/_G_config.h: Likewise.
8193         * sysdeps/powerpc/bits/mathdef.h: Likewise.
8194         * sysdeps/sh/sh4/bits/mathdef.h: Likewise.
8195         * sysdeps/sparc/bits/mathdef.h: Likewise.
8196
8197 2012-01-26  Ulrich Drepper  <drepper@gmail.com>
8198
8199         [BZ #13583]
8200         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_OSXSAVE.
8201         Clean up HAS_* macros.
8202         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): If
8203         bit_AVX is set also check OSXAVE/XCR0 and set bit_YMM_Usable if
8204         possible.
8205         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Use HAS_YMM_USABLE, not
8206         HAS_AVX.
8207         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
8208         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
8209         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
8210         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
8211         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
8212
8213 2012-01-25  Joseph Myers  <joseph@codesourcery.com>
8214
8215         * elf/tst-unique3.cc (gets): Remove declaration.
8216         * elf/tst-unique3lib.cc (gets): Likewise.
8217         * elf/tst-unique3lib2.cc (gets): Likewise.
8218         * elf/tst-unique4.cc (gets): Likewise.
8219
8220 2012-01-24  Ulrich Drepper  <drepper@gmail.com>
8221
8222         * include/stdio.h: Add C++ protection.  Add gets declarations and
8223         definitions.
8224         * debug/tst-chk1.c: Don't declare gets here.
8225         * stdio-common/tst-gets.c: Likewise.
8226
8227 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
8228
8229         * posix/glob: Remove directory.
8230
8231 2012-01-24  Joseph Myers  <joseph@codesourcery.com>
8232
8233         * wcsmbs/Makefile (tst-c16c32-1-ENV): Define.
8234
8235 2012-01-22  Pino Toscano  <toscano.pino@tiscali.it>
8236
8237         * sysdeps/mach/hurd/socket.c (__socket): Return EAFNOSUPPORT instead
8238         of the non-standard EPFNOSUPPORT.
8239
8240 2011-12-26  Samuel Thibault  <samuel.thibault@ens-lyon.org>
8241
8242         * sysdeps/mach/hurd/mmap.c (__mmap): When MAPADDR is nonzero, try
8243         __vm_allocate and __vm_map with ANYWHERE set to 0 first, and try with
8244         ANYWHERE set to 1 only on KERN_NO_SPACE error.
8245
8246 2012-01-21  Ulrich Drepper  <drepper@gmail.com>
8247
8248         * wcsmbs/uchar.h: Test __STDC_VERSION__.
8249
8250 2012-01-20  Ulrich Drepper  <drepper@gmail.com>
8251
8252         * nscd/aicache.c (addhstaiX): Do not cache negative results of
8253         transient errors.
8254         * nscd/grpcache.c (cache_addgr): Likewise.
8255         * nscd/hstcache.c (cache_addhst): Likewise.
8256         * nscd/initgrcache.c (addinitgroupsX): Likewise.
8257         * nscd/pwdcache.c (cache_addpw): Likewise.
8258         * nscd/servicescache.c (cache_addserv): Likewise.
8259
8260 2012-01-16  Ulrich Drepper  <drepper@gmail.com>
8261
8262         * malloc/malloc.c: Various cleanups.
8263         * malloc/hooks.c: Likewise.
8264
8265         * stdlib/Makefile (tests): Add bug-fmtmsg1.
8266         * stdlib/bug-fmtmsg1.c: New file.
8267
8268         * stdlib/fmtmsg.c (init): Add missing unlock.
8269         Patch by Peng Haitao <penght@cn.fujitsu.com>.
8270
8271 2012-01-12  Marek Polacek  <polacek@redhat.com>
8272
8273         * libio/bits/stdio2.h: Do not define gets for ISO C11, ISO C++11,
8274         and _GNU_SOURCE.
8275
8276 2012-01-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
8277
8278         * powerpc/powerpc32/sysdep.h: Add GLUE and GENERATE_GOT_LABEL macros.
8279         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Call
8280         macro to ensure uniqueness of label name.
8281         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
8282         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
8283
8284 2012-01-11  Ulrich Drepper  <drepper@gmail.com>
8285
8286         * sysdeps/ieee754/dbl-64/wordsize-64/e_acosh.c: New file.
8287
8288         * sysdeps/ieee754/dbl-64/s_scalbln.c: Add branch prediction.
8289         * sysdeps/ieee754/flt-32/s_scalblnf.c: Likewise.
8290         * sysdeps/ieee754/ldbl-96/s_scalblnl.c: Likewise.
8291         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbln.c: New file.
8292
8293 2012-01-10  Ulrich Drepper  <drepper@gmail.com>
8294
8295         * sysdeps/ieee754/dbl-64/wordsize-64/s_modf.c: New file.
8296
8297         * sysdeps/ieee754/dbl-64/s_modf.c: Add branch prediction.
8298         * sysdeps/ieee754/flt-32/s_modff.c: Likewise.
8299         * sysdeps/ieee754/ldbl-96/s_modfl.c: Likewise.
8300
8301         * math/bits/mathcalls.h: Add const attribute to fmin and fmax.
8302
8303         * sysdeps/ieee754/dbl-64/s_scalbn.c: Add branch prediction.
8304         * sysdeps/ieee754/flt-32/s_scalbnf.c: Likewise.
8305         * sysdeps/ieee754/ldbl-96/s_scalbnl.c: Likewise.
8306         * sysdeps/ieee754/dbl-64/wordsize-64/s_scalbn.c: New file.
8307
8308         * math/bits/math-finite.h: Add ldexp support.
8309
8310 2012-01-10  Marek Polacek  <polacek@redhat.com>
8311
8312         * locale/programs/localedef.h (show_archive_content): Add noreturn
8313         attribute.
8314
8315 2012-01-09  Ulrich Drepper  <drepper@gmail.com>
8316
8317         * sysdeps/ieee754/dbl-64/s_log1p.c (__log1p): Add branch prediction.
8318
8319 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
8320
8321         * io/bits/poll2.h: Add __BEGIN/__END_DECLS.
8322
8323         * io/Makefile (headers): Add bits/poll2.h.
8324
8325 2011-01-05  Will Schmidt  <will_schmidt@vnet.ibm.com>
8326
8327         * sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: Fix a
8328         typo #include statement.
8329
8330 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
8331
8332         * include/sys/cdefs.h: Define __attribute_alloc_size.
8333         * catgets/gencat.c: Add alloc_size attribute and apply consistently
8334         the malloc attribute to xmalloc, xcalloc, xrealloc, and xstrdup.
8335         * elf/pldd.c: Likewise.
8336         * iconv/iconv_charmap.c: Likewise.
8337         * iconv/iconvconfig.c: Likewise.
8338         * iconv/strtab.c: Likewise.
8339         * locale/programs/locale.c: Likewise.
8340         * locale/programs/localedef.h: Likewise.
8341         * locale/programs/simple-hash.c: Likewise.
8342         * nscd/nscd.h: Likewise.
8343         * nss/makedb.c: Likewise.
8344         * sysdeps/generic/ldconfig.h: Likewise.
8345         * locale/programs/localedef.c: Remove xmalloc prototype.
8346         * nscd/mem.c: Remove xmalloc and xcalloc prototypes.
8347
8348 2012-01-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
8349
8350         * stdio-common/vfscanf.c (_IO_vfscanf_internal): Use alloca when
8351         appropriate.
8352
8353 2012-01-08  Ulrich Drepper  <drepper@gmail.com>
8354
8355         * math/Makefile (tests): Add tst-CMPLX.
8356         * math/tst-CMPLX.c: New file.
8357
8358         * math/complex.h (CMPLXL): Fix typo.
8359
8360         * debug/Makefile (routines): Add poll_chk and ppoll_chk.
8361         * debug/Versions: Export __pool_chk and __ppoll_chk from libc for
8362         GLIBC_2.16.
8363         * debug/tst-chk1.c: Add poll and ppoll tests.
8364         * io/sys/poll.h: Include bits/poll2.h for _FORTIFY_SOURCE.
8365         * include/sys/poll.h: Add hidden proto for ppoll.
8366         * sysdeps/unix/sysv/linux/ppoll.c: Add hidden def.
8367         * sysdeps/mach/hurd/ppoll.c: Likewise.
8368         * io/ppoll.c: Likewise.
8369         * debug/poll_chk.c: New file.
8370         * debug/ppoll_chk.c: New file.
8371         * include/bits/poll2.h: New file.
8372         * io/bits/poll2.h: New file.
8373
8374         [BZ #1350]
8375         * math/complex.h (CMPLX, CMPLXF, CMPLXL): Define.
8376
8377         * configure.in: static is always set to yes.  Remove.
8378         * config.make.in: Don't set build-static.
8379         * Makeconfig: Remove use of build-static.
8380         * dlfcn/Makefile: Likewise.
8381         * elf/Makefile: Likewise.
8382         * math/Makefile: Likewise.
8383         * misc/Makefile: Likewise.
8384         * nptl/Makefile: Likewise.
8385         * sysdeps/mach/hurd/Makefile: Likewise.
8386
8387         * configure.in: PWD_P is not used anymore.
8388         * config.make.in: Remove PWD_P entry.
8389
8390         * configure.in: Remove last remnants of RANLIB.
8391         No need to check for signed size_t anymore.
8392         Don't set libc_commonpagesize and libc_relro_required here for Alpha
8393         and IA-64.
8394         Remove __builtin_expect test because we require at least gcc 3.4.
8395         * aclocal.m4: Likewise.
8396
8397         * wcsmbs/mbrtoc16.c: Implement using towc function.
8398         * wcsmbs/wcsmbsload.h: No need for toc16 and fromc16 functions.
8399         * wcsmbs/wcsmbsload.c: Likewise.
8400         * iconv/gconv_simple.c: Likewise.
8401         * iconv/gconv_int.h: Likewise.
8402         * iconv/gconv_builtin.h: Likewise.
8403         * iconv/iconv_prog.c: Remove CHAR16 handling.
8404
8405         * wcsmbs/c16rtomb.c: Remove #if 0'ed code.
8406
8407         * wcsmbs/mbrtowc.c: Better check for invalid inputs.
8408
8409         * configure.in: Remove --with-elf and --enable-bounded options.
8410         Dont set base_machine for ia64.  More non-ELF conditions removed.
8411         Remove testing and setting of leading underscore information.
8412         * config.make.in (build-bounded): Set to no.
8413         * config.h.in: Remove NO_UNDERSCORES entry.
8414         * include/libc-symbols.h: Don't define HAVE_WEAK_SYMBOLS.  ELF has
8415         them.
8416         * csu/start.c: Remove !NO_UNDERSCORE code.
8417         * locale/localeinfo.h: Likewise.
8418         * sysdeps/generic/machine-gmon.h: Likewise.
8419         * sysdeps/generic/sysdep.h: Likewise.
8420         * sysdeps/i386/sysdep.h: Likewise.
8421         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
8422         * sysdeps/mach/sysdep.h: Likewise.
8423         * sysdeps/s390/s390-32/sysdep.h: Likewise.
8424         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8425         * sysdeps/sh/sysdep.h: Likewise.
8426         * sysdeps/sparc/sparc32/alloca.S: Likewise.
8427         * sysdeps/unix/i386/sysdep.S: Likewise.
8428         * sysdeps/unix/sparc/start.c: Likewise.
8429         * sysdeps/unix/sparc/sysdep.S: Likewise.
8430         * sysdeps/unix/sparc/sysdep.h: Likewise.
8431         * sysdeps/unix/start.c: Likewise.
8432         * sysdeps/unix/x86_64/sysdep.S: Likewise.
8433         * sysdeps/x86_64/sysdep.h: Likewise.
8434
8435 2012-01-07  Ulrich Drepper  <drepper@gmail.com>
8436
8437         [BZ #13553]
8438         * misc/sys/cdefs.h: Remove __const, __signed, and __volatile definition
8439         for non-gcc.
8440         * argp/argp-fmtstream.h: Use const instead __const.
8441         * argp/argp.h: Likewise.
8442         * assert/assert.h: Likewise.
8443         * bits/fenv.h: Likewise.
8444         * bits/sched.h: Likewise.
8445         * bits/sigset.h: Likewise.
8446         * bits/sigthread.h: Likewise.
8447         * catgets/nl_types.h: Likewise.
8448         * conform/data/pthread.h-data: Likewise.
8449         * crypt/crypt-private.h: Likewise.
8450         * crypt/crypt.h: Likewise.
8451         * crypt/crypt_util.c: Likewise.
8452         * ctype/ctype.h: Likewise.
8453         * debug/execinfo.h: Likewise.
8454         * debug/mbsnrtowcs_chk.c: Likewise.
8455         * debug/mbsrtowcs_chk.c: Likewise.
8456         * debug/wcsnrtombs_chk.c: Likewise.
8457         * debug/wcsrtombs_chk.c: Likewise.
8458         * debug/wcstombs_chk.c: Likewise.
8459         * dirent/dirent.h: Likewise.
8460         * dlfcn/dlfcn.h: Likewise.
8461         * elf/neededtest4.c: Likewise.
8462         * grp/grp.h: Likewise.
8463         * gshadow/gshadow.h: Likewise.
8464         * iconv/gconv.h: Likewise.
8465         * iconv/gconv_int.h: Likewise.
8466         * iconv/gconv_simple.c: Likewise.
8467         * iconv/iconv.h: Likewise.
8468         * iconv/loop.c: Likewise.
8469         * iconv/skeleton.c: Likewise.
8470         * include/aio.h: Likewise.
8471         * include/aliases.h: Likewise.
8472         * include/argz.h: Likewise.
8473         * include/arpa/inet.h: Likewise.
8474         * include/assert.h: Likewise.
8475         * include/dirent.h: Likewise.
8476         * include/dlfcn.h: Likewise.
8477         * include/execinfo.h: Likewise.
8478         * include/fcntl.h: Likewise.
8479         * include/fenv.h: Likewise.
8480         * include/glob.h: Likewise.
8481         * include/grp.h: Likewise.
8482         * include/libintl.h: Likewise.
8483         * include/mntent.h: Likewise.
8484         * include/netdb.h: Likewise.
8485         * include/pwd.h: Likewise.
8486         * include/rpc/netdb.h: Likewise.
8487         * include/sched.h: Likewise.
8488         * include/search.h: Likewise.
8489         * include/shadow.h: Likewise.
8490         * include/signal.h: Likewise.
8491         * include/stdio.h: Likewise.
8492         * include/stdlib.h: Likewise.
8493         * include/string.h: Likewise.
8494         * include/sys/socket.h: Likewise.
8495         * include/sys/stat.h: Likewise.
8496         * include/sys/statfs.h: Likewise.
8497         * include/sys/statvfs.h: Likewise.
8498         * include/sys/syslog.h: Likewise.
8499         * include/sys/time.h: Likewise.
8500         * include/sys/uio.h: Likewise.
8501         * include/time.h: Likewise.
8502         * include/unistd.h: Likewise.
8503         * include/utmp.h: Likewise.
8504         * include/wchar.h: Likewise.
8505         * include/wctype.h: Likewise.
8506         * inet/aliases.h: Likewise.
8507         * inet/arpa/inet.h: Likewise.
8508         * inet/netinet/ether.h: Likewise.
8509         * inet/netinet/in.h: Likewise.
8510         * intl/libintl.h: Likewise.
8511         * io/bits/fcntl2.h: Likewise.
8512         * io/fcntl.h: Likewise.
8513         * io/ftw.h: Likewise.
8514         * io/sys/poll.h: Likewise.
8515         * io/sys/stat.h: Likewise.
8516         * io/sys/statfs.h: Likewise.
8517         * io/sys/statvfs.h: Likewise.
8518         * io/utime.h: Likewise.
8519         * libio/bits/stdio.h: Likewise.
8520         * libio/bits/stdio2.h: Likewise.
8521         * libio/libio.h: Likewise.
8522         * libio/libioP.h: Likewise.
8523         * libio/stdio.h: Likewise.
8524         * locale/lc-ctype.c: Likewise.
8525         * locale/locale.h: Likewise.
8526         * login/utmp.h: Likewise.
8527         * malloc/arena.c: Likewise.
8528         * malloc/malloc.c: Likewise.
8529         * malloc/malloc.h: Likewise.
8530         * malloc/mcheck.c: Likewise.
8531         * malloc/mtrace.c: Likewise.
8532         * math/bits/mathcalls.h: Likewise.
8533         * math/fenv.h: Likewise.
8534         * math/math_private.h: Likewise.
8535         * misc/bits/error.h: Likewise.
8536         * misc/bits/syslog.h: Likewise.
8537         * misc/err.h: Likewise.
8538         * misc/error.h: Likewise.
8539         * misc/fstab.h: Likewise.
8540         * misc/mntent.h: Likewise.
8541         * misc/regexp.h: Likewise.
8542         * misc/search.h: Likewise.
8543         * misc/sgtty.h: Likewise.
8544         * misc/sys/mman.h: Likewise.
8545         * misc/sys/syslog.h: Likewise.
8546         * misc/sys/uio.h: Likewise.
8547         * misc/sys/xattr.h: Likewise.
8548         * misc/ttyent.h: Likewise.
8549         * nis/rpcsvc/ypclnt.h: Likewise.
8550         * nss/nss.h: Likewise.
8551         * posix/bits/unistd.h: Likewise.
8552         * posix/fnmatch.h: Likewise.
8553         * posix/glob.h: Likewise.
8554         * posix/sched.h: Likewise.
8555         * posix/spawn.h: Likewise.
8556         * posix/sys/wait.h: Likewise.
8557         * posix/unistd.h: Likewise.
8558         * posix/wordexp.h: Likewise.
8559         * pwd/pwd.h: Likewise.
8560         * resolv/netdb.h: Likewise.
8561         * resource/sys/resource.h: Likewise.
8562         * rt/aio.h: Likewise.
8563         * rt/bits/mqueue2.h: Likewise.
8564         * rt/mqueue.h: Likewise.
8565         * shadow/shadow.h: Likewise.
8566         * signal/signal.h: Likewise.
8567         * socket/send.c: Likewise.
8568         * socket/sendto.c: Likewise.
8569         * socket/sys/socket.h: Likewise.
8570         * stdio-common/printf.h: Likewise.
8571         * stdlib/bits/stdlib.h: Likewise.
8572         * stdlib/fmtmsg.h: Likewise.
8573         * stdlib/monetary.h: Likewise.
8574         * stdlib/stdlib.h: Likewise.
8575         * stdlib/ucontext.h: Likewise.
8576         * streams/stropts.h: Likewise.
8577         * string/argz.h: Likewise.
8578         * string/bits/string2.h: Likewise.
8579         * string/string.h: Likewise.
8580         * string/strings.h: Likewise.
8581         * sunrpc/rpc/auth.h: Likewise.
8582         * sunrpc/rpc/auth_des.h: Likewise.
8583         * sunrpc/rpc/clnt.h: Likewise.
8584         * sunrpc/rpc/netdb.h: Likewise.
8585         * sunrpc/rpc/pmap_clnt.h: Likewise.
8586         * sunrpc/rpc/xdr.h: Likewise.
8587         * sysdeps/generic/inttypes.h: Likewise.
8588         * sysdeps/generic/net/if.h: Likewise.
8589         * sysdeps/generic/sys/swap.h: Likewise.
8590         * sysdeps/gnu/net/if.h: Likewise.
8591         * sysdeps/gnu/utmpx.h: Likewise.
8592         * sysdeps/i386/fpu/bits/fenv.h: Likewise.
8593         * sysdeps/i386/i486/bits/string.h: Likewise.
8594         * sysdeps/ieee754/ldbl-opt/nldbl-strtold_l.c: Likewise.
8595         * sysdeps/s390/bits/string.h: Likewise.
8596         * sysdeps/s390/fpu/bits/fenv.h: Likewise.
8597         * sysdeps/sparc/fpu/bits/fenv.h: Likewise.
8598         * sysdeps/sparc/fpu/bits/mathinline.h: Likewise.
8599         * sysdeps/unix/sysv/linux/bits/resource.h: Likewise.
8600         * sysdeps/unix/sysv/linux/bits/sched.h: Likewise.
8601         * sysdeps/unix/sysv/linux/bits/sigset.h: Likewise.
8602         * sysdeps/unix/sysv/linux/bits/socket.h: Likewise.
8603         * sysdeps/unix/sysv/linux/bits/sys_errlist.h: Likewise.
8604         * sysdeps/unix/sysv/linux/bits/uio.h: Likewise.
8605         * sysdeps/unix/sysv/linux/i386/glob64.c: Likewise.
8606         * sysdeps/unix/sysv/linux/i386/olddirent.h: Likewise.
8607         * sysdeps/unix/sysv/linux/preadv.c: Likewise.
8608         * sysdeps/unix/sysv/linux/prlimit.c: Likewise.
8609         * sysdeps/unix/sysv/linux/pwritev.c: Likewise.
8610         * sysdeps/unix/sysv/linux/readv.c: Likewise.
8611         * sysdeps/unix/sysv/linux/s390/s390-32/utmp-convert.h: Likewise.
8612         * sysdeps/unix/sysv/linux/s390/s390-32/utmpx32.h: Likewise.
8613         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
8614         * sysdeps/unix/sysv/linux/sparc/sparc32/sigaction.c: Likewise.
8615         * sysdeps/unix/sysv/linux/sparc/sparc64/sigaction.c: Likewise.
8616         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8617         * sysdeps/unix/sysv/linux/sparc/sys/timerfd.h: Likewise.
8618         * sysdeps/unix/sysv/linux/sys/acct.h: Likewise.
8619         * sysdeps/unix/sysv/linux/sys/epoll.h: Likewise.
8620         * sysdeps/unix/sysv/linux/sys/mount.h: Likewise.
8621         * sysdeps/unix/sysv/linux/sys/swap.h: Likewise.
8622         * sysdeps/unix/sysv/linux/sys/timerfd.h: Likewise.
8623         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8624         * sysdeps/x86_64/fpu/bits/fenv.h: Likewise.
8625         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Likewise.
8626         * sysdeps/x86_64/strncase_l-nonascii.c: Likewise.
8627         * sysvipc/sys/ipc.h: Likewise.
8628         * sysvipc/sys/msg.h: Likewise.
8629         * sysvipc/sys/sem.h: Likewise.
8630         * sysvipc/sys/shm.h: Likewise.
8631         * termios/termios.h: Likewise.
8632         * time/sys/time.h: Likewise.
8633         * time/time.h: Likewise.
8634         * wcsmbs/bits/wchar2.h: Likewise.
8635         * wcsmbs/uchar.h: Likewise.
8636         * wcsmbs/wchar.h: Likewise.
8637         * wctype/wctype.h: Likewise.
8638
8639         [BZ #13551]
8640         * Makeconfig: Remove all but ELF support including AIX support.
8641         * Makerules: Likewise.
8642         * config.h.in: Likewise.
8643         * config.make.in: Likewise.
8644         * configure: Likewise.
8645         * configure.in: Likewise.
8646         * csu/Makefile: Likewise.
8647         * csu/version.c: Likewise.
8648         * debug/Makefile: Likewise.
8649         * dlfcn/Makefile: Likewise.
8650         * elf/Makefile: Likewise.
8651         * extra-lib.mk: Likewise.
8652         * iconv/Makefile: Likewise.
8653         * include/libc-symbols.h: Likewise.
8654         * include/shlib-compat.h: Likewise.
8655         * resolv/Makefile: Likewise.
8656         * resolv/res_libc.c: Likewise.
8657         * rt/Makefile: Likewise.
8658         * sysdeps/i386/asm-syntax.h: Likewise.
8659         * sysdeps/i386/sysdep.h: Likewise.
8660         * sysdeps/ieee754/ldbl-opt/math_ldbl_opt.h: Likewise.
8661         * sysdeps/mach/sysdep.h: Likewise.
8662         * sysdeps/powerpc/powerpc32/Makefile: Likewise.
8663         * sysdeps/powerpc/powerpc64/Makefile: Likewise.
8664         * sysdeps/s390/asm-syntax.h: Likewise.
8665         * sysdeps/s390/s390-32/sysdep.h: Likewise.
8666         * sysdeps/s390/s390-64/sysdep.h: Likewise.
8667         * sysdeps/sh/sysdep.h: Likewise.
8668         * sysdeps/unix/sparc/sysdep.h: Likewise.
8669         * sysdeps/wordsize-32/divdi3.c: Likewise.
8670         * sysdeps/x86_64/sysdep.h: Likewise.
8671
8672         * argp/Versions: Remove _argp_unlock_xxx.
8673
8674         [BZ #13559]
8675         * abilist/ld.abilist: Update.  Adjust for removal of tls option.
8676         * abilist/libBrokenLocale.abilist: Likewise.
8677         * abilist/libanl.abilist: Likewise.
8678         * abilist/libc.abilist: Likewise.
8679         * abilist/libcrypt.abilist: Likewise.
8680         * abilist/libdl.abilist: Likewise.
8681         * abilist/libm.abilist: Likewise.
8682         * abilist/libnsl.abilist: Likewise.
8683         * abilist/libpthread.abilist: Likewise.
8684         * abilist/libresolv.abilist: Likewise.
8685         * abilist/librt.abilist: Likewise.
8686         * abilist/libthread_db.abilist: Likewise.
8687         * abilist/libutil.abilist: Likewise.
8688         * abilist/libnss_db.abilist: New file.
8689
8690         * scripts/abilist.awk: Add support for indirect functions.
8691
8692         * sysdeps/unix/sysv/linux/configure.in: Remove m68k support.
8693
8694         * sysdeps/generic/ldsodefs.h: Remove Alpha support.
8695
8696         * shlib-versions: Remove entries for ports architectures.
8697
8698         * elf/tls-macros.h: Remove support for Alpha and IA-64.  Should be in
8699         files in ports.
8700         * elf/stackguard-macros.h: Remove support for IA-64.
8701         * elf/tst-auditmod1.c: Likewise.
8702         * sysdeps/generic/ldsodefs.h: Likewise.
8703
8704         * sysdeps/unix/sysv/linux/configure.in: Ports should define
8705         libc_cv_gcc_unwind_find_fde and arch_minimum_kernel in their
8706         configure files.
8707
8708         [BZ #13552]
8709         * configure.in: Remove --enable-omitfp support.
8710         * FAQ.in: Adjust.
8711         * config.make.in: Likewise.
8712         * Makeconfig: Likewise.
8713         * manual/install.texi: Likewise.
8714
8715         In case anyone cares, the IA-64 architecture could move to ports.
8716         * sysdeps/ia64/*: Removed.
8717         * sysdeps/unix/sysv/linux/ia64/*: Removed.
8718         * sysdeps/unix/sysv/linux/kernel-features.h: Remove IA-64 support.
8719
8720         [BZ #13555]
8721         * configure.in: Remove entries for unsupported architectures.
8722
8723         [BZ #13533]
8724         * iconv/gconv_builtin.h: Use CHAR16 for the char16_t conversions.
8725         * iconv/gconv_simple.c: Rename char16_t routines.  Add char16_t<->utf8
8726         routines.
8727         * iconv/gconv_int.h: Adjust prototypes for char16_t routines.
8728         * iconv/iconv_prog.c: Recognize CHAR16 as internal name.
8729         * wcsmbs/c16rtomb.c: Fix a few problems.  Disable all the code and
8730         fall back to using wcrtomb.
8731         * wcsmbs/mbrtoc16.: Fix implementation to handle real conversions.
8732         * wcsmbs/wcsmbsload.c: Make char16 routines optional.  Adjust for
8733         renaming.
8734         * wcsmbs/Makefile (tests): Add tst-c16c32-1:
8735         * wcsmbs/tst-c16c32-1.c: New file.
8736
8737         * wcsmbs/wcrtomb.c: Use MB_LEN_MAX instead of MB_CUR_MAX for sizing
8738         local variable.
8739
8740         * libio/stdio.h: Do not declare gets at all for _GNU_SOURCE.
8741
8742         * elf/tst-unique3.cc: Add explicit declaration of gets.
8743         * elf/tst-unique3lib.cc: Likewise.
8744         * elf/tst-unique3lib2.cc: Likewise.
8745         * elf/tst-unique4.cc: Likewise.
8746
8747         * string/test-strcpy.c (do_one_test): Fix format string for WIDE use.
8748
8749 2012-01-06  Joseph Myers  <joseph@codesourcery.com>
8750
8751         [BZ #13566]
8752         * assert/assert.h (static_assert): Don't define for C++.
8753         * libio/stdio.h (gets): Do declare for C++ <= C++11.
8754         * wcsmbs/uchar.h (char16_t, char32_t): Don't typedef for C++11.
8755
8756 2012-01-03  Ulrich Drepper  <drepper@gmail.com>
8757
8758         * iconv/loop.c (single loop): Fix assertion in storing of
8759         remaining bytes.
8760
8761         * posix/regcomp.c (init_word_char): Optimize a bit for sane encodings.
8762
8763 2012-01-01  Ulrich Drepper  <drepper@gmail.com>
8764
8765         * posix/getconf.c: Update copyright year.
8766         * nss/getent.c: Likewise.
8767         * nss/makedb.c: Likewise.
8768         * iconv/iconvconfig.c: Likewise.
8769         * iconv/iconv_prog.c: Likewise.
8770         * elf/ldconfig.c: Likewise.
8771         * elf/pldd.c: Likewise.
8772         * elf/sotruss.ksh: Likewise.
8773         * catgets/gencat.c: Likewise.
8774         * csu/version.c: Likewise.
8775         * elf/ldd.bash.in: Likewise.
8776         * elf/sprof.c (print_version): Likewise.
8777         * locale/programs/locale.c: Likewise.
8778         * locale/programs/localedef.c: Likewise.
8779         * login/programs/pt_chown.c: Likewise.
8780         * nscd/nscd.c (print_version): Likewise.
8781         * debug/xtrace.sh: Likewise.
8782         * malloc/memusage.sh: Likewise.
8783         * malloc/mtrace.pl: Likewise.
8784         * debug/catchsegv.sh: Likewise.
8785
8786 2011-12-30  Jakub Jelinek  <jakub@redhat.com>
8787
8788         * posix/regex_internal.c (re_string_fetch_byte_case): Remove
8789         pure attribute.
8790
8791 2011-12-24  Ulrich Drepper  <drepper@gmail.com>
8792
8793         [BZ #13533]
8794         * iconv/gconv_simple.c: Add ASCII<->UTF-16 transformations.
8795         * iconv/gconv_builtin.h: Add entries for internal ASCII<->UTF-16
8796         transformations.
8797         * iconv/gconv_int.h: Likewise.
8798         * wcsmbs/Makefile (routines): Add mbrtoc16 and c16rtomb.
8799         * wcsmbs/Versions: Export mbrtoc16, c16rtomb, mbrtoc32, c32rtomb
8800         from libc for GLIBC_2.16.
8801         * wcsmbs/mbrtowc.c: Define mbrtoc32 alias.
8802         * wcsmbs/wcrtomb.c: Define c32rtomb alias.
8803         * wcsmbs/uchar.h: Really define mbstate_t.
8804         * wcsmbs/wchar.h: Allow defining mbstate_t in uchar.h.
8805         * wcsmbs/c16rtomb.c: New file.
8806         * wcsmbs/mbrtoc16.c: New file.
8807         * wcsmbs/wcsmbsload.c: Add static definitions for c16 conversions
8808         for C/POSIX locale.
8809         (__wcsmbs_load_conv): Do not fill in c16 routines yet.
8810         * wcsmbs/wcsmbsload.h (gconv_fcts): Add entries for c16 routines.
8811
8812         * wcsmbs/wchar.h: Add missing __restrict.
8813
8814 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8815
8816         [BZ #13532]
8817         * time/Makefile (routines): Add timespec_get.
8818         * time/Versions: Export timespec_get from libc for GLIBC_2.16.
8819         * time/time.h: Define TIME_UTC and declare timespec_get.  Define
8820         timespec for ISO C11.
8821         * time/timespec_get.c: New file.
8822         * sysdeps/unix/sysv/linux/timespec_get.c: New file.
8823         * sysdeps/unix/sysv/linux/x86_64/timespec_get.c: New file.
8824
8825         [BZ #13531]
8826         * malloc/malloc.c: Define alias aligned_alloc for public_mEMALIGn.
8827         * stdlib/stdlib.h: Declare aligned_alloc.
8828         * Versions.def: Add GLIBC_2.16 for libc.
8829         * malloc/Versions: Export aligned_alloc from libc for GLIBC_2.16.
8830
8831         [BZ 13527]
8832         * stdlib/stdlib.h: Make at_quick_exit and quick_exit available for
8833         ISO C11.
8834
8835         * include/features.h: Define __USE_ISOCXX11 when compiling ISO C++11
8836         code.
8837
8838         [BZ #13528]
8839         * libio/stdio.h: Do not declare gets for ISO C11 and _GNU_SOURCE.
8840
8841         [BZ #13529]
8842         * assert/assert.h (static_assert): Define.
8843
8844         * version.h: Update for 2.16 development version.
8845
8846         [BZ #13526]
8847         * include/features.h: Handle __STDC_VERSION__ >= 201112 and
8848         _ISOC11_SOURCE.
8849
8850         * version.h (RELEASE): Bump for 2.15 release.
8851         * include/features.h (__GLIBC_MINOR__): Bump to 15.
8852
8853         * sysdeps/x86_64/dl-machine.h: Fix typos in comments.
8854         Patch by Marek Polacek <mpolacek@redhat.com>.
8855
8856         * bits/byteswap.h: Protect long long constants with __extension__.
8857         * sysdeps/i386/bits/byteswap.h: Likewise.
8858         * sysdeps/ia64/bits/byteswap.h: Likewise.
8859         * sysdeps/s390/bits/byteswap.h: Likewise.
8860         * sysdeps/x86_64/bits/byteswap.h: Likewise.
8861
8862 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8863
8864         [BZ #13540]
8865         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Fix overrun in
8866         destination buffer.
8867         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: Likewise.
8868
8869 2011-12-23  Marek Polacek  <polacek@redhat.com>
8870
8871         * elf/dl-addr.c (determine_info): Add inline keyword.
8872         * elf/tst-auditmod4b.c (check_avx): Likewise.
8873         * elf/tst-auditmod6b.c (check_avx): Likewise.
8874         * elf/tst-auditmod6c.c (check_avx): Likewise.
8875         * elf/tst-auditmod7b.c (check_avx): Likewise.
8876
8877 2011-12-23  Ulrich Drepper  <drepper@gmail.com>
8878
8879         * sysdeps/i386/fpu/bits/fenv.h (feraiseexcept): Also enable for
8880         !__SSE_MATH__.
8881
8882 2011-12-23  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8883
8884         [BZ #13540]
8885         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: Fix wrong copying
8886         processing for last bytes.
8887
8888 2011-08-06  Bruno Haible  <bruno@clisp.org>
8889
8890         [BZ #13061]
8891         * iconvdata/cp1258.c (comp_table_data): Combine U+00A8 U+0301 to
8892         U+0385, not to U+1FEE.
8893
8894         [BZ #13062]
8895         * iconvdata/tcvn5712-1.c (comp_table_data): Remove useless and wrong
8896         entry for U+00A5 U+0301.
8897
8898 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8899
8900         [BZ #13166]
8901         * inet/getnameinfo.c (getnameinfo): Return EAI_OVERFLOW if the
8902         buffer for the output is too small.
8903
8904         * sysdeps/i386/fpu/bits/fenv.h [__SSE_MATH__]: Add feraiseexcept
8905         optimization.
8906
8907         [BZ #13185]
8908         * sysdeps/i386/fpu/fgetexcptflg.c (__fegetexceptflag): Also return
8909         SSE flags if possible.
8910
8911 2011-12-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
8912
8913         [BZ #13540]
8914         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Fix wrong copying
8915         processing for last bytes.
8916
8917 2011-12-22  Joseph Myers  <joseph@codesourcery.com>
8918
8919         * sysdeps/unix/sysv/linux/Makefile (syscall-list-variants)
8920         (syscall-list-default-options, syscall-list-default-condition)
8921         (syscall-list-includes): Define.
8922         ($(objpfx)syscall-%.h $(objpfx)syscall-%.d): Support arbitrary
8923         list of ABIs and options and #if conditions for each ABI.  Do not
8924         handle common syscalls between ABIs specially.
8925         * sysdeps/unix/sysv/linux/powerpc/Makefile (64bit-predefine):
8926         Remove.
8927         (syscall-list-variants, syscall-list-32bit-options)
8928         (syscall-list-32bit-condition, syscall-list-64bit-options)
8929         (syscall-list-64bit-condition): Define.
8930         * sysdeps/unix/sysv/linux/s390/Makefile (64bit-predefine): Remove.
8931         (syscall-list-variants, syscall-list-32bit-options)
8932         (syscall-list-32bit-condition, syscall-list-64bit-options)
8933         (syscall-list-64bit-condition): Define.
8934         * sysdeps/unix/sysv/linux/sparc/Makefile (64bit-predefine):
8935         Remove.
8936         (syscall-list-variants, syscall-list-32bit-options)
8937         (syscall-list-32bit-condition, syscall-list-64bit-options)
8938         (syscall-list-64bit-condition): Define.
8939         * sysdeps/unix/sysv/linux/x86_64/Makefile (64bit-predefine):
8940         Remove.
8941         (syscall-list-variants, syscall-list-32bit-options)
8942         (syscall-list-32bit-condition, syscall-list-64bit-options)
8943         (syscall-list-64bit-condition): Define.
8944
8945 2011-12-22  Ulrich Drepper  <drepper@gmail.com>
8946
8947         * locale/iso-639.def: Add brx entry.
8948
8949         [BZ #13328]
8950         * malloc/mtrace.c (tr_freehook): Avoid unnecessary unlock/lock.
8951         Proposed by Mariusz_Cukr <marcukr@op.pl>.
8952
8953         * sysdeps/x86_64/fpu/bits/fenv.h: Use __REDIRECT_NTH for
8954         __feraiseexcept_renamed.
8955
8956 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8957
8958         [BZ #13538]
8959         * sysdeps/unix/sysv/linux/sys/epoll.h: Initialize EPOLLONESHOT and
8960         EPOLLET with unsigned values.
8961         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Likewise.
8962         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h: Likewise.
8963
8964         * math/s_cacosh.c: Use Kahan's formula if the subtraction could lead
8965         to large cancellation.
8966         * math/s_cacoshf.c: Likewise.
8967         * math/s_cacoshl.c: Likewise.
8968
8969 2011-11-18  Richard B. Kreckel  <kreckel@ginac.de>
8970
8971         [BZ #13305]
8972         [BZ #12786]
8973         * math/s_cacosh.c: Fix rare miscomputation in cacosh().
8974         * math/s_cacoshf.c: Likewise.
8975         * math/s_cacoshl.c: Likewise.
8976
8977 2011-12-21  Ulrich Drepper  <drepper@gmail.com>
8978
8979         [BZ #13439]
8980         * iconv/gconv.h: Define __GCONV_SWAP.
8981         * iconvdata/unicode.c: The swap bit must be stored in __flags.
8982         * iconvdata/utf-16.c: Likewise.
8983         * iconvdata/utf-32.c: Likewise.
8984
8985 2011-12-21  Andreas Schwab  <schwab@linux-m68k.org>
8986
8987         [BZ #13524]
8988         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Clear lowest limb of
8989         numerator after shifting it by one limb.
8990
8991 2011-12-19  Rafael Ávila de Espíndola  <rafael.espindola@gmail.com>
8992
8993         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Define it only
8994         under [__USE_EXTERN_INLINES].
8995
8996 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
8997
8998         [BZ #13446]
8999         * stdio-common/vfprintf.c (vfprintf): Fix extension of specs array.
9000
9001 2011-11-22  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9002
9003         * sysdeps/powerpc/Makefile: Added locale-defines.sym generation.
9004         * sysdeps/powerpc/locale-defines.sym: Locale definitions for strcasecmp
9005         optimized code.
9006         * sysdeps/powerpc/powerpc32/power7/Makefile: New file.
9007         * sysdeps/powerpc/powerpc32/power7/strcasecmp.S: New file.
9008         * sysdeps/powerpc/powerpc32/power7/strcasecmp_l.S: New file.
9009         * sysdeps/powerpc/powerpc64/power7/Makefile: Added unroll-loop option
9010         for strncasecmp/strncasecmp_l compilation.
9011         * sysdeps/powerpc/powerpc64/power7/strcasecmp.S: New file.
9012         * sysdeps/powerpc/powerpc64/power7/strcasecmp_l.S: New file.
9013
9014 2011-12-08  Marek Polacek  <mpolacek@redhat.com>
9015
9016         [BZ #13484]
9017         * math/bits/math-finite.h: Use __REDIRECT_NTH and __NTH instead
9018         of __asm__.
9019
9020 2011-12-17  Ulrich Drepper  <drepper@gmail.com>
9021
9022         [BZ #13506]
9023         * time/tzfile.c (__tzfile_read): Check values from file header.
9024
9025 2011-11-21  Will Schmidt  <will_schmidt@vnet.ibm.com>
9026
9027         * powerpc/powerpc32/sysdep.h: Define SETUP_GOT_ACCESS() macro.
9028         * powerpc/powerpc32/a2/memcpy.S: Use SETUP_GOT_ACCESS() macro.
9029         * powerpc/powerpc32/dl-start.S: Likewise.
9030         * powerpc/powerpc32/elf/start.S: Likewise.
9031         * powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
9032         * powerpc/powerpc32/fpu/s_ceil.S: Likewise.
9033         * powerpc/powerpc32/fpu/s_ceilf.S: Likewise.
9034         * powerpc/powerpc32/fpu/s_floor.S: Likewise.
9035         * powerpc/powerpc32/fpu/s_floorf.S: Likewise.
9036         * powerpc/powerpc32/fpu/s_lround.S: Likewise.
9037         * powerpc/powerpc32/fpu/s_rint.S: Likewise.
9038         * powerpc/powerpc32/fpu/s_rintf.S: Likewise.
9039         * powerpc/powerpc32/fpu/s_round.S: Likewise.
9040         * powerpc/powerpc32/fpu/s_roundf.S: Likewise.
9041         * powerpc/powerpc32/fpu/s_trunc.S: Likewise.
9042         * powerpc/powerpc32/fpu/s_truncf.S: Likewise.
9043         * powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
9044         * powerpc/powerpc32/memset.S: Likewise.
9045         * powerpc/powerpc32/power4/fpu/s_llround.S: Likewise.
9046         * powerpc/powerpc32/power4/fpu/w_sqrt.S: Likewise.
9047         * powerpc/powerpc32/power4/fpu/w_sqrtf.S: Likewise.
9048         * powerpc/powerpc32/power5/fpu/w_sqrt.S: Likewise.
9049         * powerpc/powerpc32/power5/fpu/w_sqrtf.S: Likewise.
9050         * powerpc/powerpc32/power7/fpu/s_finite.S: Likewise.
9051         * powerpc/powerpc32/power7/fpu/s_isinf.S: Likewise.
9052         * powerpc/powerpc32/power7/fpu/s_isnan.S: Likewise.
9053         * unix/sysv/linux/powerpc/powerpc32/____longjmp_chk.S: Likewise.
9054         * unix/sysv/linux/powerpc/powerpc32/brk.S: Likewise.
9055         * unix/sysv/linux/powerpc/powerpc32/getcontext-common.S: Likewise.
9056         * unix/sysv/linux/powerpc/powerpc32/setcontext-common.S: Likewise.
9057         * unix/sysv/linux/powerpc/powerpc32/swapcontext-common.S: Likewise.
9058
9059 2011-11-18  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9060
9061         * math/libm-test.inc: Added more nearbyint tests.
9062         * sysdeps/powerpc/powerpc32/fpu/s_nearbyint.S: New file.
9063         * sysdeps/powerpc/powerpc32/fpu/s_nearbyintf.S: New file.
9064         * sysdeps/powerpc/powerpc64/fpu/s_nearbyint.S: New file.
9065         * sysdeps/powerpc/powerpc64/fpu/s_nearbyintf.S: New file.
9066
9067 2011-11-21  Ross Lagerwall  <rosslagerwall@gmail.com>
9068
9069         * resolv/res_init.c (__res_vinit): Open /etc/resolv.conf with
9070         FD_CLOEXEC.
9071
9072 2011-11-14  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9073
9074         * sysdeps/x86_64/multiarch/Makefile [subdir=wcsmbs] (sysdep_routines):
9075         Add wcscpy-ssse3 wcscpy-c.
9076         * sysdeps/x86_64/multiarch/wcscpy-ssse3.S: New file.
9077         * sysdeps/x86_64/multiarch/wcscpy-c.c: New file.
9078         * sysdeps/x86_64/multiarch/wcscpy.S: New file.
9079         * sysdeps/x86_64/wcschr.S: New file.
9080         * sysdeps/x86_64/wcsrchr.S: New file.
9081         * string/test-strcmp.c: Remove checking of wcscmp function for
9082         wrong alignments.
9083         * sysdeps/i386/i686/multiarch/Makefile [subdir=wcsmbs]
9084         (sysdep_routines): Add wcscpy-ssse3 wcscpy-c wcschr-sse2 wcschr-c
9085         wcsrchr-sse2 wcsrchr-c.
9086         * sysdeps/i386/i686/multiarch/wcschr.S: New file.
9087         * sysdeps/i386/i686/multiarch/wcschr-c.c: New file.
9088         * sysdeps/i386/i686/multiarch/wcschr-sse2.S: New file.
9089         * sysdeps/i386/i686/multiarch/wcsrchr.S: New file.
9090         * sysdeps/i386/i686/multiarch/wcsrchr-c.c: New file.
9091         * sysdeps/i386/i686/multiarch/wcsrchr-sse2.S: New file.
9092         * sysdeps/i386/i686/multiarch/wcscpy.S: New file.
9093         * sysdeps/i386/i686/multiarch/wcscpy-c.c: New file.
9094         * sysdeps/i386/i686/multiarch/wcscpy-ssse3.S: New file.
9095         * wcsmbc/wcschr.c (WCSCHR): New macro.
9096
9097 2011-11-17  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9098
9099         * wcsmbs/Makefile (strop-tests): Add wcsrchr wcscpy.
9100         * wcsmbs/test-wcsrchr.c: New file.
9101         * string/test-strrchr.c: Add wcsrchr support.
9102         (WIDE): New macro.
9103         * wcsmbs/test-wcscpy.c: New file.
9104         * string/test-strcpy.c: Add wcscpy support.
9105         (WIDE): New macro.
9106
9107 2011-12-10  Ulrich Drepper  <drepper@gmail.com>
9108
9109         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Lift one operation out of
9110         the inner loop.
9111
9112 2011-12-06  Andreas Schwab  <schwab@linux-m68k.org>
9113
9114         [BZ #13472]
9115         * sysdeps/powerpc/fpu/e_hypot.c (twoM600): Correct value.
9116
9117 2011-12-04  Ulrich Drepper  <drepper@gmail.com>
9118
9119         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Fix attribute.
9120         Minor optimizations.
9121
9122         * sunrpc/clnt_unix.c (clntunix_control): Fix aliasing issues.
9123         * sunrpc/clnt_tcp.c (clnttcp_control): Likewise.
9124         * sunrpc/clnt_udp.c (clntudp_call): Likewise.
9125
9126 2011-12-03  Ulrich Drepper  <drepper@gmail.com>
9127
9128         * inet/netinet/in.h: Provide versions of IN6_IS_ADDR_UNSPECIFIED,
9129         IN6_IS_ADDR_LOOPBACK, IN6_IS_ADDR_LINKLOCAL, IN6_IS_ADDR_SITELOCAL,
9130         IN6_IS_ADDR_V4MAPPED, IN6_IS_ADDR_V4COMPAT, and IN6_ARE_ADDR_EQUAL
9131         for gcc to avoid warnings.
9132         * inet/Makefile (tests): Add tst-checks.
9133         * inet/tst-checks.c: New file.
9134
9135         * sysdeps/generic/dl-hash.h (_dl_elf_hash): Add attribute to avoid
9136         warning.
9137
9138         * sysdeps/x86_64/multiarch/wmemcmp-c.c: Provide prototype for
9139         __wmemcmp_sse2.
9140
9141         * sysdeps/x86_64/fpu/s_scalbln.c: Removed.
9142         * sysdeps/x86_64/fpu/s_scalbn.c: Removed.
9143
9144         * malloc/mcheck.h: Fix use of incorrect encoding in comment.
9145
9146 2011-12-02  Ulrich Drepper  <drepper@gmail.com>
9147
9148         * nis/nis_findserv.c (__nis_findfastest_with_timeout): Avoid aliasing
9149         problem.
9150
9151         * nscd/aicache.c (addhstaiX): Avoid unused variable warning.
9152
9153 2011-11-29  Joseph Myers  <joseph@codesourcery.com>
9154
9155         * sysdeps/unix/sysv/linux/sh/bits/atomic.h (rNOSP): Define
9156         conditional on GCC version.
9157         (__arch_compare_and_exchange_val_8_acq)
9158         (__arch_compare_and_exchange_val_16_acq)
9159         (__arch_compare_and_exchange_val_32_acq, atomic_exchange_and_add)
9160         (atomic_add, atomic_add_negative, atomic_add_zero, atomic_bit_set)
9161         (atomic_bit_test_set): Use rNOSP instead of "r" constraints.
9162
9163 2011-12-02  Joseph Myers  <joseph@codesourcery.com>
9164
9165         * sysdeps/sh/backtrace.c: New file.
9166
9167 2011-12-02  Andreas Schwab  <schwab@redhat.com>
9168
9169         * misc/bits/select2.h (__FD_ELT): Mark as extension.  Add
9170         parenthesis.
9171
9172 2011-12-01  Andreas Schwab  <schwab@redhat.com>
9173
9174         * sysdeps/unix/sysv/linux/futimes.c: Truncate time values when
9175         falling back to utime.
9176
9177 2011-11-30  Andreas Schwab  <schwab@redhat.com>
9178
9179         * sysdeps/s390/fpu/libm-test-ulps: Relax cpow (2 + 3 i, 4 + 0 i)
9180         expectations for float.
9181
9182 2011-11-29  Andreas Schwab  <schwab@redhat.com>
9183
9184         * locale/weight.h (findidx): Add parameter len.
9185         * locale/weightwc.h (findidx): Likewise.
9186         * posix/fnmatch_loop.c (FCT): Adjust caller.
9187         * posix/regcomp.c (build_equiv_class): Likewise.
9188         * posix/regex_internal.h (re_string_elem_size_at): Likewise.
9189         * posix/regexec.c (check_node_accept_bytes): Likewise.
9190         * string/strcoll_l.c (STRCOLL): Likewise.
9191         * string/strxfrm_l.c (STRXFRM): Likewise.
9192
9193 2011-11-17  Ulrich Drepper  <drepper@gmail.com>
9194
9195         * Makefile.in: Remove CVSOPT handling.
9196         * configure.in: Remove use of AC_REVISION.
9197         * iconvdata/Makefile (distribute): No need to filter out CVS.
9198         * scripts/list-sources.sh: Remove CVS, subversion and monotone
9199         handling.
9200
9201 2011-11-16  Andreas Schwab  <schwab@redhat.com>
9202
9203         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S
9204         [USE_AS_STRCASECMP_L]: Fix argument offsets for non-PIC.
9205         [USE_AS_STRNCASECMP_L]: Likewise.
9206         (__strcasecmp_ssse3, __strncasecmp_ssse3): Handle
9207         NO_TLS_DIRECT_SEG_REFS.
9208         * sysdeps/i386/i686/multiarch/strcmp-sse4.S [USE_AS_STRCASECMP_L]:
9209         Fix argument offsets for non-PIC.
9210         [USE_AS_STRNCASECMP_L]: Likewise.
9211         (__strcasecmp_sse4_2, __strncasecmp_sse4_2): Handle
9212         NO_TLS_DIRECT_SEG_REFS.
9213
9214 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
9215
9216         * locale/loadarchive.c (_nl_load_locale_from_archive): Open files with
9217         O_CLOEXEC.
9218         * locale/loadlocale.c (_nl_load_locale): Likewise.
9219
9220 2011-11-15  Andreas Schwab  <schwab@redhat.com>
9221
9222         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU)
9223         [__ASSUME_POSIX_CPU_TIMERS > 0]: Assign to retval and break.
9224         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c
9225         (SYSCALL_GETTIME): Set errno on error.
9226
9227         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Properly
9228         count references to noai6ai_cached.
9229
9230 2011-11-15  Ulrich Drepper  <drepper@gmail.com>
9231
9232         * time/getdate.c (__getdate_r): Set FD_CLOEXEC for given file.
9233
9234         * sysdeps/unix/sysv/linux/readonly-area.c (__readonly_area): Set
9235         FD_CLOEXEC for /proc/self/maps.
9236
9237         * sysdeps/unix/sysv/linux/getsysstats.c (phys_pages_info): Set
9238         FD_CLOEXEC for /proc/meminfo.
9239
9240         * sysdeps/posix/getaddrinfo.c (gaiconf_init): Set FD_CLOEXEC for
9241         gai.conf.
9242
9243         * resolv/res_query.c (res_hostalias):  Don't allow cancellation and set
9244         FD_CLOEXEC for given file.
9245
9246         * resolv/res_hconf.c (do_init): Set FD_CLOEXEC for host.conf.
9247
9248         * resolv/gethnamaddr.c (_sethtent): Don't allow cancellation and set
9249         FD_CLOEXEC for /etc/hosts.
9250         (_gethtent): Likewise.
9251
9252         * nss/nsswitch.c (nss_parse_file): Set FD_CLOEXEC.
9253
9254         * nss/nss_files/files-netgrp.c (_nss_files_setnetgrent): Don't allow
9255         cancellation and set FD_CLOEXEC for /etc/netgroup.
9256
9257         * nss/nss_files/files-key.c (search): Don't allow cancellation when
9258         reading /etc/publickey.
9259
9260         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Don't
9261         allow cancellation when reading /etc/group.
9262
9263         * nss/nss_files/files-alias.c (internal_setent): Don't allow
9264         cancellation.
9265         (get_next_alias): Likewise for included file.  Also set FD_CLOEXEC.
9266
9267         * nss/nss_files/files-XXX.c (internal_setent): Don't allow cancellation
9268         when using data file.
9269
9270         * nis/nss-default.c (init): Set FD_CLOEXEC for /etc/default/nss.
9271
9272         * nis/nis_file.c (read_nis_obj): Set FD_CLOEXEC.
9273         (write_nis_obj): Use "c" and "e" in fopen.
9274
9275         * misc/mntent_r.c (__setmntent): Also append e to fopen format.
9276
9277         * misc/getusershell.c (initshells): Set FD_CLOEXEC for /etc/shells.
9278
9279         * misc/getttyent.c (setttyent): Set FD_CLOEXEC.
9280
9281         * misc/getpass.c (getpass): Set FD_CLOEXEC for /dev/tty.
9282
9283         * intl/localealias.c (read_alias_file): Set FD_CLOEXEC for
9284         locale.alias.
9285
9286         * inet/ruserpass.c (ruserpass): Set FD_CLOEXEC for .netrc.
9287
9288         * inet/rcmd.c (iruserfopen): Set FD_CLOEXEC for hosts.equiv.
9289
9290         * iconv/gconv_conf.c (read_conf_file): Set FD_CLOEXEC for config file.
9291
9292         * hesiod/hesiod.c (parse_config_file): Prevent cancellation in config
9293         file parsing and set FD_CLOEXEC.
9294
9295 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
9296
9297         * time/tzfile.c (__tzfile_read): Use "e" in fopen call.
9298
9299 2011-11-14  Andreas Schwab  <schwab@redhat.com>
9300
9301         * malloc/arena.c (arena_get2): Don't call reused_arena when
9302         _int_new_arena failed.
9303
9304 2011-11-14  Ulrich Drepper  <drepper@gmail.com>
9305
9306         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]
9307         (sysdep_routines): Add strcasecmp_l-sse4 and strncase_l-sse4.
9308         * sysdeps/i386/i686/multiarch/strcasecmp.S: Re-enable SSE4.2 code.
9309         * sysdeps/i386/i686/multiarch/strcmp.S: Likewise.
9310         * sysdeps/i386/i686/multiarch/strncase.S: Likewise.
9311         * sysdeps/i386/i686/multiarch/strcmp-sse4.S: Change to allow reuse
9312         to compile strcasecmp and strncasecmp.
9313         * sysdeps/i386/i686/multiarch/strcasecmp_l-sse4.S: New file.
9314         * sysdeps/i386/i686/multiarch/strncase_l-sse4.S: New file.
9315
9316         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Use L macro consistently.
9317
9318 2011-11-13  Ulrich Drepper  <drepper@gmail.com>
9319
9320         * sysdeps/i386/i686/multiarch/Makefile [subdir=string]: Add
9321         locale-defines.sym to gen-as-const-headers.
9322         (sysdep_routines): Add strcasecmp_l-c, strcasecmp-c,
9323         strcasecmp_l-ssse3, strncase_l-c, strncase-c, and strncase_l-ssse3.
9324         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Change to allow reuse
9325         to compile strcasecmp and strncasecmp.
9326         * sysdeps/i386/i686/multiarch/strcmp.S: Allow to use for
9327         strcasecmp_l and strncasecmp_l.
9328         * sysdeps/i386/i686/multiarch/locale-defines.sym: New file.
9329         * sysdeps/i386/i686/multiarch/strcasecmp-c.c: New file.
9330         * sysdeps/i386/i686/multiarch/strcasecmp.S: New file.
9331         * sysdeps/i386/i686/multiarch/strcasecmp_l-c.c: New file.
9332         * sysdeps/i386/i686/multiarch/strcasecmp_l-ssse3.S: New file.
9333         * sysdeps/i386/i686/multiarch/strcasecmp_l.S: New file.
9334         * sysdeps/i386/i686/multiarch/strncase-c.c: New file.
9335         * sysdeps/i386/i686/multiarch/strncase.S: New file.
9336         * sysdeps/i386/i686/multiarch/strncase_l-c.c: New file.
9337         * sysdeps/i386/i686/multiarch/strncase_l-ssse3.S: New file.
9338         * sysdeps/i386/i686/multiarch/strncase_l.S: New file.
9339
9340 2011-11-12  Ulrich Drepper  <drepper@gmail.com>
9341
9342         * sysdeps/unix/clock_gettime.c (clock_gettime): No need to assign
9343         result of SYSDEP_GETTIME_CPU to retval.
9344         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSDEP_GETTIME_CPU): Add
9345         parameter list to macro.  Remove trailing semicolon.  Adjust users.
9346
9347         * resolv/getaddrinfo_a.c (getaddrinfo_a): Avoid warning about unused
9348         variable.
9349
9350         * sysdeps/ieee754/ldbl-96/e_j0l.c (__ieee754_j0l): Avoid storing
9351         mantissa words.
9352         * sysdeps/ieee754/ldbl-96/e_j1l.c (__ieee754_j1l): Likewise.
9353
9354         * sysdeps/ieee754/ldbl-96/e_hypotl.c (__ieee754_hypotl): Avoid warning
9355         from unused variable.
9356
9357         * sysdeps/generic/sysdep.h: Clean up, pretty print, use dwarf2.h for
9358         DWARF definitions.
9359         * sysdeps/generic/dwarf2.h: Don't define enums when using the file
9360         for assembling.
9361
9362         * elf/dl-iteratephdr.c [!SHARED] (__dl_iterate_phdr): Don't iterate
9363         over namespaces.
9364
9365         * sunrpc/rpc_prot.c (rejected): Fix case value.
9366
9367         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS): Use
9368         unsigned long long int to avoid warnings in shift.
9369
9370         * posix/regex_internal.c (re_string_reconstruct): Actually use result
9371         of use of trans.
9372         * posix/regex_internal.h (re_string_wchar_at): Remove temporary
9373         variable tmp.
9374
9375         * sysdeps/i386/i686/multiarch/wcscmp-c.c: Avoid warning.
9376         * sysdeps/i386/i686/multiarch/wcslen-c.c: Likewise.
9377         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: Likewise.
9378
9379         * nis/nis_table.c (nis_list): Use variable of correct type for
9380         result of __follow_path call.
9381
9382 2011-11-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
9383
9384         * sysdeps/powerpc/fpu/math_private.h: Using inline assembly version
9385         of math functions ceil, trunc, floor, round, and sqrt, when
9386         avaliable on the platform.
9387         * sysdeps/powerpc/fpu/e_sqrt.c: Undefine __ieee754_sqrt to avoid
9388         name clash.
9389         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
9390         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
9391         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
9392
9393 2011-10-30  Marek Polacek  <mpolacek@redhat.com>
9394
9395         * libio/wfileops.c (_IO_wfile_underflow_mmap): Remove unused variable.
9396         * sysdeps/ieee754/dbl-64/mpsqrt.c (__mpsqrt): Likewise.
9397
9398 2011-11-11  Roland McGrath  <roland@hack.frob.com>
9399
9400         * include/unistd.h: Fix __readlink return type.
9401         Reported by Chris Metcalf <cmetcalf@tilera.com>.
9402
9403 2011-11-11  Ulrich Drepper  <drepper@gmail.com>
9404
9405         * stdlib/ucontext.h: Undo last change for makecontext.
9406
9407 2011-11-11  Andreas Schwab  <schwab@redhat.com>
9408
9409         * nss/db-Makefile ($(VAR_DB)/group.db): Fix typo in awk script.
9410
9411         * misc/sys/cdefs.h (__REDIRECT_NTHNL): Define.
9412         * setjmp/setjmp.h: Mark functions as non-leaf.
9413         * setjmp/bits/setjmp2.h: Likewise.
9414         * stdlib/ucontext.h: Likewise.
9415
9416 2011-11-10  Andreas Schwab  <schwab@redhat.com>
9417
9418         * malloc/arena.c (_int_new_arena): Don't increment narenas.
9419         (reused_arena): Don't check arena limit.
9420         (arena_get2): Atomically check arena limit.
9421
9422 2011-11-08  Ulrich Drepper  <drepper@gmail.com>
9423
9424         * locale/findlocale.c (_nl_find_locale): Use __strcasecmp_l.
9425         * intl/localealias.c (strcasecmp): Define using __strcasecmp_l.
9426
9427         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S: Remove unnecessary
9428         instructions.
9429
9430 2011-11-07  Andreas Schwab  <schwab@redhat.com>
9431
9432         * libio/genops.c (_IO_flush_all_lockp): Only register cleanup
9433         handler when locking.
9434
9435         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
9436         Fix size of allocated buffer.
9437
9438 2011-11-04  Andreas Schwab  <schwab@redhat.com>
9439
9440         [BZ #10103]
9441         * math/math.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Provide
9442         declarations for long double functions.
9443         * math/complex.h [__NO_LONG_DOUBLE_MATH && !_LIBC]: Likewise.
9444
9445         * elf/sprof.c (load_shobj): Fix off-by-one when reading link name.
9446
9447 2011-11-03  Andreas Schwab  <schwab@redhat.com>
9448
9449         * nscd/nscd.c (main): Don't start AVC thread until credentials are
9450         installed.
9451
9452         * nss/makedb.c (set_file_creation_context): Do nothing if SELinux
9453         is disabled.
9454
9455 2011-11-02  Samuel Thibault  <samuel.thibault@ens-lyon.org>
9456
9457         * bits/ioctl-types.h (_IOT_sgttyb): Set number of chars to 4.
9458
9459 2011-11-01  Andreas Schwab  <schwab@linux-m68k.org>
9460
9461         * include/alloca.h (stackinfo_alloca_round): Define.
9462         (extend_alloca): Use it.
9463         [_STACK_GROWS_UP]: Correct check for adjacent allocation.
9464         * elf/dl-deps.c (_dl_map_object_deps): Don't round alloca size
9465         here.
9466
9467         * scripts/check-local-headers.sh: Ignore libaudit.h.
9468
9469         * nscd/Makefile (extra-objs): Make recursively expanded.
9470
9471 2011-11-01  Ulrich Drepper  <drepper@gmail.com>
9472
9473         * sysdeps/x86_64/strcmp.S: Fix test for non-ASCII locales.
9474         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Likewise.
9475
9476         * posix/tst-rfc3484.c: Add missing __free_in6ai dummy function.
9477         * posix/tst-rfc3484-2.c: Likewise.
9478         * posix/tst-rfc3484-3.c: Likewise.
9479
9480         * sysdeps/unix/sysv/linux/bits/uio.h: Declare process_vm_readv and
9481         process_vm_writev.
9482         * sysdeps/unix/sysv/linux/syscalls.list: Add process_vm_readv and
9483         process_vm_writev.
9484         * sysdeps/unix/sysv/linux/Versions: Export process_vm_readv and
9485         process_vm_writev from libc using GLIBC_2.15 version.
9486
9487         * nscd/connections.c: Use kernel headers instead of <netlink/netlink.h>.
9488
9489 2011-10-31  Paul Pluzhnikov  <ppluzhnikov@google.com>
9490
9491         * elf/dl-deps.c (_dl_map_object_deps): Reuse alloca space to reduce
9492         stack usage.
9493
9494 2011-10-31  Ulrich Drepper  <drepper@gmail.com>
9495
9496         [BZ #13367]
9497         * nss/getent.c (initgroups_keys): Show error message in case no group
9498         names are given.
9499
9500         * include/ifaddrs.h: Declare __free_in6ai and __bump_nl_timestamp.
9501         * inet/check_pf.c: Provide dummy versions of __free_in6ai and
9502         __bump_nl_timestamp.
9503         * nscd/connections (nscd_init): When host database is served open
9504         netlink socket and request notification about configuration changes.
9505         (main_loop_poll): Track netlink file descriptor and bump timestamp
9506         in case data becomes available.
9507         (main_loop_epoll): Likewise.
9508         * nscd/nscd-client.h (DB_VERSION): Bump to 2.
9509         (database_pers_head): Add extra_data fileds.
9510         Declare __nscd_get_mapping and __nscd_get_nl_timestamp.
9511         * nscd/nscd_gethst_r.c (__nscd_get_nl_timestamp): New function.
9512         * nscd/nscd_helper.c (__nscd_get_mapping): Renamed from get_mapping.
9513         Adjust caller.
9514         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Don't call free on
9515         in6ai data, call __free_in6ai.
9516         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd] (sysdep-CFLAGS):
9517         Add -DHAVE_NETLINK.
9518         * sysdeps/unix/sysv/linux/check_pf.c: Major rewrite.  Cache the
9519         interface information.  Reuse previous data if netlink timestamp
9520         is not changed.
9521         (__bump_nl_timestamp): New function.
9522         (__free_in6ai): New function.
9523
9524 2011-10-30  Ulrich Drepper  <drepper@gmail.com>
9525
9526         * sysdeps/unix/sysv/linux/check_pf.c (make_request): Don't call
9527         close_not_cancel_no_status here.
9528         (__check_pf): Reorganize code a bit to not call close twice if OOM.
9529
9530 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
9531
9532         [BZ #13276]
9533         * malloc/malloc.c (munmap_chunk): Don't use assertion to check munmap
9534         return value.
9535
9536         * posix/sys/wait.h: Mark wait3 and wait4 with __THROWNL.
9537         * libio/stdio.h: Mark sprintf, vsprintf snprintf, vsnprintf, vasprintf,
9538         asprintf, __asprintf, obstack_printf, obstack_vprintf with __THROWNL.
9539
9540 2011-07-03  Andreas Jaeger  <aj@suse.de>
9541
9542         [BZ #10709]
9543         * sysdeps/ieee754/dbl-64/s_sin.c (__sin): Fix incorrect rounding
9544         of sin. Patch suggested by Paul Zimmermann <zimmerma+gcc@loria.fr>.
9545         * math/libm-test.inc (sin_test): Add test case.
9546
9547 2011-10-29  Ulrich Drepper  <drepper@gmail.com>
9548
9549         [BZ #13337]
9550         * elf/sprof.c (load_shobj): Correctly NUL-terminate link name.
9551         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
9552
9553         * elf/chroot_canon.c (chroot_canon): Cleanups.
9554
9555         * elf/dl-lookup.c (_dl_setup_hash): Avoid warning.
9556
9557         [BZ #13335]
9558         * elf/chroot_canon.c (chroot_canon): Fix readlink call.
9559         Patch by Thomas Jarosch <thomas.jarosch@intra2net.com>.
9560
9561         * string/test-strchr.c: Make usable for strchrnul testing.
9562         * string/test-strchrnul.c: New file.
9563         * string/Makefile (strop-tests): Add strchrnul.
9564
9565         * po/it.po: Update from translation team.
9566         * po/es.po: Likewise.
9567
9568 2011-10-28  Ulrich Drepper  <drepper@gmail.com>
9569
9570         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Take
9571         the three constants needed as parameters.  Drop the others.
9572         (strcasestr_sse42): Load uclow, uchigh, and lcqword and pass to
9573         __m128i_strloadu_tolower.
9574         Create and initialize variable zero and use it in all the places
9575         where _mm_setzero_si128 was used.
9576
9577         * sysdeps/x86_64/fpu/multiarch/Makefile: Don't build brandred-avx.c,
9578         doasin-avx.c, dosincos-avx.c, e_asin-avx.c, mpatan-avx.c,
9579         mpatan2-avx.c, mpsqrt-avx.c, mptan-avx.c, sincos32-avx.c.
9580         * sysdeps/x86_64/fpu/multiarch/e_asin.c: There are no _avx variants
9581         anymore.
9582         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: Don't redirect __mpatan2.
9583         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: Don't redirect __mpatan.
9584         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: Don't redirect __branred,
9585         __docos, __dubsin, __mpcos, __mpcos1, __mpsin, __mpsin1.
9586         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: Don't redirect __branred,
9587         __mpranred, __mptan.
9588         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: Removed.
9589         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: Removed.
9590         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: Removed.
9591         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: Removed.
9592         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: Removed.
9593         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: Removed.
9594         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: Removed.
9595         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: Removed.
9596         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: Removed.
9597
9598 2011-10-28  Andreas Schwab  <schwab@redhat.com>
9599
9600         * sysdeps/i386/i686/multiarch/strnlen-c.c (libc_hidden_def): Only
9601         redefine if SHARED.
9602         * sysdeps/i386/i686/multiarch/wcscmp-c.c (libc_hidden_def): Likewise.
9603
9604         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Move
9605         wide char related routines to wcsmbs subdir.
9606
9607 2011-10-27  Andreas Schwab  <schwab@redhat.com>
9608
9609         [BZ #13344]
9610         * misc/sys/cdefs.h (__THROWNL): Define.
9611         * posix/unistd.h: Use __THREADNL instead of __THREAD
9612         for memory synchronization functions.
9613
9614 2011-10-26  Roland McGrath  <roland@hack.frob.com>
9615
9616         [BZ #13349]
9617         * libio/Versions (GLIBC_2.0): Remove open_obstack_stream, which
9618         doesn't exist.
9619         * manual/stdio.texi (Obstack Streams): Node removed.
9620
9621 2011-10-26  Andreas Schwab  <schwab@redhat.com>
9622
9623         * sysdeps/ieee754/flt-32/e_j0f.c: Fix use of math_force_eval.
9624         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9625         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9626
9627         * math/math_private.h (math_force_eval): Allow non-addressable
9628         arguments.
9629         * sysdeps/i386/fpu/math_private.h (math_force_eval): Likewise.
9630
9631 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9632
9633         * sysdeps/ieee754/dbl-64/e_rem_pio2.c: Comment everything out, the
9634         file is not needed.
9635
9636         * sysdeps/x86_64/fpu/multiarch/e_asin.c: Support AVX variants.
9637         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: Likewise.
9638         * sysdeps/x86_64/fpu/multiarch/e_exp.c: Likewise.
9639         * sysdeps/x86_64/fpu/multiarch/e_log.c: Likewise.
9640         * sysdeps/x86_64/fpu/multiarch/s_atan.c: Likewise.
9641         * sysdeps/x86_64/fpu/multiarch/s_sin.c: Likewise.
9642         * sysdeps/x86_64/fpu/multiarch/s_tan.c: Likewise.
9643         * sysdeps/x86_64/fpu/multiarch/Makefile: Fix some CFLAGS-* variables.
9644         Add AVX variants.
9645         * sysdeps/x86_64/fpu/multiarch/brandred-avx.c: New file.
9646         * sysdeps/x86_64/fpu/multiarch/doasin-avx.c: New file.
9647         * sysdeps/x86_64/fpu/multiarch/dosincos-avx.c: New file.
9648         * sysdeps/x86_64/fpu/multiarch/e_asin-avx.c: New file.
9649         * sysdeps/x86_64/fpu/multiarch/e_atan2-avx.c: New file.
9650         * sysdeps/x86_64/fpu/multiarch/e_exp-avx.c: New file.
9651         * sysdeps/x86_64/fpu/multiarch/e_log-avx.c: New file.
9652         * sysdeps/x86_64/fpu/multiarch/mpa-avx.c: New file.
9653         * sysdeps/x86_64/fpu/multiarch/mpatan-avx.c: New file.
9654         * sysdeps/x86_64/fpu/multiarch/mpatan2-avx.c: New file.
9655         * sysdeps/x86_64/fpu/multiarch/mpexp-avx.c: New file.
9656         * sysdeps/x86_64/fpu/multiarch/mplog-avx.c: New file.
9657         * sysdeps/x86_64/fpu/multiarch/mpsqrt-avx.c: New file.
9658         * sysdeps/x86_64/fpu/multiarch/mptan-avx.c: New file.
9659         * sysdeps/x86_64/fpu/multiarch/s_atan-avx.c: New file.
9660         * sysdeps/x86_64/fpu/multiarch/s_sin-avx.c: New file.
9661         * sysdeps/x86_64/fpu/multiarch/s_tan-avx.c: New file.
9662         * sysdeps/x86_64/fpu/multiarch/sincos32-avx.c: New file.
9663         * sysdeps/x86_64/fpu/multiarch/slowexp-avx.c: New file.
9664
9665         * sysdeps/x86_64/multiarch/init-arch.h: Make bit_* macros available
9666         all the time.  Define bit_AVX.  Define HAS_* macros using bit_* macros.
9667
9668         * sysdeps/x86_64/multiarch/strcmp-sse42.S: Move common code to earlier
9669         place.  Use VEX encoding when compiling for AVX.
9670
9671 2011-10-25  Andreas Schwab  <schwab@redhat.com>
9672
9673         * wcsmbs/wcscmp.c (WCSCMP): Compare as wchar_t, not wint_t.
9674         * wcsmbs/wmemcmp.c (WMEMCMP): Likewise.
9675
9676         * string/test-strchr.c (do_test): Don't generate NUL bytes.
9677
9678 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9679
9680         * sysdeps/ieee754/dbl-64/e_atanh.c: Use math_force_eval instead of a
9681         useless if() expression.
9682         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
9683         * sysdeps/ieee754/dbl-64/s_ceil.c: Likewise.
9684         * sysdeps/ieee754/dbl-64/s_expm1.c: Likewise.
9685         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
9686         * sysdeps/ieee754/dbl-64/s_log1p.c: Likewise.
9687         * sysdeps/ieee754/dbl-64/s_round.c: Likewise.
9688         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
9689         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
9690         * sysdeps/ieee754/dbl-64/wordsize-64/s_round.c: Likewise.
9691         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
9692         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
9693         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
9694         * sysdeps/ieee754/flt-32/s_expm1f.c: Likewise.
9695         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
9696         * sysdeps/ieee754/flt-32/s_log1pf.c: Likewise.
9697         * sysdeps/ieee754/flt-32/s_roundf.c: Likewise.
9698         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
9699         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
9700         * sysdeps/ieee754/ldbl-96/s_roundl.c: Likewise.
9701
9702         * sysdeps/x86_64/fpu/math_private.h: Use VEX encoding when possible.
9703
9704 2011-10-25  Andreas Schwab  <schwab@redhat.com>
9705
9706         * elf/dl-deps.c (_dl_map_object_deps): Remove always true
9707         condition.
9708         * elf/dl-fini.c (_dl_sort_fini): Likewise.
9709
9710 2011-10-25  Ulrich Drepper  <drepper@gmail.com>
9711
9712         * sysdeps/ieee754/dbl-64/branred.c: Move FMA4 code into separate
9713         .text section.  Avoid duplicate constants.
9714         * sysdeps/ieee754/dbl-64/doasin.c: Likewise.
9715         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9716         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
9717         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9718         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9719         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9720         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9721         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9722         * sysdeps/ieee754/dbl-64/mpa.c: Likewise.
9723         * sysdeps/ieee754/dbl-64/mpa.h: Likewise.
9724         * sysdeps/ieee754/dbl-64/mpatan.c: Likewise.
9725         * sysdeps/ieee754/dbl-64/mpatan.h: Likewise.
9726         * sysdeps/ieee754/dbl-64/mpatan2.c: Likewise.
9727         * sysdeps/ieee754/dbl-64/mpexp.c: Likewise.
9728         * sysdeps/ieee754/dbl-64/mpexp.h: Likewise.
9729         * sysdeps/ieee754/dbl-64/mpsqrt.c: Likewise.
9730         * sysdeps/ieee754/dbl-64/mpsqrt.h: Likewise.
9731         * sysdeps/ieee754/dbl-64/mptan.c: Likewise.
9732         * sysdeps/ieee754/dbl-64/s_sin.c: Likewise.
9733         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9734         * sysdeps/ieee754/dbl-64/sincos32.c: Likewise.
9735         * sysdeps/ieee754/dbl-64/slowexp.c: Likewise.
9736         * sysdeps/ieee754/dbl-64/slowpow.c: Likewise.
9737         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: Likewise.
9738         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: Likewise.
9739         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: Likewise.
9740         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: Likewise.
9741         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: Likewise.
9742         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: Likewise.
9743         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: Likewise.
9744         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: Likewise.
9745         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: Likewise.
9746         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: Likewise.
9747         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: Likewise.
9748         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: Likewise.
9749         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: Likewise.
9750         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: Likewise.
9751         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: Likewise.
9752         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: Likewise.
9753         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: Likewise.
9754         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: Likewise.
9755         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: Likewise.
9756         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: Likewise.
9757         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: Likewise.
9758         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: Likewise.
9759
9760 2011-10-24  Ulrich Drepper  <drepper@gmail.com>
9761
9762         * sysdeps/x86_64/dla.h: Move to ...
9763         * sysdeps/x86_64/fpu/dla.h: ...here.
9764         (DLA_FMS): Some compilers fail to inline __builtin_fma in some
9765         situations.  Use __builtin_fma only for gcc 4.6 and up.
9766
9767         * config.make.in: Add have-mfma4 entry.
9768         * configure.in: Substitute libc_cv_cc_fma4.
9769         * math/Makefile (dbl-only-routines): Add sincostab.
9770         * sysdeps/ieee754/dbl-64/dosincos.c: Don't include sincos.tbl.
9771         Use __sincostab not sincos.
9772         * sysdeps/ieee754/dbl-64/e_asin.c: Don't define aliases when function
9773         name is a macro.
9774         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
9775         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9776         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9777         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.  Define singArctan2
9778         using __copysign.
9779         * sysdeps/ieee754/dbl-64/mpa.c: Don't export __acr.  Don't define
9780         __cr and __cpymn.  Define __cpy unless NO___CPY is defined.  Define
9781         norm, denorm, and __mp_dbl unless NO___MP_DBL is defined.
9782         * sysdeps/ieee754/dbl-64/mpa.h: Don't declare __acr, __cr, __cpymn,
9783         and __inv.
9784         * sysdeps/ieee754/dbl-64/mpsqrt.c: Make fastiroot static.
9785         * sysdeps/ieee754/dbl-64/s_atan.c: Define __signArctan using
9786         __copysign.
9787         * sysdeps/ieee754/dbl-64/s_sin.c: Use __sincostab not sincos.  Don't
9788         define aliases when function name is a macro.
9789         * sysdeps/ieee754/dbl-64/sincostab.c: Renamed from
9790         sysdeps/ieee754/dbl-64/sincos.tbl.
9791         * sysdeps/x86_64/fpu/multiarch/Makefile: Add entries to build
9792         fma4-enabled routines.
9793         * sysdeps/x86_64/fpu/multiarch/brandred-fma4.c: New file.
9794         * sysdeps/x86_64/fpu/multiarch/doasin-fma4.c: New file.
9795         * sysdeps/x86_64/fpu/multiarch/dosincos-fma4.c: New file.
9796         * sysdeps/x86_64/fpu/multiarch/e_asin-fma4.c: New file.
9797         * sysdeps/x86_64/fpu/multiarch/e_asin.c: New file.
9798         * sysdeps/x86_64/fpu/multiarch/e_atan2-fma4.c: New file.
9799         * sysdeps/x86_64/fpu/multiarch/e_atan2.c: New file.
9800         * sysdeps/x86_64/fpu/multiarch/e_exp-fma4.c: New file.
9801         * sysdeps/x86_64/fpu/multiarch/e_exp.c: New file.
9802         * sysdeps/x86_64/fpu/multiarch/e_log-fma4.c: New file.
9803         * sysdeps/x86_64/fpu/multiarch/e_log.c: New file.
9804         * sysdeps/x86_64/fpu/multiarch/e_pow-fma4.c: New file.
9805         * sysdeps/x86_64/fpu/multiarch/e_pow.c: New file.
9806         * sysdeps/x86_64/fpu/multiarch/halfulp-fma4.c: New file.
9807         * sysdeps/x86_64/fpu/multiarch/mpa-fma4.c: New file.
9808         * sysdeps/x86_64/fpu/multiarch/mpatan-fma4.c: New file.
9809         * sysdeps/x86_64/fpu/multiarch/mpatan2-fma4.c: New file.
9810         * sysdeps/x86_64/fpu/multiarch/mpexp-fma4.c: New file.
9811         * sysdeps/x86_64/fpu/multiarch/mplog-fma4.c: New file.
9812         * sysdeps/x86_64/fpu/multiarch/mpsqrt-fma4.c: New file.
9813         * sysdeps/x86_64/fpu/multiarch/mptan-fma4.c: New file.
9814         * sysdeps/x86_64/fpu/multiarch/s_atan-fma4.c: New file.
9815         * sysdeps/x86_64/fpu/multiarch/s_atan.c: New file.
9816         * sysdeps/x86_64/fpu/multiarch/s_sin-fma4.c: New file.
9817         * sysdeps/x86_64/fpu/multiarch/s_sin.c: New file.
9818         * sysdeps/x86_64/fpu/multiarch/s_tan-fma4.c: New file.
9819         * sysdeps/x86_64/fpu/multiarch/s_tan.c: New file.
9820         * sysdeps/x86_64/fpu/multiarch/sincos32-fma4.c: New file.
9821         * sysdeps/x86_64/fpu/multiarch/slowexp-fma4.c: New file.
9822         * sysdeps/x86_64/fpu/multiarch/slowpow-fma4.c: New file.
9823
9824         * sysdeps/ieee754/dbl-64/doasin.c: Adjust for DLA_FMA -> DLA_FMS
9825         rename.
9826         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9827         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9828         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9829         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9830         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9831         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9832         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9833         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9834
9835 2011-10-24  Andreas Schwab  <schwab@redhat.com>
9836
9837         * wcsmbs/wcslen.c: Don't define WCSLEN, reverse logic.
9838
9839 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9840
9841         * sysdeps/ieee754/dbl-64/wordsize-64/s_remquo.c: New file.
9842
9843         * sysdeps/ieee754/dbl-64/e_fmod.c (__ieee754_fmod): Add some branch
9844         prediction.
9845         * sysdeps/ieee754/dbl-64/wordsize-64/e_fmod.c: New file.
9846
9847         * string/strnlen.c: Don't define STRNLEN, reverse logic.
9848         Remove unused variable magic_bits.
9849         * sysdeps/i386/i686/multiarch/rtld-strnlen.c: New file.
9850
9851         * string/strnlen.c: Define and use STRNLEN macro.
9852         * sysdeps/i386/i686/multiarch/Makefile [string] (sysdep_routines):
9853         Add strnlen-sse2, strnlen-c, wcslen-sse2, and wcslen-c.
9854         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Add support for strnlen.
9855         * wcsmbs/wcslen.c: Define and use WCSLEN.
9856         * sysdeps/i386/i686/multiarch/strnlen-c.c: New file.
9857         * sysdeps/i386/i686/multiarch/strnlen-sse2.S: New file.
9858         * sysdeps/i386/i686/multiarch/strnlen.S: New file.
9859         * sysdeps/i386/i686/multiarch/wcslen-c.c: New file.
9860         * sysdeps/i386/i686/multiarch/wcslen-sse2.S: New file.
9861         * sysdeps/i386/i686/multiarch/wcslen.S: New file.
9862         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
9863
9864 2011-10-20  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9865
9866         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
9867         strnlen-sse2-no-bsf.
9868         Rename strlen-no-bsf to strlen-sse2-no-bsf.
9869         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Rename to
9870         * sysdeps/x86_64/multiarch/strlen-sse2-no-bsf.S:
9871         Add strnlen support.
9872         (USE_AS_STRNLEN): New macro.
9873         * sysdeps/x86_64/multiarch/strnlen-sse2-no-bsf.S: New file.
9874         * sysdeps/x86_64/multiarch/strcat-ssse3.S: Update.
9875         Rename strlen-no-bsf.S to strlen-sse2-no-bsf.S
9876         * sysdeps/x86_64/wcslen.S: New file.
9877
9878 2011-10-20  Michael Zolotukhin  <michael.v.zolotukhin@gmail.com>
9879
9880         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Update.
9881         XMM-moves are used for copying on small sizes.
9882
9883 2011-10-19  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9884
9885         * wcsmbs/Makefile (strop-tests): Add wcschr.
9886         * wcsmbs/test-wcschr.c: New file.
9887         * string/test-strchr.c: Update.
9888         Add wcschr support.
9889         (WIDE): New macro.
9890
9891 2011-10-18  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9892
9893         * wcsmbs/Makefile (strop-tests): Add wcslen.
9894         * wcsmbs/test-wcslen.c: New file.
9895         * string/test-strlen.c: Update.
9896         Add wcslen support.
9897         (WIDE): New macro.
9898
9899 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9900
9901         * po/it.po: Update from translation team.
9902
9903 2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
9904
9905         * sysdeps/x86_64/wcscmp.S: Update.
9906         Fix wrong comparison semantics.
9907         wcscmp shall use signed comparison not unsigned.
9908         Don't use substraction to avoid overflow bug.
9909         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
9910         * wcsmbc/wcscmp.c: Likewise.
9911         * string/test-strcmp.c: Likewise.
9912         Add new tests to check cases with negative values.
9913
9914 2011-10-23  Ulrich Drepper  <drepper@gmail.com>
9915
9916         * sysdeps/ieee754/dbl-64/dla.h: Move DLA_FMA definition to...
9917         * sysdeps/x86_64/dla.h: ...here.  New file.
9918         * sysdeps/ieee754/dbl-64/doasin.c: Use <dla.h> not "dla.h".
9919         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9920         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9921         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9922         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9923         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
9924         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9925         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9926         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9927
9928 2011-10-23  Andreas Schwab  <schwab@linux-m68k.org>
9929
9930         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Add __jnl_finite and
9931         __ynl_finite aliases.
9932
9933 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9934
9935         * sysdeps/x86_64/fpu/libm-test-ulps: Update.
9936
9937         * sysdeps/ieee754/dbl-64/dla.h: When compiling with FMA4 support
9938         define DLA_FMA.
9939         [DLA_FMA] (EMULV): Use DLA_FMA.
9940         [DLA_FMA] (MUL12): Use EMULV.
9941         * sysdeps/ieee754/dbl-64/doasin.c [DLA_FMA]: Don't define variables
9942         that are not needed.
9943         * sysdeps/ieee754/dbl-64/dosincos.c: Likewise.
9944         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
9945         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
9946         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
9947         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
9948         * sysdeps/ieee754/dbl-64/s_atan.c: Likewise.
9949         * sysdeps/ieee754/dbl-64/s_tan.c: Likewise.
9950
9951 2011-10-22  Andreas Schwab  <schwab@linux-m68k.org>
9952
9953         * math/s_nan.c: Undef __nan.
9954         * math/s_nanf.c: Undef __nanf.
9955         * math/s_nanl.c: Undef __nanl.
9956         * sysdeps/ieee754/ldbl-128ibm/s_atanl.c: Include <math.h> before
9957         "math_private.h".
9958
9959 2011-10-22  Ulrich Drepper  <drepper@gmail.com>
9960
9961         * math/s_catan.c: Add branch predictions.
9962         * math/s_catanf.c: Likewise.
9963         * math/s_catanh.c: Likewise.
9964         * math/s_catanhf.c: Likewise.
9965         * math/s_catanhl.c: Likewise.
9966         * math/s_catanl.c: Likewise.
9967         * math/s_cexp.c: Likewise.
9968         * math/s_cexpf.c: Likewise.
9969         * math/s_cexpl.c: Likewise.
9970         * math/s_clog.c: Likewise.
9971         * math/s_clog10.c: Likewise.
9972         * math/s_clog10f.c: Likewise.
9973         * math/s_clog10l.c: Likewise.
9974         * math/s_clogf.c: Likewise.
9975         * math/s_clogl.c: Likewise.
9976         * math/s_csqrt.c: Likewise.
9977         * math/s_csqrtf.c: Likewise.
9978         * math/s_csqrtl.c: Likewise.
9979         * math/s_ctanf.c: Likewise.
9980         * math/s_ctanh.c: Likewise.
9981         * math/s_ctanhf.c: Likewise.
9982         * math/s_ctanhl.c: Likewise.
9983         * math/s_ctanl.c: Likewise.
9984
9985         * math/math_private.h: Define __nan, __nanf, __nanl.
9986         * math/s_cacosh.c: Include <math_private.h>.
9987         * math/s_cacoshl.c: Likewise.
9988         * math/s_casinh.c: Likewise.
9989         * math/s_casinhf.c: Likewise.
9990         * math/s_casinhl.c: Likewise.
9991         * math/s_ccos.c: Rely entire on ccosh.
9992         * math/s_ccosf.c: Rely entire on ccoshf.
9993         * math/s_ccosl.c: Rely entirely on ccoshl.
9994         * math/s_ccosh.c: Add branch predicion helpers.  Add branch prediction.
9995         Remove tests for FE_INVALID.
9996         * math/s_ccoshf.c: Likewise.
9997         * math/s_ccoshl.c: Likewise.
9998         * math/s_csin.c: Likewise.
9999         * math/s_csinf.c: Likewise.
10000         * math/s_csinh.c Likewise.
10001         * math/s_csinhf.c: Likewise.
10002         * math/s_csinhl.c: Likewise.
10003         * math/s_csinl.c: Likewise.
10004         * math/s_ctan.c: Likewise.
10005         * sysdeps/ieee754/dbl-64/e_acosh.c: Use __ieee754_sqrt.
10006         * sysdeps/ieee754/flt-32/e_acoshf.c: Use __ieee754_sqrtf.
10007         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Use __ieee754_sqrtl.
10008
10009 2011-10-21  Ulrich Drepper  <drepper@gmail.com>
10010
10011         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Fix
10012         compilation problems.
10013
10014         * sysdeps/ieee754/dbl-64/e_log.c (__ieee754_log): Add a few more
10015         __builtin_expect.
10016
10017 2011-10-20  Ulrich Drepper  <drepper@gmail.com>
10018
10019         * sysdeps/i386/configure.in: Test for -mfma4 option.
10020         * config.h.in: Add HAVE_FMA4_SUPPORT entry.
10021         * sysdeps/x86_64/multiarch/init-arch.h: Define HAS_FMA4 and
10022         COMMON_CPUID_INDEX_80000001.
10023         * sysdeps/x86_64/multiarch/init-arch.c: Read 80000001 leaf for AMD.
10024         * sysdeps/x86_64/fpu/multiarch/s_fma.c: Test for FMA4 support and
10025         use it if FMA3 is not supported.
10026         * sysdeps/x86_64/fpu/multiarch/s_fmaf.c: Likewise.
10027
10028         * sysdeps/x86_64/multiarch/s_fma.c: Moved to ../fpu/multiarch.
10029         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
10030
10031 2011-10-20  Andreas Schwab  <schwab@redhat.com>
10032
10033         [BZ #12892]
10034         * elf/dl-fini.c (_dl_sort_fini): Ignore relocation dependency if
10035         it would create a cycle with a link time dependency.
10036
10037 2011-10-19  Ulrich Drepper  <drepper@gmail.com>
10038
10039         * sysdeps/x86_64/multiarch/rawmemchr.S: Small optimization to safe an
10040         instruction.
10041         * string/Makefile (strop-tests): Add rawmemchr.
10042         * string/test-rawmemchr.c: New file.
10043
10044         * sysdeps/x86_64/multiarch/init-arch.h: Define bit_AVX and index_AVX.
10045         * sysdeps/x86_64/multiarch/strcmp-sse42.S: New file.  Split out from...
10046         * sysdeps/x86_64/multiarch/strcmp.S: ...here.  Include strcmp-sse42.S
10047         when compiling str{,n}casecmp and when AVX is available.  Hook up
10048         new optimized code in initializers.
10049
10050 2011-10-19  Andreas Schwab  <schwab@redhat.com>
10051
10052         * sysdeps/x86_64/fpu/math_private.h (libc_feupdateenv): Use
10053         __feraiseexcept instead of feraiseexcept.
10054
10055 2011-10-18  Ulrich Drepper  <drepper@gmail.com>
10056
10057         * math/math_private.h: Define defaults for libc_fetestexcept and
10058         libc_feupdateenv.
10059         * sysdeps/ieee754/dbl-64/s_fma.c: Use libc_fe* interfaces.
10060         * sysdeps/ieee754/dbl-64/s_fmaf.c: Likewise.
10061         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
10062         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
10063         * sysdeps/ieee754/flt-32/s_nearbyintf.c: Likewise.
10064         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
10065         libc_fetestexcept and libc_feupdateenv.
10066
10067         * math/math_private.h: Define defaults for libc_feholdexcept_setround,
10068         libc_feholdexcept_setroundf, libc_feholdexcept_setroundl.
10069         * sysdeps/ieee754/dbl-64/e_exp2.c: Use libc_feholdexcept_setround.
10070         * sysdeps/x86_64/fpu/math_private.h: Define special version of
10071         libc_feholdexcept_setround.
10072
10073         * sysdeps/x86_64/fpu/multiarch/Makefile [math] (libm-sysdep-routines):
10074         Add s_nearbyint-c and s_nearbyintf-c.
10075         * sysdeps/x86_64/fpu/bits/mathinline.h: Define nearbyint and
10076         nearbyintf inlines.
10077         * sysdeps/x86_64/fpu/multiarch/s_nearbyint-c.c: New file.
10078         * sysdeps/x86_64/fpu/multiarch/s_nearbyint.S: New file.
10079         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf-c.c: New file.
10080         * sysdeps/x86_64/fpu/multiarch/s_nearbyintf.S: New file.
10081
10082         * math/math_private.h: Define defaults for libc_fegetround,
10083         libc_fegetroundf, libc_fegetroundl, libc_fesetround, libc_fesetroundf,
10084         libc_fesetroundl, libc_feholdexcept, libc_feholdexceptf,
10085         libc_feholdexceptl, libc_fesetenv, libc_fesetenvf, libc_fesetenvl.
10086         * sysdeps/ieee754/dbl-64/wordsize-64/s_nearbyint.c: Use
10087         libc_feholdexcept, libc_fesetround, libc_fesetenv instead of the
10088         standard functions.
10089         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10090         Remove comments and hacks for old compiler versions.
10091         * sysdeps/x86_64/fpu/math_private.h: Define special versions of
10092         libc_fegetround, libc_fesetround, libc_feholdexcept, and
10093         libc_feholdexceptl.
10094
10095 2011-10-18  Andreas Schwab  <schwab@redhat.com>
10096
10097         * sysdeps/x86_64/fpu/bits/fenv.h: Add C linkage markers.
10098         (__feraiseexcept_renamed): Add __NTH.
10099         (feraiseexcept): Add __NTH.  Rename local variables to fix
10100         namespace violations.
10101
10102 2011-10-17  Ulrich Drepper  <drepper@gmail.com>
10103
10104         * sysdeps/ieee754/dbl-64/e_exp2.c (__ieee754_exp2): Small optimization.
10105
10106         * sysdeps/ieee754/dbl-64/wordsize-64/s_frexp.c: New file.
10107
10108         * sysdeps/x86_64/fpu/math_private.h: Relax asm requirements for
10109         recently added interfaces.
10110         * sysdeps/x86_64/fpu/bits/mathinline.h: Likewise.
10111
10112         * sysdeps/x86_64/fpu/math_private.h: Add some parenthesis to be safe
10113         about macro parameter expansion.
10114
10115         * sysdeps/x86_64/fpu/bits/mathinline.h: Don't define inlines if
10116         __NO_MATH_INLINES is defined.  Cleanups.
10117
10118         * sysdeps/x86_64/fpu/math_private.h: Define __rint, __rintf, __floor,
10119         and __floorf is target has SSE4.1.
10120         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: Undef first.
10121         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.: Likewise.
10122         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: Likewise.
10123         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: Likewise.
10124
10125         * sysdeps/x86_64/fpu/bits/mathinline.h (floor): Use correct function
10126         name.
10127         (floorf): Likewise.
10128
10129         * nscd/netgroupcache.c (addgetnetgrentX): Fix #ifdef nesting.
10130
10131 2011-10-17  Andreas Schwab  <schwab@redhat.com>
10132
10133         * misc/sys/cdefs.h: Fix last change.
10134
10135         * grp/initgroups.c (internal_getgrouplist): Fix initgroups
10136         database lookup.
10137
10138 2011-10-16  Ulrich Drepper  <drepper@gmail.com>
10139
10140         * misc/sys/cdefs.h: Use leaf function attribute in __THROW.
10141
10142         * sysdeps/ieee754/dbl-64/s_ceil.c: Avoid alias renamed.
10143         * sysdeps/ieee754/dbl-64/s_floor.c: Likewise.
10144         * sysdeps/ieee754/dbl-64/s_rint.c: Likewise.
10145         * sysdeps/ieee754/dbl-64/wordsize-64/s_ceil.c: Likewise.
10146         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: Likewise.
10147         * sysdeps/ieee754/dbl-64/wordsize-64/s_rint.c: Likewise.
10148         * sysdeps/ieee754/flt-32/s_ceilf.c: Likewise.
10149         * sysdeps/ieee754/flt-32/s_floorf.c: Likewise.
10150         * sysdeps/ieee754/flt-32/s_rintf.c: Likewise.
10151         * sysdeps/x86_64/fpu/multiarch/Makefile: New file.
10152         * sysdeps/x86_64/fpu/multiarch/s_ceil-c.c: New file.
10153         * sysdeps/x86_64/fpu/multiarch/s_ceil.S: New file.
10154         * sysdeps/x86_64/fpu/multiarch/s_ceilf-c.c: New file.
10155         * sysdeps/x86_64/fpu/multiarch/s_ceilf.S: New file.
10156         * sysdeps/x86_64/fpu/multiarch/s_floor-c.c: New file.
10157         * sysdeps/x86_64/fpu/multiarch/s_floor.S: New file.
10158         * sysdeps/x86_64/fpu/multiarch/s_floorf-c.c: New file.
10159         * sysdeps/x86_64/fpu/multiarch/s_floorf.S: New file.
10160         * sysdeps/x86_64/fpu/multiarch/s_rint-c.c: New file.
10161         * sysdeps/x86_64/fpu/multiarch/s_rint.S: New file.
10162         * sysdeps/x86_64/fpu/multiarch/s_rintf-c.c: New file.
10163         * sysdeps/x86_64/fpu/multiarch/s_rintf.S: New file.
10164
10165         * sysdeps/x86_64/fpu/bits/mathinline.h: Add inlines for rint, rintf,
10166         ceil, ceilf, floor, floorf.
10167
10168         * elf/do-rel.h (elf_dynamic_do_Rel): Work around linker problem.
10169         Perform IRELATIVE relocations last.
10170
10171         * elf/do-rel.h: Add another parameter nrelative, replacing the
10172         local variable with the same name.  Change name of the function
10173         to end in Rel or Rela (uppercase).
10174         * elf/dynamic-link.h (_ELF_DYNAMIC_DO_RELOC): Add new element
10175         nrelative to ranges.  Only nonzero for DT_REL/DT_RELA.  Pass to the
10176         elf_dynamic_do_##reloc function.
10177
10178 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
10179
10180         * sysdeps/i386/i686/fpu/e_log.S: No need for the fyl2xp1 use, fyl2x
10181         is sufficient, at least on modern CPUs.
10182
10183         * sysdeps/ieee754/dbl-64/wordsize-64/s_floor.c: New file.
10184
10185         * sysdeps/ieee754/dbl-64/e_cosh.c: Cleanup.
10186         * sysdeps/ieee754/dbl-64/wordsize-64/e_cosh.c: New file.
10187
10188         * math/Versions [libm] (GLIBC_2.15): Add __exp_finite, __expf_finite,
10189         __expl_finite.
10190         * math/bits/math-finite.h: Add entries for exp.
10191         * math/e_expl.c: Add __*_finite alias.
10192         * sysdeps/i386/fpu/e_exp.S: Likewise.
10193         * sysdeps/i386/fpu/e_expf.S: Likewise.
10194         * sysdeps/i386/fpu/e_expl.c: Likewise.
10195         * sysdeps/ieee754/dbl-64/e_exp.c: Likewise.
10196         * sysdeps/ieee754/flt-32/e_expf.c: Likewise.
10197         * sysdeps/ieee754/ldbl-128/e_expl.c: Likewise.
10198         * sysdeps/ieee754/ldbl-128ibm/e_expl.c: Likewise.
10199         * sysdeps/ieee754/dbl-64/w_exp.c: Complete rewrite.
10200         * sysdeps/ieee754/flt-32/w_expf.c: Likewise.
10201         * sysdeps/ieee754/ldbl-96/w_expl.c: Likewise.
10202
10203         * sysdeps/i386/i686/fpu/e_logf.S: No need for the fyl2xp1 use, fyl2x
10204         is sufficient, at least on modern CPUs.
10205
10206         * ctype/ctype-info.c (__ctype_init): Define.
10207         * include/ctype.h (__ctype_init): Declare.
10208         (__ctype_b_loc): The variable is always initialized.
10209         (__ctype_toupper_loc): Likewise.
10210         (__ctype_tolower_loc): Likewise.
10211         * ctype/Versions: Export __ctype_init for GLIBC_PRIVATE.
10212         * sysdeps/unix/sysv/linux/init-first.c (_init): Call __ctype_init.
10213
10214 2011-10-15  Andreas Schwab  <schwab@linux-m68k.org>
10215
10216         * wcsmbs/wmemcmp.c (WMEMCMP): Define.
10217
10218         * configure.in: Also look in $cxxmachine/include for C++ system
10219         headers.
10220
10221 2011-09-27  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10222
10223         * sysdeps/x86_64/multiarch/Makefile: (sysdep_routines): Add
10224         memcmp-ssse3 wmemcmp-sse4 wmemcmp-ssse3 wmemcmp-c
10225         * sysdeps/x86_64/multiarch/memcmp-ssse3: New file.
10226         * sysdeps/x86_64/multiarch/memcmp.S: Update.  Add __memcmp_ssse3.
10227         * sysdeps/x86_64/multiarch/memcmp-sse4.S: Update.
10228         (USE_AS_WMEMCMP): New macro.
10229         Fixing indents.
10230         * sysdeps/x86_64/multiarch/wmemcmp.S: New file.
10231         * sysdeps/x86_64/multiarch/wmemcmp-ssse3.S: New file.
10232         * sysdeps/x86_64/multiarch/wmemcmp-sse4.S: New file.
10233         * sysdeps/x86_64/multiarch/wmemcmp-c.S: New file.
10234         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10235         wmemcmp-ssse3 wmemcmp-sse4 wmemcmp-c
10236         * sysdeps/i386/i686/multiarch/wmemcmp.S: New file.
10237         * sysdeps/i386/i686/multiarch/wmemcmp-c.c: New file.
10238         * sysdeps/i386/i686/multiarch/wmemcmp-ssse3.S: New file.
10239         * sysdeps/i386/i686/multiarch/wmemcmp-sse4.S: New file.
10240         * sysdeps/i386/i686/multiarch/memcmp-sse4.S: Update.
10241         (USE_AS_WMEMCMP): New macro.
10242         * sysdeps/i386/i686/multiarch/memcmp-ssse3: Likewise.
10243         * sysdeps/string/test-memcmp.c: Update.
10244         Fix simple_wmemcmp.
10245         Add new tests.
10246         * wcsmbs/wmemcmp.c: Update.
10247         (WMEMCMP): New macro.
10248         Fix overflow bug.
10249
10250 2011-10-12  Andreas Jaeger  <aj@suse.de>
10251
10252         [BZ #13268]
10253         * math/bits/mathcalls.h: Mark argument 2 of modf as non-null.
10254
10255 2011-10-15  Ulrich Drepper  <drepper@gmail.com>
10256
10257         * libio/iofwide.c (do_length): Avoid warning.
10258
10259         * ctype/ctype.h (__isctype_f): Add missing __THROW.
10260
10261 2011-10-14  Ulrich Drepper  <drepper@gmail.com>
10262
10263         * elf/pldd-xx.c (find_maps): Remove leftover debug message.
10264
10265         * sysdeps/i386/fpu/e_log.S: Add real definition of __log_finite.
10266         * sysdeps/i386/fpu/e_logf.S: Add real definition of __logf_finite.
10267         * sysdeps/i386/fpu/e_logl.S: Add real definition of __logl_finite.
10268         * sysdeps/i386/i686/fpu/e_log.S: New file.
10269         * sysdeps/i386/i686/fpu/e_logf.S: New file.
10270         * sysdeps/i386/i686/fpu/e_logl.S: New file.
10271
10272         * ctype/ctype.h: Add support for inlined isXXX functions when
10273         compiling C++ code.
10274
10275 2011-10-14  Andreas Schwab  <schwab@redhat.com>
10276
10277         * sysdeps/s390/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10278
10279         * sysdeps/x86_64/fpu/fraiseexcpt.c: Fix last change.
10280
10281 2011-10-13  Roland McGrath  <roland@hack.frob.com>
10282
10283         [BZ #13291]
10284         * manual/string.texi (String/Array Comparison): Typo fix in strverscmp.
10285
10286 2011-10-13  Andreas Schwab  <schwab@redhat.com>
10287
10288         * sysdeps/x86_64/fpu/fraiseexcpt.c: Add __feraiseexcept alias.
10289         * sysdeps/x86_64/fpu/feupdateenv.c: Use __feraiseexcept instead of
10290         feraiseexcept.
10291
10292         * sysdeps/x86_64/memrchr.S: Check for zero size.
10293
10294         * string/stratcliff.c: Add memrchr tests.
10295
10296 2011-10-12  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10297
10298         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
10299         memchr-sse2 memchr-sse2-bsf memrchr-sse2 memrchr-sse2-bsf memrchr-c
10300         rawmemchr-sse2 rawmemchr-sse2-bsf.
10301         * sysdeps/i386/i686/multiarch/memchr.S: New file.
10302         * sysdeps/i386/i686/multiarch/memchr-sse2.S: New file.
10303         * sysdeps/i386/i686/multiarch/memchr-sse2-bsf.S: New file.
10304         * sysdeps/i386/i686/multiarch/memrchr.S: New file.
10305         * sysdeps/i386/i686/multiarch/memrchr-c.c: New file.
10306         * sysdeps/i386/i686/multiarch/memrchr-sse2.S: New file.
10307         * sysdeps/i386/i686/multiarch/memrchr-sse2-bsf.S: New file.
10308         * sysdeps/i386/i686/multiarch/rawmemchr.S: New file.
10309         * sysdeps/i386/i686/multiarch/rawmemchr-sse2.S: New file.
10310         * sysdeps/i386/i686/multiarch/rawmemchr-sse2-bsf.S: New file.
10311         * string/memrchr.c (MEMRCHR): New macro.
10312
10313 2011-10-12  Ulrich Drepper  <drepper@gmail.com>
10314
10315         Add integration with gcc's -ffinite-math-only and optimize wrapper
10316         functions in libm.
10317         * Versions.def: Define GLIBC_2.15 version for libm.
10318         * math/Makefile (headers): Add bits/math-finite.h.
10319         * math/bits/math-finite.h: New file.
10320         * sysdeps/ia64/fpu/bits/math-finite.h: New file.
10321         * math/Versions [libm] (GLIBC_2.15): Export __*_finite symbols.
10322         * math/e_acoshl.c: Add __*_finite alias.
10323         * math/e_acosl.c: Likewise.
10324         * math/e_asinl.c: Likewise.
10325         * math/e_atan2l.c: Likewise.
10326         * math/e_atanhl.c: Likewise.
10327         * math/e_coshl.c: Likewise.
10328         * math/e_exp10.c: Likewise.
10329         * math/e_exp10f.c: Likewise.
10330         * math/e_exp10l.c: Likewise.
10331         * math/e_exp2l.c: Likewise.
10332         * math/e_fmodl.c: Likewise.
10333         * math/e_gammal_r.c: Likewise.
10334         * math/e_hypotl.c: Likewise.
10335         * math/e_j0l.c: Likewise.
10336         * math/e_j1l.c: Likewise.
10337         * math/e_jnl.c: Likewise.
10338         * math/e_lgammal_r.c: Likewise.
10339         * math/e_log10l.c: Likewise.
10340         * math/e_log2l.c: Likewise.
10341         * math/e_logl.c: Likewise.
10342         * math/e_powl.c: Likewise.
10343         * math/e_sinhl.c: Likewise.
10344         * math/e_sqrtl.c: Likewise.
10345         * math/e_scalb.c: Completely rewritten and optimized.
10346         * math/e_scalbf.c: Likewise.
10347         * math/e_scalbl.c: Likewise.
10348         * math/w_acos.c: Likewise.
10349         * math/w_acosf.c: Likewise.
10350         * math/w_acosl.c: Likewise.
10351         * math/w_acosh.c: Likewise.
10352         * math/w_acoshf.c: Likewise.
10353         * math/w_acoshl.c: Likewise.
10354         * math/w_asin.c: Likewise.
10355         * math/w_asinf.c: Likewise.
10356         * math/w_asinl.c: Likewise.
10357         * math/w_atan2.c: Likewise.
10358         * math/w_atan2f.c: Likewise.
10359         * math/w_atan2l.c: Likewise.
10360         * math/w_atanh.c: Likewise.
10361         * math/w_atanhf.c: Likewise.
10362         * math/w_atanhl.c: Likewise.
10363         * math/w_exp10.c: Likewise.
10364         * math/w_exp10f.c: Likewise.
10365         * math/w_exp10l.c: Likewise.
10366         * math/w_fmod.c: Likewise.
10367         * math/w_fmodf.c: Likewise.
10368         * math/w_fmodl.c: Likewise.
10369         * math/w_j0.c: Likewise.
10370         * math/w_j0f.c: Likewise.
10371         * math/w_j0l.c: Likewise.
10372         * math/w_j1.c: Likewise.
10373         * math/w_j1f.c: Likewise.
10374         * math/w_j1l.c: Likewise.
10375         * math/w_jn.c: Likewise.
10376         * math/w_jnf.c: Likewise.
10377         * math/w_log.c: Likewise.
10378         * math/w_logf.c: Likewise.
10379         * math/w_logl.c: Likewise.
10380         * math/w_log10.c: Likewise.
10381         * math/w_log10f.c: Likewise.
10382         * math/w_log10l.c: Likewise.
10383         * math/w_log2.c: Likewise.
10384         * math/w_log2f.c: Likewise.
10385         * math/w_log2l.c: Likewise.
10386         * math/w_pow.c: Likewise.
10387         * math/w_powf.c: Likewise.
10388         * math/w_powl.c: Likewise.
10389         * math/w_remainder.c: Likewise.
10390         * math/w_remainderf.c: Likewise.
10391         * math/w_remainderl.c: Likewise.
10392         * math/w_scalb.c: Likewise.
10393         * math/w_scalbf.c: Likewise.
10394         * math/w_scalbl.c: Likewise.
10395         * math/w_sqrt.c: Likewise.
10396         * math/w_sqrtf.c: Likewise.
10397         * math/w_sqrtl.c: Likewise.
10398         * math/math.h: Define __MATH_DECLARE_LDOUBLE if long double functions
10399         are declared.  Include <bits/math-finite.h> if -ffinite-math-only is
10400         used.
10401         * math/math_private.h: Declare __kernel_standard_f.
10402         * math/w_cosh.c: Remove cruft and optimize a bit.
10403         * math/w_coshf.c: Likewise.
10404         * math/w_coshl.c: Likewise.
10405         * math/w_exp2.c: Likewise.
10406         * math/w_exp2f.c: Likewise.
10407         * math/w_exp2l.c: Likewise.
10408         * math/w_hypot.c: Likewise.
10409         * math/w_hypotf.c: Likewise.
10410         * math/w_hypotl.c: Likewise.
10411         * math/w_lgamma.c: Likewise.
10412         * math/w_lgamma_r.c: Likewise.
10413         * math/w_lgammaf.c: Likewise.
10414         * math/w_lgammaf_r.c: Likewise.
10415         * math/w_lgammal.c: Likewise.
10416         * math/w_lgammal_r.c: Likewise.
10417         * math/w_sinh.c: Likewise.
10418         * math/w_sinhf.c: Likewise.
10419         * math/w_sinhl.c: Likewise.
10420         * math/w_tgamma.c: Likewise.
10421         * math/w_tgammaf.c: Likewise.
10422         * math/w_tgammal.c: Likewise.
10423         * sysdeps/ieee754/dbl-64/e_atanh.c: Likewise.
10424         * sysdeps/ieee754/flt-32/e_atanhf.c: Likewise.
10425         * sysdeps/i386/fpu/e_acos.S: Add __*_finite alias.
10426         Minor optimizations.  Pretty printing.  Remove cruft.
10427         * sysdeps/i386/fpu/e_acosf.S: Likewise.
10428         * sysdeps/i386/fpu/e_acosh.S: Likewise.
10429         * sysdeps/i386/fpu/e_acoshf.S: Likewise.
10430         * sysdeps/i386/fpu/e_acoshl.S: Likewise.
10431         * sysdeps/i386/fpu/e_acosl.c: Likewise.
10432         * sysdeps/i386/fpu/e_asin.S: Likewise.
10433         * sysdeps/i386/fpu/e_asinf.S: Likewise.
10434         * sysdeps/i386/fpu/e_atan2.S: Likewise.
10435         * sysdeps/i386/fpu/e_atan2f.S: Likewise.
10436         * sysdeps/i386/fpu/e_atan2l.c: Likewise.
10437         * sysdeps/i386/fpu/e_atanh.S: Likewise.
10438         * sysdeps/i386/fpu/e_atanhf.S: Likewise.
10439         * sysdeps/i386/fpu/e_atanhl.S: Likewise.
10440         * sysdeps/i386/fpu/e_exp10.S: Likewise.
10441         * sysdeps/i386/fpu/e_exp10f.S: Likewise.
10442         * sysdeps/i386/fpu/e_exp10l.S: Likewise.
10443         * sysdeps/i386/fpu/e_exp2.S: Likewise.
10444         * sysdeps/i386/fpu/e_exp2f.S: Likewise.
10445         * sysdeps/i386/fpu/e_exp2l.S: Likewise.
10446         * sysdeps/i386/fpu/e_fmod.S: Likewise.
10447         * sysdeps/i386/fpu/e_fmodf.S: Likewise.
10448         * sysdeps/i386/fpu/e_fmodl.c: Likewise.
10449         * sysdeps/i386/fpu/e_hypot.S: Likewise.
10450         * sysdeps/i386/fpu/e_hypotf.S: Likewise.
10451         * sysdeps/i386/fpu/e_log.S: Likewise.
10452         * sysdeps/i386/fpu/e_log10.S: Likewise.
10453         * sysdeps/i386/fpu/e_log10f.S: Likewise.
10454         * sysdeps/i386/fpu/e_log10l.S: Likewise.
10455         * sysdeps/i386/fpu/e_log2.S: Likewise.
10456         * sysdeps/i386/fpu/e_log2f.S: Likewise.
10457         * sysdeps/i386/fpu/e_log2l.S: Likewise.
10458         * sysdeps/i386/fpu/e_logf.S: Likewise.
10459         * sysdeps/i386/fpu/e_logl.S: Likewise.
10460         * sysdeps/i386/fpu/e_pow.S: Likewise.
10461         * sysdeps/i386/fpu/e_powf.S: Likewise.
10462         * sysdeps/i386/fpu/e_powl.S: Likewise.
10463         * sysdeps/i386/fpu/e_remainder.S: Likewise.
10464         * sysdeps/i386/fpu/e_remainderf.S: Likewise.
10465         * sysdeps/i386/fpu/e_remainderl.S: Likewise.
10466         * sysdeps/i386/fpu/e_scalb.S: Likewise.
10467         * sysdeps/i386/fpu/e_scalbf.S: Likewise.
10468         * sysdeps/i386/fpu/e_scalbl.S: Likewise.
10469         * sysdeps/i386/fpu/e_sqrt.S: Likewise.
10470         * sysdeps/i386/fpu/e_sqrtf.S: Likewise.
10471         * sysdeps/i386/fpu/e_sqrtl.c: Likewise.
10472         * sysdeps/ieee754/dbl-64/e_acosh.c: Likewise.
10473         * sysdeps/ieee754/dbl-64/e_asin.c: Likewise.
10474         * sysdeps/ieee754/dbl-64/e_atan2.c: Likewise.
10475         * sysdeps/ieee754/dbl-64/e_cosh.c: Likewise.
10476         * sysdeps/ieee754/dbl-64/e_exp2.c: Likewise.
10477         * sysdeps/ieee754/dbl-64/e_fmod.c: Likewise.
10478         * sysdeps/ieee754/dbl-64/e_gamma_r.c: Likewise.
10479         * sysdeps/ieee754/dbl-64/e_hypot.c: Likewise.
10480         * sysdeps/ieee754/dbl-64/e_j0.c: Likewise.
10481         * sysdeps/ieee754/dbl-64/e_j1.c: Likewise.
10482         * sysdeps/ieee754/dbl-64/e_jn.c: Likewise.
10483         * sysdeps/ieee754/dbl-64/e_lgamma_r.c: Likewise.
10484         * sysdeps/ieee754/dbl-64/e_log.c: Likewise.
10485         * sysdeps/ieee754/dbl-64/e_log10.c: Likewise.
10486         * sysdeps/ieee754/dbl-64/e_log2.c: Likewise.
10487         * sysdeps/ieee754/dbl-64/e_pow.c: Likewise.
10488         * sysdeps/ieee754/dbl-64/e_remainder.c: Likewise.
10489         * sysdeps/ieee754/dbl-64/e_sinh.c: Likewise.
10490         * sysdeps/ieee754/dbl-64/e_sqrt.c: Likewise.
10491         * sysdeps/ieee754/dbl-64/halfulp.c: Likewise.
10492         * sysdeps/ieee754/dbl-64/s_asinh.c: Likewise.
10493         * sysdeps/ieee754/flt-32/e_acosf.c: Likewise.
10494         * sysdeps/ieee754/flt-32/e_acoshf.c: Likewise.
10495         * sysdeps/ieee754/flt-32/e_asinf.c: Likewise.
10496         * sysdeps/ieee754/flt-32/e_atan2f.c: Likewise.
10497         * sysdeps/ieee754/flt-32/e_coshf.c: Likewise.
10498         * sysdeps/ieee754/flt-32/e_exp2f.c: Likewise.
10499         * sysdeps/ieee754/flt-32/e_fmodf.c: Likewise.
10500         * sysdeps/ieee754/flt-32/e_gammaf_r.c: Likewise.
10501         * sysdeps/ieee754/flt-32/e_hypotf.c: Likewise.
10502         * sysdeps/ieee754/flt-32/e_j0f.c: Likewise.
10503         * sysdeps/ieee754/flt-32/e_j1f.c: Likewise.
10504         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
10505         * sysdeps/ieee754/flt-32/e_lgammaf_r.c: Likewise.
10506         * sysdeps/ieee754/flt-32/e_log10f.c: Likewise.
10507         * sysdeps/ieee754/flt-32/e_log2f.c: Likewise.
10508         * sysdeps/ieee754/flt-32/e_logf.c: Likewise.
10509         * sysdeps/ieee754/flt-32/e_powf.c: Likewise.
10510         * sysdeps/ieee754/flt-32/e_remainderf.c: Likewise.
10511         * sysdeps/ieee754/flt-32/e_sinhf.c: Likewise.
10512         * sysdeps/ieee754/flt-32/e_sqrtf.c: Likewise.
10513         * sysdeps/ieee754/flt-32/s_asinhf.c: Likewise.
10514         * sysdeps/ieee754/ldbl-128/e_acoshl.c: Likewise.
10515         * sysdeps/ieee754/ldbl-128/e_acosl.c: Likewise.
10516         * sysdeps/ieee754/ldbl-128/e_asinl.c: Likewise.
10517         * sysdeps/ieee754/ldbl-128/e_atan2l.c: Likewise.
10518         * sysdeps/ieee754/ldbl-128/e_atanhl.c: Likewise.
10519         * sysdeps/ieee754/ldbl-128/e_coshl.c: Likewise.
10520         * sysdeps/ieee754/ldbl-128/e_fmodl.c: Likewise.
10521         * sysdeps/ieee754/ldbl-128/e_gammal_r.c: Likewise.
10522         * sysdeps/ieee754/ldbl-128/e_hypotl.c: Likewise.
10523         * sysdeps/ieee754/ldbl-128/e_j0l.c: Likewise.
10524         * sysdeps/ieee754/ldbl-128/e_j1l.c: Likewise.
10525         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
10526         * sysdeps/ieee754/ldbl-128/e_lgammal_r.c: Likewise.
10527         * sysdeps/ieee754/ldbl-128/e_log10l.c: Likewise.
10528         * sysdeps/ieee754/ldbl-128/e_log2l.c: Likewise.
10529         * sysdeps/ieee754/ldbl-128/e_logl.c: Likewise.
10530         * sysdeps/ieee754/ldbl-128/e_powl.c: Likewise.
10531         * sysdeps/ieee754/ldbl-128/e_remainderl.c: Likewise.
10532         * sysdeps/ieee754/ldbl-128/e_sinhl.c: Likewise.
10533         * sysdeps/ieee754/ldbl-128ibm/e_acoshl.c: Likewise.
10534         * sysdeps/ieee754/ldbl-128ibm/e_acosl.c: Likewise.
10535         * sysdeps/ieee754/ldbl-128ibm/e_asinl.c: Likewise.
10536         * sysdeps/ieee754/ldbl-128ibm/e_atan2l.c: Likewise.
10537         * sysdeps/ieee754/ldbl-128ibm/e_atanhl.c: Likewise.
10538         * sysdeps/ieee754/ldbl-128ibm/e_coshl.c: Likewise.
10539         * sysdeps/ieee754/ldbl-128ibm/e_fmodl.c: Likewise.
10540         * sysdeps/ieee754/ldbl-128ibm/e_gammal_r.c: Likewise.
10541         * sysdeps/ieee754/ldbl-128ibm/e_hypotl.c: Likewise.
10542         * sysdeps/ieee754/ldbl-128ibm/e_log10l.c: Likewise.
10543         * sysdeps/ieee754/ldbl-128ibm/e_log2l.c: Likewise.
10544         * sysdeps/ieee754/ldbl-128ibm/e_logl.c: Likewise.
10545         * sysdeps/ieee754/ldbl-128ibm/e_powl.c: Likewise.
10546         * sysdeps/ieee754/ldbl-128ibm/e_remainderl.c: Likewise.
10547         * sysdeps/ieee754/ldbl-128ibm/e_sinhl.c: Likewise.
10548         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c: Likewise.
10549         * sysdeps/ieee754/ldbl-96/e_acoshl.c: Likewise.
10550         * sysdeps/ieee754/ldbl-96/e_asinl.c: Likewise.
10551         * sysdeps/ieee754/ldbl-96/e_atan2l.c: Likewise.
10552         * sysdeps/ieee754/ldbl-96/e_atanhl.c: Likewise.
10553         * sysdeps/ieee754/ldbl-96/e_coshl.c: Likewise.
10554         * sysdeps/ieee754/ldbl-96/e_gammal_r.c: Likewise.
10555         * sysdeps/ieee754/ldbl-96/e_hypotl.c: Likewise.
10556         * sysdeps/ieee754/ldbl-96/e_j0l.c: Likewise.
10557         * sysdeps/ieee754/ldbl-96/e_j1l.c: Likewise.
10558         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
10559         * sysdeps/ieee754/ldbl-96/e_lgammal_r.c: Likewise.
10560         * sysdeps/ieee754/ldbl-96/e_remainderl.c: Likewise.
10561         * sysdeps/ieee754/ldbl-96/e_sinhl.c: Likewise.
10562         * sysdeps/ieee754/ldbl-96/s_asinhl.c: Likewise.
10563         * sysdeps/powerpc/fpu/e_hypot.c: Likewise.
10564         * sysdeps/powerpc/fpu/e_hypotf.c: Likewise.
10565         * sysdeps/powerpc/fpu/e_sqrt.c: Likewise.
10566         * sysdeps/powerpc/fpu/e_sqrtf.c: Likewise.
10567         * sysdeps/powerpc/powerpc64/fpu/e_sqrt.c: Likewise.
10568         * sysdeps/powerpc/powerpc64/fpu/e_sqrtf.c: Likewise.
10569         * sysdeps/s390/fpu/e_sqrt.c: Likewise.
10570         * sysdeps/s390/fpu/e_sqrtf.c: Likewise.
10571         * sysdeps/s390/fpu/e_sqrtl.c: Likewise.
10572         * sysdeps/sparc/sparc32/e_sqrt.c: Likewise.
10573         * sysdeps/sparc/sparc64/fpu/e_sqrtl.c: Likewise.
10574         * sysdeps/x86_64/fpu/e_exp2l.S: Likewise.
10575         * sysdeps/x86_64/fpu/e_fmodl.S: Likewise.
10576         * sysdeps/x86_64/fpu/e_log10l.S: Likewise.
10577         * sysdeps/x86_64/fpu/e_log2l.S: Likewise.
10578         * sysdeps/x86_64/fpu/e_logl.S: Likewise.
10579         * sysdeps/x86_64/fpu/e_powl.S: Likewise.
10580         * sysdeps/x86_64/fpu/e_remainderl.S: Likewise.
10581         * sysdeps/x86_64/fpu/e_scalbl.S: Likewise.
10582         * sysdeps/x86_64/fpu/e_sqrt.c: Likewise.  Fix parameter order
10583         * sysdeps/x86_64/fpu/e_sqrtf.c: Likewise.
10584         * sysdeps/x86_64/fpu/math_private.h (__isnan): Cast d parameter.
10585         (__isnanf): Likewise.
10586         (__isinf_ns): Likewise.
10587         (__isinf_nsf): Likewise.
10588         (__finite): Likewise.
10589         (__finitef): Likewise.
10590         (__ieee754_sqrt): Define as macro.
10591         (__ieee754_sqrtf): Define as macro.
10592         (__ieee754_sqrtl): Define as macro.
10593         * sysdeps/x86_64/fpu/bits/fenv.h (feraiseexcept): Add partially
10594         inlined copy.
10595         * sysdeps/x86_64/fpu/bits/mathinline.h: Make use of
10596         __FINITE_MATH_ONLY__ consistent.
10597         * sysdeps/ieee754/k_standard.c (__kernel_standard_f): New function.
10598
10599 2011-10-10  Andreas Schwab  <schwab@linux-m68k.org>
10600
10601         * inet/getnetgrent_r.c (nscd_getnetgrent): Use __rawmemchr instead
10602         of rawmemchr.
10603
10604         * sysdeps/ieee754/ldbl-128ibm/s_isinf_nsl.c: New file.
10605
10606 2011-10-09  Ulrich Drepper  <drepper@gmail.com>
10607
10608         * po/ja.po: Update from translation team.
10609
10610 2011-10-08  Roland McGrath  <roland@hack.frob.com>
10611
10612         * locale/programs/locarchive.c (prepare_address_space): New function.
10613         (create_archive, enlarge_archive, open_archive): Use it.
10614
10615         * sysdeps/unix/sysv/linux/x86_64/time.c: Move #include <dl-vdso.h>
10616         inside [SHARED], where it is used.
10617
10618         * nscd/nscd_proto.h: Declare __nscd_setnetgrent.
10619
10620         * nss/getent.c (netgroup_keys): Remove unused variable.
10621         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: Likewise.
10622
10623 2011-10-08  Ulrich Drepper  <drepper@gmail.com>
10624
10625         * include/math.h: Declare __isinf_ns, __isinf_nsf, __isinf_nsl.
10626         * sysdeps/ieee754/dbl-64/s_isinf_ns.c: New file.
10627         * sysdeps/ieee754/dbl-64/wordsize-64/s_isinf_ns.c: New file.
10628         * sysdeps/ieee754/flt-32/s_isinf_nsf.c: New file.
10629         * sysdeps/ieee754/ldbl-128/s_isinf_nsl.c: New file.
10630         * sysdeps/ieee754/ldbl-96/s_isinf_nsl.c: New file.
10631         * math/Makefile (libm-calls): Add s_isinf_ns.
10632         * math/divtc3.c: Use __isinf_nsl instead of isinf.
10633         * math/multc3.c: Likewise.
10634         * math/s_casin.c: Likewise.
10635         * math/s_casinf.c: Likewise.
10636         * math/s_casinl.c: Likewise.
10637         * math/s_ccos.c: Likewise.
10638         * math/s_ccosf.c: Likewise.
10639         * math/s_ccosl.c: Likewise.
10640         * math/s_ctan.c: Likewise.
10641         * math/s_ctanf.c: Likewise.
10642         * math/s_ctanh.c: Likewise.
10643         * math/s_ctanhf.c: Likewise.
10644         * math/s_ctanhl.c: Likewise.
10645         * math/s_ctanl.c: Likewise.
10646         * math/w_fmod.c: Likewise.
10647         * math/w_fmodf.c: Likewise.
10648         * math/w_fmodl.c: Likewise.
10649         * math/w_remainder.c: Likewise.
10650         * math/w_remainderf.c: Likewise.
10651         * math/w_remainderl.c: Likewise.
10652         * sysdeps/ieee754/dbl-64/s_finite.c: Undefine __finite.
10653         * sysdeps/ieee754/dbl-64/s_isnan.c: Undefine __isnan.
10654         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: Undefine __finite.
10655         * sysdeps/ieee754/dbl-64/wordsize-64/s_isnan.c: Undefine __nan.
10656         * sysdeps/ieee754/flt-32/s_finitef.c: Undefine __finitef.
10657         * sysdeps/ieee754/flt-32/s_isnanf.c: Undefine __nan.
10658         * sysdeps/x86_64/fpu/math_private.h: Add optimized versions of __isnsn,
10659         __isnanf, __isinf_ns, __isinf_nsf, __finite, and __finitef.
10660
10661         * stdio-common/printf_fp.c: Use the fact that isinf returns the sign
10662         of the number.
10663         * stdio-common/printf_fphex.c: Likewise.
10664         * stdio-common/printf_size.c: Likewise.
10665
10666         * math/e_exp10.c: Include math_private.h using <...> not "...".
10667         * math/e_exp10f.c: Likewise.
10668         * math/e_exp10l.c: Likewise.
10669         * math/e_exp2l.c: Likewise.
10670         * math/e_j0l.c: Likewise.
10671         * math/e_j1l.c: Likewise.
10672         * math/e_jnl.c: Likewise.
10673         * math/e_lgammal_r.c: Likewise.
10674         * math/e_rem_pio2l.c: Likewise.
10675         * math/e_scalb.c: Likewise.
10676         * math/e_scalbf.c: Likewise.
10677         * math/e_scalbl.c: Likewise.
10678         * math/k_cosl.c: Likewise.
10679         * math/k_sinl.c: Likewise.
10680         * math/k_tanl.c: Likewise.
10681         * math/s_cacoshf.c: Likewise.
10682         * math/s_catan.c: Likewise.
10683         * math/s_catanf.c: Likewise.
10684         * math/s_catanh.c: Likewise.
10685         * math/s_catanhf.c: Likewise.
10686         * math/s_catanhl.c: Likewise.
10687         * math/s_catanl.c: Likewise.
10688         * math/s_ccosh.c: Likewise.
10689         * math/s_ccoshf.c: Likewise.
10690         * math/s_ccoshl.c: Likewise.
10691         * math/s_cexp.c: Likewise.
10692         * math/s_cexpf.c: Likewise.
10693         * math/s_cexpl.c: Likewise.
10694         * math/s_clog.c: Likewise.
10695         * math/s_clog10.c: Likewise.
10696         * math/s_clog10f.c: Likewise.
10697         * math/s_clog10l.c: Likewise.
10698         * math/s_clogf.c: Likewise.
10699         * math/s_clogl.c: Likewise.
10700         * math/s_csin.c: Likewise.
10701         * math/s_csinf.c: Likewise.
10702         * math/s_csinh.c: Likewise.
10703         * math/s_csinhf.c: Likewise.
10704         * math/s_csinhl.c: Likewise.
10705         * math/s_csinl.c: Likewise.
10706         * math/s_csqrt.c: Likewise.
10707         * math/s_csqrtf.c: Likewise.
10708         * math/s_csqrtl.c: Likewise.
10709         * math/s_ctan.c: Likewise.
10710         * math/s_ctanf.c: Likewise.
10711         * math/s_ctanh.c: Likewise.
10712         * math/s_ctanhf.c: Likewise.
10713         * math/s_ctanhl.c: Likewise.
10714         * math/s_ctanl.c: Likewise.
10715         * math/s_ldexp.c: Likewise.
10716         * math/s_ldexpf.c: Likewise.
10717         * math/s_ldexpl.c: Likewise.
10718         * math/s_significand.c: Likewise.
10719         * math/s_significandf.c: Likewise.
10720         * math/s_significandl.c: Likewise.
10721         * math/w_acos.c: Likewise.
10722         * math/w_acosf.c: Likewise.
10723         * math/w_acosh.c: Likewise.
10724         * math/w_acoshf.c: Likewise.
10725         * math/w_acoshl.c: Likewise.
10726         * math/w_acosl.c: Likewise.
10727         * math/w_asin.c: Likewise.
10728         * math/w_asinf.c: Likewise.
10729         * math/w_asinl.c: Likewise.
10730         * math/w_atan2.c: Likewise.
10731         * math/w_atan2f.c: Likewise.
10732         * math/w_atan2l.c: Likewise.
10733         * math/w_atanh.c: Likewise.
10734         * math/w_atanhf.c: Likewise.
10735         * math/w_atanhl.c: Likewise.
10736         * math/w_cosh.c: Likewise.
10737         * math/w_coshf.c: Likewise.
10738         * math/w_coshl.c: Likewise.
10739         * math/w_dremf.c: Likewise.
10740         * math/w_exp10.c: Likewise.
10741         * math/w_exp10f.c: Likewise.
10742         * math/w_exp10l.c: Likewise.
10743         * math/w_exp2.c: Likewise.
10744         * math/w_exp2f.c: Likewise.
10745         * math/w_fmod.c: Likewise.
10746         * math/w_fmodf.c: Likewise.
10747         * math/w_fmodl.c: Likewise.
10748         * math/w_hypot.c: Likewise.
10749         * math/w_hypotf.c: Likewise.
10750         * math/w_hypotl.c: Likewise.
10751         * math/w_j0.c: Likewise.
10752         * math/w_j0f.c: Likewise.
10753         * math/w_j0l.c: Likewise.
10754         * math/w_j1.c: Likewise.
10755         * math/w_j1f.c: Likewise.
10756         * math/w_j1l.c: Likewise.
10757         * math/w_jn.c: Likewise.
10758         * math/w_jnf.c: Likewise.
10759         * math/w_jnl.c: Likewise.
10760         * math/w_lgamma.c: Likewise.
10761         * math/w_lgamma_r.c: Likewise.
10762         * math/w_lgammaf.c: Likewise.
10763         * math/w_lgammaf_r.c: Likewise.
10764         * math/w_lgammal.c: Likewise.
10765         * math/w_lgammal_r.c: Likewise.
10766         * math/w_log.c: Likewise.
10767         * math/w_log10.c: Likewise.
10768         * math/w_log10f.c: Likewise.
10769         * math/w_log10l.c: Likewise.
10770         * math/w_log2.c: Likewise.
10771         * math/w_log2f.c: Likewise.
10772         * math/w_log2l.c: Likewise.
10773         * math/w_logf.c: Likewise.
10774         * math/w_logl.c: Likewise.
10775         * math/w_pow.c: Likewise.
10776         * math/w_powf.c: Likewise.
10777         * math/w_powl.c: Likewise.
10778         * math/w_remainder.c: Likewise.
10779         * math/w_remainderf.c: Likewise.
10780         * math/w_remainderl.c: Likewise.
10781         * math/w_scalb.c: Likewise.
10782         * math/w_scalbf.c: Likewise.
10783         * math/w_scalbl.c: Likewise.
10784         * math/w_sinh.c: Likewise.
10785         * math/w_sinhf.c: Likewise.
10786         * math/w_sinhl.c: Likewise.
10787         * math/w_sqrt.c: Likewise.
10788         * math/w_sqrtf.c: Likewise.
10789         * math/w_sqrtl.c: Likewise.
10790         * math/w_tgamma.c: Likewise.
10791         * math/w_tgammaf.c: Likewise.
10792         * math/w_tgammal.c: Likewise.
10793
10794         * po/ja.po: Update from translation team.
10795
10796 2011-09-29  Andreas Jaeger  <aj@suse.de>
10797
10798         [BZ #13179]
10799         * sunrpc/netname.c (netname2host): Fix logic.
10800
10801         [BZ #6779]
10802         [BZ #6783]
10803         * math/w_remainderl.c (__remainderl): Handle (NaN, 0) and (Inf,y)
10804         correctly.
10805         * math/w_remainder.c (__remainder): Likewise.
10806         * math/w_remainderf.c (__remainderf): Likewise.
10807         * math/libm-test.inc (remainder_test): Add test cases.
10808
10809 2011-10-04  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
10810
10811         * stdlib/longlong.h: Update from GCC.  Fix zarch smul_ppmm and
10812         sdiv_qrnnd.
10813
10814 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
10815
10816         * string/test-memcmp.c: Avoid unncessary #defines.
10817         Patch by Liubov Dmitrieva <liubov.dmitrieva@gmail.com>.
10818
10819 2011-08-31  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
10820
10821         * sysdeps/x86_64/multiarch/rawmemchr.S: Update.
10822         Use new sse2 version for core i3 - i7 as it's faster
10823         than sse42 version.
10824         (bit_Prefer_PMINUB_for_stringop): New.
10825         * sysdeps/x86_64/rawmemchr.S: Update.
10826         Replace with faster SSE2 version.
10827         * sysdeps/x86_64/memrchr.S: New file.
10828         * sysdeps/x86_64/memchr.S: Update.
10829         Replace with faster SSE2 version.
10830
10831 2011-09-12  Marek Polacek  <mpolacek@redhat.com>
10832
10833         * elf/dl-load.c (lose): Add cast to avoid warning.
10834
10835 2011-10-07  Ulrich Drepper  <drepper@gmail.com>
10836
10837         * po/ca.po: Update from translation team.
10838
10839         * inet/getnetgrent_r.c: Hook up nscd.
10840         * nscd/Makefile (routines): Add nscd_netgroup.
10841         (nscd-modules): Add netgroupcache.
10842         (CFLAGS-netgroupcache.c): Define.
10843         * nscd/cache.c (readdfcts): Add entries for GETNETGRENT and INNETGR.
10844         (cache_search): Add const to second parameter.
10845         * nscd/connections.c (serv2str): Add entries for GETNETGRENT and
10846         INNETGR.
10847         (dbs): Add netgrdb entry.
10848         (reqinfo): Add entries for GETNETGRENT, INNETGR, and GETFDNETGR.
10849         (verify_persistent_db): Handle netgrdb.
10850         (handle_request): Handle GETNETGRENT, INNETGR, and GETFDNETGR.
10851         * nscd/nscd-client.h (request_type): Add GETNETGRENT, INNETGR, and
10852         GETFDNETGR.
10853         (netgroup_response_header): Define.
10854         (innetgroup_response_header): Define.
10855         (datahead): Add netgroup_response_header and innetgroup_response_header
10856         elements.
10857         * nscd/nscd.conf: Add entries for netgroup cache.
10858         * nscd/nscd.h (dbtype): Add netgrdb.
10859         (_PATH_NSCD_NETGROUP_DB): Define.
10860         (netgroup_iov_disabled): Declare.
10861         (xmalloc, xcalloc, xrealloc): Move declarations here.
10862         (cache_search): Adjust prototype.
10863         Add netgroup-related prototypes.
10864         * nscd/nscd_conf.c (dbnames): Add netgrdb entry.
10865         * nscd/nscd_proto.h (__nss_not_use_nscd_netgroup): Declare.
10866         (__nscd_innetgr): Declare.
10867         * nscd/selinux.c (perms): Use access_vector_t as element type and
10868         add netgroup-related initializers.
10869         * nscd/netgroupcache.c: New file.
10870         * nscd/nscd_netgroup.c: New file.
10871         * nss/Versions [libc] (GLIBC_PRIVATE): Export __nss_lookup.
10872         * nss/getent.c (netgroup_keys): Use setnetgrent only for one parameter.
10873         For four parameters use innetgr.
10874         * nss/nss_files/files-init.c: Add definition and callback for netgr.
10875         * nss/nsswitch.c (__nss_lookup): Add libc_hidden_def.
10876         (__nss_disable_nscd): Set __nss_not_use_nscd_netgroup.
10877         * nss/nsswitch.h (__nss_lookup): Add libc_hidden_proto.
10878
10879         * nscd/connections.c (register_traced_file): Don't register file
10880         for disabled databases.
10881
10882 2011-10-06  Ulrich Drepper  <drepper@gmail.com>
10883
10884         * nscd/grpcache.c (cache_addgr): Initialize written in all cases.
10885
10886         * nss/nsswitch.c (__nss_lookup_function): Fix order of deleting
10887         from tree and freeing node.
10888
10889 2011-09-25  Jiri Olsa  <jolsa@redhat.com>
10890
10891         * nss/nsswitch.c (__nss_database_lookup): Handle
10892         nss_parse_service_list out of memory case.
10893
10894 2011-09-15  Jiri Olsa  <jolsa@redhat.com>
10895
10896         * nss/nsswitch.c (__nss_lookup_function): Handle __tsearch
10897         out of memory case.
10898
10899 2011-10-04  Andreas Schwab  <schwab@redhat.com>
10900
10901         * include/dlfcn.h (__RTLD_NOIFUNC): Define.
10902         * elf/do-rel.h (elf_dynamic_do_rel): Add parameter skip_ifunc and
10903         pass it down.
10904         * elf/dynamic-link.h: Adjust prototypes of elf_machine_rel,
10905         elf_machine_rela, elf_machine_lazy_rel.
10906         (_ELF_DYNAMIC_DO_RELOC): Add parameter skip_ifunc and pass it down.
10907         (ELF_DYNAMIC_DO_REL): Likewise.
10908         (ELF_DYNAMIC_DO_RELA): Likewise.
10909         (ELF_DYNAMIC_RELOCATE): Likewise.
10910         * elf/dl-reloc.c (_dl_relocate_object): Pass __RTLD_NOIFUNC down
10911         to ELF_DYNAMIC_DO_REL.
10912         * elf/rtld.c (_dl_start): Adjust use of ELF_DYNAMIC_RELOCATE.
10913         (dl_main): In trace mode always set __RTLD_NOIFUNC.
10914         * elf/dl-conflict.c (_dl_resolve_conflicts): Adjust call to
10915         elf_machine_rela.
10916         * sysdeps/i386/dl-machine.h (elf_machine_rel): Add parameter
10917         skip_ifunc, don't call ifunc function if non-zero.
10918         (elf_machine_rela): Likewise.
10919         (elf_machine_lazy_rel): Likewise.
10920         (elf_machine_lazy_rela): Likewise.
10921         * sysdeps/ia64/dl-machine.h (elf_machine_rela): Likewise.
10922         (elf_machine_lazy_rel): Likewise.
10923         * sysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela):
10924         Likewise.
10925         (elf_machine_lazy_rel): Likewise.
10926         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
10927         Likewise.
10928         (elf_machine_lazy_rel): Likewise.
10929         * sysdeps/s390/s390-32/dl-machine.h (elf_machine_rela): Likewise.
10930         (elf_machine_lazy_rel): Likewise.
10931         * sysdeps/s390/s390-64/dl-machine.h (elf_machine_rela): Likewise.
10932         (elf_machine_lazy_rel): Likewise.
10933         * sysdeps/sh/dl-machine.h (elf_machine_rela): Likewise.
10934         (elf_machine_lazy_rel): Likewise.
10935         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela): Likewise.
10936         (elf_machine_lazy_rel): Likewise.
10937         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela): Likewise.
10938         (elf_machine_lazy_rel): Likewise.
10939         * sysdeps/x86_64/dl-machine.h (elf_machine_rela): Likewise.
10940         (elf_machine_lazy_rel): Likewise.
10941
10942 2011-09-28  Ulrich Drepper  <drepper@gmail.com>
10943
10944         * nss/nss_files/files-init.c (_nss_files_init): Use static
10945         initialization for all the *_traced_file variables.
10946
10947 2011-09-28  Andreas Schwab  <schwab@redhat.com>
10948
10949         * sysdeps/powerpc/fpu/libm-test-ulps: Adjust ULPs for jn tests.
10950
10951 2011-09-27  Roland McGrath  <roland@hack.frob.com>
10952
10953         [BZ #13226]
10954         * manual/signal.texi (Longjmp in Handler): Grammar fixes.
10955
10956 2011-09-27  Andreas Schwab  <schwab@redhat.com>
10957
10958         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn):
10959         Reread the line before reparsing it.
10960
10961 2011-09-26  Andreas Schwab  <schwab@redhat.com>
10962
10963         * sysdeps/x86_64/fpu/bits/mathinline.h: Use __asm instead of asm.
10964
10965 2011-09-21  Chung-Lin Tang  <cltang@codesourcery.com>
10966             Maxim Kuvyrkov  <maxim@codesourcery.com>
10967             Joseph Myers  <joseph@codesourcery.com>
10968
10969         * resolv/Makefile (LDLIBS-resolv.so): Link in $(elfobjdir)/ld.so
10970         if needed for __stack_chk_guard.
10971
10972 2011-09-19  Roland McGrath  <roland@hack.frob.com>
10973
10974         * sysdeps/posix/spawni.c (script_execute): Always define it.
10975         It will be optimized away if unused.
10976         (maybe_script_execute): New function.
10977         (__spawni): Call it.
10978
10979         * Makerules: Don't include tls.make.
10980         (config-tls): Always set to thread.
10981         * tls.make.c: File removed.
10982
10983 2011-09-19  Mike Frysinger  <vapier@gentoo.org>
10984
10985         * Makeconfig (CPPFLAGS): Prepend $(CPPFLAGS-config).
10986         * config.make.in (CPPFLAGS-config): New substituted variable.
10987
10988 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
10989
10990         * sysdeps/ieee754/dbl-64/wordsize-64/s_finite.c: New file.
10991
10992         [BZ #13192]
10993         * sysdeps/unix/sysv/linux/bits/in.h (IP_MULTICAST_ALL): Define.
10994         Patch mostly by Neil Horman <nhorman@tuxdriver.com>.
10995
10996 2011-09-15  Roland McGrath  <roland@hack.frob.com>
10997
10998         * sysdeps/unix/sysv/linux/i386/____longjmp_chk.S
10999         (CALL_FAIL): Use HIDDEN_JUMPTARGET for __fortify_fail.
11000         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
11001         (CALL_FAIL): Likewise.
11002         * sysdeps/unix/sysv/linux/ia64/____longjmp_chk.S (CHECK_RSP): Likewise.
11003         (CALL_FAIL): Macro removed.
11004         Patch mostly by Mike Frysinger <vapier@gentoo.org>.
11005
11006 2011-09-15  Ulrich Drepper  <drepper@gmail.com>
11007
11008         * sysdeps/x86_64/fpu/bits/mathinline.h: Add fmax and fmin optimizations
11009         for __FINITE_MATH_ONLY__ == 1.
11010
11011 2011-09-15  Andreas Schwab  <schwab@redhat.com>
11012
11013         * sysdeps/powerpc/fpu/e_hypot.c (__ieee754_hypot): Use
11014         __ieee754_sqrt instead of sqrt.
11015         * sysdeps/powerpc/fpu/e_hypotf.c (__ieee754_hypotf): Use
11016         __ieee754_sqrtf instead of sqrtf.
11017         * sysdeps/powerpc/fpu/e_rem_pio2f.c (__ieee754_rem_pio2f): Use
11018         __floorf instead of floorf.
11019         * sysdeps/powerpc/fpu/k_rem_pio2f.c (__fp_kernel_rem_pio2f): Use
11020         __floorf, __truncf instead of floorf, truncf.
11021
11022 2011-09-14  Ulrich Drepper  <drepper@gmail.com>
11023
11024         * sysdeps/x86_64/fpu/s_copysign.S [ELF]: Use correct section.
11025
11026         * sysdeps/x86_64/fpu/bits/mathinline.h (__MATH_INLINE): Use
11027         __extern_always_inline.
11028         Define lrint{f,} and llrint{f,} for 64-bit and in some situations for
11029         32-bit.
11030
11031 2011-09-14  Andreas Schwab  <schwab@redhat.com>
11032
11033         * elf/rtld.c (dl_main): Also relocate in dependency order when
11034         doing symbol dependency testing.
11035
11036 2011-09-13  Andreas Schwab  <schwab@linux-m68k.org>
11037
11038         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
11039         Always define `refsym'.
11040
11041 2011-09-13  Andreas Schwab  <schwab@redhat.com>
11042
11043         * misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
11044         (__FD_ELT): Renamed from __FDELT.
11045         * misc/bits/select2.h (__FD_ELT): Likewise.
11046         * bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET): Use __FD_ELT,
11047         __FD_MASK instead of __FDELT, __FDMASK.
11048         * sysdeps/i386/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
11049         Likewise.
11050         * sysdeps/x86_64/bits/select.h (__FD_SET, __FD_CLR, __FD_ISSET):
11051         Likewise.
11052
11053         * elf/Makefile (gen-ldd): Fix pattern.
11054
11055         * elf/rtld.c (dl_main): Only use USE___THREAD when defined.
11056         (init_tls): Likewise.
11057
11058 2011-09-12  Ulrich Drepper  <drepper@gmail.com>
11059
11060         * sysdeps/ieee754/dbl-64/wordsize-64/s_logb.c: New file.
11061
11062 2011-09-12  Andreas Schwab  <schwab@redhat.com>
11063
11064         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Cast to
11065         `struct cmsghdr *' instead of `void *'.
11066         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (__cmsg_nxthdr):
11067         Likewise.
11068
11069 2011-09-11  Andreas Schwab  <schwab@linux-m68k.org>
11070
11071         * elf/Makefile (gen-ldd): Prepend $(..) to $(ldd-rewrite-script)
11072         if non-absolute.
11073         * sysdeps/unix/sysv/linux/configure.in: Remove leading ../ from
11074         ldd_rewrite_script.
11075
11076 2011-09-11  Ulrich Drepper  <drepper@gmail.com>
11077
11078         * configure.in: Remove --with-tls option.
11079         * config.h.in: Remove HAVE_TLS_SUPPORT entry.
11080         * sysdeps/i386/elf/configure.in: Always test for TLS support and err
11081         out in case it is missing.
11082         * sysdeps/ia64/elf/configure.in: Likewise.
11083         * sysdeps/powerpc/powerpc32/elf/configure.in: Likewise.
11084         * sysdeps/powerpc/powerpc64/elf/configure.in: Likewise.
11085         * sysdeps/s390/s390-32/elf/configure.in: Likewise.
11086         * sysdeps/s390/s390-64/elf/configure.in: Likewise.
11087         * sysdeps/sh/elf/configure.in: Likewise.
11088         * sysdeps/sparc/sparc32/elf/configure.in: Likewise.
11089         * sysdeps/sparc/sparc64/elf/configure.in: Likewise.
11090         * sysdeps/x86_64/elf/configure.in: Likewise.
11091         * sysdeps/mach/hurd/i386/tls.h: Remove test for HAVE_TLS_SUPPORT.
11092         * sysdeps/mach/hurd/tls.h: Likewise.
11093
11094         [BZ #13067]
11095         * malloc/obstack.h [!GNUC] (obstack_free): Avoid cast to int.
11096
11097         [BZ #13090]
11098         * configure.in: Fix use of AC_INIT.
11099
11100         * elf/dl-support.c (_dl_pagesize): Initialize to EXEC_PAGESIZE.
11101
11102 2011-09-10  Ulrich Drepper  <drepper@gmail.com>
11103
11104         * malloc/malloc.c: Replace MALLOC_FAILURE_ACTION with use of
11105         __set_errno.
11106         * malloc/hooks.c: Likewise.
11107
11108         [BZ #11929]
11109         * malloc/arena.c (ptmalloc_init_minimal): Removed.  Initialize all
11110         variables statically.
11111         (narenas): Initialize.
11112         (list_lock): Initialize.
11113         (ptmalloc_init): Don't call ptmalloc_init_minimal.  Remove
11114         initializtion of main_arena and list_lock.  Small cleanups.
11115         Replace all uses of malloc_getpagesize with GLRO(dl_pagesize).
11116         * malloc/malloc.c: Remove malloc_getpagesize.  Include <ldsodefs.h>.
11117         Add initializers to main_arena and mp_.
11118         (malloc_state): Remove pagesize member.  Change all users to use
11119         GLRO(dl_pagesize).
11120
11121         * elf/rtld.c (rtld_global_ro): Initialize _dl_pagesize.
11122         * sysdeps/unix/sysv/linux/getpagesize.c: Simplify.  GLRO(dl_pagesize)
11123         is always initialized.
11124
11125         * malloc/malloc.c: Removed unused configurations and dead code.
11126         * malloc/arena.c: Likewise.
11127         * malloc/hooks.c: Likewise.
11128         * malloc/Makefile (CPPFLAGS-malloc.c): Don't add -DATOMIC_FASTBINS.
11129
11130         * include/tls.h: Removed.  USE___THREAD must always be defined.
11131         * bits/libc-tsd.h: Don't handle !USE___THREAD.
11132         * elf/dl-libc.c: Likewise.
11133         * elf/dl-tsd.c: Likewise.
11134         * include/errno.h: Likewise.
11135         * include/netdb.h: Likewise.
11136         * include/resolv.h: Likewise.
11137         * inet/herrno-loc.c: Likewise.
11138         * inet/herrno.c: Likewise.
11139         * malloc/arena.c: Likewise.
11140         * malloc/hooks.c: Likewise.
11141         * malloc/malloc.c: Likewise.
11142         * resolv/res-state.c: Likewise.
11143         * resolv/res_libc.c: Likewise.
11144         * sysdeps/i386/dl-machine.h: Likewise.
11145         * sysdeps/ia64/dl-machine.h: Likewise.
11146         * sysdeps/powerpc/powerpc32/dl-machine.h: Likewise.
11147         * sysdeps/powerpc/powerpc64/dl-machine.h: Likewise.
11148         * sysdeps/s390/s390-32/dl-machine.h: Likewise.
11149         * sysdeps/s390/s390-64/dl-machine.h: Likewise.
11150         * sysdeps/sh/dl-machine.h: Likewise.
11151         * sysdeps/sparc/sparc32/dl-machine.h: Likewise.
11152         * sysdeps/sparc/sparc64/dl-machine.h: Likewise.
11153         * sysdeps/unix/i386/sysdep.S: Likewise.
11154         * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
11155         * sysdeps/unix/sysv/linux/ia64/sysdep.S: Likewise.
11156         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.S: Likewise.
11157         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
11158         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.S: Likewise.
11159         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
11160         * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
11161         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
11162         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
11163         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
11164         * sysdeps/unix/x86_64/sysdep.S: Likewise.
11165         * sysdeps/x86_64/dl-machine.h: Likewise.
11166         * tls.make.c: Likewise.
11167
11168         * configure.in: Remove --with-__thread option.  Make tests for
11169         --no-whole-archive, __builtin_expect, symbol redirection, __thread,
11170         tls_model attribute fail if no support is available.  Remove
11171         USE_IN_LIBIO.
11172         * Makeconfig: Adjust for dropped configure option.  All features are
11173         now mandatory.
11174         * Makerules: Likewise.
11175         * Versions.def: Likewise.
11176         * argp/argp-fmtstream.c: Likewise.
11177         * argp/argp-fmtstream.h: Likewise.
11178         * argp/argp-help.c: Likewise.
11179         * assert/assert.c: Likewise.
11180         * config.h.in: Likewise.
11181         * config.make.in: Likewise.
11182         * configure: Likewise.
11183         * configure.in: Likewise.
11184         * csu/Versions: Likewise.
11185         * csu/init.c: Likewise.
11186         * elf/tst-audit2.c: Likewise.
11187         * elf/tst-tls10.c: Likewise.
11188         * elf/tst-tls10.h: Likewise.
11189         * elf/tst-tls11.c: Likewise.
11190         * elf/tst-tls12.c: Likewise.
11191         * elf/tst-tls14.c: Likewise.
11192         * elf/tst-tlsmod11.c: Likewise.
11193         * elf/tst-tlsmod12.c: Likewise.
11194         * elf/tst-tlsmod13.c: Likewise.
11195         * elf/tst-tlsmod13a.c: Likewise.
11196         * elf/tst-tlsmod14a.c: Likewise.
11197         * elf/tst-tlsmod15b.c: Likewise.
11198         * elf/tst-tlsmod16a.c: Likewise.
11199         * elf/tst-tlsmod16b.c: Likewise.
11200         * elf/tst-tlsmod7.c: Likewise.
11201         * elf/tst-tlsmod8.c: Likewise.
11202         * elf/tst-tlsmod9.c: Likewise.
11203         * gmon/gmon.c: Likewise.
11204         * grp/fgetgrent_r.c: Likewise.
11205         * grp/putgrent.c: Likewise.
11206         * hurd/fopenport.c: Likewise.
11207         * include/libc-symbols.h: Likewise.
11208         * include/tls.h: Likewise.
11209         * intl/gettextP.h: Likewise.
11210         * intl/loadinfo.h: Likewise.
11211         * locale/global-locale.c: Likewise.
11212         * locale/localeinfo.h: Likewise.
11213         * mach/devstream.c: Likewise.
11214         * malloc/arena.c: Likewise.
11215         * malloc/set-freeres.c: Likewise.
11216         * misc/err.c: Likewise.
11217         * misc/getttyent.c: Likewise.
11218         * misc/mntent_r.c: Likewise.
11219         * posix/getopt.c: Likewise.
11220         * posix/wordexp.c: Likewise.
11221         * pwd/fgetpwent_r.c: Likewise.
11222         * resolv/Versions: Likewise.
11223         * resolv/res_hconf.c: Likewise.
11224         * shadow/fgetspent_r.c: Likewise.
11225         * shadow/putspent.c: Likewise.
11226         * stdio-common/printf_fphex.c: Likewise.
11227         * stdio-common/tmpfile.c: Likewise.
11228         * stdlib/abort.c: Likewise.
11229         * stdlib/fmtmsg.c: Likewise.
11230         * sunrpc/auth_unix.c: Likewise.
11231         * sunrpc/clnt_perr.c: Likewise.
11232         * sunrpc/clnt_tcp.c: Likewise.
11233         * sunrpc/clnt_udp.c: Likewise.
11234         * sunrpc/clnt_unix.c: Likewise.
11235         * sunrpc/openchild.c: Likewise.
11236         * sunrpc/svc_simple.c: Likewise.
11237         * sunrpc/svc_tcp.c: Likewise.
11238         * sunrpc/svc_udp.c: Likewise.
11239         * sunrpc/svc_unix.c: Likewise.
11240         * sunrpc/xdr.c: Likewise.
11241         * sunrpc/xdr_array.c: Likewise.
11242         * sunrpc/xdr_rec.c: Likewise.
11243         * sunrpc/xdr_ref.c: Likewise.
11244         * sunrpc/xdr_stdio.c: Likewise.
11245
11246 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
11247
11248         * sysdeps/i386/fpu/libm-test-ulps: Adjust ULPs for jn tests.
11249
11250 2011-07-03  Andreas Jaeger  <aj@suse.de>
11251
11252         * math/libm-test.inc (jn_test): Add tests for BZ#11589.
11253         * sysdeps/x86_64/fpu/libm-test-ulps: Add new ULPs for jn_test,
11254         regenerate with gen-libm-tests.pl.
11255
11256 2010-05-12  Petr Baudis  <pasky@suse.cz>
11257
11258         [BZ #11589]
11259         * sysdeps/ieee754/dbl-64/e_jn.c: Compensate major precision loss
11260         around j0() zero points by switching to j1().
11261         * sysdeps/ieee754/flt-32/e_jnf.c: Likewise.
11262         * sysdeps/ieee754/ldbl-128/e_jnl.c: Likewise.
11263         * sysdeps/ieee754/ldbl-128ibm/e_jnl.c: Likewise.
11264         * sysdeps/ieee754/ldbl-96/e_jnl.c: Likewise.
11265
11266 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
11267
11268         * sysdeps/unix/bsd/bsd4.4/bits/socket.h (__cmsg_nxthdr): Use NULL
11269         instead of 0.
11270         * sysdeps/unix/sysv/linux/bits/socket.h (__cmsg_nxthdr): Use (void*)0
11271         instead of 0.                              .
11272         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
11273         Patch in part by Pavel Roskin <proski@gnu.org>.
11274
11275         [BZ #13138]
11276         * stdio-common/vfscanf.c (ADDW): Allocate large memory block with
11277         realloc.
11278         (_IO_vfscanf_internal): Remove reteof.  Use errout after setting done.
11279         Free memory block if necessary.
11280
11281         [BZ #12847]
11282         * libio/genops.c (INTDEF): For string streams the _lock pointer can
11283         be NULL.  Don't lock in this case.
11284
11285 2011-09-09  Roland McGrath  <roland@hack.frob.com>
11286
11287         * elf/elf.h (ELFOSABI_GNU): New macro.
11288         (ELFOSABI_LINUX): Define to that.
11289
11290 2011-07-29  Denis Zaitceff  <zaitceff@gmail.com>
11291
11292         * string/strncat.c (strncat): Undef the symbol in case it has been
11293         defined in bits/string.h.
11294
11295 2011-09-09  Ulrich Drepper  <drepper@gmail.com>
11296
11297         * elf/sotruss.ksh: Clean up, fix, and complete help messages.
11298
11299         * elf/dl-iteratephdr.c (__dl_iterate_phdr): Fill in data from the real
11300         link map.
11301
11302 2011-08-17  Andreas Jaeger  <aj@suse.de>
11303
11304         * elf/sprof.c (load_shobj): Remove unused variable log_hashfraction.
11305
11306 2011-08-18  Paul Pluzhnikov  <ppluzhnikov@google.com>
11307             Ian Lance Taylor  <iant@google.com>
11308
11309         * math/libm-test.inc (lround_test): New testcase.
11310         * sysdeps/ieee754/dbl-64/s_lround.c (__lround): Don't lose precision.
11311
11312 2011-09-08  Ulrich Drepper  <drepper@gmail.com>
11313
11314         * Makefile: Remove support for automatic cvs check-ins.
11315         * Makerules: Likewise.
11316         * config.make.in: Likewise.
11317         * configure.in: Likewise.
11318         * intl/Makefile: Likewise.
11319         * locale/Makefile: Likewise.
11320         * po/Makefile: Likewise.
11321         * posix/Makefile: Likewise.
11322         * sysdeps/gnu/Makefile: Likewise.
11323         * sysdeps/mach/hurd/Makefile: Likewise.
11324         * sysdeps/sparc/sparc32/Makefile: Likewise.
11325
11326         [BZ #13118]
11327         * posix/Makefile (bug-regex32-ENV): Define.
11328         Patch by John Stanley <jpsinthemix@verizon.net>.
11329
11330         * misc/Makefile (headers): Add bits/select2.h.
11331         * misc/sys/select.h: Include bits/select2.h for _FORTIFY_SOURCE.
11332         * misc/bits/select2.h: New file.
11333         * include/bits/select2.h: New file.
11334         * debug/Makefile (routines): Add fdelt_chk.
11335         * debug/Versions: Export __fdelt_chk and __fdelt_warn for GLIBC_2.15.
11336         * debug/tst-chk1.c (do_test): Add tests for FD_SET, FD_CLR, and
11337         FD_ISSET.
11338         * debug/fdelt_chk.c: New file.
11339
11340         * wcsmbs/test-wcscmp.c: Moved from string/*.  Adjust.
11341         * wcsmbs/test-wmemcmp.c: Likewise.
11342         * string/Makefile (strop-tests): Remove wcscmp and wmemcmp.
11343         * wcsmbs/Makefile (strop-tests): Add wcscmp and wmemcmp.
11344
11345 2011-09-08  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11346
11347         * string/Makefile (strop-tests): Add memcmp.
11348         * string/test-wmemcmp.c: New file.
11349         * string/test-memcmp.c: Add wmemcmp support.
11350
11351 2011-09-08  Roland McGrath  <roland@hack.frob.com>
11352
11353         [BZ #13153]
11354         * manual/libc.texinfo (EDITION, VERSION, UPDATED): Update for
11355         2011-07-19 change.
11356
11357         * sysdeps/mach/hurd/fork.c (__fork): Initialize REFS so we don't use a
11358         garbage value in a __mach_port_mod_refs call in the cases of the
11359         task-self and thread-self ports.
11360
11361 2011-09-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
11362
11363         * sysdeps/mach/hurd/sys/param.h (DEV_BSIZE): New macro.
11364
11365 2011-09-08  Andreas Schwab  <schwab@redhat.com>
11366
11367         * elf/dl-load.c (lose): Check for non-null L.
11368
11369 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
11370
11371         * elf/dl-load.c (open_verify): Use O_CLOEXEC.
11372
11373         * elf/dl-libc.c (dlerror_run): Pass back error code from
11374         dl_catch_error.
11375
11376         [BZ #13123]
11377         * elf/dl-load.c (lose): Free l_origin if it is valid.
11378
11379         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Fix mixup in section
11380         names.
11381         * sysdeps/i386/i686/multiarch/strchr-sse2.S: Likewise.
11382         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
11383         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
11384         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
11385         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: Likewise.
11386         Patch by Liubov Dmitrieva <liubov.dmitrieva@intel.com>.
11387
11388 2011-08-01  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
11389
11390         * sysdeps/powerpc/fpu/e_hypot.c: New file.
11391         * sysdeps/powerpc/fpu/e_hypotf.c: New file.
11392         * sysdeps/powerpc/fpu/e_rem_pio2f.c: New file.
11393         * sysdeps/powerpc/fpu/k_rem_pio2f.c: New file.
11394         * sysdeps/powerpc/fpu/k_cosf.c: New file.
11395         * sysdeps/powerpc/fpu/k_sinf.c: New file.
11396         * sysdeps/powerpc/fpu/s_cosf.c: New file.
11397         * sysdeps/powerpc/fpu/s_sinf.c: New file.
11398         * sysdeps/powerpc/fpu/s_scalbnf.c: New file.
11399         * sysdeps/powerpc/fpu/s_float_bitwise.h: New file.
11400
11401 2011-08-15  Alan Modra  <amodra@gmail.com>
11402
11403         [BZ #13092]
11404         * sysdeps/powerpc/Makefile (gmon): Move sysdep_routines to..
11405         * sysdeps/powerpc/powerpc64/Makefile (gmon): ..here..
11406         * sysdeps/powerpc/powerpc32/Makefile (gmon): ..and here.  Add
11407         ppc_mcount to static-only-routines.
11408         * sysdeps/powerpc/powerpc32/Versions: Export GLIBC_PRIVATE
11409         __mcount_internal.
11410         * sysdeps/powerpc/powerpc32/ppc-mcount.S (_mcount): Call
11411         __mcount_internal with usual JUMPTARGET.  Remove useless nop.
11412
11413 2011-08-18  David Flaherty  <flaherty@linux.vnet.ibm.com>
11414
11415         * sysdeps/ieee754/ldbl-128ibm/s_fmal.c: New file which checks
11416         for finite and infinity parameters.
11417
11418 2011-08-04  Will Schmidt  <will_schmidt@vnet.ibm.com>
11419
11420         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Adjust the alignment
11421         and add nop instructions for throughput optimization.
11422         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
11423
11424 2011-07-28  Will Schmidt  <will_schmidt@vnet.ibm.com>
11425
11426         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Optimize the
11427         aligned copy for power7 with vector-scalar instructions.
11428         * sysdeps/powerpc/powerpc64/power7/memcpy.S: Likewise.
11429
11430 2011-07-24  H.J. Lu  <hongjiu.lu@intel.com>
11431
11432         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Simplify
11433         AVX check.
11434
11435 2011-09-07  Andreas Schwab  <schwab@redhat.com>
11436
11437         [BZ #13144]
11438         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Revert
11439         last change.
11440
11441 2011-09-07  Ulrich Drepper  <drepper@gmail.com>
11442
11443         * sysdeps/unix/sysv/linux/x86_64/init-first.c
11444         (_libc_vdso_platform_setup): If vDSO is not present store pointer to
11445         syscall wrapper around clock_gettime in __vdso_clock_gettime.
11446         * sysdeps/unix/sysv/linux/x86_64/syscalls.list: Add entry for
11447         clock_gettime.
11448
11449 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
11450
11451         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c (INTERNAL_GETTIME):
11452         Forgot to demangle the pointer.
11453
11454         * sysdeps/i386/sysdep.h: Define atom_text_section.
11455         * sysdeps/x86_64/sysdep.h: Likewise.
11456         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: Place function in
11457         section with atom_text_section.
11458         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: Likewise.
11459         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: Likewise.
11460         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: Likewise.
11461         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
11462         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: Likewise.
11463
11464         * sysdeps/unix/sysv/linux/x86_64/clock_gettime.c: New file.
11465         * sysdeps/unix/sysv/linux/clock_gettime.c (SYSCALL_GETTIME): Allow
11466         already be defined.  Change to take two parameters and don't assign
11467         result to variable.  Adjust all users.
11468         Define INTERNAL_GETTIME if not already defined.
11469         Use INTERNAL_GETTIME instead of INTERNAL_VSYSCALL got clock_gettime
11470         call.
11471         * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Don't define
11472         HAVE_CLOCK_GETTIME_VSYSCALL.
11473         * sysdeps/unix/clock_gettime.c: Adjust use of SYSDEP_GETTIME_CPU.
11474
11475         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Don't use
11476         gettimeofday vsyscall, just use time.
11477
11478 2011-09-06  Andreas Schwab  <schwab@redhat.com>
11479
11480         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Include
11481         <errno.h>.
11482
11483 2011-09-06  Ulrich Drepper  <drepper@gmail.com>
11484
11485         * sysdeps/unix/sysv/linux/kernel-features.h: Add entry for getcpu
11486         syscall on x86-64.
11487         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c [!SHARED]: Use real
11488         syscall.
11489         * sysdeps/unix/sysv/linux/x86_64/time.c: Likewise.
11490         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [!SHARED]: Use real
11491         syscall if possible.
11492
11493 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
11494
11495         * elf/pldd.c (get_process_info): Don't read whole ELF header, just
11496         e_ident.  Don't pass to find_mapsXX.
11497         * elf/pldd-xx.c (find_mapsXX): Remove second parameter.
11498
11499 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11500
11501         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
11502         strchr-sse2-no-bsf strrchr-sse2-no-bsf
11503         * sysdeps/x86_64/multiarch/strchr.S: Update.
11504         Check bit_slow_BSF bit.
11505         * sysdeps/x86_64/multiarch/strrchr.S: Likewise.
11506         * sysdeps/x86_64/multiarch/strchr-sse2-no-bsf.S: New file.
11507         * sysdeps/x86_64/multiarch/strrchr-sse2-no-bsf.S: New file.
11508
11509 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
11510
11511         [BZ #13134]
11512         * sysdeps/posix/spawni.c (script_execute): Define only for compatibility
11513         before glibc 2.15.
11514         (tryshell): Define.
11515         (__spawni): Change last parameter to be flag.  Test
11516         SPAWN_XFLAGS_USE_PATH flag to use path or not.
11517         Don't try to use shell unless SPAWN_XFLAGS_TRY_SHELL is set.
11518         * sysdeps/mach/hurd/spawni.c: Change last parameter and adjust user.
11519         * posix/spawni.c: Likewise.
11520         * posix/spawn.c: Add compat version which passed SPAWN_XFLAGS_TRY_SHELL.
11521         * posix/spawnp.c: Likewise.  Change normal version to use
11522         SPAWN_XFLAGS_USE_PATH.
11523         * posix/spawn_int.c: Define SPAWN_XFLAGS_USE_PATH and
11524         SPAWN_XFLAGS_TRY_SHELL.
11525
11526         [BZ #13150]
11527         * posix/glob.h: Remove gcc 1.x support.
11528
11529         [BZ #13068]
11530         * elf/dl-misc.c (_dl_sysdep_read_whole_file): Use O_CLOEXEC.
11531
11532 2011-07-20  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11533
11534         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11535         strchr-sse2 strrchr-sse2 strchr-sse2-bsf
11536         strrchr-sse2-bsf
11537         * sysdeps/i386/i686/multiarch/strchr.S: New file.
11538         * sysdeps/i386/i686/multiarch/strrchr.S: New file.
11539         * sysdeps/i386/i686/multiarch/strchr-sse2.S: New file.
11540         * sysdeps/i386/i686/multiarch/strchr-sse2-bsf.S: New file.
11541         * sysdeps/i386/i686/multiarch/strrchr-sse2.S: New file.
11542         * sysdeps/i386/i686/multiarch/strrchr-sse2-bsf.S: New file.
11543
11544 2011-08-29  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11545
11546         * sysdeps/x86_64/wcscmp.S: New file.
11547
11548         * sysdeps/i386/i686/multiarch/Makefile: (sysdep_routines): Add
11549         wcscmp-c wcscmp-sse2
11550         * sysdeps/i386/i686/multiarch/wcscmp-c.c: New file.
11551         * sysdeps/i386/i686/multiarch/wcscmp.S: New file.
11552         * sysdeps/i386/i686/multiarch/wcscmp-sse2.S: New file.
11553         * wcsmbs/wcscmp.c: Allow renaming.
11554
11555 2011-09-05  David S. Miller  <davem@davemloft.net>
11556
11557         * sysdeps/sparc/sparc32/fpu/s_fabsf.S: Use first argument
11558         stack slot, rather than the struct return pointer slot.
11559         * sysdeps/sparc/sparc32/fpu/s_fabs.c: Delete.
11560         * sysdeps/sparc/sparc32/fpu/s_fabs.S: New file.
11561         * sysdeps/sparc/sparc32/sparcv9/fpu/s_fabs.S: Likewise.
11562         * sysdeps/unix/sysv/linux/sparc/sparc32/sparcv9/fpu/Implies: Likewise.
11563
11564 2011-09-05  Ulrich Drepper  <drepper@gmail.com>
11565
11566         * po/ja.po: Update from translation team.
11567
11568         [BZ #13144]
11569         * sysdeps/unix/sysv/linux/x86_64/bits/sem.h (semdid_ds): Fix to match
11570         kernel in 64-bit binaries.
11571
11572 2011-09-01  David S. Miller  <davem@davemloft.net>
11573
11574         * elf/elf.h (HWCAP_SPARC_*): Move to..
11575         * sysdeps/sparc/sysdep.h: this new file and add new values.
11576         * sysdeps/unix/sparc/sysdep.h: Include sysdeps/sparc/sysdep.h
11577         * sysdeps/sparc/dl-procinfo.h: Include sysdep.h and increase
11578         _DL_HWCAP_COUNT to 24.
11579         * sysdeps/sparc/dl-procinfo.c (_dl_sparc_cap_flags): Add new
11580         entries.
11581         * sysdeps/sparc/sparc32/bits/atomic.h: Don't use magic local
11582         __ATOMIC_HWCAP_SPARC_V9 define, use sysdep.h one instead.
11583         * sysdeps/sparc/sparc32/dl-machine.h: Include sysdep.h
11584         * sysdeps/sparc/sparc64/multiarch/memcpy.S: Use HWCAP_SPARC_*
11585         instead of magic constants.
11586         * sysdeps/sparc/sparc64/multiarch/memset.S: Likewise.
11587
11588 2011-08-31  David S. Miller  <davem@davemloft.net>
11589
11590         * sysdeps/unix/sparc/sysdep.h (SETUP_PIC_REG): Define.
11591         * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h (PSEUDO):
11592         Reimplement to do errno handling inline.
11593         (SYSCALL_ERROR_HANDLER): New macro.
11594         (__SYSCALL_STRING): Do not do errno handling in asm.
11595         (__CLONE_SYSCALL_STRING): Delete.
11596         (__INTERNAL_SYSCALL_STRING): Delete.
11597         * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Include
11598         sysdeps/unix/sparc/sysdep.h instead of sysdeps/unix/sysdep.h
11599         (PSEUDO): Reimplement to do errno handling inline.
11600         (ret, ret_NOERRNO, ret_ERRVAL, r0, r1, MOVE): Don't redefine.
11601         (SYSCALL_ERROR_HANDLER): New macro.
11602         (__SYSCALL_STRING): Do not do errno handling in asm.
11603         (__CLONE_SYSCALL_STRING): Delete.
11604         (__INTERNAL_SYSCALL_STRING): Delete.
11605         * sysdeps/unix/sysv/linux/sparc/sysdep.h (INLINE_SYSCALL):
11606         Implement in terms of INTERNAL_SYSCALL and __set_errno, just like
11607         i386.
11608         (INTERNAL_SYSCALL_DECL): Declare %g1 var for err state.
11609         (inline_syscall*): Add 'err' argument.
11610         (INTERNAL_SYSCALL, INTERNAL_SYSCALL_NCS,
11611         INTERNAL_SYSCALL_ERROR_P): Likewise and pass it down.
11612         (INLINE_CLONE_SYSCALL): Reimplement in terms of __SYSCALL_STRING,
11613         INTERNAL_SYSCALL_ERRNO, and INTERNAL_SYSCALL_ERROR_P.
11614
11615         * scripts/data/localplt-sparc-linux-gnu.data: Remove 'ffs'.
11616         * scripts/data/localplt-sparc64-linux-gnu.data: Likewise.
11617
11618 2011-08-30  Andreas Schwab  <schwab@redhat.com>
11619
11620         * elf/rtld.c (dl_main): Relocate objects in dependency order.
11621
11622 2011-08-29  Jiri Olsa <jolsa@redhat.com>
11623
11624         * sysdeps/i386/dl-trampoline.S (_dl_runtime_profile): Fix cfi
11625         directive.
11626
11627 2011-08-24  David S. Miller  <davem@davemloft.net>
11628
11629         * sysdeps/sparc/sparc64/strcmp.S: Rewrite.
11630
11631 2011-08-24  Andreas Schwab  <schwab@redhat.com>
11632
11633         * elf/Makefile: Add rules to build and run unload8 test.
11634         * elf/unload8.c: New file.
11635         * elf/unload8mod1.c: New file.
11636         * elf/unload8mod1x.c: New file.
11637         * elf/unload8mod2.c: New file.
11638         * elf/unload8mod3.c: New file.
11639
11640         * elf/dl-close.c (_dl_close_worker): Reset private search list if
11641         it wasn't used.
11642
11643 2011-08-23  David S. Miller  <davem@davemloft.net>
11644
11645         * sysdeps/sparc/sparc64/dl-machine.h (DL_STACK_END): Do not
11646         subtract stack bias.
11647         * sysdeps/sparc/sparc64/jmpbuf-unwind.h (_JMPBUF_UNWINDS): Use
11648         %sp not %fp in calculations.
11649         (_JMPBUF_UNWINDS_ADJ): Likewise.
11650
11651         * sysdeps/pthread/aio_suspend.c (do_aio_misc_wait): New function.
11652         (aio_suspend): Call it to force an exception region around the
11653         AIO_MISC_WAIT() invocation.
11654
11655 2011-08-23  Andreas Schwab  <schwab@redhat.com>
11656
11657         * sysdeps/i386/i686/multiarch/strspn.S (ENTRY): Add missing
11658         backslash.
11659
11660 2011-07-04  Aurelien Jarno  <aurelien@aurel32.net>
11661
11662         * sysdeps/powerpc/dl-tls.h: Add _PPC_DL_TLS_H inclusion
11663         protection macro.
11664         * sysdeps/powerpc/powerpc64/dl-irel.h: Include <ldsodefs.h>
11665         and <dl-machine.h>.
11666         (Elf64_FuncDesc): Remove.
11667
11668 2011-08-22  David S. Miller  <davem@davemloft.net>
11669
11670         * sysdeps/unix/sysv/linux/sparc/sparc32/____longjmp_chk.S: Fix
11671         sigaltstack check, add missing cfi directives.
11672         * sysdeps/unix/sysv/linux/sparc/sparc64/____longjmp_chk.S: Add
11673         missing cfi directives, and sigaltstack handling.
11674
11675 2011-08-16  Andreas Schwab  <schwab@redhat.com>
11676
11677         [BZ #11724]
11678         * elf/dl-deps.c (_dl_map_object_deps): Only assume cycle when
11679         object is seen twice.
11680         * elf/dl-fini.c (_dl_sort_fini): Likewise.
11681
11682         * elf/Makefile (distribute): Add tst-initorder2.c.
11683         (tests): Add tst-initorder2.
11684         (modules-names): Add tst-initorder2a tst-initorder2b
11685         tst-initorder2c tst-initorder2d.  Add rules to build them.
11686         ($(objpfx)tst-initorder2.out): New rule.
11687         * elf/tst-initorder2.c: New file.
11688         * elf/tst-initorder2.exp: New file.
11689
11690 2011-08-22  Andreas Schwab  <schwab@redhat.com>
11691
11692         * sysdeps/unix/sysv/linux/i386/scandir64.c: Include <string.h>.
11693
11694         * elf/dl-deps.c (_dl_map_object_deps): Move check for missing
11695         dependencies back to end of function.
11696
11697         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
11698         $(elfobjdir)/ld.so.
11699
11700 2011-08-21  Ulrich Drepper  <drepper@gmail.com>
11701
11702         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.S: Removed.
11703         * sysdeps/unix/sysv/linux/x86_64/time.S: Removed.
11704         * sysdeps/unix/sysv/linux/x86_64/gettimeofday.c: New file.
11705         * sysdeps/unix/sysv/linux/x86_64/time.c: New file.
11706         * sysdeps/unix/sysv/linux/x86_64/bits/libc-vdso.h: Remove declaration
11707         of __vdso_gettimeofday.
11708         * sysdeps/unix/sysv/linux/x86_64/init-first.c: Remove definition of
11709         __vdso_gettimeofday and __vdso_time.  Define __vdso_getcpu with
11710         attribute_hidden.
11711         (_libc_vdso_platform_setup): Remove initialization of
11712         __vdso_gettimeofday and __vdso_time.
11713
11714 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
11715
11716         * nss/nss_files/files-alias.c (get_next_alias): Use feof_unlocked
11717         and fgetc_unlocked.
11718         * nss/nss_files/files-key.c (search): Use fgets_unlocked and
11719         getc_unlocked.
11720
11721         * elf/dl-open.c (add_to_global): Report additions to the global scope
11722         for LD_DEBUG=scopes.
11723         (dl_open_worker): Also print scope of newly loaded dependencies.
11724         (_dl_show_scope): Indicate if there is no scope.
11725
11726         [BZ #13114]
11727         * stdio-common/Makefile (tests): Add bug24.
11728         * stdio-common/bug24.c: New file.
11729
11730 2011-08-19  Andreas Jaeger  <aj@suse.de>
11731
11732         [BZ #13114]
11733         * libio/fileops.c (_IO_new_file_fopen): Fix handling of
11734         non-existant file when using close-on-exec mode.
11735
11736 2011-08-20  Ulrich Drepper  <drepper@gmail.com>
11737
11738         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_resolve): Fix CFI for
11739         the very first instruction.
11740
11741         * sysdeps/x86_64/dl-trampoline.h: If MORE_CODE is defined, restore
11742         the CFI state in the end.
11743         * sysdeps/x86_64/dl-trampoline.S: Define MORE_CODE before first
11744         inclusion of dl-trampoline.h.
11745         Based on a patch by Jiri Olsa <jolsa@redhat.com>.
11746
11747 2011-08-19  Andreas Schwab  <schwab@redhat.com>
11748
11749         * sysdeps/powerpc/fpu/libm-test-ulps: Relax ctan (0.75 + 1.25 i)
11750         expectations for long double.
11751
11752         * sysdeps/unix/sysv/linux/powerpc/powerpc32/scandir64.c: Renamed
11753         from sysdeps/unix/sysv/linux/powerpc/scandir64.c.
11754
11755 2011-08-14  David S. Miller  <davem@davemloft.net>
11756
11757         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): The
11758         artificual limit depends upon the system page size.
11759
11760 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
11761
11762         * Makeconfig (override CFLAGS): Add library-specific CFLAGS.
11763         * resolv/Makefile: Define CFLAGS-libresolv.
11764
11765 2011-08-17  Andreas Schwab  <schwab@redhat.com>
11766
11767         * nss/makedb.c (compute_tables): Make variables used in nested
11768         function static.
11769
11770 2011-08-17  Ulrich Drepper  <drepper@gmail.com>
11771
11772         * elf/pldd-xx.c (r_debug): Explicitly add padding when needed.
11773         * elf/pldd.c (get_process_info): Use pread to re-read auxiliary vector
11774         if buffer was too small.
11775
11776         * elf/pldd.c (main): Attach to all threads in the process.
11777         Rewrite /proc handling to use *at functions.
11778
11779 2011-08-16  Ulrich Drepper  <drepper@gmail.com>
11780
11781         * elf/dl-open.c (_dl_show_scope): Take additional parameter which
11782         specifies first scope to show.
11783         (dl_open_worker): Update callers.  Move printing scope of new
11784         object to before the relocation.
11785         * elf/rtld.c (dl_main): Update _dl_show_scope call.
11786         * sysdeps/generic/ldsodefs.h: Update declaration.
11787
11788         * elf/dl-open.c (_dl_show_scope): Use _dl_debug_printf to generate the
11789         string for the scope number.
11790
11791 2011-08-14  Ulrich Drepper  <drepper@gmail.com>
11792
11793         * nscd/servicescache.c (cache_addserv): Make sure written is always
11794         initialized.
11795
11796 2011-08-14  Roland McGrath  <roland@hack.frob.com>
11797
11798         * sysdeps/i386/i486/bits/atomic.h
11799         (__arch_compare_and_exchange_val_64_acq): Use RET alone at end of
11800         statement expression, so as to suppress "set but not used" warning.
11801         (__arch_c_compare_and_exchange_val_64_acq): Likewise.
11802
11803         * string/strncat.c (STRNCAT): Use prototype definition.
11804
11805         * locale/Makefile (locale-CPPFLAGS): Renamed CPPFLAGS-locale-programs.
11806         (locale-CPPFLAGS): New variable; put LOCALEDIR, LOCALE_ALIAS_PATH and
11807         -Iprograms here.
11808         (cppflags-iterator.mk sequence): Use locale-programs in place of nonlib.
11809         (localedef-modules): Add localedef.
11810         (locale-modules): Add locale.
11811
11812         * sysdeps/generic/ldsodefs.h (struct unique_sym): Add a const.
11813         * elf/rtld.c (dl_main): Invert order of assignment in last change,
11814         to avoid a warning.
11815
11816 2011-08-14  David S. Miller  <davem@davemloft.net>
11817
11818         * sysdeps/unix/sysv/linux/sparc/bits/resource.h (RLIM_INFINITY,
11819         RLIM64_INFINITY): Fix 64-bit values for 32-bit sparc.
11820
11821 2011-08-13  Ulrich Drepper  <drepper@gmail.com>
11822
11823         * elf/dl-open.c: Rename show_scope to _dl_show_scope and export.
11824         (dl_open_worker): Call _dl_show_scope when DL_DEBUG_SCOPES is set.
11825         * elf/rtld.c (dl_main): Set l_name of vDSO.
11826         Call _dl_show_scope when DL_DEBUG_SCOPES.
11827         (process_dl_debug): Recognize scopes flag and also set it for all.
11828         * sysdeps/generic/ldsodefs.h: Define DL_DEBUG_SCOPES.
11829         Declare _dl_show_scope.
11830
11831         * elf/dl-libc.c (do_dlopen_args): Add caller_dlopen.
11832         (do_dlopen): Pass caller_dlopen to dl_open.
11833         (__libc_dlopen_mode): Initialize caller_dlopen.
11834
11835         * intl/l10nflist.c (_nl_normalize_codeset): Make it compile outside
11836         of libc.  Make tolower call locale-independent.  Optimize a bit by
11837         using isdigit instead of isalnum.
11838         * locale/Makefile (locale-CPPFLAGS): Add -DNOT_IN_libc.
11839
11840 2011-08-12  Ulrich Drepper  <drepper@gmail.com>
11841
11842         * elf/dl-load.c (_dl_map_object): Show in debug output whether a DSO
11843         was a dependency or dynamically loaded.
11844
11845 2011-08-11  Ulrich Drepper  <drepper@gmail.com>
11846
11847         * intl/l10nflist.c: Allow architecture-specific pop function.
11848         * sysdeps/x86_64/l10nflist.c: New file.
11849
11850         * intl/l10nflist.c (_nl_make_l10nflist): Use locale-independent
11851         classification.
11852
11853 2011-08-10  Andreas Schwab  <schwab@redhat.com>
11854
11855         * include/dirent.h: Add libc_hidden_proto for scandirat and
11856         scandirat64.  Don't declare __scandirat64.
11857         * dirent/scandirat.c: Add libc_hidden_def.
11858         * dirent/scandirat64.c (SCANDIRAT): Remove underscores.
11859         * sysdeps/unix/sysv/linux/i386/scandir64.c (SCANDIRAT): Likewise.
11860
11861 2011-08-10  David S. Miller  <davem@davemloft.net>
11862
11863         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Add missing comma in
11864         enum.
11865         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11866         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11867         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11868
11869 2011-08-09  Ulrich Drepper  <drepper@gmail.com>
11870
11871         * Versions.def [libc]: Add GLIBC_2.15.
11872         * dirent/Makefile (routines): Add scandirat and scandirat64.
11873         * dirent/Versions [libc]: Export scandirat and scandirat64 for
11874         GLIBC_2.15.
11875         * dirent/dirent.h: Declare scandirat and scandirat64.
11876         * dirent/scandirat.c: New file.
11877         * dirent/scandirat64.c: New file.
11878         * sysdeps/wordsize-64/scandirat.c: New file.
11879         * sysdeps/wordsize-64/scandirat64.c: New file.
11880         * dirent/opendir.c: Define opendirat.
11881         * dirent/scandir.c: Move code to scandirat.c.  Implement scandir
11882         using scandirat.
11883         * dirent/scandir64.c: Adjust for scandir.c change.
11884         * include/dirent.h: Define scandir_cancel_struct.  Declare __opendirat,
11885         __scandirat64, and __scandir_cancel_handler.
11886         * sysdeps/unix/opendir.c: Rename __opendir to __opendirat.  Take
11887         additional parameter and use openat instead of open (outside of ld.so).
11888         Add new __opendir as wrapper around __opendirat.
11889         * sysdeps/unix/sysv/linux/i386/scandir64.c: Reimplement __old_scandir64
11890         here without requiring old scandirat implementation.
11891
11892 2011-08-08  Ulrich Drepper  <drepper@gmail.com>
11893
11894         * dirent/scandir.c (cancel_handler): Renamed to
11895         __scandir_cancel_handler.  Do not define if SKIP_SCANDIR_CANCEL is
11896         defined.  Adjust users.
11897         * dirent/scandir64.c: Define SKIP_SCANDIR_CANCEL.
11898         * sysdeps/unix/sysv/linux/i386/scandir64.c: Likewise.
11899
11900 2011-08-04  Ulrich Drepper  <drepper@gmail.com>
11901
11902         * string/test-string.h (IMPL): Use __STRING to expand name and then
11903         stringify it.
11904
11905         * string/test-strcmp.c: Unify most of the WIDE and !WIDE code.  Lots
11906         of cleanups.
11907
11908 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
11909
11910         * string/Makefile: Update.
11911         (strop-tests): Append strncat.
11912         * string/test-wcscmp.c: New file.
11913         New comprehensive test for wcscmp.
11914         * string/test-strcmp.c: Update.
11915         (WIDE): New define.
11916
11917 2011-07-22  Andreas Schwab  <schwab@redhat.com>
11918
11919         * resolv/res_init.c (__res_vinit): Properly tokenize nameserver
11920         line.
11921
11922 2011-07-26  Andreas Schwab  <schwab@redhat.com>
11923
11924         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
11925         encoding to ACE if AI_IDN.
11926
11927 2011-08-01  Jakub Jelinek  <jakub@redhat.com>
11928
11929         * sysdeps/ieee754/dbl-64/k_rem_pio2.c (__kernel_rem_pio2): Fix up fq
11930         to y conversion for prec 3 and __FLT_EVAL_METHOD__ != 0.
11931
11932 2011-07-22  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11933
11934         * sysdeps/i386/i686/multiarch/strcat-sse2.S: Update.
11935         Fix overflow bug in strncat.
11936         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Likewise.
11937
11938         * string/test-strncat.c: Update.
11939         Add new tests for checking overflow bugs.
11940
11941 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
11942
11943         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
11944         strcat-ssse3 strcat-sse2 strncat-ssse3 strncat-sse2 strncat-c.
11945         * sysdeps/i386/i686/multiarch/strcat.S: New file.
11946         * sysdeps/i386/i686/multiarch/strcat-c.c: New file.
11947         * sysdeps/i386/i686/multiarch/strcat-sse2.S: New file.
11948         * sysdeps/i386/i686/multiarch/strcat-ssse3.S: New file.
11949         * sysdeps/i386/i686/multiarch/strncat.S: New file.
11950         * sysdeps/i386/i686/multiarch/strncat-sse2.S: New file.
11951         * sysdeps/i386/i686/multiarch/strncat-ssse3.S: New file.
11952
11953         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S
11954         (USE_AS_STRCAT): Define.
11955         Add strcat and strncat support.
11956         * sysdeps/i386/i686/multiarch/strlen-sse2.S: Likewise.
11957
11958 2011-07-25  Andreas Schwab  <schwab@redhat.com>
11959
11960         * sysdeps/i386/i486/bits/string.h (__strncat_g): Correctly handle
11961         __n bigger than INT_MAX+1.
11962         (__strncmp_g): Likewise.
11963
11964 2011-07-23  Ulrich Drepper  <drepper@gmail.com>
11965
11966         * posix/unistd.h: Define SEEK_DATA and SEEK_HOLE.
11967         * libio/stido.h: Likewise.
11968
11969         * sysdeps/unix/sysv/linux/bits/socket.h (PF_NFC): Define.
11970         (AF_NFC): Define.
11971         * sysdeps/unix/sysv/linux/sparc/bits/socket.h (PF_NFC): Define.
11972         (AF_NFC): Define.
11973
11974         * sysdeps/unix/sysv/linux/sys/ptrace.h: Add new constants.
11975         * sysdeps/unix/sysv/linux/sparc/sys/ptrace.h: Likewise.
11976         * sysdeps/unix/sysv/linux/powerpc/sys/ptrace.h: Likewise.
11977         * sysdeps/unix/sysv/linux/ia64/sys/ptrace.h: Likewise.
11978         * sysdeps/unix/sysv/linux/s390/sys/ptrace.h: Likewise.
11979
11980         [BZ #13021]
11981         * scripts/test-installation.pl: Don't expect libnss_test1 to be
11982         installed.
11983
11984         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix one more
11985         typo.
11986         (_dl_x86_64_save_sse): Likewise.
11987
11988 2011-07-22  Ulrich Drepper  <drepper@gmail.com>
11989
11990         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix test for
11991         OSXSAVE.
11992         (_dl_x86_64_save_sse): Likewise.
11993
11994         * crypt/crypt_util.c (__init_des_r): Optimize memset calls.
11995
11996         * crypt/crypt_util.c (__init_des_r): Add read barrier as well.
11997
11998 2011-07-21  Andreas Schwab  <schwab@redhat.com>
11999
12000         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): Fix last
12001         change.
12002         (_dl_x86_64_save_sse): Use correct AVX check.
12003
12004 2011-07-21  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>
12005
12006         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Fix overfow
12007         bug in strncpy/strncat.
12008         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: Likewise.
12009
12010 2011-07-21  Ulrich Drepper  <drepper@gmail.com>
12011
12012         * string/tester.c (test_strcat): Add tests for different alignments
12013         of source and destination.
12014         (test_strncat): Likewise.
12015
12016 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
12017
12018         [BZ #12852]
12019         * posix/glob.c (glob): Check passed in values before using them in
12020         expressions to avoid some overflows.
12021         (glob_in_dir): Likewise.
12022
12023         [BZ #13007]
12024         * sysdeps/x86_64/dl-trampoline.S (_dl_runtime_profile): More complete
12025         check for AVX enablement so that we don't crash with old kernels and
12026         new hardware.
12027         * elf/tst-audit4.c: Add same checks here.
12028         * elf/tst-audit6.c: Likewise.
12029
12030         * sysdeps/x86_64/bits/link.h (La_x86_64_ymm): Force 16-byte alignment.
12031
12032 2011-07-09  Andreas Schwab  <schwab@linux-m68k.org>
12033
12034         * sysdeps/unix/sysv/linux/pathconf.c: Include <string.h>.
12035
12036 2011-07-20  Ulrich Drepper  <drepper@gmail.com>
12037
12038         * po/cs.po: Update from translation team.
12039         * po/bg.po: Likewise.
12040
12041 2011-07-12  Marek Polacek  <mpolacek@redhat.com>
12042
12043         * misc/sys/cdefs.h: Add support for const attribute.
12044         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add __attribute_const__
12045         to gnu_dev_{major,minor,makedev} functions.
12046
12047 2011-07-20  Marek Polacek  <mpolacek@redhat.com>
12048
12049         * intl/dcigettext.c (get_output_charset): Add missing bracket.
12050
12051 2011-07-20  Andreas Schwab  <schwab@redhat.com>
12052
12053         * resolv/res_query.c (__libc_res_nquerydomain): Use size_t for
12054         strlen results.
12055
12056 2011-07-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12057
12058         * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
12059         (INTERNAL_VSYSCALL_NCS): Use r10 for backing up the return address
12060         register in order to avoid conflicts with the soft frame pointer
12061         being held in r11 when necessary.
12062         * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
12063         (INTERNAL_VSYSCALL_NCS): Likewise.
12064
12065 2011-07-14  Marek Polacek  <mpolacek@redhat.com>
12066
12067         * elf/dl-fini.c (_dl_sort_fini): Remove unused link_map *l argument,
12068         * elf/dl-fini.c (_dl_fini): Adjust caller.
12069         * elf/dl-close.c (_dl_close_worker): Likewise.
12070         * sysdeps/generic/ldsodefs.h: Adjust declaration.
12071
12072 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
12073
12074         * elf/cache.c (load_aux_cache): Remove unnecessary condition of
12075         "aux_cache->nlibs < 0".
12076
12077         * nscd/nscd_conf.c (nscd_parse_file): Remove unnecessary condition
12078         in the reload-count case.
12079
12080 2011-07-15  Liubov Dmitrieva  <liubov.dmitrieva@intel.com>
12081
12082         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12083         strcat-ssse3 strcat-sse2-unaligned strncat-ssse3
12084         strncat-sse2-unaligned strncat-c strlen-sse2-pminub
12085         * sysdeps/x86_64/multiarch/strcat-sse2-unaligned.S: New file.
12086         * sysdeps/x86_64/multiarch/strcat.S: New file.
12087         * sysdeps/x86_64/multiarch/strncat.S: New file.
12088         * sysdeps/x86_64/multiarch/strncat-c.c: New file.
12089         * sysdeps/x86_64/multiarch/strcat-ssse3.S: New file.
12090         * sysdeps/x86_64/multiarch/strncat-sse2-unaligned.S: New file.
12091         * sysdeps/x86_64/multiarch/strncat-ssse3.S: New file.
12092         * sysdeps/x86_64/multiarch/strcpy-ssse3.S
12093         (USE_AS_STRCAT): Define.
12094         Add strcat and strncat support.
12095         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Likewise.
12096         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: Likewise.
12097         * sysdeps/x86_64/multiarch/strlen-sse2-pminub.S: New file.
12098         * string/strncat.c: Update.
12099         (USE_AS_STRNCAT): Define.
12100         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12101         Turn on bit_Prefer_PMINUB_for_stringop for Intel Core i3, i5
12102         and i7.
12103         * sysdeps/x86_64/multiarch/init-arch.h
12104         (bit_Prefer_PMINUB_for_stringop): New.
12105         (index_Prefer_PMINUB_for_stringop): Likewise.
12106         * sysdeps/x86_64/multiarch/strlen.S (strlen): Check
12107         bit_Prefer_PMINUB_for_stringop.
12108
12109 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
12110
12111         * crypt/sha512.h (struct sha512_ctx): Move buffer into union and add
12112         buffer64.
12113         * crypt/sha512.c (__sha512_finish_ctx): Use buffer64 for writes instead
12114         of casting of buffer.
12115         * crypt/sha256.h (struct sha256_ctx): Move buffer into union and add
12116         buffer32 and buffer64.
12117         * crypt/sha256.c (__sha256_finish_ctx): Use buffer32 or buffer64 for
12118         writes instead of casting of buffer.
12119         * crypt/md5.h (struct md5_ctx): Move buffer into union and add
12120         buffer32.
12121         * crypt/md5.c (md5_finish_ctx): Use buffer32 for writes instead of
12122         casting of buffer.
12123
12124 2011-07-19  Andreas Schwab  <schwab@redhat.com>
12125
12126         * string/strxfrm_l.c (STRXFRM): Fix alloca accounting.
12127
12128 2011-07-19  Ulrich Drepper  <drepper@gmail.com>
12129
12130         * nscd/nscd.c (termination_handler): Don't do anything for a database
12131         if it has not yet been initialized.
12132
12133 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
12134
12135         * sysdeps/unix/sysv/linux/bits/sched.h (__CPU_EQUAL_S): Fix a typo.
12136
12137 2011-07-15  Marek Polacek  <mpolacek@redhat.com>
12138
12139         * bits/sched.h (__CPU_EQUAL_S): Fix a typo.
12140
12141 2011-07-18  Ulrich Drepper  <drepper@gmail.com>
12142
12143         * po/nl.po: Update from translation team.
12144         * po/sv.po: Likewise.
12145
12146 2011-07-16  Roland McGrath  <roland@hack.frob.com>
12147
12148         * sysdeps/i386/Makefile: Never use -mpreferred-stack-boundary=2,
12149         now disallowed by GCC.
12150
12151         * configure.in (use-default-link): Default to yes if a test -shared
12152         link meets our qualifications.
12153         * configure: Regenerated.
12154
12155         * config.make.in (output-format): New variable.
12156         * configure.in: Check for ld --print-output-format support.
12157         * configure: Regenerated.
12158         * Makerules ($(common-objpfx)format.lds)
12159         [$(output-format) != unknown]: Just use $(output-format),
12160         instead of the linker-script munging.
12161
12162 2011-07-14  Roland McGrath  <roland@hack.frob.com>
12163
12164         * Makefile ($(common-objpfx)linkobj/libc.so): Use $(shlib-lds) instead
12165         of $(common-objpfx)shlib.lds.
12166         * elf/Makefile ($(objpfx)sotruss-lib.so): Likewise.
12167
12168         * sysdeps/i386/i686/multiarch/strstr-c.c (libc_hidden_builtin_def):
12169         Conditionalize redefinition on [SHARED && DO_VERSIONING && !NO_HIDDEN].
12170
12171         * configure.in (-z relro check): Adjust test code to add a large
12172         writable data section after it.
12173         * configure: Regenerated.
12174
12175 2011-07-11  Roland McGrath  <roland@hack.frob.com>
12176
12177         * configure.in (-z relro check): Fix test code to make the variable
12178         truly const.
12179         * configure: Regenerated.
12180
12181 2011-07-11  Ulrich Drepper  <drepper@gmail.com>
12182
12183         * nscd/nscd.h (struct traced_file): Define.
12184         (struct database_dyn): Remove inotify_descr, reset_res, and filename
12185         elements.  Add traced_files.
12186         (inotify_fd): Declare.
12187         (register_traced_file): Declare.
12188         * nscd/connections.c (dbs): Remove reset_res and filename initializers.
12189         (inotify_fd): Export.
12190         (resolv_conf_descr): Remove.
12191         (nscd_init): Move inotify descriptor creation to main.
12192         Don't register files for notification here.
12193         (register_traced_file): New function.
12194         (invalidate_cache): Don't use reset_res to determine whether to call
12195         res_init, go through the list of registered files.
12196         (main_loop_poll): The inotify descriptors are now stored in the
12197         structures for the traced files.
12198         (main_loop_epoll): Likewise
12199         * nscd/nscd.c (main): Create inotify socket here.  Pass extra argument
12200         to __nss_disable_nscd.
12201         * nscd/cache.c (prune_cache): There is no single inotify descriptor
12202         for a database anymore.  Check the records for all the registered
12203         files instead.
12204         * nss/Makefile (libnss_files-routines): Add files-init.
12205         (libnss_db-routines): Add db-init.
12206         * nss/Versions [libnss_files] (GLIBC_PRIVATE): Add _nss_files_init.
12207         [libnss_db] (GLIBC_PRIVATE): Add _nss_db_init.
12208         * nss/nss_db/db-init.c: New file.
12209         * nss/nss_files/files-init.c: New file.
12210         * nss/nsswitch.c (nss_load_library): New function.  Broken out of
12211         __nss_lookup_function.
12212         (__nss_lookup_function): Call nss_load_library.
12213         (nss_load_all_libraries): New function.
12214         (__nss_disable_nscd): Take parameter with callback function for files
12215         to register.  Set is_nscd.  Load all the DSOs for the NSS modules
12216         used for the cached services.
12217         * nss/nsswitch.h (__nss_disable_nscd): Adjust prototype.
12218         * sysdeps/unix/sysv/linux/Makefile [subdir=nscd]: Pass the various -D
12219         options for features to all the files in nscd.
12220
12221         * nss/nsswitch.c (nss_parse_file): Add missing fclose.
12222
12223 2011-07-10  Roland McGrath  <roland@hack.frob.com>
12224
12225         * csu/elf-init.c (__libc_csu_init): Comment typo.
12226
12227 2011-07-09  Ulrich Drepper  <drepper@gmail.com>
12228
12229         * po/pl.po: Update from translation team.
12230         * po/ja.po: Likewise.
12231         * po/ru.po: Likewise.
12232         * po/ko.po: Likewise.
12233         * po/fr.po: Likewise.
12234
12235 2011-07-09  Roland McGrath  <roland@hack.frob.com>
12236
12237         * configure.in (.ctors/.dtors header and trailer check):
12238         Use an empirical test on a built program.
12239         * configure: Regenerated.
12240
12241         * configure.in (-z relro check): Use an empirical test on a built DSO.
12242         Detect, but do not require, on ia64.
12243         * configure: Regenerated.
12244
12245         * configure.in (READELF): Find it with AC_CHECK_TOOL.
12246         Update tests that use readelf to use $READELF instead.
12247         * configure: Regenerated.
12248
12249 2011-07-08  Ulrich Drepper  <drepper@gmail.com>
12250
12251         * malloc/hooks.c (memalign_check): Avoid using checked_request2size
12252         if the result is not used.
12253
12254 2011-07-05  Andreas Jaeger  <aj@suse.de>
12255
12256         [BZ#9696]
12257         * stdlib/tst-strtod.c: Add testcase.
12258
12259 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
12260
12261         * sysdeps/unix/sysv/linux/pathconf.c (distinguish_extX): New function.
12262         (__statfs_link_max): Use it to distinguish between ext2/3 and ext4.
12263         The latter has a higher limit.  Take additional parameter to pass to
12264         the new function.
12265         (__pathconf): Pass file to __statfs_link_max.
12266         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Pass fd to
12267         __statfs_link_max.
12268         * sysdeps/unix/sysv/linux/pathconf.h: Adjust prototype of
12269         __statfs_link_max.
12270
12271         [BZ #12868]
12272         * sysdeps/unix/sysv/linux/linux_fsinfo.h: Define Lustre constants.
12273         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
12274         Handle Lustre.
12275         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_link_max): Likewise.
12276         (__statfs_filesize_max): Likewise.
12277         Patch mostly by Andreas Dilger <adilger@whamcloud.com>.
12278
12279 2011-07-05  Andreas Jaeger  <aj@suse.de>
12280
12281         * resolv/res_comp.c (dn_skipname): Remove unused variable.
12282
12283 2011-07-06  Marek Polacek  <mpolacek@redhat.com>
12284
12285         * nis/nss_nisplus/nisplus-spwd.c (_nss_nisplus_setspent): Honour the
12286         `status' variable.
12287         * nis/nss_nisplus/nisplus-ethers.c (_nss_nisplus_setetherent):
12288         Likewise.
12289
12290 2011-07-04  H.J. Lu  <hongjiu.lu@intel.com>
12291
12292         * Makefile (strop-tests): Add strncat.
12293         * string/test-strncat.c: New file.
12294
12295 2011-06-30  Marek Polacek  <mpolacek@redhat.com>
12296
12297         * iconvdata/johab.c: Don't inline `johab_sym_hanja_to_ucs' function.
12298
12299 2011-06-21  Andreas Jaeger  <aj@suse.de>
12300
12301         * sysdeps/s390/s390-64/Makefile ($(inst_gconvdir)/gconv-modules):
12302         Copy rule from iconvdata/Makefile.
12303
12304 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
12305
12306         [BZ #12922]
12307         * posix/getopt.c (_getopt_internal_r): When "W;" is in short options
12308         but no long options are defined, just return 'W'.
12309
12310 2011-06-22  Marek Polacek  <mpolacek@redhat.com>
12311
12312         [BZ #9696]
12313         * stdlib/strtod_l.c (round_and_return): Set ERANGE instead of EDOM.
12314
12315 2011-07-06  Ulrich Drepper  <drepper@gmail.com>
12316
12317         * inet/getnetgrent_r.c (internal_getnetgrent_r): Fix check for known
12318         netgroups to read.
12319         (innetgr): Likewise.
12320
12321 2011-07-05  Roland McGrath  <roland@hack.frob.com>
12322
12323         * config.make.in (install_root): Default to $(DESTDIR).
12324
12325 2011-07-05  Ulrich Drepper  <drepper@gmail.com>
12326
12327         * nscd/nscd_getserv_r.c (nscd_getserv_r): Add cast to avoid warning.
12328
12329 2011-07-02  Roland McGrath  <roland@hack.frob.com>
12330
12331         * Makerules ($(common-objpfx)format.lds): Fail if result is empty.
12332
12333         * Makefile ($(common-objpfx)testrun.sh): Generate to work relative to
12334         containing directory rather than embedding absolute directory names.
12335
12336         * scripts/check-local-headers.sh: Rewritten using awk.
12337         Match by word, not by line.  Print error messages for matches.
12338         * Makefile ($(objpfx)check-local-headers.out): Pass AWK in to it.
12339
12340         * Makerules [shlib-lds-flags empty]:
12341         ($(common-objpfx)libc_pic.opts): New target.
12342         ($(common-objpfx)libc_pic.os.clean): New target.
12343         ($(common-objpfx)libc.so): Link it instead of libc_pic.os.
12344
12345         * config.make.in (OBJCOPY): New variable.
12346         * aclocal.m4 (LIBC_PROG_BINUTILS): Substitute OBJCOPY too.
12347         * configure: Regenerated.
12348
12349         * config.make.in (use-default-link): New variable.
12350         * configure.in (use_default_link): Grok --with-default-link to set it.
12351         * configure: Regenerated.
12352         * Makerules [$(elf) = yes] [$(use-default-link) = yes]:
12353         (shlib-lds, shlib-lds-flags): Define to empty.
12354
12355         * Makerules (shlib-lds): New variable.
12356         (shlib-lds-flags): New variable.
12357         (build-shlib, build-moduile, build-module-asneeded): Use it.
12358         ($(common-objpfx)libc.so): Use $(shlib-lds).
12359         ($(extra-modules-build:%=$(objpfx)%.so)): Likewise.
12360         * iconvdata/extra-module.mk ($(objpfx)$(mod).so): Likewise.
12361
12362         * elf/dynamic-link.h (elf_get_dynamic_info): Make asserts accept
12363         DT_FLAGS/DT_FLAGS_1 with zero flags.
12364
12365         * elf/Makefile ($(objpfx)ld.so): Use -defsym=_begin=0 instead of
12366         linker script munging.
12367
12368 2011-07-02  Ulrich Drepper  <drepper@gmail.com>
12369
12370         * crypt/sha512.h (struct sha512_ctx): Add union to access total also
12371         as 128-bit value.
12372         * crypt/sha512.c (sha512_process_block): Perform total addition using
12373         128-bit if possible.
12374         (__sha512_finish_ctx): Likewise.
12375         * crypt/sha256.h (struct sha256_ctx): Add union to access total also
12376         as 64-bit value.
12377         * crypt/sha256.c (SWAP64): Define.
12378         (sha256_process_block): Perform total addition using 64-bit if
12379         possible.
12380         (__sha256_finish_ctx): Likewise.
12381
12382 2011-07-01  Ulrich Drepper  <drepper@gmail.com>
12383
12384         * nscd/pwdcache.c (cache_addpw): Cleanup.  Add branch prediction.
12385         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12386         * nscd/hstcache.c (cache_addhst): Likewise.
12387         * nscd/grpcache.c (cache_addgr): Likewise.
12388         * nscd/aicache.c (addhstaiX): Likewise
12389         * nscd/servicescache.c (cache_addserv): Handle zero negtimeout.
12390
12391 2011-07-01  Thorsten Kukuk  <kukuk@suse.de>
12392
12393         * nscd/pwdcache.c (cache_addpw): Handle zero negtimeout.
12394         * nscd/initgrcache.c (addinitgroupsX): Likewise.
12395         * nscd/hstcache.c (cache_addhst): Likewise.
12396         * nscd/grpcache.c (cache_addgr): Likewise.
12397         * nscd/aicache.c (addhstaiX): Likewise
12398
12399 2011-07-01  Andreas Schwab  <schwab@redhat.com>
12400
12401         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Query NIS
12402         domain only when needed.
12403
12404 2011-06-30  Andreas Schwab  <schwab@redhat.com>
12405
12406         * sysdeps/posix/getaddrinfo.c (gaih_inet): Make sure RES_USE_INET6
12407         is always restored.
12408
12409 2011-06-29  Ulrich Drepper  <drepper@gmail.com>
12410
12411         * nscd/grpcache.c (cache_addgr): Don't write notfound reply if we
12412         are re-adding the entry.
12413         * nscd/servicescache.c (cache_addserv): Likewise.
12414
12415 2011-06-30  Aurelien Jarno  <aurelien@aurel32.net>
12416
12417         * sysdeps/generic/dl-irel.h: fix protection against multiple
12418         inclusions.
12419         * sysdeps/generic/dl-irel.h (elf_ifunc_invoke): New.
12420
12421 2011-06-28  Ulrich Drepper  <drepper@gmail.com>
12422
12423         [BZ #12935]
12424         * malloc/memusage.sh: Fix quoting in message.
12425         * debug/xtrace.sh: Likewise.
12426
12427         * configure.in: Remove support for --experimental-malloc option, make
12428         it the default.
12429         * config.make.in: Likewise.
12430         * malloc/Makefile: Likewise.
12431
12432 2011-06-27  Andreas Schwab  <schwab@redhat.com>
12433
12434         * iconvdata/gb18030.c (BODY for TO_LOOP): Fix encoding of non-BMP
12435         two-byte characters.
12436
12437 2011-06-27  Roland McGrath  <roland@hack.frob.com>
12438
12439         * configure.in (NO_CTORS_DTORS_SECTIONS): Give this check its own
12440         AC_CACHE_CHECK invocation.
12441         * configure: Regenerated.
12442
12443         * elf/soinit.c (__CTOR_LIST__, __DTOR_LIST__): Add used attribute.
12444
12445 2011-06-27  Ulrich Drepper  <drepper@gmail.com>
12446
12447         [BZ #12350]
12448         * nscd/aicache.c (addhstaiX):  Restore only RES_USE_INET6
12449         bit from old_res_options.
12450
12451         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-servicescache.c): Define.
12452
12453         * inet/getnetgrent_r.c (innetgr): Minimal cleanup, use correct return
12454         value type for setfct.
12455
12456 2011-06-23  H.J. Lu  <hongjiu.lu@intel.com>
12457
12458         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
12459         __gettimeofday instead of gettimeofday.
12460
12461 2011-06-26  Ulrich Drepper  <drepper@gmail.com>
12462
12463         * elf/Makefile (all-built-dso): No need to check linkobj/libc.so.
12464
12465 2011-06-24  H.J. Lu  <hongjiu.lu@intel.com>
12466
12467         * sysdeps/i386/i686/multiarch/strcpy-sse2.S (RETURN): Fix a typo.
12468
12469         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: Correct unwind
12470         info.
12471
12472 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
12473
12474         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
12475         strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
12476         strcpy-sse2-unaligned strncpy-sse2-unaligned
12477         stpcpy-sse2-unaligned stpncpy-sse2-unaligned.
12478         * sysdeps/x86_64/multiarch/stpcpy-sse2-unaligned.S: New file.
12479         * sysdeps/x86_64/multiarch/stpcpy-ssse3.S: New file.
12480         * sysdeps/x86_64/multiarch/stpncpy-sse2-unaligned.S: New file.
12481         * sysdeps/x86_64/multiarch/stpncpy-ssse3.S: New file.
12482         * sysdeps/x86_64/multiarch/strcpy-sse2-unaligned.S: New file.
12483         * sysdeps/x86_64/multiarch/strcpy-ssse3.S: New file.
12484         * sysdeps/x86_64/multiarch/strncpy-sse2-unaligned.S: New file.
12485         * sysdeps/x86_64/multiarch/strncpy-ssse3.S: New file.
12486         * sysdeps/x86_64/multiarch/strcpy.S: Remove strcpy with SSSE3.
12487         (STRCPY): Support SSE2 and SSSE3 versions.
12488
12489 2011-06-24  Ulrich Drepper  <drepper@gmail.com>
12490
12491         [BZ #12874]
12492         * sysdeps/unix/sysv/linux/Makefile (CFLAGS-tst-writev.c): Define.
12493         * sysdeps/wordsize-64/tst-writev.c: Work around problem with 2.6.38+
12494         kernels which artificially limit size of requests.
12495
12496 2011-06-22  H.J. Lu  <hongjiu.lu@intel.com>
12497
12498         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
12499         strncpy-c strcpy-ssse3 strncpy-ssse3 stpcpy-ssse3 stpncpy-ssse3
12500         strcpy-sse2 strncpy-sse2 stpcpy-sse2 stpncpy-sse2.
12501         * sysdeps/i386/i686/multiarch/stpcpy-sse2.S: New file.
12502         * sysdeps/i386/i686/multiarch/stpcpy-ssse3.S: New file.
12503         * sysdeps/i386/i686/multiarch/stpncpy-sse2.S: New file.
12504         * sysdeps/i386/i686/multiarch/stpncpy-ssse3.S: New file.
12505         * sysdeps/i386/i686/multiarch/stpncpy.S : New file.
12506         * sysdeps/i386/i686/multiarch/strcpy-sse2.S : New file.
12507         * sysdeps/i386/i686/multiarch/strcpy-ssse3.S: New file.
12508         * sysdeps/i386/i686/multiarch/strcpy.S: New file.
12509         * sysdeps/i386/i686/multiarch/strncpy-c.c: New file.
12510         * sysdeps/i386/i686/multiarch/strncpy-sse2.S: New file.
12511         * sysdeps/i386/i686/multiarch/strncpy-ssse3.S: New file.
12512         * sysdeps/i386/i686/multiarch/strncpy.S: New file.
12513         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12514         Enable unaligned load optimization for Intel Core i3, i5 and i7
12515         processors.
12516         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Unaligned_Load):
12517         Define.
12518         (index_Fast_Unaligned_Load): Define.
12519         (HAS_FAST_UNALIGNED_LOAD): Define.
12520
12521 2011-06-23  Marek Polacek  <mpolacek@redhat.com>
12522
12523         * nss/nss_db/db-open.c: Include <unistd.h> for read declaration.
12524
12525 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
12526
12527         [BZ #12907]
12528         * sysdeps/posix/getaddrinfo.c (getaddrinfo): Avoid calling __check_pf
12529         until it is clear that the information is realy needed.
12530         Patch mostly by David Hanisch <david.hanisch@nsn.com>.
12531
12532 2011-06-22  Andreas Schwab  <schwab@redhat.com>
12533
12534         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix last change.
12535
12536 2011-06-22  Ulrich Drepper  <drepper@gmail.com>
12537
12538         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Use
12539         /sys/devices/system/cpu/online if it is usable.
12540
12541         * sysdeps/unix/sysv/linux/getsysstats.c (__get_nprocs): Rate limit
12542         reading the information from the /proc filesystem to once a second.
12543
12544 2011-06-21  Andreas Jaeger  <aj@suse.de>
12545
12546         * sysdeps/unix/sysv/linux/bits/sigcontext.h: Fix definition of
12547         NULL after inclusion of kernel headers.
12548
12549 2011-06-21  Ulrich Drepper  <drepper@gmail.com>
12550
12551         * nss/nss_db/db-XXX.c (nss_db_setENT): Only set entidx for successful
12552         calls to internal_setent.
12553
12554         [BZ #12885]
12555         * sysdeps/posix/getaddrinfo.c (gaih_inet): When looking up only IPv6
12556         addresses using gethostbyname4_r ignore IPv4 addresses.
12557
12558         * sysdeps/posix/getaddrinfo.c (gaih_inet): After the last change the
12559         branch using gethostbyname2 is only for AF_INET.  Optimize accordingly.
12560
12561         * inet/getnetgrent_r.c: Use DL_CALL_FCT in several places.
12562
12563 2011-06-20  David S. Miller  <davem@davemloft.net>
12564
12565         * sysdeps/sparc/sparc32/dl-plt.h: Protect against multiple
12566         inclusions.
12567         * sysdeps/sparc/sparc64/dl-plt.h: Likewise.
12568
12569         * sysdeps/i386/dl-irel.h (elf_ifunc_invoke): New.
12570         (elf_irel): Use it.
12571         * sysdeps/powerpc/powerpc32/dl-irel.h: Likewise.
12572         * sysdeps/powerpc/powerpc64/dl-irel.h: Likewise.
12573         * sysdeps/sparc/sparc32/dl-irel.h: Likewise.
12574         * sysdeps/sparc/sparc64/dl-irel.h: Likewise.
12575         * sysdeps/x86_64/dl-irel.h: Likewise.
12576
12577         * elf/dl-runtime.c: Use elf_ifunc_invoke.
12578         * elf/dl-sym.c: Likewise.
12579
12580 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
12581
12582         * resolv/res_send.c (__libc_res_nsend): Fix typos in last patch.  We
12583         need to dereference resplen2.
12584
12585 2011-06-14  Andreas Schwab  <schwab@redhat.com>
12586
12587         * sysdeps/unix/sysv/linux/wordsize-64/dl-fxstatat64.c: New file.
12588
12589 2011-06-15  Ulrich Drepper  <drepper@gmail.com>
12590
12591         * Makeconfig: Define vardbdir and inst_vardbdir.
12592         * nss/Makefile: Add rules to install db-Makefile.
12593
12594         * nss/nss_db/db-XXX.c: Cleanup.
12595
12596         * nss/Makefile (libnss_db-dbs): Add db-initgroups.
12597         * nss/Versions [libnss_db]: Add _nss_db_initgroups_dyn for
12598         GLIBC_PRIVATE.
12599         * nss/db-Makefile (groups.db): Emit entries for initgroups lookups.
12600         * nss/makedb.c: Implement -g option to specify that value strings
12601         are generated and should not be added to table iterated over for
12602         get*ent calls.
12603         * nss/nss_db/db-initgroups.c: New file.
12604
12605         * nss/getent.c: Add support for initgroups lookups through getgrouplist
12606         interface.
12607
12608         * grp/initgroups.c (__nss_initgroups_database): Renamed and exported.
12609         (internal_getgrouplist): Adjust to name change.
12610         Update use_initgroups_entry if this is not the first call.
12611         * nss/databases.def: Add initgroups entry.
12612
12613         * nss/makedb.c (compute_tables): Check result of multiple hash table
12614         sizes to minimize maximum chain length.
12615
12616 2011-06-14  Ulrich Drepper  <drepper@gmail.com>
12617
12618         * Versions.def: Add entry for libnss_db.
12619         * shlib-versions: Likewise.
12620         * nss/Makefile: Add rules to build libnss_db.
12621         * nss/Versions: Add libnss_db information.  Organize libnss_files
12622         entries better.
12623         * nss/db-Makefile: Add gshadow support.  Change rules for the new
12624         makedb progra.  Some minor improvements to generate smaller files.
12625         * nss/nss_db/nss_db.h: Move NSS database header data structures to
12626         here from...
12627         * nss/makedb.c: ...here.
12628         Improve database format to be smaller and require less memory at
12629         runtime.
12630         * nss/nss_db/db-XXX.x: Adjust for new database format.  Don't use
12631         db anymore.
12632         * nss/nss_db/db-netgrp.c: Likewise.
12633         * nss/nss_db/db-open.c: Likewise.
12634         * nss/nss_files/flies-XXX.x: Adjust comments.
12635         * nss/nss_files/files-ethers.c: Adjust for new DB_LOOKUP definition.
12636         * nss/nss_files/files-grp.c: Likewise.
12637         * nss/nss_files/files-hosts.c: Likewise.
12638         * nss/nss_files/files-network.c: Likewise.
12639         * nss/nss_files/files-proto.c: Likewise.
12640         * nss/nss_files/files-pwd.c: Likewise.
12641         * nss/nss_files/files-rpc.c: Likewise.
12642         * nss/nss_files/files-service.c: Likewise.
12643         * nss/nss_files/files-sgrp.c: Likewise.
12644         * nss/nss_files/files-spwd.c: Likewise.
12645         * nss/nss_db/db-alias.c: Removed.
12646         * nss/nss_db/dummy-db.h: Removed.
12647
12648 2011-06-02  Ulrich Drepper  <drepper@gmail.com>
12649
12650         * nss/makedb.c: Rewritten to not use database library.
12651         * nss/Makefile: Update to build new makedb program.
12652
12653 2011-06-14  Andreas Jaeger  <aj@suse.de>
12654
12655         * sysdeps/unix/sysv/linux/check_native.c: Include <string.h> for
12656         memset declaration.
12657
12658 2011-06-10  Andreas Schwab  <schwab@redhat.com>
12659
12660         * sysdeps/posix/getaddrinfo.c (gaih_inet): Fix logic allocating
12661         tmpbuf.
12662
12663 2011-06-10  Roland McGrath  <roland@hack.frob.com>
12664
12665         * Makerules (shlib.lds): Fail if the linker script comes out empty.
12666         * elf/Makefile ($(objpfx)ld.so): Likewise.
12667
12668         * Makefile ($(common-objpfx)linkobj/libc.so): Break long lines with \.
12669         Don't list ld.so twice in dependencies.
12670
12671         * posix/bug-regex31.c: Include <stdlib.h>.
12672
12673         * nscd/hstcache.c (cache_addhst): Remove unused variable.
12674
12675         * nis/nss_compat/compat-spwd.c
12676         (getspent_next_nss_netgr): Remove unused variable.
12677         * nis/nss_compat/compat-pwd.c (getpwent_next_nss_netgr): Likewise.
12678
12679         * nis/nis_print_group_entry.c (nis_print_group_entry): Fix "Implicit
12680         nonmembers" output to use the right array.
12681
12682         * resolv/nss_dns/dns-network.c (getanswer_r): Remove unused variable.
12683
12684         * elf/dl-open.c (_dl_open): Quash warnings when DL_NNS==1.
12685
12686         * locale/programs/ld-ctype.c (ctype_read): Remove unused variable.
12687         * locale/programs/ld-collate.c (add_to_tablewc): Likewise.
12688         * catgets/gencat.c (read_input_file): Likewise.
12689         * locale/programs/locarchive.c (enlarge_archive): Likewise.
12690
12691         * sunrpc/clnt_udp.c (__libc_clntudp_bufcreate): Move DONTBLOCK
12692         variable definition inside #if's controlling its use.
12693
12694         * inet/getnetgrent_r.c (innetgr): Remove unused variable.
12695
12696         * resolv/res_hconf.c (_res_hconf_reorder_addrs): Fix errno restoration.
12697
12698         * misc/syslog.c (__vsyslog_chk): Remove unused variable.
12699
12700         * io/fts.c (fts_build): Use if (0 && ...) rather than #if 0 for
12701         unreachable code.
12702
12703         * stdio-common/printf_fp.c (___printf_fp): Remove unused variable.
12704
12705         * configure.in (nss-crypt check): Use AC_LANG_PROGRAM.
12706         * configure: Regenerated.
12707
12708         * Makerules: Revert last change.
12709         * elf/Makefile: Likewise.
12710
12711 2011-06-09  Roland McGrath  <roland@hack.frob.com>
12712
12713         * Makerules ($(common-objpfx)libc_pic.os): Use -Wl, before -r.
12714         * elf/Makefile ($(objpfx)librtld.os): Likewise.
12715         (reloc-link): Likewise.
12716
12717 2011-06-09  Ulrich Drepper  <drepper@gmail.com>
12718
12719         * elf/Makefile: Add rules to build pldd.
12720         * elf/pldd.c: New file.
12721         * elf/pldd-xx.c: New file.
12722
12723 2011-06-07  Ulrich Drepper  <drepper@gmail.com>
12724
12725         * version.h: Update for 2.15 development version.
12726
12727 2011-06-07  David S. Miller  <davem@davemloft.net>
12728
12729         * sysdeps/sparc/sparc32/dl-irel.h (elf_irela): Pass dl_hwcap to
12730         ifuncs.
12731         * sysdeps/sparc/sparc32/dl-machine.h (elf_machine_rela,
12732         elf_machine_lazy_rel): Likewise.
12733         * sysdeps/sparc/sparc64/dl-irel.h (elf_irela): Likewise.
12734         * sysdeps/sparc/sparc64/dl-machine.h (elf_machine_rela,
12735         elf_machine_lazy_rel): Likewise.
12736         * sysdeps/sparc/sparc64/multiarch/memcpy.S (memcpy): Fetch
12737         dl_hwcap via passed in argument.
12738         * sysdeps/sparc/sparc64/multiarch/memset.S (memset, bzero):
12739         Likewise.
12740
12741 2011-06-06  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
12742
12743         * stdlib/longlong.h: Update from GCC.  Fix smul_ppmm for S/390.
12744
12745 2011-06-06  Roland McGrath  <roland@hack.frob.com>
12746
12747         [BZ #12849]
12748         * manual/fdl-1.1.texi: New file, verbatim from:
12749         http://www.gnu.org/licenses/old-licenses/fdl-1.1.texi
12750         * manual/lgpl-2.1.texi: New file, verbatim from:
12751         http://www.gnu.org/licenses/old-licenses/lgpl-2.1.texi
12752         * manual/Makefile (licenses): New variable, list those new file names.
12753         (texis): Use it.
12754         (chapters.% top-menu.%): Include $(licenses) with $(appendices).
12755
12756         * manual/fdl.texi: File removed.
12757         * manual/lesser.texi: File removed.
12758         * manual/libc.texinfo (Copying, Documentation License):
12759         Use new @include file names, put @appendix directive before @include.
12760
12761 2011-06-04  Jakub Jelinek  <jakub@redhat.com>
12762
12763         [BZ #12841]
12764         * rt/bits/mqueue2.h (__mq_open_2): Add __THROW.
12765         (__mq_open_alias): Use __REDIRECT_NTH instead of __REDIRECT.
12766         (mq_open): Add __NTH.
12767
12768 2011-06-02  H.J. Lu  <hongjiu.lu@intel.com>
12769
12770         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
12771         Assume Intel Core i3/i5/i7 processor if AVX is available.
12772
12773 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
12774
12775         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard): Fix
12776         typo.
12777
12778 2011-05-31  Andreas Schwab  <schwab@redhat.com>
12779
12780         * nscd/nscd_getserv_r.c (nscd_getserv_r): Don't free non-malloced
12781         memory.  Use alloca_account.  Fix memory leak when retrying.
12782
12783 2011-05-31  Ulrich Drepper  <drepper@gmail.com>
12784
12785         * version.h (RELEASE): Bump for 2.14 release.
12786         * include/features.h (__GLIBC_MINOR__): Bump to 14.
12787
12788         * config.make.in (RANLIB): Remove entry.
12789
12790 2011-05-30  Ulrich Drepper  <drepper@gmail.com>
12791
12792         * po/Makefile (po-sed-cmd): Add ksh to extensions.
12793         (libc.pot): Work around missing support for .ksh extension in xgettext.
12794
12795         [BZ #12684]
12796         * resolv/res_send.c (__libc_res_nsend): Only go to the next name server
12797         if both request failed.
12798         (send_dg): In case of server errors clear resplen or *resplen2.
12799
12800         [BZ #12454]
12801         * elf/dl-deps.c (_dl_map_object_deps): Run initializer sorting only
12802         when there are multiple maps.
12803         * elf/dl-fini.c (_dl_sort_fini): Check for list of one.
12804         (_dl_fini): Remove test here.
12805
12806         * elf/rtld.c (dl_main): Don't allow the loader to load itself.
12807
12808 2011-05-29  Ulrich Drepper  <drepper@gmail.com>
12809
12810         [BZ #12350]
12811         * sysdeps/posix/getaddrinfo.c (gethosts): Restore only RES_USE_IENT6
12812         bit from old_res_options.
12813         (gaih_inet): Likewise.
12814
12815         [BZ #11099]
12816         * shadow/sgetspent_r.c (LINE_PARSER): Interpret numeric field values
12817         as signed.
12818
12819         * resolv/res_init.c (res_setoptions): Make the code more compact.
12820
12821         [BZ #11558]
12822         * resolv/res_init.c (res_setoptions): Recognize use-vc option and
12823         set RES_USEVC.
12824
12825         [BZ #11634]
12826         * elf/Makefile (tests): Don't add tst-audit[67] without working -mavx.
12827
12828         * malloc/malloc.h: Mark malloc hook variables as deprecated.
12829
12830         [BZ #11781]
12831         * malloc/malloc.h: Declare malloc hook variables as volatile.
12832
12833         * locale/programs/locarchive.c (add_locale_to_archive): Fix typo
12834         in last patch.
12835
12836         [BZ #11799]
12837         * sysdeps/unix/sysv/linux/bits/siginfo.h (SI_USER): Don't mention
12838         raise in the comment.
12839         * sysdeps/unix/sysv/linux/s390/bits/siginfo.h: Likewise.
12840         * sysdeps/unix/sysv/linux/sparc/bits/siginfo.h: Likewise.
12841         * sysdeps/unix/sysv/linux/ia64/bits/siginfo.h: Likewise.
12842
12843 2011-05-28  Ulrich Drepper  <drepper@gmail.com>
12844
12845         [BZ #12811]
12846         * posix/regex_internal.c (build_wcs_buffer): Don't signal we have to
12847         grow the buffers more if it already has to be sufficient.
12848         (build_wcs_upper_buffer): Likewise.
12849         * posix/regexec.c (check_matching): Likewise.
12850         (clean_state_log_if_needed): Likewise.
12851         (extend_buffers): Don't enlarge buffers beyond size of the input
12852         buffer.
12853         Patches mostly by Emil Wojak <emil@wojak.eu>.
12854         * posix/bug-regex32.c: New file.
12855         * posix/Makefile (tests): Add bug-regex32.
12856
12857         * locale/findlocale.c (_nl_find_locale): Return right away if
12858         _nl_explode_name failed.
12859         * locale/programs/locarchive.c (add_locale_to_archive): Likewise.
12860
12861         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_sendmmsg): Define.
12862
12863         * debug/xtrace.sh: Unify messages.
12864         * malloc/memusage.sh: Likewise.
12865
12866         [BZ #12813]
12867         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_time): Retrieve
12868         time symbol from vDSO.  Substitute with vsyscall if not available.
12869         * sysdeps/unix/sysv/linux/x86_64/time.S [SHARED]: Use
12870         __vdso_time.
12871
12872         * sysdeps/unix/sysv/linux/internal_sendmmsg.S: New file.
12873         * sysdeps/unix/sysv/linux/sendmmsg.c: New file.
12874         * sysdeps/unix/sysv/linux/Makefile [subdir=socket] (sysdep_routines):
12875         Add sendmmsg and internal_sendmmsg.
12876         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add sendmmsg.
12877         * sysdeps/unix/sysv/linux/bits/socket.h: Declare sendmmsg.
12878         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_SENDMMSG.
12879
12880         * sysdeps/unix/sysv/linux/syscalls.list: Add setns entry.
12881         * sysdeps/unix/sysv/linux/bits/sched.h: Declare setns.
12882         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14]: Add setns.
12883
12884 2011-05-27  Ulrich Drepper  <drepper@gmail.com>
12885
12886         [BZ #12813]
12887         * sysdeps/unix/sysv/linux/x86_64/init-first.c (__vdso_getcpu):
12888         Retrieve getcpu symbol from vDSO.  Substitute with vsyscall if not
12889         available.
12890         * sysdeps/unix/sysv/linux/x86_64/sched_getcpu.S [SHARED]: Use
12891         __vdso_getcpu.
12892
12893         [BZ #12814]
12894         * iconvdata/Makefile (tests): Add bug-iconv9.
12895         * iconvdata/bug-iconv9.c: New file.
12896
12897 2011-05-27  Andreas Schwab  <schwab@redhat.com>
12898
12899         [BZ #12814]
12900         * iconvdata/iso-2022-jp.c (BODY): Fix invalid variable shadowing.
12901
12902 2011-05-25  Jakub Jelinek  <jakub@redhat.com>
12903
12904         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
12905         (struct user_regs_struct): Change intcs field back to cs.
12906
12907 2011-05-25  Ulrich Drepper  <drepper@gmail.com>
12908
12909         * po/ja.po: Update from translation team.
12910
12911 2011-05-23  Ulrich Drepper  <drepper@gmail.com>
12912
12913         [BZ #12795]
12914         * sysdeps/unix/sysv/linux/bits/resource.h (RLIMIT_RTTIME): Define.
12915         * sysdeps/unix/sysv/linux/sparc/bits/resource.h: Likewise.
12916
12917 2011-05-20  Andreas Schwab  <schwab@redhat.com>
12918
12919         * stdlib/longlong.h: Update from GCC.
12920
12921 2011-05-23  Andreas Schwab  <schwab@redhat.com>
12922
12923         * sysdeps/unix/sysv/linux/ia64/sysconf.c (HAS_CPUCLOCK): Add
12924         parameter name.
12925         * sysdeps/unix/sysv/linux/sysconf.c (has_cpuclock, HAS_CPUCLOCK):
12926         Add parameter name.
12927         (__sysconf): Pass it down.
12928
12929 2011-05-22  Ulrich Drepper  <drepper@gmail.com>
12930
12931         [BZ #12671]
12932         * nis/nss_nis/nis-alias.c (_nss_nis_getaliasbyname_r): Use malloc in
12933         some situations.
12934         * nscd/nscd_getserv_r.c (nscd_getserv_r): Likewise.
12935         * posix/glob.c (glob_in_dir): Take additional parameter alloca_used.
12936         add in in __libc_use_alloca calls.  Adjust callers.
12937         (glob): Use malloc in some situations.
12938
12939         * elf/dl-runtime.c (_dl_profile_fixup): Also store LA_SYMB_NOPLTENTER
12940         and LA_SYMB_NOPLTEXIT in flags which are passed to pltenter and
12941         pltexit.
12942
12943 2011-05-21  Ulrich Drepper  <drepper@gmail.com>
12944
12945         * sysdeps/unix/sysv/linux/bits/time.h: Define CLOCK_REALTIME_ALARM
12946         and CLOCK_BOOTTIME_ALARM.
12947
12948         [BZ #12782]
12949         * string/xpg-strerror.c (__xpg_strerror_r): Fill buffer even if error
12950         is returned.
12951
12952         * string/_strerror.c (__strerror_r): Print negative errors as signed
12953         numbers.
12954
12955         [BZ #12777]
12956         * iconvdata/cp1258.c (comp_table_data): Remove entry 0x00A5 0xEC.
12957         (decomp_table): Change U0385 entry to emit 0xA5 0xEC.
12958         * iconvdata/CP1258.irreversible: Adjust entry 0xA8EC.
12959
12960         * configure.in: Fix typo in redirection and correct removal of test
12961         files in two cases.
12962
12963         [BZ #12788]
12964         * locale/setlocale.c (new_composite_name): Fix test to check for
12965         identical name of all categories.
12966
12967         [BZ #12792]
12968         * libio/filedoalloc.c (local_isatty): New function.
12969         (_IO_file_doallocate): Use local_isatty.
12970         * stdio-common/perror.c (perror): In case a new stream is used
12971         forward the stream error.
12972         * stdio-common/vfprintf.c (ARGCHECK): For read-only streams also set
12973         error flag.
12974
12975 2011-05-20  Ulrich Drepper  <drepper@gmail.com>
12976
12977         [BZ #11869]
12978         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't unconditionally use
12979         alloca.
12980         * include/alloca.h (extend_alloca_account): Define.
12981
12982         [BZ #11857]
12983         * posix/regex.h: Fix comments with documentation of user-accessible
12984         fields after compilation and describe correct free'ing of pattern
12985         after re_compile_pattern.
12986         Patch by Reuben Thomas <rrt@sc3d.org>.
12987
12988 2011-05-18  Ryan S. Arnold  <rsa@us.ibm.com>
12989
12990         * sysdeps/powerpc/powerpc64/Makefile (no-special-regs): Add -mno-vsx
12991         and -mno-altivec to prevent the compiler from using Altivec and/or
12992         VSX instructions when the corresponding registers are not available.
12993
12994 2011-05-19  Andreas Schwab  <schwab@redhat.com>
12995
12996         * grp/compat-initgroups.c (__libc_use_alloca): Don't define.
12997
12998 2011-05-19  Ulrich Drepper  <drepper@gmail.com>
12999
13000         * libio/freopen.c (freopen): Use __dup2, not dup2.
13001         * libio/freopen64.c (freopen64): Likewise.
13002
13003 2011-05-17  H.J. Lu  <hongjiu.lu@intel.com>
13004
13005         [BZ #12775]
13006         * sysdeps/x86_64/fpu/e_powl.S: Fix a typo.
13007         * math/Makefile (tests): Add test-powl.
13008         (CFLAGS-test-powl.c): Define.
13009         * math/test-powl.c: New file.
13010
13011 2011-05-16  H.J. Lu  <hongjiu.lu@intel.com>
13012
13013         * fileops.c (_IO_new_file_fopen): Get fd from _IO_fileno.
13014
13015 2011-05-17  Ulrich Drepper  <drepper@gmail.com>
13016
13017         [BZ #11837]
13018         * iconvdata/gb18030.c: Update to GB18020-2005.
13019
13020 2011-05-16  Ulrich Drepper  <drepper@gmail.com>
13021
13022         * posix/regex.h (RE_SYNTAX_AWK, RE_SYNTAX_GNU_AWK,
13023         RE_SYNTAX_POSIX_AWK): Update to match recent development.
13024         Patch by Aharon Robbins <arnold@skeeve.com>.
13025
13026         [BZ #11892]
13027         * stdlib/putenv.c (putenv): Don't always create copy of the variable
13028         on the stack.
13029
13030         [BZ #11895]
13031         * misc/pselect.c (__pselect): Handle timeout value errors hidden
13032         through underflows.
13033
13034         [BZ #12766]
13035         * misc/error.c (error_at_line): Ensure file_name and old_file_name
13036         point to strings before performing equality test for error_one_per_line
13037         mode.
13038
13039         [BZ #11697]
13040         * login/programs/pt_chown.c (do_pt_chown): Always call chown.
13041
13042         [BZ #11820]
13043         * sysdeps/unix/sysv/linux/x86_64/sys/user.h
13044         (struct user_fpregs_struct): Avoid __uint*_t types.
13045
13046         [BZ #6420]
13047         * malloc/mtrace.c (tr_where): Add additional parameter to point to
13048         symbol info.  Use it instead of calling _dl_addr locally.
13049         (lock_and_info): New function.
13050         (tr_freehook): Call lock_and_info and pass symbol info as additional
13051         parameter to tr_where.
13052         (tr_mallochook): Likewise.
13053         (tr_reallochook): Likewise.
13054         (tr_memalignhook): Likewise.
13055
13056         * malloc/mtrace.c: Remove support for USE_MTRACE_FILE.  It is not
13057         used and couldn't be at all thread-safe.
13058
13059 2011-05-15  Ulrich Drepper  <drepper@gmail.com>
13060
13061         * libio/freopen.c (freopen): Don't close old file descriptor
13062         before the new one is opened.  Instead dup the new file descriptor
13063         to the old one after the new stream is created.
13064         * libio/freopen64.c (freopen64): Likewise.
13065         * libio/libio.h: Define _IO_FLAGS2_NOCLOSE and _IO_FLAGS2_CLOEXEC.
13066         * libio/fileops.c (_IO_new_file_close_it): Handle new
13067         _IO_FLAGS2_NOCLOSE flag.
13068         (_IO_new_file_fopen): Set _IO_FLAGS2_CLOEXEC for "e" mode.
13069         If _IO_file_open didn't set FD_CLOEXEC do it after the call.
13070         * libio/oldfileops.c (_IO_old_file_close_it): Handle new
13071         _IO_FLAGS2_NOCLOSE flag.
13072         * include/unistd.h: Add hidden_proto for dup3.
13073         Define __have_dup3.
13074         * io/dup3.c: Define hidden symbol.
13075         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_DUP3.
13076
13077         [BZ #7101]
13078         * posix/getopt.c (_getopt_internal_r): List all ambigious possibilities
13079         when an incomplete long option is used.
13080         * posix/tst-getopt_long1.c: New file.
13081         * posix/Makefile (tests): Add tst-getopt_long1.
13082
13083         [BZ #10138]
13084         * scripts/config.guess: Update from autoconf-2.68.
13085         * scripts/config.sub: Likewise.
13086
13087         [BZ #10157]
13088         * sysdeps/unix/sysv/linux/sysconf.c (__sysconf): Split out CPUTIME
13089         tests into ...
13090         (has_cpuclock): ...this.  New function.
13091         * sysdeps/unix/sysv/linux/ia64/sysconf.c: Just define HAS_CPUCLOCK
13092         macro here based on has_cpuclock code.
13093
13094         [BZ #10149]
13095         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
13096         First byte (not low byte) is now always NUL.
13097         * sysdeps/generic/dl-osinfo.h (_dl_setup_stack_chk_guard): Likewise.
13098
13099         * sysdeps/unix/sysv/linux/dl-osinfo.h (_dl_setup_stack_chk_guard):
13100         Use non-cancelable interfaces.
13101
13102         [BZ #9809]
13103         * locale/iso-639.def: Add entry for Sorani.
13104
13105         [BZ #11901]
13106         * include/stdlib.h: Move include protection to the right place.
13107         Define abort_msg_s.  Declare __abort_msg with it.
13108         * stdlib/abort.c (__abort_msg): Adjust type.
13109         * assert/assert.c (__assert_fail_base): New function.  Majority
13110         of code from __assert_fail.  Allocate memory for __abort_msg with
13111         mmap.
13112         (__assert_fail): Now call __assert_fail_base.
13113         * assert/assert-perr.c: Remove bulk of implementation.  Use
13114         __assert_fail_base.
13115         * include/assert.hL Declare __assert_fail_base.
13116         * sysdeps/posix/libc_fatal.c: Allocate memory for __abort_msg with
13117         mmap.
13118         * sysdeps/unix/sysv/linux/libc_fatal.c: Likewise.
13119
13120 2011-05-14  Ulrich Drepper  <drepper@gmail.com>
13121
13122         [BZ #11952]
13123         [BZ #12453]
13124         * elf/dl-open.c (dl_open_worker): Delay calls to _dl_update_slotinfo
13125         until all modules are registered in the DTV.
13126         * elf/Makefile: Add rules to build and run tst-tls19.
13127         * elf/tst-tls19.c: New file.
13128         * elf/tst-tls19mod1.c: New file.
13129         * elf/tst-tls19mod2.c: New file.
13130         * elf/tst-tls19mod3.c: New file.
13131         Patch mostly by Martin von Gagern <Martin.vGagern@gmx.net>.
13132
13133         [BZ #12083]
13134         * sysdeps/pthread/aio_misc.c (__aio_init): Compute optim.aio_num
13135         correctly.
13136
13137         [BZ #12601]
13138         * iconvdata/cp932.c (BODY to UCS4): Fix incrementing inptr in case of
13139         two-byte sequence errors.
13140         * iconvdata/Makefile (tests): Add bug-iconv8.
13141         * iconvdata/bug-iconv8.c: New file.
13142
13143         [BZ #12626]
13144         * sysdeps/generic/elf/backtracesymsfd.c (__backtrace_symbols_fd): Move
13145         buf2 definition.
13146
13147         * libio/fileops.c (_IO_new_file_close_it): Initialize write_status.
13148
13149         [BZ #12432]
13150         * sysdeps/ia64/backtrace.c (struct trace_reg): Add cfa element.
13151         (dummy_getcfa): New function.
13152         (init): Get _Unwind_GetCFA address, use dummy if not found.
13153         (backtrace_helper): In recursion check, also check whether CFA changes.
13154         (__backtrace): Completely initialize arg.
13155
13156         * iconv/loop.c (SINGLE) [STORE_REST]: Add input bytes to bytebuf before
13157         storing incomplete byte sequence in state object.  Avoid testing for
13158         guaranteed too small input if we know there is enough data available.
13159
13160 2011-05-11  Andreas Schwab  <schwab@redhat.com>
13161
13162         * Makeconfig (+link-pie): Indent.
13163         * Rules (binaries-pie): Define if $(have-fpie) and
13164         $(build-shared).
13165         (binaries-shared): Also filter out $(binaries-pie).
13166         ($(addprefix $(objpfx),$(binaries-pie))): New rule.
13167         * nscd/Makefile (others-pie): Add nscd.
13168         (LDFLAGS-nscd): Set this instead of relro-LDFLAGS.
13169         ($(objpfx)nscd): Remove command override.
13170         * login/Makefile (others-pie): Add pt_chown.
13171         ($(objpfx)pt_chown): Remove command override.
13172         * elf/Makefile: Add PIE tests to tests and tests-pie variables and
13173         remove command overrides.
13174
13175 2011-05-13  Ulrich Drepper  <drepper@gmail.com>
13176
13177         * libio/tst_putwc.c: Fix error messages.
13178
13179         [BZ #12724]
13180         * libio/fileops.c (_IO_new_file_close_it): Always flush when
13181         currently writing and seek to current position when not.
13182         * libio/Makefile (tests): Add bug-fclose1.
13183         * libio/bug-fclose1.c: New file.
13184
13185 2011-05-12  Ulrich Drepper  <drepper@gmail.com>
13186
13187         [BZ #12511]
13188         * elf/dl-lookup.c (enter): Don't test for copy relocation here and
13189         don't set DF_1_NODELETE here.
13190         (do_lookup_x): When entering new entry test for copy relocation
13191         and if necessary set DF_1_NODELETE flag.
13192         * elf/tst-unique4.cc: New file.
13193         * elf/tst-unique4.h: New file.
13194         * elf/tst-unique4lib.cc: New file.
13195         * elf/Makefile: Add rules to build and run tst-unique4.
13196         Patch by Piotr Bury <pbury@goahead.com>.
13197
13198 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
13199
13200         [BZ #12052]
13201         * sysdeps/posix/spawni.c (__spawni): Fix sched_setscheduler call.
13202
13203         [BZ #12625]
13204         * misc/mntent_r.c (addmntent): Flush the stream after the output
13205
13206         [BZ #12393]
13207         * elf/dl-load.c (is_trusted_path): Remove unnecessary test.
13208         (is_trusted_path_normalize): Skip initial colon.  Append slash
13209         to empty buffer.  Duplicate is_trusted_path code but allow
13210         constructed patch to be prefix.
13211         (is_dst): Allow $ORIGIN followed by /.
13212         (_dl_dst_substitute): Correct clearing of check_for_trusted.
13213         Correct testing of result of is_trusted_path_normalize
13214         (decompose_rpath): Fix warning.
13215
13216 2011-05-10  Ulrich Drepper  <drepper@gmail.com>
13217
13218         [BZ #11257]
13219         * grp/initgroups.c (internal_getgrouplist): When we found the service
13220         list through the initgroups entry in nsswitch.conf do not always
13221         continue on a successful lookup.  Don't always use the
13222         __nss_group_database value if it is set.
13223         * nss/nsswitch.conf (initgroups): Change action for successful db
13224         lookup to continue for compatibility.
13225
13226 2011-05-09  Ulrich Drepper  <drepper@gmail.com>
13227
13228         [BZ #11532]
13229         * iconvdata/Makefile: Add rules to build CP770, CP771, CP772, CP773,
13230         and CP774 modules.
13231         * iconvdata/gconv-modules: Add entries for CP770, CP771, CP772, CP773,
13232         and CP774 modules.
13233         * iconvdata/tst-tables.sh: Likewise.
13234         * iconvdata/cp770.c: New file.
13235         * iconvdata/cp771.c: New file.
13236         * iconvdata/cp772.c: New file.
13237         * iconvdata/cp773.c: New file.
13238         * iconvdata/cp774.c: New file.
13239         * iconvdata/testdata/CP770: New file.
13240         * iconvdata/testdata/CP770..UTF8: New file.
13241         * iconvdata/testdata/CP771: New file.
13242         * iconvdata/testdata/CP771..UTF8: New file.
13243         * iconvdata/testdata/CP772: New file.
13244         * iconvdata/testdata/CP772..UTF8: New file.
13245         * iconvdata/testdata/CP773: New file.
13246         * iconvdata/testdata/CP773..UTF8: New file.
13247         * iconvdata/testdata/CP774: New file.
13248         * iconvdata/testdata/CP774..UTF8: New file.
13249
13250         * iconvdata/gen-8bit-gap-1.sh: End reading of charmap file at
13251         END CHARMAP line.
13252         * iconvdata/gen-8bit-gap.sh: Likewise.
13253         * iconvdata/gen-8bit.sh: Likewise.
13254
13255         * locale/iso-639.def: Add ary entry.
13256
13257         [BZ #11258]
13258         * locale/C-translit.h.in: Add U20A1 transliteration.
13259
13260         [BZ #12178]
13261         * locale/iso-639.def: Add wae entry.
13262         Patch by Kevin Bortis <bortis@translate-wae.ch>.
13263
13264         [BZ #12545]
13265         * locale/programs/localedef.c (construct_output_path): Use ssize_t
13266         for n.
13267
13268         [BZ #12711]
13269         * locale/C-translit.h.in: Add entry for U20B9.
13270         Patch by pravin.d.s@gmail.com.
13271
13272 2011-05-08  Ulrich Drepper  <drepper@gmail.com>
13273
13274         [BZ #12713]
13275         * sysdeps/unix/sysv/linux/getcwd.c: If getcwd syscall report
13276         ENAMETOOLONG use generic getcwd.
13277         * sysdeps/posix/getcwd.c: Add support to use openat.  Make usable
13278         in rtld.  Use *stat64.
13279         * sysdeps/unix/sysv/linux/Makefile [subdir=elf] (sysdep-rtld-routines):
13280         Add dl-getcwd, dl-openat64, dl-opendir, dl-fxstatat64.
13281         * sysdeps/unix/sysv/linux/dl-getcwd.c: New file.
13282         * sysdeps/unix/sysv/linux/dl-openat64.c: New file.
13283         * sysdeps/unix/sysv/linux/dl-opendir.c: New file.
13284         * sysdeps/unix/sysv/linux/dl-fxstat64.c: New file.
13285         * include/sys/stat.h: Define __fstatat, __lstat64, __fstat64, and
13286         __fstatat64 macros.
13287         * include/dirent.h: Add libc_hidden_proto for rewinddir.
13288         * dirent/rewinddir.c: Add libc_hidden_def.
13289         * sysdeps/mach/hurd/rewinddir.c: Likewise.
13290         * sysdeps/unix/rewinddir.c: Likewise.  Don't do locking outside libc.
13291
13292         * include/dirent.h (__alloc_dir): Add flags parameter.
13293         * sysdeps/unix/fdopendir.c (__fdopendir): Pass flags to __alloc_dir.
13294         * sysdeps/unix/opendir.c (__opendir): Pass 0 in new parameter to
13295         __alloc_dir.
13296         (__alloc_dir): Take new parameter.  Don't call fcntl for invocations
13297         from fdopendir if O_CLOEXEC is already set.
13298
13299 2011-03-15  Alan Modra  <amodra@gmail.com>
13300
13301         * elf/dl-reloc.c (_dl_try_allocate_static_tls <TLS_DTV_AT_TP>): Handle
13302         l_tls_firstbyte_offset non-zero.  Save padding offset in
13303         l_tls_firstbyte_offset for later use.
13304         * elf/dl-close.c (_dl_close_worker <TLS_DTV_AT_TP>): Correct code
13305         freeing static tls block.
13306
13307 2011-03-05  Jonathan Nieder  <jrnieder@gmail.com>
13308
13309         * sysdeps/unix/sysv/linux/sys/param.h: Fix an #ifndef __undef_ARG_MAX
13310         where #ifdef was intended.  The intent is to prevent ARG_MAX from
13311         being defined by the kernel headers.
13312
13313 2011-05-07  Ulrich Drepper  <drepper@gmail.com>
13314
13315         [BZ #12734]
13316         * resolv/resolv.h: Define RES_NOTLDQUERY.
13317         * resolv/res_init.c (res_setoptions): Recognize no_tld_query and
13318         no-tld-query and set RES_NOTLDQUERY.
13319         * resolv/res_debug.c (p_option): Handle RES_NOTLDQUERY.
13320         * resolv/res_query.c (__libc_res_nsearch): Backport changes from
13321         modern BIND to search name as TLD unless forbidden.
13322
13323 2011-05-07  Petr Baudis  <pasky@suse.cz>
13324             Ulrich Drepper  <drepper@gmail.com>
13325
13326         [BZ #12393]
13327         * elf/dl-load.c (fillin_rpath): Move trusted path check...
13328         (is_trusted_path): ...to here.
13329         (is_trusted_path_normalize): Wrapper for /../ and /./ normalization.
13330         (_dl_dst_substitute): Verify expanded $ORIGIN path elements
13331         using is_trusted_path_normalize() in setuid scripts.
13332
13333 2011-05-06  Paul Pluzhnikov  <ppluzhnikov@google.com>
13334
13335         * sysdeps/unix/sysv/linux/sys/sysmacros.h: Add missing
13336         __BEGIN/__END_DECLS.
13337
13338 2011-05-06  Ulrich Drepper  <drepper@gmail.com>
13339
13340         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Return
13341         NSS_STATUS_NOTFOUND if no record was found.
13342
13343 2011-05-05  Andreas Schwab  <schwab@redhat.com>
13344
13345         * sunrpc/Makefile (headers): Add rpc/netdb.h.
13346         (headers-not-in-tirpc): Remove rpc/netdb.h
13347         * resolv/netdb.h: Revert last change.
13348
13349 2011-05-05  Paul Pluzhnikov  <ppluzhnikov@google.com>
13350
13351         * Makeconfig (link-libc-static): Use --{start,end}-group to handle
13352         circular dependency between libgcc.a and libc.a.
13353
13354 2011-05-05  Andreas Schwab  <schwab@redhat.com>
13355
13356         * resolv/netdb.h: Don't include <rpc/netdb.h>.
13357         * nis/Makefile: Don't install rpcsvc/*.
13358         * inet/protocols/timed.h: Include <sys/types.h> and <sys/time.h>
13359         instead of <rpc/types.h>.
13360         (MAXHOSTNAMELEN): Define.
13361
13362 2011-05-03  Andreas Schwab  <schwab@redhat.com>
13363
13364         * elf/ldconfig.c (add_dir): Don't crash on empty path.
13365
13366 2011-04-28  Maciej Babinski  <mbabinski@google.com>
13367
13368         [BZ #12714]
13369         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't bypass
13370         gethostbyname4_r when IPv6 results are possible.
13371
13372 2011-05-02  Ulrich Drepper  <drepper@gmail.com>
13373
13374         [BZ #12723]
13375         * sysdeps/unix/sysv/linux/pathconf.c (__pathconf): Implement
13376         _PC_PIPE_BUF handling.
13377
13378 2011-04-30  Bruno Haible  <bruno@clisp.org>
13379
13380         [BZ #12717]
13381         * conform/data/netdb.h-data (getnameinfo): Make POSIX compliant.
13382         * resolv/netdb.h (getnameinfo): Change type of flags parameter
13383         to 'int'.
13384         * inet/getnameinfo.c (getnameinfo): Likewise.
13385
13386 2011-04-29  Ulrich Drepper  <drepper@gmail.com>
13387
13388         * grp/initgroups.c (internal_getgrouplist): Prefer initgroups setting
13389         to groups setting in database lookup.
13390         * nss/nsswitch.conf: Add initgroups entry.
13391
13392 2011-04-22  Ulrich Drepper  <drepper@gmail.com>
13393
13394         [BZ #12685]
13395         * libio/fileops.c (_IO_new_file_fopen): Scan up to 7 bytes of the
13396         mode string.
13397         Patch by Eric Blake <eblake@redhat.com>.
13398
13399 2011-04-20  H.J. Lu  <hongjiu.lu@intel.com>
13400
13401         * sunrpc/Makefile (need-export-routines): Add svc_run.
13402         (routines): Remove svc_run.
13403         ($(objpfx)thrsvc): Add $(common-objpfx)linkobj/libc.so.
13404         * sunrpc/clnt_perr.c (clnt_perrno): Export.
13405         * sunrpc/svc_run.c (svc_run): Likewise.
13406         * sunrpc/svc_udp.c (svcudp_create): Likewise.
13407
13408 2011-04-21  Ulrich Drepper  <drepper@gmail.com>
13409
13410         * nss/nss_files/files-initgroups.c (_nss_files_initgroups_dyn): Fix
13411         problem in reallocation in last patch.
13412
13413 2011-04-20  Ulrich Drepper  <drepper@gmail.com>
13414
13415         * sunrpc/Makefile: Move inclusion of Rules.
13416
13417 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
13418
13419         * nss/nss_files/files-initgroups.c: New file.
13420         * nss/Makefile (libnss_files-routines): Add files-initgroups.
13421         * nss/Versions (libnss_files) [GLIBC_PRIVATE]: Export
13422         _nss_files_initgroups_dyn.
13423
13424 2011-03-31  Richard Sandiford  <richard.sandiford@linaro.org>
13425
13426         * elf/elf.h (R_ARM_IRELATIVE): Define.
13427
13428 2011-04-19  Ulrich Drepper  <drepper@gmail.com>
13429
13430         * po/ru.po: Update from translation team.
13431
13432 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
13433
13434         * sunrpc/Makefile ($(rpc-compat-routines.os)): Add before-compile to
13435         dependencies.
13436
13437 2011-02-06  Mike Frysinger  <vapier@gentoo.org>
13438
13439         [BZ #12653]
13440         * sysdeps/i386/i686/multiarch/memcpy-ssse3-rep.S: Only protect
13441         MEMCPY_CHK with USE_AS_BCOPY ifdef check.
13442         * sysdeps/i386/i686/multiarch/memcpy-ssse3.S: Likewise.
13443         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: Likewise.
13444         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: Likewise.
13445
13446 2011-03-28  Andreas Schwab  <schwab@linux-m68k.org>
13447
13448         * sysdeps/powerpc/powerpc32/power4/strncmp.S: Don't read past
13449         differing bytes.
13450         * sysdeps/powerpc/powerpc64/power4/strncmp.S: Likewise.
13451         * sysdeps/powerpc/powerpc32/power7/strncmp.S: Likewise.
13452         * sysdeps/powerpc/powerpc64/power7/strncmp.S: Likewise.
13453
13454 2011-04-17  Ulrich Drepper  <drepper@gmail.com>
13455
13456         [BZ #12420]
13457         * sysdeps/unix/sysv/linux/x86_64/getcontext.S: Reload context after
13458         storing it.
13459         * stdlib/bug-getcontext.c: New file.
13460         * stdlib/Makefile: Add rules to build and run bug-getcontext.
13461
13462 2011-04-13  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13463
13464         * sysdeps/s390/s390-64/utf16-utf32-z9.c: Wrap the z9-109
13465         instructions into .machine "z9-109".
13466         * sysdeps/s390/s390-64/utf8-utf16-z9.c: Likewise.
13467         * sysdeps/s390/s390-64/utf8-utf32-z9.c: Likewise.
13468
13469 2011-04-11  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
13470
13471         * sysdeps/s390/s390-32/elf/start.S (_start): Skip extra zeroes
13472         between environment variables and auxiliary vector.
13473
13474 2011-04-16  Ulrich Drepper  <drepper@gmail.com>
13475
13476         * Makefile: Add rules to build linkobj/libc.so.
13477         * include/libc-symbols.h: Define libc_hidden_nolink.
13478         * include/rpc/auth.h: Mark functions which are to be hidden.
13479         * include/rpc/auth_des.h: Likewise.
13480         * include/rpc/auth_unix.h: Likewise.
13481         * include/rpc/clnt.h: Likewise.
13482         * include/rpc/des_crypt.h: Likewise.
13483         * include/rpc/key_prot.h: Likewise.
13484         * include/rpc/pmap_clnt.h: Likewise.
13485         * include/rpc/pmap_prot.h: Likewise.
13486         * include/rpc/pmap_rmt.h: Likewise.
13487         * include/rpc/rpc_msg.h: Likewise.
13488         * include/rpc/svc.h: Likewise.
13489         * include/rpc/svc_auth.h: Likewise.
13490         * include/rpc/xdr.h: Likewise.
13491         * nis/Makefile: Link all DSOs against linkobj/libc.so.
13492         * nss/Makefile: Likewise.
13493         * sunrpc/Makefile: Don't install headers.  Build library with normal
13494         entry points.  Don't build rpcinfo.  Link RPC tests appropriately.
13495         * sunrpc/auth_des.c: Hide exported symbols by default, export some
13496         for the compat linking library.  Remove use of INTDEF/INTUSE.
13497         * sunrpc/auth_none.c: Likewise.
13498         * sunrpc/auth_unix.c: Likewise.
13499         * sunrpc/authdes_prot.c: Likewise.
13500         * sunrpc/authuxprot.c: Likewise.
13501         * sunrpc/clnt_gen.c: Likewise.
13502         * sunrpc/clnt_perr.c: Likewise.
13503         * sunrpc/clnt_raw.c: Likewise.
13504         * sunrpc/clnt_simp.c: Likewise.
13505         * sunrpc/clnt_tcp.c: Likewise.
13506         * sunrpc/clnt_udp.c: Likewise.
13507         * sunrpc/clnt_unix.c: Likewise.
13508         * sunrpc/des_crypt.c: Likewise.
13509         * sunrpc/des_soft.c: Likewise.
13510         * sunrpc/get_myaddr.c: Likewise.
13511         * sunrpc/key_call.c: Likewise.
13512         * sunrpc/key_prot.c: Likewise.
13513         * sunrpc/netname.c: Likewise.
13514         * sunrpc/pm_getmaps.c: Likewise.
13515         * sunrpc/pm_getport.c: Likewise.
13516         * sunrpc/pmap_clnt.c: Likewise.
13517         * sunrpc/pmap_prot.c: Likewise.
13518         * sunrpc/pmap_prot2.c: Likewise.
13519         * sunrpc/pmap_rmt.c: Likewise.
13520         * sunrpc/publickey.c: Likewise.
13521         * sunrpc/rpc_cmsg.c: Likewise.
13522         * sunrpc/rpc_common.c: Likewise.
13523         * sunrpc/rpc_dtable.c: Likewise.
13524         * sunrpc/rpc_prot.c: Likewise.
13525         * sunrpc/rpc_thread.c: Likewise.
13526         * sunrpc/rtime.c: Likewise.
13527         * sunrpc/svc.c: Likewise.
13528         * sunrpc/svc_auth.c: Likewise.
13529         * sunrpc/svc_authux.c: Likewise.
13530         * sunrpc/svc_raw.c: Likewise.
13531         * sunrpc/svc_run.c: Likewise.
13532         * sunrpc/svc_simple.c: Likewise.
13533         * sunrpc/svc_tcp.c: Likewise.
13534         * sunrpc/svc_udp.c: Likewise.
13535         * sunrpc/svc_unix.c: Likewise.
13536         * sunrpc/svcauth_des.c: Likewise.
13537         * sunrpc/xcrypt.c: Likewise.
13538         * sunrpc/xdr.c: Likewise.
13539         * sunrpc/xdr_array.c: Likewise.
13540         * sunrpc/xdr_float.c: Likewise.
13541         * sunrpc/xdr_intXX_t.c: Likewise.
13542         * sunrpc/xdr_mem.c: Likewise.
13543         * sunrpc/xdr_rec.c: Likewise.
13544         * sunrpc/xdr_ref.c: Likewise.
13545         * sunrpc/xdr_sizeof.c: Likewise.
13546         * sunrpc/xdr_stdio.c: Likewise.
13547
13548 2011-04-10  Ulrich Drepper  <drepper@gmail.com>
13549
13550         [BZ #12650]
13551         * sysdeps/i386/dl-tls.h: Define TLS_DTV_UNALLOCATED.
13552         * sysdeps/ia64/dl-tls.h: Likewise.
13553         * sysdeps/powerpc/dl-tls.h: Likewise.
13554         * sysdeps/s390/dl-tls.h: Likewise.
13555         * sysdeps/sh/dl-tls.h: Likewise.
13556         * sysdeps/sparc/dl-tls.h: Likewise.
13557         * sysdeps/x86_64/dl-tls.h: Likewise.
13558         * elf/dl-tls.c: Don't define TLS_DTV_UNALLOCATED here.
13559
13560 2011-03-14  Andreas Schwab  <schwab@redhat.com>
13561
13562         * elf/dl-load.c (_dl_dst_substitute): When skipping the first
13563         rpath element also skip the following colon.
13564         (expand_dynamic_string_token): Add is_path parameter and pass
13565         down to DL_DST_REQUIRED and _dl_dst_substitute.
13566         (decompose_rpath): Call expand_dynamic_string_token with
13567         non-zero is_path.  Ignore empty rpaths.
13568         (_dl_map_object_from_fd): Call expand_dynamic_string_token
13569         with zero is_path.
13570
13571 2011-04-08  Andreas Schwab  <schwab@linux-m68k.org>
13572
13573         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sync_file_range.c:
13574         Make cancelable.
13575
13576 2011-04-09  Ulrich Drepper  <drepper@gmail.com>
13577
13578         [BZ #12655]
13579         * sysdeps/unix/sysv/linux/sys/syscall.h: Fix comment.
13580         Patch by Filipe David Manana <fdmanana@apache.org>.
13581
13582 2011-04-07  Andreas Schwab  <schwab@redhat.com>
13583
13584         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S (CALL_FAIL):
13585         Maintain aligned stack.
13586         (CHECK_RSP): Remove unused macro.
13587
13588 2011-04-03  Ulrich Drepper  <drepper@gmail.com>
13589
13590         * sysdeps/x86_64/cacheinfo.c (intel_02_known): Fix typo in table.
13591         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_02_known): Likewise.
13592
13593 2011-04-02  Ulrich Drepper  <drepper@gmail.com>
13594
13595         * sysdeps/unix/sysv/linux/bits/time.h (CLOCK_BOOTTIME): Define.
13596
13597         * include/features.h: Mention __USE_XOPEN2K8 in comment.
13598
13599 2011-03-26  H.J. Lu  <hongjiu.lu@intel.com>
13600
13601         [BZ #12518]
13602         * sysdeps/x86_64/Versions: Add memcpy to GLIBC_2.14.
13603         * sysdeps/x86_64/memcpy.S: Provide GLIBC_2_14 memcpy.
13604         * sysdeps/x86_64/memmove.c: New file.
13605         * sysdeps/x86_64/multiarch/memcpy.S: Include <shlib-compat.h>.
13606         (memcpy): Renamed to ...
13607         (__new_memcpy): This.
13608         (memcpy): Provide GLIBC_2_14 memcpy.
13609         * sysdeps/x86_64/multiarch/memmove.c: Include <shlib-compat.h>.
13610         (memcpy): Provide GLIBC_2_2_5 memcpy.
13611
13612 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13613
13614         [BZ #12631]
13615         * wcsmbs/wchar.h: Make wcpcpy and wcpncpy visible for __USE_XOPEN2K8.
13616
13617 2011-03-30  Andreas Schwab  <schwab@redhat.com>
13618
13619         * misc/syncfs.c: New file.
13620         * misc/Makefile (routines): Add syncfs.
13621         * posix/unistd.h: Declare syncfs.
13622         * sysdeps/unix/syscalls.list: Add syncfs.
13623
13624 2011-04-01  Andreas Schwab  <schwab@redhat.com>
13625
13626         * sysdeps/unix/sysv/linux/Versions: Rename open_by_handle to
13627         open_by_handle_at.
13628         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
13629         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13630         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13631         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13632         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13633         * sysdeps/unix/sysv/linux/syscalls.list: Likewise.
13634         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13635
13636 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13637
13638         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define O_PATH.
13639         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13640         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Likewise.
13641         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13642         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13643         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13644         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13645
13646         * io/Makefile: Compile fallocate.c, fallocate64.c, and
13647         sync_file_range.c with -fexceptions.
13648         * sysdeps/unix/sysv/linux/fallocate.c: Make cancelable.
13649         * sysdeps/unix/sysv/linux/fallocate64.c: Likewise.
13650         * sysdeps/unix/sysv/linux/i386/fallocate.c: Likewise.
13651         * sysdeps/unix/sysv/linux/i386/fallocate64.c: Likewise.
13652         * sysdeps/unix/sysv/linux/wordsize-64/fallocate.c: Likewise.
13653         * sysdeps/unix/sysv/linux/sync_file_range.c: Likewise.
13654         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Mark
13655         sync_file_range as cancellation point
13656         * sysdeps/unix/sysv/linux/i386/sync_file_range.c: New file.  This is
13657         now a wrapper around __call_sync_file_range with cancellation handling.
13658         * sysdeps/unix/sysv/linux/i386/sync_file_range.S: Renamed to ...
13659         * sysdeps/unix/sysv/linux/i386/call_sync_file_range.S: ...this.  Change
13660         function name to __call_sync_file_range.
13661         * sysdeps/unix/sysv/linux/i386/Makefile [subdir=io] (sysdep_routines):
13662         Add call_sync_file_range.
13663
13664 2011-04-01  Andreas Schwab  <schwab@redhat.com>
13665
13666         * sysdeps/unix/sysv/linux/Makefile (sysdep_headers): Add
13667         bits/timex.h.
13668
13669 2011-04-01  Ulrich Drepper  <drepper@gmail.com>
13670
13671         * iconv/iconv.h: Fix typo in comment.
13672         * io/fcntl.h: Likewise.
13673         * libio/stdio.h: Likewise.
13674         * posix/spawn.h: Likewise.
13675         * posix/unistd.h: Likewise.
13676         * stdlib/stdlib.h: Likewise.
13677         * time/time.h: Likewise.
13678         * wcsmbs/wchar.h: Likewise.
13679
13680         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (name_to_handle_at,
13681         open_by_handle): Add.
13682         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Define struct file_handle
13683         and MAX_HANDLE_SZ.  Declare name_to_handle_at and open_by_handle.
13684         Augment a few comments.
13685         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise.
13686         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
13687         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
13688         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
13689         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
13690         * sysdeps/unix/sysv/linux/syscalls.list: Add name_to_handle_at and
13691         open_by_handle.
13692
13693         * io/fcntl.h (AT_EMPTY_PATH): Define.
13694
13695 2011-03-30  Ulrich Drepper  <drepper@gmail.com>
13696
13697         * sysdeps/unix/sysv/linux/syscalls.list: Add clock_adjtime.
13698         * sysdeps/unix/sysv/linux/bits/time.h: New file.
13699         * sysdeps/unix/sysv/linux/sys/timex.h: Move struct timex definition
13700         to...
13701         * sysdeps/unix/sysv/linux/bits/timex.h: ...here.  New file.
13702         * Versions.def: Add GLIBC_2.14.
13703         * sysdeps/unix/sysv/linux/Versions [GLIBC_2.14] (clock_adjtime):
13704         Export.
13705
13706 2011-03-22  Ulrich Drepper  <drepper@gmail.com>
13707
13708         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word): Increment
13709         round counter.
13710         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
13711
13712 2011-03-20  H.J. Lu  <hongjiu.lu@intel.com>
13713
13714         [BZ #12597]
13715         * string/test-strncmp.c (do_page_test): New function.
13716         (check2): Likewise.
13717         (test_main): Call check2.
13718         * sysdeps/x86_64/multiarch/strcmp.S: Properly cross page boundary.
13719
13720 2011-03-20  Ulrich Drepper  <drepper@gmail.com>
13721
13722         [BZ #12587]
13723         * sysdeps/unix/sysv/linux/i386/sysconf.c (intel_check_word):
13724         Handle cache information in CPU leaf 4.
13725         * sysdeps/x86_64/cacheinfo.c (intel_check_word): Likewise.
13726
13727 2011-03-18  Ulrich Drepper  <drepper@gmail.com>
13728
13729         [BZ #12583]
13730         * posix/fnmatch.c (fnmatch): Check size of pattern in wide
13731         character representation.
13732         Partly based on a patch by Tomas Hoger <thoger@redhat.com>.
13733
13734 2011-03-16  Ryan S. Arnold  <rsa@us.ibm.com>
13735
13736         * sysdeps/powerpc/powerpc32/power6/fpu/s_isnanf.S (isnanf): Fix
13737         END(__isnan) to END(__isnanf) to match function entry point/label
13738         EALIGN(__isnanf,...).
13739
13740 2011-03-10  Jakub Jelinek  <jakub@redhat.com>
13741
13742         * wcsmbs/wchar.h (wmemcmp): Remove __restrict qualifiers.
13743
13744 2011-03-10  Ulrich Drepper  <drepper@gmail.com>
13745
13746         [BZ #12510]
13747         * elf/dl-lookup.c (do_lookup_x): For copy relocations of unique objects
13748         copy from the symbol referenced in the relocation to initialize the
13749         used variable.
13750         Patch by Piotr Bury <pbury@goahead.com>.
13751         * elf/Makefile: Add rules to build and tst-unique3.
13752         * include/bits/dlfcn.h: Remove _dl_mcount_wrapper_check declaration.
13753         * elf/tst-unique3.cc: New file.
13754         * elf/tst-unique3.h: New file.
13755         * elf/tst-unique3lib.cc: New file.
13756         * elf/tst-unique3lib2.cc: New file.
13757
13758         * elf/Makefile: Don't run tst-execstack* tests of SELinux is enabled.
13759
13760 2011-03-10  Mike Frysinger  <vapier@gentoo.org>
13761
13762         * sysdeps/sparc/sparc64/elf/configure.in (libc_cv_sparc64_tls): Add
13763         $LDFLAGS and -nostdlib -nostartfiles to linking step.  Change main
13764         to _start.
13765
13766 2011-03-06  Ulrich Drepper  <drepper@gmail.com>
13767
13768         * elf/dl-load.c (_dl_map_object): If we are looking for the first
13769         to-be-loaded object along a path to loader is ld.so.
13770
13771 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
13772             Ulrich Drepper  <drepper@gmail.com>
13773
13774         * sysdeps/x86_64/memset.S: After aligning destination, code
13775         branches to different locations depending on the value of
13776         misalignment, when multiarch is enabled. Fix this.
13777
13778 2011-03-02  Harsha Jagasia  <harsha.jagasia@amd.com>
13779
13780         * sysdeps/x86_64/cacheinfo.c (init_cacheinfo):
13781         Set _x86_64_preferred_memory_instruction for AMD processsors.
13782         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
13783         Set bit_Prefer_SSE_for_memop for AMD processors.
13784
13785 2011-03-04  Ulrich Drepper  <drepper@gmail.com>
13786
13787         * libio/fmemopen.c (fmemopen): Optimize a bit.
13788
13789 2011-03-03  Andreas Schwab  <schwab@redhat.com>
13790
13791         * libio/fmemopen.c (fmemopen): Don't read past end of buffer.
13792
13793 2011-03-03  Roland McGrath  <roland@redhat.com>
13794
13795         * setjmp/bits/setjmp2.h: Canonicalize comment formatting.
13796
13797 2011-02-28  Aurelien Jarno  <aurelien@aurel32.net>
13798
13799         * sysdeps/sparc/sparc64/multiarch/memset.S(__bzero): Call
13800         __bzero_ultra1 instead of __memset_ultra1.
13801
13802 2011-02-23  Andreas Schwab  <schwab@redhat.com>
13803             Ulrich Drepper  <drepper@gmail.com>
13804
13805         [BZ #12509]
13806         * include/link.h (struct link_map): Add l_orig_initfini.
13807         * elf/dl-load.c (_dl_map_object_from_fd): Free realname before
13808         returning unsuccessfully.
13809         * elf/dl-close.c (_dl_close_worker): If this is the last explicit
13810         close of a file loaded at startup, restore the original l_initfini
13811         list.
13812         * elf/dl-deps.c (_dl_map_object_deps): Don't free old l_initfini
13813         list, store the pointer.
13814         * elf/Makefile ($(objpfx)noload-mem): New rule.
13815         (noload-ENV): Define.
13816         (tests): Add $(objpfx)noload-mem.
13817         * elf/noload.c: Include <memcheck.h>.
13818         (main): Call mtrace.  Close all opened handles.
13819
13820 2011-02-17  Andreas Schwab  <schwab@redhat.com>
13821
13822         [BZ #12454]
13823         * elf/dl-deps.c (_dl_map_object_deps): Signal error early when
13824         dependencies are missing.
13825
13826 2011-02-22  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13827
13828         Fix __if_freereq crash: Unlike the generic version which uses free,
13829         Hurd needs munmap.
13830         * sysdeps/mach/hurd/ifreq.h: New file.
13831
13832 2011-01-27  Petr Baudis  <pasky@suse.cz>
13833             Ulrich Drepper  <drepper@gmail.com>
13834
13835         [BZ 12445]#
13836         * stdio-common/vfprintf.c (vfprintf): Pass correct newlen
13837         to extend_alloca().
13838         * stdio-common/bug23.c: New file.
13839         * stdio-common/Makefile (tests): Add bug23.
13840
13841 2010-09-28  Andreas Schwab  <schwab@redhat.com>
13842             Ulrich Drepper  <drepper@gmail.com>
13843
13844         [BZ #12489]
13845         * elf/rtld.c (dl_main): Move setting of GLRO(dl_init_all_dirs)
13846         before performing relro protection.  At old place add assertion
13847         to make sure nothing changed.
13848
13849 2011-02-17  Nathan Sidwell  <nathan@codesourcery.com>
13850             Glauber de Oliveira Costa  <glommer@gmail.com>
13851
13852         * elf/elf.h: Add new ARM TLS relocs.
13853
13854 2011-02-16  Ryan S. Arnold  <rsa@us.ibm.com>
13855
13856         * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h:
13857         (INTERNAL_VSYSCALL_NCS INTERNAL_SYSCALL_NCS): Remove erroneous (int)
13858         cast from r3.
13859         * sysdeps/wordsize-64/Makefile: New file.  Add tst-writev to
13860         'tests' variable.
13861         * sysdeps/wordsize-64/tst-writev.c: New file.
13862
13863 2011-02-15  Ryan S. Arnold  <rsa@us.ibm.com>
13864
13865         * sysdeps/powerpc/powerpc64/power7/Makefile: New file which adds
13866         -mno-vsx to the CFLAGS-rtld.c variable to avoid using VSX registers and
13867         insns in _dl_start to prevent a TOC reference before relocs are
13868         resolved.
13869
13870 2011-02-15  Ulrich Drepper  <drepper@gmail.com>
13871
13872         [BZ #12469]
13873         * Makeconfig: Remove RANLIB definition.
13874         * Makerules: Don't use RANLIB.
13875         * aclocal.m4: Remove ranlib test.
13876         * configure.in: No need to check for ranlib.
13877         * elf/rtld-Rules: Don't use RANLIB.
13878
13879 2011-02-16  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13880
13881         * sysdeps/mach/i386/sysdep.h: Add _MACH_I386_SYSDEP_H inclusion
13882         protection macro.
13883         * sysdeps/mach/i386/thread_state.h: Add _MACH_I386_THREAD_STATE_H
13884         inclusion protection macro.
13885
13886         * stdio-common/psiginfo.c (psiginfo): Check pinfo->si_signo against
13887         SIGRTMIN and SIGRTMAX and print information in that case only when
13888         SIGRTMIN is defined.
13889
13890 2011-02-11  Jakub Jelinek  <jakub@redhat.com>
13891
13892         * stdio-common/printf-parsemb.c (__parse_one_specmb): Handle
13893         arginfo fn returning -1.
13894
13895         * stdio-common/_i18n_number.h (_i18n_number_rewrite): Ensure decimal
13896         and thousands string is zero terminated.
13897
13898 2011-02-03  Andreas Schwab  <schwab@redhat.com>
13899
13900         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Sync with
13901         sysdeps/unix/sysv/linux/bits/socket.h.
13902
13903 2011-01-30  Samuel Thibault  <samuel.thibault@ens-lyon.org>
13904
13905         * bits/sched.h (__CPU_ZERO, __CPU_SET, __CPU_CLR, __CPU_ISSET)
13906         (__CPU_COUNT): Remove old macros.
13907         (__CPU_ZERO_S, __CPU_SET_S, __CPU_CLR_S, __CPU_ISSET_S)
13908         (__CPU_COUNT, __CPU_EQUAL_S, __CPU_OP_S, __CPU_ALLOC_SIZE)
13909         (__CPU_ALLOC, __CPU_FREE): Add macros.
13910         (__sched_cpualloc, __sched_cpufree): Add declarations.
13911
13912 2011-02-05  Ulrich Drepper  <drepper@gmail.com>
13913
13914         * nscd/nscd-client.h: Define MAX_TIMEOUT_VALUE.
13915         (struct datahead): Reuse 32 bits of the alignment for a TTL field.
13916         * nscd/aicache.c (addhstaiX): Return timeout of added value.
13917         (readdhstai): Return value of addhstaiX call.
13918         * nscd/grpcache.c (cache_addgr): Return timeout of added value.
13919         (addgrbyX): Return value returned by cache_addgr.
13920         (readdgrbyname): Return value returned by addgrbyX.
13921         (readdgrbygid): Likewise.
13922         * nscd/pwdcache.c (cache_addpw): Return timeout of added value.
13923         (addpwbyX): Return value returned by cache_addpw.
13924         (readdpwbyname): Return value returned by addhstbyX.
13925         (readdpwbyuid): Likewise.
13926         * nscd/servicescache.c (cache_addserv): Return timeout of added value.
13927         (addservbyX): Return value returned by cache_addserv.
13928         (readdservbyname): Return value returned by addservbyX:
13929         (readdservbyport): Likewise.
13930         * nscd/hstcache.c (cache_addhst): Return timeout of added value.
13931         (addhstbyX): Return value returned by cache_addhst.
13932         (readdhstbyname): Return value returned by addhstbyX.
13933         (readdhstbyaddr): Likewise.
13934         (readdhstbynamev6): Likewise.
13935         (readdhstbyaddrv6): Likewise.
13936         * nscd/initgrcache.c (addinitgroupsX): Return timeout of added value.
13937         (readdinitgroups): Return value returned by addinitgroupsX.
13938         * nscd/cache.c (readdfcts): Change return value of functions to time_t.
13939         (prune_cache): Keep track of timeout value of re-added entries.
13940         * nscd/connections.c (nscd_run_prune): Use MAX_TIMEOUT_VALUE.
13941         * nscd/nscd.h: Adjust prototypes of readd* functions.
13942
13943 2011-02-04  Roland McGrath  <roland@redhat.com>
13944
13945         * nis/nis_server.c (nis_servstate): Use the right name for 0.
13946         (nis_stats): Likewise.
13947         * nis/nis_modify.c (nis_modify): Likewise.
13948         * nis/nis_remove.c (nis_remove): Likewise.
13949         * nis/nis_add.c (nis_add): Likewise.
13950
13951         * elf/dl-object.c (_dl_new_object): Remove unused variable L.
13952
13953         * posix/fnmatch_loop.c: Add some consts.
13954
13955         * sysdeps/x86_64/multiarch/memset-x86-64.S: Add an #undef.
13956
13957 2011-02-02  H.J. Lu  <hongjiu.lu@intel.com>
13958
13959         [BZ #12460]
13960         * config.make.in (config-cflags-novzeroupper): Define.
13961         * configure.in: Substitute libc_cv_cc_novzeroupper.
13962         * elf/Makefile (AVX-CFLAGS): Define.
13963         (CFLAGS-tst-audit4.c): Replace -mavx with $(AVX-CFLAGS).
13964         (CFLAGS-tst-auditmod4a.c): Likewise.
13965         (CFLAGS-tst-auditmod4b.c): Likewise.
13966         (CFLAGS-tst-auditmod6b.c): Likewise.
13967         (CFLAGS-tst-auditmod6c.c): Likewise.
13968         (CFLAGS-tst-auditmod7b.c): Likewise.
13969         * sysdeps/i386/configure.in: Check -mno-vzeroupper.
13970
13971 2011-02-02  Ulrich Drepper  <drepper@gmail.com>
13972
13973         * elf/dl-runtime.c (_dl_call_pltexit): Pass correct address of the
13974         function to the callback.
13975         Patch partly by Jiri Olsa <jolsa@redhat.com>.
13976
13977 2011-02-02  Andreas Schwab  <schwab@redhat.com>
13978
13979         * shadow/sgetspent.c: Check return value of __sgetspent_r instead
13980         of errno.
13981
13982 2011-01-19  Ulrich Drepper  <drepper@gmail.com>
13983
13984         [BZ #11724]
13985         * elf/dl-deps.c (_dl_map_object_deps): Rewrite sorting determining order
13986         of constructors.
13987         * elf/dl-fini.c (_dl_sort_fini): Rewrite sorting determining order
13988         of destructors.
13989         (_dl_fini): Don't call _dl_sort_fini if there is only one object.
13990
13991         [BZ #11724]
13992         * elf/Makefile: Add rules to build and run new test.
13993         * elf/tst-initorder.c: New file.
13994         * elf/tst-initorder.exp: New file.
13995         * elf/tst-initordera1.c: New file.
13996         * elf/tst-initordera2.c: New file.
13997         * elf/tst-initordera3.c: New file.
13998         * elf/tst-initordera4.c: New file.
13999         * elf/tst-initorderb1.c: New file.
14000         * elf/tst-initorderb2.c: New file.
14001         * elf/tst-order-a1.c: New file.
14002         * elf/tst-order-a2.c: New file.
14003         * elf/tst-order-a3.c: New file.
14004         * elf/tst-order-a4.c: New file.
14005         * elf/tst-order-b1.c: New file.
14006         * elf/tst-order-b2.c: New file.
14007         * elf/tst-order-main.c: New file.
14008         New test case by George Gensure <werkt0@gmail.com>.
14009
14010 2010-10-01  Andreas Schwab  <schwab@redhat.com>
14011
14012         * sysdeps/posix/getaddrinfo.c (gaih_inet): Don't discard result of
14013         decoding ACE if AI_CANONIDN.
14014
14015 2011-01-18  Ulrich Drepper  <drepper@gmail.com>
14016
14017         * elf/Makefile: Build IFUNC tests unless multi-arch = no.
14018
14019 2011-01-17  Ulrich Drepper  <drepper@gmail.com>
14020
14021         * version.h (RELEASE): Bump for 2.13 release.
14022         * include/features.h: (__GLIBC_MINOR__): Bump to 13.
14023
14024         * io/fcntl.h: Define AT_NO_AUTOMOUNT.
14025
14026         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MADV_HUGEPAGE and
14027         MADV_NOHUGEPAGE.
14028         * sysdeps/unix/sysv/linux/ia64/bits/mman.h: Likewise.
14029         * sysdeps/unix/sysv/linux/powerpc/bits/mman.h: Likewise.
14030         * sysdeps/unix/sysv/linux/s390/bits/mman.h: Likewise.
14031         * sysdeps/unix/sysv/linux/sh/bits/mman.h: Likewise.
14032         * sysdeps/unix/sysv/linux/sparc/bits/mman.h: Likewise.
14033         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
14034
14035         * posix/getconf.c: Update copyright year.
14036         * catgets/gencat.c: Likewise.
14037         * csu/version.c: Likewise.
14038         * debug/catchsegv.sh: Likewise.
14039         * debug/xtrace.sh: Likewise.
14040         * elf/ldconfig.c: Likewise.
14041         * elf/ldd.bash.in: Likewise.
14042         * elf/sprof.c (print_version): Likewise.
14043         * iconv/iconv_prog.c: Likewise.
14044         * iconv/iconvconfig.c: Likewise.
14045         * locale/programs/locale.c: Likewise.
14046         * locale/programs/localedef.c: Likewise.
14047         * malloc/memusage.sh: Likewise.
14048         * malloc/mtrace.pl: Likewise.
14049         * nscd/nscd.c (print_version): Likewise.
14050         * nss/getent.c: Likewise.
14051
14052         * sysdeps/unix/sysv/linux/bits/socket.h: Define AF_CAIF, AF_ALG,
14053         PF_CAIF, and PF_ALG.
14054         * sysdeps/unix/sysv/linux/sparc/bits/socket.h: Likewise.
14055
14056 2011-01-16  Andreas Schwab  <schwab@linux-m68k.org>
14057
14058         * elf/Makefile (tlsmod17a-modules, tlsmod18a-modules): Define.
14059         (modules-names): Use them.
14060         (ifunc-test-modules, ifunc-pie-tests): Define.
14061         (extra-test-objs): Add tlsmod17a-modules, tlsmod18a-modules,
14062         tst-pie1, ifunc-test-modules and ifunc-pie-tests objects.
14063         (test-extras): Likewise.
14064         ($(patsubst %,$(objpfx)%.os,$(tlsmod17a-modules))): Use
14065         $(compile-command.c).
14066         ($(patsubst %,$(objpfx)%.os,$(tlsmod18a-modules))): Likewise.
14067         (all-built-dso): Define.
14068         (check-textrel.out, check-execstack.out): Depend on it.
14069
14070         * configure.in: Don't override --enable-multi-arch.
14071
14072 2011-01-15  Ulrich Drepper  <drepper@gmail.com>
14073
14074         [BZ #6812]
14075         * nscd/hstcache.c (tryagain): Define.
14076         (cache_addhst): Return tryagain not notfound for temporary errors.
14077         (addhstbyX): Also set h_errno to TRY_AGAIN when memory allocation
14078         failed.
14079
14080 2011-01-14  Ulrich Drepper  <drepper@gmail.com>
14081
14082         [BZ #10563]
14083         * sysdeps/unix/sysv/linux/i386/setgroups.c: Use INLINE_SETXID_SYSCALL
14084         to make the syscall.
14085         * sysdeps/unix/sysv/linux/setgroups.c: New file.
14086
14087         [BZ #12378]
14088         * posix/fnmatch_loop.c (FCT): When matching '[' keep track of beginning
14089         and fall back to matching as normal character if the string ends before
14090         the matching ']' is found.  This is what POSIX requires.
14091         * posix/testfnm.c: Adjust test result.
14092         * posix/globtest.sh: Adjust test result.  Add new test.
14093         * posix/tst-fnmatch.input: Likewise.
14094         * posix/tst-fnmatch2.c: Add new test.
14095
14096 2010-12-28  Andreas Schwab  <schwab@linux-m68k.org>
14097
14098         * elf/Makefile (check-execstack): Revert last change.  Depend on
14099         check-execstack.h.
14100         (check-execstack.h): New target.
14101         (generated): Add check-execstack.h.
14102         * elf/check-execstack.c: Include "check-execstack.h".
14103         (main): Revert last change.
14104         (handle_file): Return zero if GNU_STACK is absent and
14105         DEFAULT_STACK_PERMS doesn't include PF_X.
14106
14107 2011-01-13  Ulrich Drepper  <drepper@gmail.com>
14108
14109         * sysdeps/posix/spawni.c (__spawni): Don't fail if close file action
14110         in child fails because the descriptor is already closed.
14111         * include/sys/resource.h: Add libc_hidden_proto for getrlimit64.
14112         * sysdeps/unix/sysv/linux/getrlimit64.c: Add libc_hidden_def.
14113         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Likewise.
14114
14115         [BZ #12397]
14116         * sysdeps/unix/sysv/linux/mkdirat.c (mkdirat): Fix handling of missing
14117         syscall.
14118
14119         [BZ #10484]
14120         * nss/nss_files/files-hosts.c (HOST_DB_LOOKUP): Handle overflows of
14121         temporary buffer used to handle multi lookups locally.
14122         * include/alloca.h: Add libc_hidden_proto for __libc_alloca_cutoff.
14123
14124 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
14125
14126         * elf/dl-dst.h (DL_DST_REQUIRED): Allow l_origin to be NULL when
14127         loader is ld.so.
14128
14129 2011-01-10  Paul Pluzhnikov  <ppluzhnikov@google.com>
14130
14131         * sysdeps/i386/Makefile: stdlib/cxa_finalize.c needs 16-byte stack
14132         alignment for SSE2.
14133
14134 2011-01-12  Ulrich Drepper  <drepper@gmail.com>
14135
14136         [BZ #12394]
14137         * stdio-common/printf_fp.c (__printf_fp): Add more room for grouping
14138         characters.  When rounding increased number of integer digits recompute
14139         number of groups.
14140         * stdio-common/tst-grouping.c: New file.
14141         * stdio-common/Makefile: Add rules to build and run tst-grouping.
14142
14143 2011-01-09  Ulrich Drepper  <drepper@gmail.com>
14144
14145         * sysdeps/i386/bits/select.h: Don't use asm code for __FD_SET,
14146         __FD_CLR, and __FS_ISSET.  gcc generates better code on its own.
14147
14148         * sysdeps/x86_64/bits/select.h: Mark value of __FD_SET and __FD_CLR as
14149         void.
14150         * bits/select.h: Likewise.
14151
14152 2011-01-08  Ulrich Drepper  <drepper@gmail.com>
14153
14154         * po/ja.po: Update from translation team.
14155
14156 2011-01-04  David S. Miller  <davem@sunset.davemloft.net>
14157
14158         [BZ #11155]
14159         * sysdeps/unix/sysv/linux/sparc/sparc64/fxstat.c: Use i386's
14160         implementation just like for lxstat, fxstatat, et al.
14161
14162 2010-12-27  Jim Meyering  <meyering@redhat.com>
14163
14164         [BZ #12348]
14165         * posix/regexec.c (build_trtable): Return failure indication upon
14166         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
14167
14168 2010-12-25  Ulrich Drepper  <drepper@gmail.com>
14169
14170         [BZ #12201]
14171         * sysdeps/unix/sysv/linux/getrlimit64.c: New file.
14172         * sysdeps/unix/sysv/linux/setrlimit64.c: New file.
14173         * sysdeps/unix/sysv/linux/i386/getrlimit64.c: Use ../getrlimit64.c.
14174         * sysdeps/unix/sysv/linux/kernel-features.h: Define __ASSUME_PRLIMIT64.
14175
14176         [BZ #12207]
14177         * malloc/malloc.c (do_check_malloc_state): Use fastbin macro.
14178
14179         [BZ #12204]
14180         * string/xpg-strerror.c (__xpg_strerror_r): Return error code, not -1.
14181         * sysdeps/mach/xpg-strerror.c (__xpg_strerror_r): Likewise.
14182
14183 2010-12-15  H.J. Lu  <hongjiu.lu@intel.com>
14184
14185         * config.h.in (NO_CTORS_DTORS_SECTIONS): Define.
14186         * configure.in: Define NO_CTORS_DTORS_SECTIONS if linker
14187         script has SORT_BY_INIT_PRIORITY.
14188         * elf/sofini.c: Remove `.ctors' and `.dtors' sections if
14189         NO_CTORS_DTORS_SECTIONS is defined.
14190         * elf/soinit.c: Likewise.
14191         * sysdeps/i386/init-first.c: Don't call __libc_global_ctors if
14192         NO_CTORS_DTORS_SECTIONS is defined.
14193         * sysdeps/mach/hurd/i386/init-first.c: Likewise.
14194         * sysdeps/mach/hurd/powerpc/init-first.c: Likewise.
14195         * sysdeps/sh/init-first.c: Likewise.
14196         * sysdeps/unix/sysv/linux/init-first.c: Likewise.
14197
14198 2010-12-24  Ulrich Drepper  <drepper@gmail.com>
14199
14200         * stdio-common/vfprintf.c (vfprintf): If printf handlers are installed
14201         always use the slow path.
14202
14203 2010-12-15  Ryan S. Arnold  <rsa@us.ibm.com>
14204
14205         * elf/Makefile: (check-execstack): Replace $(native-compile) with a
14206         similar rule which adds the sysdep directories to the header search in
14207         order to pick up the correct platform stackinfo.h.
14208         * elf/check-execstack.c (main): Check DEFAULT_STACK_PERMS for PF_X and
14209         perform test if it is, otherwise return successfully without testing.
14210         * elf/dl-load.c (_dl_map_object_from_fd): Source stack_flags from
14211         DEFAULT_STACK_PERMS define in stackinfo.h.
14212         * elf/dl-support.c (_dl_stack_flags): Source from DEFAULT_STACK_PERMS
14213         defined in stackinfo.h.
14214         * elf/rtld.c (_dl_starting_up): Source ._dl_stack_flags from
14215         DEFAULT_STACK_PERMS defined in stackinfo.h.
14216         * sysdeps/i386/stackinfo.h: Define DEFAULT_STACK_PERMS with PF_X.
14217         * sysdeps/ia64/stackinfo.h: Likewise.
14218         * sysdeps/s390/stackinfo.h: Likewise.
14219         * sysdeps/sh/stackinfo.h: Likewise.
14220         * sysdeps/sparc/stackinfo.h: Likewise.
14221         * sysdeps/x86_64/stackinfo.h: Likewise.
14222         * sysdeps/powerpc/stackinfo.h: Define DEFAULT_STACK_PERMS without
14223         PF_X for powerpc64.  Retain PF_X for powerpc32.
14224
14225 2010-12-19  Ulrich Drepper  <drepper@gmail.com>
14226
14227         * sysdeps/unix/readdir_r.c (__READDIR_R): Compute reclen more
14228         accurately.
14229         * sysdeps/unix/sysv/linux/wordsize-64/readdir_r.c: Define
14230         GETDENTS_64BIT_ALIGNED.
14231
14232 2010-12-14  Ulrich Drepper  <dreper@gmail.com>
14233
14234         * sysdeps/i386/i686/multiarch/strcmp.S: Undo accidental checkin.
14235
14236 2010-12-10  Andreas Schwab  <schwab@redhat.com>
14237
14238         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Only declare under
14239         _GNU_SOURCE.
14240
14241         * wcsmbs/wchar.h (wcpcpy, wcpncpy): Add __restrict.
14242         * wcsmbs/bits/wchar2.h (__wmemmove_chk_warn, wmemmove, wmemset):
14243         Remove __restrict.
14244         (wcscpy, __wcpcpy_chk, __wcpcpy_alias, wcpcpy, wcsncpy, wcpncpy)
14245         (wcscat, wcsncat, __wcrtomb_chk, wcrtomb): Add __restrict.
14246
14247 2010-12-09  Ulrich Drepper  <drepper@gmail.com>
14248
14249         [BZ #11655]
14250         * stdlib/msort.c (qsort_r): Make sure both phys_pages and pagesize
14251         are initialized.
14252
14253 2010-12-09  Jakub Jelinek  <jakub@redhat.com>
14254
14255         * string/bits/string3.h (memmove, bcopy): Remove __restrict.
14256
14257 2010-12-03  Ulrich Drepper  <drepper@gmail.com>
14258
14259         * po/it.po: Update from translation team.
14260
14261 2010-12-01  H.J. Lu  <hongjiu.lu@intel.com>
14262
14263         * sysdeps/i386/i686/multiarch/strcmp-ssse3.S (STRCMP): Remove
14264         unused codes.
14265
14266 2010-11-30  Ulrich Drepper  <drepper@gmail.com>
14267
14268         * sysdeps/i386/fpu/libm-test-ulps: Relax ynf(10,0.75) test expectations.
14269
14270 2010-11-24  Andreas Schwab  <schwab@redhat.com>
14271
14272         * resolv/nss_dns/dns-host.c (getanswer_r): Don't handle ttl == 0
14273         specially.
14274         (gaih_getanswer_slice): Likewise.
14275
14276 2010-10-20  Jakub Jelinek  <jakub@redhat.com>
14277
14278         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Fix up inline asm.
14279
14280 2010-05-31  Petr Baudis  <pasky@suse.cz>
14281
14282         [BZ #11149]
14283         * elf/ldconfig.c (main): Allow aux_cache_file open()ing to fail
14284         silently even in the chroot mode.
14285
14286 2010-11-22  Ulrich Drepper  <drepper@gmail.com>
14287
14288         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Optimize
14289         last patch a bit.  Pretty printing
14290
14291 2010-05-31  Petr Baudis <pasky@suse.cz>
14292
14293         [BZ #10085]
14294         * nis/nss_compat/compat-initgroups.c (internal_getgrent_r): Fix
14295         initialization of skip_initgroups_dyn.
14296
14297 2010-11-19  Ulrich Drepper  <drepper@gmail.com>
14298
14299         * sysdeps/unix/sysv/linux/i386/bits/mman.h: Define MAP_HUGETLB.
14300         * sysdeps/unix/sysv/linux/x86_64/bits/mman.h: Likewise.
14301
14302 2010-11-16  Ulrich Drepper  <drepper@gmail.com>
14303
14304         * sysdeps/unix/sysv/linux/sys/swap.h (SWAP_FLAG_DISCARD): Define.
14305
14306 2010-11-11  Andreas Schwab  <schwab@redhat.com>
14307
14308         * posix/fnmatch_loop.c (NEW_PATTERN): Fix use of alloca.
14309         * posix/Makefile (tests): Add $(objpfx)tst-fnmatch-mem.
14310         (tst-fnmatch-ENV): Set MALLOC_TRACE.
14311         ($(objpfx)tst-fnmatch-mem): New rule.
14312         (generated): Add tst-fnmatch-mem and tst-fnmatch.mtrace.
14313         * posix/tst-fnmatch.c (main): Call mtrace.
14314
14315 2010-11-11  H.J. Lu  <hongjiu.lu@intel.com>
14316
14317         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14318         Support Intel processor model 6 and model 0x2c.
14319
14320 2010-11-10  Luis Machado  <luisgpm@br.ibm.com>
14321
14322         * sysdeps/ieee754/ldbl-128ibm/e_sqrtl.c (__ieee754_sqrtl): Force
14323           signed comparison.
14324
14325 2010-11-09  H.J. Lu  <hongjiu.lu@intel.com>
14326
14327         [BZ #12205]
14328         * string/test-strncasecmp.c (check_result): New function.
14329         (do_one_test): Use it.
14330         (check1): New function.
14331         (test_main): Use it.
14332         * sysdeps/i386/i686/multiarch/strcmp.S (nibble_ashr_use_sse4_2_exit):
14333         Support strcasecmp and strncasecmp.
14334
14335 2010-11-08  Ulrich Drepper  <drepper@gmail.com>
14336
14337         [BZ #12194]
14338         * sysdeps/i386/bits/byteswap.h: Avoid warning in __bswap_16.
14339         * sysdeps/x86_64/bits/byteswap.h: Likewise.
14340
14341 2010-11-07  H.J. Lu  <hongjiu.lu@intel.com>
14342
14343         * sysdeps/x86_64/memset.S: Check USE_MULTIARCH and USE_SSE2 for
14344         IFUNC support.
14345         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14346         memset-x86-64.
14347         * sysdeps/x86_64/multiarch/bzero.S: New file.
14348         * sysdeps/x86_64/multiarch/cacheinfo.c: New file.
14349         * sysdeps/x86_64/multiarch/memset-x86-64.S: New file.
14350         * sysdeps/x86_64/multiarch/memset.S: New file.
14351         * sysdeps/x86_64/multiarch/memset_chk.S: New file.
14352         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
14353         Set bit_Prefer_SSE_for_memop for Intel processors.
14354         * sysdeps/x86_64/multiarch/init-arch.h (bit_Prefer_SSE_for_memop):
14355         Define.
14356         (index_Prefer_SSE_for_memop): Define.
14357         (HAS_PREFER_SSE_FOR_MEMOP): Define.
14358
14359 2010-11-04  Luis Machado  <luisgpm@br.ibm.com>
14360
14361         * sysdeps/powerpc/powerpc32/power7/mempcpy.S: New file.
14362         * sysdeps/powerpc/powerpc64/power7/mempcpy.S: New file.
14363
14364 2010-11-03  H.J. Lu  <hongjiu.lu@intel.com>
14365
14366         [BZ #12191]
14367         * sysdeps/i386/i686/cacheinfo.c (__x86_64_raw_data_cache_size): New.
14368         (__x86_64_raw_data_cache_size_half): Likewise.
14369         (__x86_64_raw_shared_cache_size): Likewise.
14370         (__x86_64_raw_shared_cache_size_half): Likewise.
14371
14372         * sysdeps/x86_64/cacheinfo.c (__x86_64_raw_data_cache_size): New.
14373         (__x86_64_raw_data_cache_size_half): Likewise.
14374         (__x86_64_raw_shared_cache_size): Likewise.
14375         (__x86_64_raw_shared_cache_size_half): Likewise.
14376         (init_cacheinfo): Set __x86_64_raw_data_cache_size,
14377         __x86_64_raw_data_cache_size_half, __x86_64_raw_shared_cache_size
14378         and __x86_64_raw_shared_cache_size_half.  Round
14379         __x86_64_data_cache_size_half, __x86_64_data_cache_size
14380         __x86_64_shared_cache_size_half and __x86_64_shared_cache_size,
14381         to multiple of 256 bytes.
14382
14383 2010-11-03  Ulrich Drepper  <drepper@gmail.com>
14384
14385         [BZ #12167]
14386         * sysdeps/unix/sysv/linux/ttyname.c (ttyname): Recognize new mangling
14387         of inacessible symlinks.  Verify result of symlink before returning it.
14388         * sysdeps/unix/sysv/linux/ttyname_r.c (__ttyname_r): Likewise.
14389         Patch mostly by Miklos Szeredi <miklos@szeredi.hu>.
14390
14391 2010-10-28  Erich Ritz  <erichritz@gmail.com>
14392
14393         * math/math.h (isinf): Fix typo in comment.
14394
14395 2010-11-01  Ulrich Drepper  <drepper@gmail.com>
14396
14397         * po/da.po: Update from translation team.
14398
14399 2010-10-26  Ulrich Drepper  <drepper@gmail.com>
14400
14401         * elf/rtld.c (dl_main): Move assertion after the point where rtld map
14402         is added to the list.
14403
14404 2010-10-20  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14405             Ulrich Drepper  <drepper@gmail.com>
14406
14407         * elf/dl-object.c (_dl_new_object): Don't append the new object to
14408         the global list here.  Move code to...
14409         (_dl_add_to_namespace_list): ...here.  New function.
14410         * elf/rtld.c (dl_main): Invoke _dl_add_to_namespace_list.
14411         * sysdeps/generic/ldsodefs.h (_dl_add_to_namespace_list): Declare.
14412         * elf/dl-load.c (lose): Don't remove the element from the list.
14413         (_dl_map_object_from_fd): Invoke _dl_add_to_namespace_list.
14414         (_dl_map_object): Likewise.
14415
14416 2010-10-25  Ulrich Drepper  <drepper@gmail.com>
14417
14418         [BZ #12159]
14419         * sysdeps/x86_64/multiarch/strchr.S: Fix propagation of search byte
14420         into all bytes of SSE register.
14421         Patch by Richard Li <richardpku@gmail.com>.
14422
14423 2010-10-24  Ulrich Drepper  <drepper@gmail.com>
14424
14425         [BZ #12140]
14426         * malloc/malloc.c (_int_free): Fill correct number of bytes when
14427         perturbing.
14428
14429 2010-10-20  Michael B. Brutman  <brutman@us.ibm.com>
14430
14431         * sysdeps/powerpc/dl-procinfo.c: Add support for ppca2 platform
14432         * sysdeps/powerpc/dl-procinfo.h: Add support for ppca2 platform
14433         * sysdeps/powerpc/powerpc32/a2/memcpy.S: New file.
14434         * sysdeps/powerpc/powerpc64/a2/memcpy.S: Likewise.
14435         * sysdeps/unix/sysv/linux/powerpc/powerpc32/a2/Implies: New
14436         submachine.
14437         * sysdeps/unix/sysv/linux/powerpc/powerpc64/a2/Implies: Likewise.
14438
14439 2010-10-22  Andreas Schwab  <schwab@redhat.com>
14440
14441         * include/dlfcn.h (__RTLD_SECURE): Define.
14442         * elf/dl-load.c (_dl_map_object): Remove preloaded parameter.  Use
14443         mode & __RTLD_SECURE instead.
14444         (open_path): Rename preloaded parameter to secure.
14445         * sysdeps/generic/ldsodefs.h (_dl_map_object): Adjust declaration.
14446         * elf/dl-open.c (dl_open_worker): Adjust call to _dl_map_object.
14447         * elf/dl-deps.c (openaux): Likewise.
14448         * elf/rtld.c (struct map_args): Remove is_preloaded.
14449         (map_doit): Don't use it.
14450         (dl_main): Likewise.
14451         (do_preload): Use __RTLD_SECURE instead of is_preloaded.
14452         (dlmopen_doit): Add __RTLD_SECURE to mode bits.
14453
14454 2010-09-09  Andreas Schwab  <schwab@redhat.com>
14455
14456         * Makeconfig (sysd-rules-patterns): Add rtld-%:rtld-%.
14457         (sysd-rules-targets): Remove duplicates.
14458         * elf/rtld-Rules ($(objpfx)rtld-%.os): Add pattern rules with
14459         rtld-%.$o dependency.
14460
14461 2010-10-18  Andreas Schwab  <schwab@redhat.com>
14462
14463         * elf/dl-open.c (dl_open_worker): Don't expand DST here, let
14464         _dl_map_object do it.
14465
14466 2010-10-19  Ulrich Drepper  <drepper@gmail.com>
14467
14468         * sysdeps/i386/bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has
14469         fast fma builtins, define the macros in the C99 standard.
14470         (FP_FAST_FMAF): Likewise.
14471         (FP_FAST_FMAL): Likewise.
14472         * sysdeps/x86_64/bits/mathdef.h: Likewise.
14473
14474         * bits/mathdef.h: Update copyright year.
14475         * sysdeps/powerpc/bits/mathdef.h: Likewise.
14476
14477 2010-10-19  Michael Meissner  <meissner@linux.vnet.ibm.com>
14478
14479         * bits/mathdef.h (FP_FAST_FMA): If the GCC 4.6 port has fast fma
14480         builtins, define the macros in the C99 standard.
14481         (FP_FAST_FMAF): Likewise.
14482         (FP_FAST_FMAL): Likewise.
14483         * sysdeps/powerpc/bits/mathdef.h (FP_FAST_FMA): Define, ppc as
14484         multiply/add.
14485         (FP_FAST_FMAF): Likewise.
14486
14487 2010-10-15  Jakub Jelinek  <jakub@redhat.com>
14488
14489         [BZ #3268]
14490         * math/libm-test.inc (fma_test): Some new testcases.
14491         * sysdeps/ieee754/ldbl-128/s_fmal.c: New file.
14492         * sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Fix fma with finite x and
14493         y and infinite z.  Do multiplication by C already in long double.
14494         * sysdeps/ieee754/ldbl-96/s_fmal.c: New file.
14495         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix fma with finite x and
14496         y and infinite z.  Do bitwise or of inexact bit into u.d.
14497         * sysdeps/ieee754/ldbl-64-128/s_fmal.c: New file.
14498         * sysdeps/i386/fpu/s_fmaf.S: Removed.
14499         * sysdeps/i386/fpu/s_fma.S: Removed.
14500         * sysdeps/i386/fpu/s_fmal.S: Removed.
14501
14502 2010-10-16  Jakub Jelinek  <jakub@redhat.com>
14503
14504         [BZ #3268]
14505         * math/libm-test.inc (fma_test): Add IEEE quad long double fmal tests.
14506         * sysdeps/ieee754/ldbl-128/s_fmal.c (__fmal): Ensure a1 + u.d
14507         computation is not scheduled after fetestexcept.  Fix value
14508         of minimum denormal long double.
14509
14510 2010-10-14  Jakub Jelinek  <jakub@redhat.com>
14511
14512         [BZ #3268]
14513         * math/libm-test.inc (fma_test): Add some more tests.
14514         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Handle underflows
14515         correctly.
14516
14517 2010-10-15  Andreas Schwab  <schwab@redhat.com>
14518
14519         * scripts/data/localplt-s390-linux-gnu.data: New file.
14520         * scripts/data/localplt-s390x-linux-gnu.data: New file.
14521
14522 2010-10-13  Jakub Jelinek  <jakub@redhat.com>
14523
14524         [BZ #3268]
14525         * math/libm-test.inc (fma_test): Some more fmaf and fma tests.
14526         * sysdeps/i386/i686/multiarch/s_fma.c: Include ldbl-96 version
14527         instead of dbl-64.
14528         * sysdeps/i386/fpu/bits/mathinline.h (fma, fmaf, fmal): Remove
14529         inlines.
14530         * sysdeps/ieee754/ldbl-96/s_fma.c: New file.
14531         * sysdeps/ieee754/dbl-64/s_fma.c (__fma): Fix exponent adjustment
14532         if one of x and y is very large and the other is subnormal.
14533         * sysdeps/s390/fpu/s_fmaf.c: New file.
14534         * sysdeps/s390/fpu/s_fma.c: New file.
14535         * sysdeps/powerpc/fpu/s_fmaf.S: New file.
14536         * sysdeps/powerpc/fpu/s_fma.S: New file.
14537         * sysdeps/powerpc/powerpc32/fpu/s_fma.S: New file.
14538         * sysdeps/powerpc/powerpc64/fpu/s_fma.S: New file.
14539         * sysdeps/unix/sysv/linux/s390/fpu/s_fma.c: New file.
14540
14541 2010-10-12  Jakub Jelinek  <jakub@redhat.com>
14542
14543         [BZ #3268]
14544         * math/libm-test.inc (fma_test): Add some more fmaf tests, add
14545         fma tests.
14546         * sysdeps/ieee754/dbl-64/s_fmaf.c (__fmaf): Fix Inf/Nan check.
14547         * sysdeps/ieee754/dbl-64/s_fma.c: New file.
14548         * sysdeps/i386/i686/multiarch/s_fma.c: Include
14549         sysdeps/ieee754/dbl-64/s_fma.c instead of math/s_fma.c.
14550         * sysdeps/x86_64/multiarch/s_fma.c: Likewise.
14551         * sysdeps/ieee754/ldbl-opt/s_fma.c: Likewise.
14552         * sysdeps/ieee754/ldbl-128/s_fma.c: New file.
14553
14554 2010-10-12  Ulrich Drepper  <drepper@redhat.com>
14555
14556         [BZ #12078]
14557         * posix/regcomp.c (parse_branch): One more memory leak plugged.
14558         * posix/bug-regex31.input: Add test case.
14559
14560 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
14561
14562         * posix/bug-regex31.c: Rewrite to run multiple tests from stdin.
14563         * posix/bug-regex31.input: New file.
14564
14565         [BZ #12078]
14566         * posix/regcomp.c (parse_branch): Free memory when allocation failed.
14567         (parse_sub_exp): Fix last change, use postorder.
14568
14569         * posix/bug-regex31.c: New file.
14570         * posix/Makefile: Add rules to build and run bug-regex31.
14571
14572         * posix/regcomp.c (parse_bracket_exp): Add missing re_free calls.
14573
14574         [BZ #12078]
14575         * posix/regcomp.c (parse_sub_exp): Free tree data when it is not used.
14576
14577         [BZ #12108]
14578         * stdio-common/psiginfo.c (psiginfo): Don't expext SIGRTMIN..SIGRTMAX
14579         to have entries in sys_siglist.
14580
14581         [BZ #12093]
14582         * sysdeps/unix/sysv/linux/check_pf.c (__check_pf): ->ifa_addr might
14583         be NULL.
14584
14585 2010-10-07  Jakub Jelinek  <jakub@redhat.com>
14586
14587         [BZ #3268]
14588         * math/libm-test.inc (fma_test): Add 2 fmaf tests.
14589         * sysdeps/ieee754/dbl-64/s_fmaf.c: New file.
14590         * sysdeps/i386/i686/multiarch/s_fmaf.c: Include
14591         sysdeps/ieee754/dbl-64/s_fmaf.c instead of math/s_fmaf.c.
14592         * sysdeps/x86_64/multiarch/s_fmaf.c: Likewise.
14593         * include/fenv.h (feupdateenv, fetestexcept): Add libm_hidden_proto.
14594         * math/feupdateenv.c (feupdateenv): Add libm_hidden_ver.
14595         * sysdeps/i386/fpu/feupdateenv.c (feupdateenv): Likewise.
14596         * sysdeps/powerpc/fpu/feupdateenv.c (feupdateenv): Likewise.
14597         * sysdeps/x86_64/fpu/feupdateenv.c (feupdateenv): Likewise.
14598         * sysdeps/sparc/fpu/feupdateenv.c (feupdateenv): Likewise.
14599         * sysdeps/ia64/fpu/feupdateenv.c (feupdateenv): Add libm_hidden_def.
14600         * sysdeps/s390/fpu/feupdateenv.c (feupdateenv): Likewise.
14601         * math/ftestexcept.c (fetestexcept): Likewise.
14602         * sysdeps/ia64/fpu/ftestexcept.c (fetestexcept): Likewise.
14603         * sysdeps/i386/fpu/ftestexcept.c (fetestexcept): Likewise.
14604         * sysdeps/s390/fpu/ftestexcept.c (fetestexcept): Likewise.
14605         * sysdeps/powerpc/fpu/ftestexcept.c (fetestexcept): Likewise.
14606         * sysdeps/x86_64/fpu/ftestexcept.c (fetestexcept): Likewise.
14607         * sysdeps/sparc/fpu/ftestexcept.c (fetestexcept): Likewise.
14608         * sysdeps/sh/sh4/fpu/ftestexcept.c (fetestexcept): Likewise.
14609
14610 2010-10-11  Ulrich Drepper  <drepper@gmail.com>
14611
14612         [BZ #12107]
14613         * stdio-common/psiginfo.c (psiginfo): Terminate all strings with
14614         newline.
14615
14616 2010-10-06  Ulrich Drepper  <drepper@gmail.com>
14617
14618         * string/bug-strstr1.c: New file.
14619         * string/Makefile: Add rules to build and run bug-strstr1.
14620
14621 2010-10-05  Eric Blake  <eblake@redhat.com>
14622
14623         [BZ #12092]
14624         * string/str-two-way.h (two_way_long_needle): Always clear memory
14625         when skipping input due to the shift table.
14626
14627 2010-10-03  Ulrich Drepper  <drepper@gmail.com>
14628
14629         [BZ #12005]
14630         * malloc/mcheck.c: Handle large requests.
14631
14632         [BZ #12077]
14633         * sysdeps/x86_64/strcmp.S: Fix handling of remaining bytes in buffer
14634         for strncmp and strncasecmp.
14635         * string/stratcliff.c: Add tests for strcmp and strncmp.
14636         * wcsmbs/wcsatcliff.c: Adjust for stratcliff change.
14637
14638 2010-09-28  Nobuhiro Iwamatsu  <iwamatsu@nigauri.org>
14639
14640         * sysdeps/sh/sh4/fpu/fpu_control.h: Add 'extern "C"' protection to
14641         __set_fpscr.
14642
14643 2010-09-30  Andreas Jaeger  <aj@suse.de>
14644
14645         * sysdeps/unix/sysv/linux_fsinfo.h (BTRFS_SUPER_MAGIC): Define.
14646         (CGROUP_SUPER_MAGIC): Define.
14647         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
14648         Handle btrfs and cgroup file systems.
14649         * sysdeps/unix/sysv/linux/pathconf.c (__statfs_filesize_max):
14650         Likewise.
14651
14652 2010-09-27  Luis Machado  <luisgpm@br.ibm.com>
14653
14654         * sysdeps/powerpc/powerpc32/rtld-memset.c: New file.
14655         * sysdeps/powerpc/powerpc64/rtld-memset.c: New file.
14656
14657 2010-09-29  Andreas Krebbel  <Andreas.Krebbel@de.ibm.com>
14658
14659         [BZ #12067]
14660         * sysdeps/s390/s390-32/elf/start.S: Fix address calculation when
14661         trying to locate the ELF header.
14662
14663 2010-09-27  Andreas Schwab  <schwab@redhat.com>
14664
14665         [BZ #11611]
14666         * sysdeps/unix/sysv/linux/internal_statvfs.c (INTERNAL_STATVFS):
14667         Mask out sign-bit copies when constructing f_fsid.
14668
14669 2010-09-24  Petr Baudis <pasky@suse.cz>
14670
14671         * debug/stack_chk_fail_local.c: Add missing licence exception.
14672         * debug/warning-nop.c: Likewise.
14673
14674 2010-09-15  Joseph Myers  <joseph@codesourcery.com>
14675
14676         * sysdeps/unix/sysv/linux/getdents.c (__GETDENTS): When
14677         implementing getdents64 using getdents syscall, set d_type if
14678         __ASSUME_GETDENTS32_D_TYPE.
14679
14680 2010-09-16  Andreas Schwab  <schwab@redhat.com>
14681
14682         * elf/dl-close.c (free_slotinfo, free_mem): Move to...
14683         * elf/dl-libc.c (free_slotinfo, free_mem): ... here.
14684
14685 2010-09-21  Ulrich Drepper  <drepper@redhat.com>
14686
14687         [BZ #12037]
14688         * posix/unistd.h: Undo change of feature selection for ftruncate from
14689         2010-01-11.
14690
14691 2010-09-20  Ulrich Drepper  <drepper@redhat.com>
14692
14693         * sysdeps/x86_64/strcmp.S: Fix another typo in x86-64 strncasecmp limit
14694         detection.
14695
14696 2010-09-20  Andreas Schwab  <schwab@redhat.com>
14697
14698         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.list: Add
14699         fanotify_mark.
14700         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
14701
14702 2010-09-14  Andreas Schwab  <schwab@redhat.com>
14703
14704         * sysdeps/s390/s390-32/__longjmp.c (__longjmp): Define register
14705         variables after CHECK_SP call.
14706         * sysdeps/s390/s390-64/__longjmp.c (__longjmp): Likewise.
14707
14708 2010-09-13  Andreas Schwab  <schwab@redhat.com>
14709             Ulrich Drepper  <drepper@redhat.com>
14710
14711         * elf/rtld.c (dl_main): Set GLRO(dl_init_all_dirs) just before
14712         re-relocationg ld.so.
14713         * elf/dl-support.c (_dl_non_dynamic_init): And here after the
14714         _dl_init_paths call.
14715         * elf/dl-load.c (_dl_init_paths).  Don't set GLRO(dl_init_all_dirs)
14716         here anymore.
14717
14718 2010-09-14  Ulrich Drepper  <drepper@redhat.com>
14719
14720         * resolv/res_init.c (__res_vinit): Count the default server we added.
14721
14722 2010-09-08  Chung-Lin Tang  <cltang@codesourcery.com>
14723             Ulrich Drepper  <drepper@redhat.com>
14724
14725         [BZ #11968]
14726         * sysdeps/unix/sysv/linux/x86_64/____longjmp_chk.S
14727         (____longjmp_chk): Use %ebx for saving value across system call.
14728         Add unwind info.
14729
14730 2010-09-06  Andreas Schwab  <schwab@redhat.com>
14731
14732         * manual/Makefile: Don't mix pattern rules with normal rules.
14733
14734 2010-09-05  Andreas Schwab  <schwab@linux-m68k.org>
14735
14736         * debug/vdprintf_chk.c (__vdprintf_chk): Remove undefined
14737         operation.
14738         * libio/iofdopen.c (_IO_new_fdopen): Likewise.
14739         * libio/iofopncook.c (_IO_cookie_init): Likewise.
14740         * libio/iovdprintf.c (_IO_vdprintf): Likewise.
14741         * libio/oldiofdopen.c (_IO_old_fdopen): Likewise.
14742         * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
14743         Likewise.
14744
14745 2010-09-04  Ulrich Drepper  <drepper@redhat.com>
14746
14747         [BZ #11979]
14748         * iconvdata/gconv-modules: Remove EBCDIC-CP-AR2 alias from
14749         IBM-930, IBM-933, IBM-935, IBM-937, and IBM-939.
14750
14751 2010-09-02  Ulrich Drepper  <drepper@redhat.com>
14752
14753         * sysdeps/x86_64/add_n.S: Update from GMP 5.0.1.
14754         * sysdeps/x86_64/addmul_1.S: Likewise.
14755         * sysdeps/x86_64/lshift.S: Likewise.
14756         * sysdeps/x86_64/mul_1.S: Likewise.
14757         * sysdeps/x86_64/rshift.S: Likewise.
14758         * sysdeps/x86_64/sub_n.S: Likewise.
14759         * sysdeps/x86_64/submul_1.S: Likewise.
14760
14761 2010-09-01  Samuel Thibault  <samuel.thibault@ens-lyon.org>
14762
14763         This aligns bits/sched.h onto sysdeps/unix/sysv/linux/bits/sched.h:
14764         Define __sched_param instead of SCHED_* and sched_param when
14765         <bits/sched.h> is included with __need_schedparam defined.
14766         * bits/sched.h [__need_schedparam]
14767         (SCHED_OTHER, SCHED_FIFO, SCHED_RR, sched_param): Do not define.
14768         [!__defined_schedparam && (__need_schedparam || _SCHED_H)]
14769         (__defined_schedparam): Define to 1.
14770         (__sched_param): New structure, identical to sched_param.
14771         (__need_schedparam): Undefine.
14772
14773 2010-08-31  Mike Frysinger  <vapier@gentoo.org>
14774
14775         * sysdeps/unix/sysv/linux/sparc/sys/epoll.h (epoll_create2): Delete.
14776         (epoll_create1): Declare.
14777
14778         * sysdeps/unix/sysv/linux/x86_64/sys/epoll.h: Fix typo.
14779
14780 2010-08-31  Andreas Schwab  <schwab@redhat.com>
14781
14782         [BZ #7066]
14783         * stdlib/strtod_l.c (____STRTOF_INTERNAL): Fix array overflow when
14784         shifting retval into place.
14785
14786 2010-09-01  Ulrich Drepper  <drepper@redhat.com>
14787
14788         * nis/rpcsvc/nis.h: Update copyright notice.
14789         * nis/rpcsvc/nis.x: Likewise.
14790         * nis/rpcsvc/nis_callback.h: Likewise.
14791         * nis/rpcsvc/nis_callback.x: Likewise.
14792         * nis/rpcsvc/nis_object.x: Likewise.
14793         * nis/rpcsvc/nis_tags.h: Likewise.
14794         * nis/rpcsvc/yp.h: Likewise.
14795         * nis/rpcsvc/yp.x: Likewise.
14796         * nis/rpcsvc/ypupd.h: Likewise.
14797         * nis/yp_xdr.c: Likewise.
14798         * nis/ypupdate_xdr.c: Likewise.
14799
14800         * sunrpc/pm_getport.c (__libc_rpc_getport): New function.  This is
14801         mainly the body of pmap_getport.  Add parameters to specify timeouts.
14802         (pmap_getport): Use __libc_rpc_getport.
14803         * sunrpc/Versions: Export __libc_rpc_getport with GLIBC_PRIVATE.
14804         * include/rpc/pmap_clnt.h: Declare __libc_rpc_getport.
14805         * nis/nis_findserv.c: Remove pmap_getport copy. Use __libc_rpc_getport.
14806
14807 2010-08-31  Andreas Schwab  <schwab@linux-m68k.org>
14808
14809         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Add
14810         fanotify_mark.
14811
14812 2010-08-27  Roland McGrath  <roland@redhat.com>
14813
14814         * sysdeps/i386/i686/multiarch/Makefile
14815         (CFLAGS-varshift.c): New variable.
14816
14817 2010-08-27  Ulrich Drepper  <drepper@redhat.com>
14818
14819         * sysdeps/i386/i686/multiarch/varshift.S: File removed.
14820         * sysdeps/i386/i686/multiarch/varshift.c: New file.
14821
14822         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: Move to .text.slow section.
14823
14824         * sysdeps/x86_64/strlen.S: Minimal code improvement.
14825
14826 2010-08-26  H.J. Lu  <hongjiu.lu@intel.com>
14827
14828         * sysdeps/x86_64/strlen.S: Unroll the loop.
14829         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
14830         strlen-sse2 strlen-sse2-bsf.
14831         * sysdeps/x86_64/multiarch/strlen.S ((strlen): Return
14832         __strlen_no_bsf if bit_Slow_BSF is set.
14833         (__strlen_sse42): Removed.
14834         * sysdeps/x86_64/multiarch/strlen-no-bsf.S: New file.
14835         * sysdeps/x86_64/multiarch/strlen-sse4.S: New file.
14836
14837 2010-08-25  Roland McGrath  <roland@redhat.com>
14838
14839         * sysdeps/x86_64/multiarch/varshift.S: File removed.
14840         * sysdeps/x86_64/multiarch/varshift.c: New file.
14841         * sysdeps/x86_64/multiarch/Makefile (CFLAGS-varshift.c): New variable.
14842         * sysdeps/x86_64/multiarch/varshift.h: Clean up decls, fix a cast.
14843         * sysdeps/x86_64/multiarch/memmove.c: Move decls around.
14844         * sysdeps/x86_64/multiarch/memmove_chk.c: Likewise.
14845
14846 2010-08-25  H.J. Lu  <hongjiu.lu@intel.com>
14847
14848         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
14849         strlen-sse2 strlen-sse2-bsf.
14850         * sysdeps/i386/i686/multiarch/strlen.S (strlen): Return
14851         __strlen_sse2_bsf if bit_Slow_BSF is unset.
14852         (__strlen_sse2): Removed.
14853         * sysdeps/i386/i686/multiarch/strlen-sse2-bsf.S: New file.
14854         * sysdeps/i386/i686/multiarch/strlen-sse2.S: New file.
14855         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features): Set
14856         bit_Slow_BSF for Atom.
14857         * sysdeps/x86_64/multiarch/init-arch.h (bit_Slow_BSF): Define.
14858         (index_Slow_BSF): Define.
14859         (HAS_SLOW_BSF): Define.
14860
14861 2010-08-25  Ulrich Drepper  <drepper@redhat.com>
14862
14863         [BZ #10851]
14864         * resolv/res_init.c (__res_vinit): When no server address at all
14865         is given default to loopback.
14866
14867 2010-08-24  Roland McGrath  <roland@redhat.com>
14868
14869         * configure.in: Remove config-name.h generation.
14870         * configure: Regenerated.
14871         * config-name.in: File removed.
14872         * scripts/config-uname.sh: New file.
14873         * posix/Makefile (uname.c): Depend on $(objdir)config-name.h.
14874         ($(objdir)config-name.h): New target.
14875
14876         * sunrpc/rpc_parse.h: Avoid nested comment.
14877
14878 2010-08-24  Richard Henderson  <rth@redhat.com>
14879             Ulrich Drepper  <drepper@redhat.com>
14880             H.J. Lu  <hongjiu.lu@intel.com>
14881
14882         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add varshift.
14883         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Likewise.
14884         * sysdeps/x86_64/multiarch/strcspn-c.c: Include "varshift.h".
14885         Replace _mm_srli_si128 with __m128i_shift_right.  Replace
14886         _mm_alignr_epi8 with _mm_loadu_si128.
14887         * sysdeps/x86_64/multiarch/strspn-c.c: Likewise.
14888         * sysdeps/x86_64/multiarch/strstr.c: Include "varshift.h".
14889         (__m128i_shift_right): Removed.
14890         * sysdeps/i386/i686/multiarch/varshift.h: New file.
14891         * sysdeps/i386/i686/multiarch/varshift.S: New file.
14892         * sysdeps/x86_64/multiarch/varshift.h: New file.
14893         * sysdeps/x86_64/multiarch/varshift.S: New file.
14894
14895 2010-08-21  Mike Frysinger  <vapier@gentoo.org>
14896
14897         * configure.in: Move assembler checks to before sysdep dir checking.
14898
14899 2010-08-20  Petr Baudis  <pasky@suse.cz>
14900
14901         * LICENSES: Sync the sunrpc license.
14902
14903 2010-08-19  Ulrich Drepper  <drepper@redhat.com>
14904
14905         * sunrpc/auth_des.c: Update copyright notice once again.
14906         * sunrpc/auth_none.c: Likewise.
14907         * sunrpc/auth_unix.c: Likewise.
14908         * sunrpc/authdes_prot.c: Likewise.
14909         * sunrpc/authuxprot.c: Likewise.
14910         * sunrpc/bindrsvprt.c: Likewise.
14911         * sunrpc/clnt_gen.c: Likewise.
14912         * sunrpc/clnt_perr.c: Likewise.
14913         * sunrpc/clnt_raw.c: Likewise.
14914         * sunrpc/clnt_simp.c: Likewise.
14915         * sunrpc/clnt_tcp.c: Likewise.
14916         * sunrpc/clnt_udp.c: Likewise.
14917         * sunrpc/clnt_unix.c: Likewise.
14918         * sunrpc/des_crypt.c: Likewise.
14919         * sunrpc/des_soft.c: Likewise.
14920         * sunrpc/get_myaddr.c: Likewise.
14921         * sunrpc/getrpcport.c: Likewise.
14922         * sunrpc/key_call.c: Likewise.
14923         * sunrpc/key_prot.c: Likewise.
14924         * sunrpc/openchild.c: Likewise.
14925         * sunrpc/pm_getmaps.c: Likewise.
14926         * sunrpc/pm_getport.c: Likewise.
14927         * sunrpc/pmap_clnt.c: Likewise.
14928         * sunrpc/pmap_prot.c: Likewise.
14929         * sunrpc/pmap_prot2.c: Likewise.
14930         * sunrpc/pmap_rmt.c: Likewise.
14931         * sunrpc/rpc/auth.h: Likewise.
14932         * sunrpc/rpc/auth_unix.h: Likewise.
14933         * sunrpc/rpc/clnt.h: Likewise.
14934         * sunrpc/rpc/des_crypt.h: Likewise.
14935         * sunrpc/rpc/key_prot.h: Likewise.
14936         * sunrpc/rpc/netdb.h: Likewise.
14937         * sunrpc/rpc/pmap_clnt.h: Likewise.
14938         * sunrpc/rpc/pmap_prot.h: Likewise.
14939         * sunrpc/rpc/pmap_rmt.h: Likewise.
14940         * sunrpc/rpc/rpc.h: Likewise.
14941         * sunrpc/rpc/rpc_des.h: Likewise.
14942         * sunrpc/rpc/rpc_msg.h: Likewise.
14943         * sunrpc/rpc/svc.h: Likewise.
14944         * sunrpc/rpc/svc_auth.h: Likewise.
14945         * sunrpc/rpc/types.h: Likewise.
14946         * sunrpc/rpc/xdr.h: Likewise.
14947         * sunrpc/rpc_clntout.c: Likewise.
14948         * sunrpc/rpc_cmsg.c: Likewise.
14949         * sunrpc/rpc_common.c: Likewise.
14950         * sunrpc/rpc_cout.c: Likewise.
14951         * sunrpc/rpc_dtable.c: Likewise.
14952         * sunrpc/rpc_hout.c: Likewise.
14953         * sunrpc/rpc_main.c: Likewise.
14954         * sunrpc/rpc_parse.c: Likewise.
14955         * sunrpc/rpc_parse.h: Likewise.
14956         * sunrpc/rpc_prot.c: Likewise.
14957         * sunrpc/rpc_sample.c: Likewise.
14958         * sunrpc/rpc_scan.c: Likewise.
14959         * sunrpc/rpc_scan.h: Likewise.
14960         * sunrpc/rpc_svcout.c: Likewise.
14961         * sunrpc/rpc_tblout.c: Likewise.
14962         * sunrpc/rpc_util.c: Likewise.
14963         * sunrpc/rpc_util.h: Likewise.
14964         * sunrpc/rpcinfo.c: Likewise.
14965         * sunrpc/rpcsvc/bootparam_prot.x: Likewise.
14966         * sunrpc/rpcsvc/key_prot.x: Likewise.
14967         * sunrpc/rpcsvc/klm_prot.x: Likewise.
14968         * sunrpc/rpcsvc/mount.x: Likewise.
14969         * sunrpc/rpcsvc/nfs_prot.x: Likewise.
14970         * sunrpc/rpcsvc/nlm_prot.x: Likewise.
14971         * sunrpc/rpcsvc/rex.x: Likewise.
14972         * sunrpc/rpcsvc/rstat.x: Likewise.
14973         * sunrpc/rpcsvc/rusers.x: Likewise.
14974         * sunrpc/rpcsvc/sm_inter.x: Likewise.
14975         * sunrpc/rpcsvc/spray.x: Likewise.
14976         * sunrpc/rpcsvc/yppasswd.x: Likewise.
14977         * sunrpc/rtime.c: Likewise.
14978         * sunrpc/svc.c: Likewise.
14979         * sunrpc/svc_auth.c: Likewise.
14980         * sunrpc/svc_authux.c: Likewise.
14981         * sunrpc/svc_raw.c: Likewise.
14982         * sunrpc/svc_run.c: Likewise.
14983         * sunrpc/svc_simple.c: Likewise.
14984         * sunrpc/svc_tcp.c: Likewise.
14985         * sunrpc/svc_udp.c: Likewise.
14986         * sunrpc/svc_unix.c: Likewise.
14987         * sunrpc/svcauth_des.c: Likewise.
14988         * sunrpc/xcrypt.c: Likewise.
14989         * sunrpc/xdr.c: Likewise.
14990         * sunrpc/xdr_array.c: Likewise.
14991         * sunrpc/xdr_float.c: Likewise.
14992         * sunrpc/xdr_mem.c: Likewise.
14993         * sunrpc/xdr_rec.c: Likewise.
14994         * sunrpc/xdr_ref.c: Likewise.
14995         * sunrpc/xdr_sizeof.c: Likewise.
14996         * sunrpc/xdr_stdio.c: Likewise.
14997
14998         * sysdeps/x86_64/multiarch/strcmp.S: Fix two typos in strncasecmp
14999         handling.
15000
15001 2010-08-19  Andreas Schwab  <schwab@redhat.com>
15002
15003         * sysdeps/i386/i686/multiarch/strspn.S [!SHARED]: Fix SSE4.2 check.
15004
15005 2010-08-19  Luis Machado  <luisgpm@br.ibm.com>
15006
15007         * sysdeps/powerpc/powerpc32/power7/memchr.S: New file.
15008         * sysdeps/powerpc/powerpc32/power7/memrchr.S: New file.
15009         * sysdeps/powerpc/powerpc32/power7/rawmemchr.S: New file.
15010         * sysdeps/powerpc/powerpc32/power7/strchr.S: New file.
15011         * sysdeps/powerpc/powerpc32/power7/strchrnul.S: New file.
15012         * sysdeps/powerpc/powerpc32/power7/strlen.S: New file.
15013         * sysdeps/powerpc/powerpc32/power7/strnlen.S: New file.
15014         * sysdeps/powerpc/powerpc64/power7/memchr.S: New file.
15015         * sysdeps/powerpc/powerpc64/power7/memrchr.S: New file.
15016         * sysdeps/powerpc/powerpc64/power7/rawmemchr.S: New file.
15017         * sysdeps/powerpc/powerpc64/power7/strchr.S: New file.
15018         * sysdeps/powerpc/powerpc64/power7/strchrnul.S: New file.
15019         * sysdeps/powerpc/powerpc64/power7/strlen.S: New file.
15020         * sysdeps/powerpc/powerpc64/power7/strnlen.S: New file.
15021
15022 2010-07-26  Anton Blanchard  <anton@samba.org>
15023
15024         * malloc/malloc.c (sYSTRIm): Replace divide and multiply with mask.
15025         * malloc/arena.c (heap_trim): Likewise.
15026
15027 2010-08-16  Ulrich Drepper  <drepper@redhat.com>
15028
15029         * sysdeps/unix/sysv/linux/syscalls.list: Add entry for fanotify_init
15030         here.  Not...
15031         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: ...here...
15032         * sysdeps/unix/sysv/linux/i386/syscalls.list: ... orhere.
15033
15034 2010-08-12  H.J. Lu  <hongjiu.lu@intel.com>
15035
15036         * sysdeps/i386/elf/Makefile: New file.
15037
15038 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
15039
15040         * sysdeps/unix/sysv/linux/sys/fanotify.h: Remove third argument
15041         from fanotify_init.
15042         * sysdeps/unix/sysv/linux/i386/syscalls.list: Likewise.
15043         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
15044
15045 2010-08-15  Ulrich Drepper  <drepper@redhat.com>
15046
15047         * sysdeps/x86_64/strcmp.S: Use correct register for fourth parameter
15048         of strncasecmp_l.
15049         * sysdeps/multiarch/strcmp.S: Likewise.
15050
15051 2010-08-14  Ulrich Drepper  <drepper@redhat.com>
15052
15053         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
15054         strncase_l-nonascii.
15055         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
15056         Add strncase_l-ssse3.
15057         * sysdeps/x86_64/multiarch/strcmp.S: Prepare for use as strncasecmp.
15058         * sysdeps/x86_64/strcmp.S: Likewise.
15059         * sysdeps/x86_64/multiarch/strncase_l-ssse3.S: New file.
15060         * sysdeps/x86_64/multiarch/strncase_l.S: New file.
15061         * sysdeps/x86_64/strncase.S: New file.
15062         * sysdeps/x86_64/strncase_l-nonascii.c: New file.
15063         * sysdeps/x86_64/strncase_l.S: New file.
15064         * string/Makefile (strop-tests): Add strncasecmp.
15065         * string/test-strncasecmp.c: New file.
15066
15067         * sysdeps/x86_64/strcasecmp_l-nonascii.c: Add prototype to avoid
15068         warning.
15069
15070         * sysdeps/x86_64/strcmp.S: Move definition of NO_NOLOCALE_ALIAS to...
15071         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: ... here.
15072
15073 2010-08-14  Andreas Schwab  <schwab@linux-m68k.org>
15074
15075         * sysdeps/unix/sysv/linux/prlimit.c: Make it compile.
15076
15077 2010-08-12  Ulrich Drepper  <drepper@redhat.com>
15078
15079         * sysdeps/unix/sysv/linux/bits/termios.h: Define EXTPROC.
15080         * sysdeps/unix/sysv/linux/powerpc/bits/termios.h: Likewise.
15081         * sysdeps/unix/sysv/linux/sparc/bits/termios.h: Likewise.
15082
15083 2010-05-01  Alan Modra  <amodra@gmail.com>
15084
15085         * sysdeps/powerpc/powerpc32/power4/memcmp.S: Correct cfi for r24.
15086         * sysdeps/powerpc/powerpc64/bsd-_setjmp.S: Move contents..
15087         * sysdeps/powerpc/powerpc64/bsd-setjmp.S: ..and these too..
15088         * sysdeps/powerpc/powerpc64/setjmp.S: ..to here..
15089         * sysdeps/powerpc/powerpc64/setjmp-common.S: ..and here, with some
15090         tidying.  Don't tail-call __sigjmp_save for static lib.
15091         * sysdeps/powerpc/powerpc64/sysdep.h (SAVE_ARG, REST_ARG): Correct
15092         save location.
15093         (CFI_SAVE_ARG, CFI_REST_ARG): New macros.
15094         (CALL_MCOUNT): Add eh info, and nop after bl.
15095         (TAIL_CALL_SYSCALL_ERROR): New macro.
15096         (PSEUDO_RET): Use it.
15097         * sysdeps/powerpc/powerpc64/dl-trampoline.S (_dl_runtime_resolve):
15098         Correct save location of integer regs and cr.
15099         (_dl_profile_resolve): Correct cr save location.  Delete nops
15100         after bl when SHARED.  Reduce cfi size a little by better
15101         placement of cfi directives.
15102         * sysdeps/powerpc/powerpc64/fpu/s_copysign.S (__copysign): Don't
15103         make a stack frame.  Instead use parm save area as a temp.
15104         * sysdeps/unix/sysv/linux/powerpc/powerpc64/brk.S (__brk): Don't
15105         make a stack frame.  Use TAIL_CALL_SYSCALL_ERROR.
15106         * sysdeps/unix/sysv/linux/powerpc/powerpc64/clone.S (__clone):
15107         Don't make a stack frame for parent, use parm save area.
15108         Increase child stack frame to 112 bytes.  Don't save unused reg,
15109         and adjust reg usage.  Set up cfi on error recovery and
15110         epilogue of parent, and use TAIL_CALL_SYSCALL_ERROR, PSEUDO_RET.
15111         * sysdeps/unix/sysv/linux/powerpc/powerpc64/makecontext.S
15112         (__makecontext): Add dummy nop after jump to exit.
15113         * sysdeps/unix/sysv/linux/powerpc/powerpc64/socket.S (__socket):
15114         Use correct parm save area and cr save, reduce stack frame.
15115         Correct cfi for possible PSEUDO_RET frame setup.
15116         * sysdeps/unix/sysv/linux/powerpc/powerpc64/vfork.S (__vfork):
15117         Branch to local label emitted by PSEUDO_RET rather than
15118         __syscall_error.
15119
15120 2010-08-12  Andreas Schwab  <schwab@redhat.com>
15121
15122         [BZ #11904]
15123         * locale/programs/locale.c (print_assignment): New function.
15124         (show_locale_vars): Use it.
15125
15126 2010-08-11  Ulrich Drepper  <drepper@redhat.com>
15127
15128         * sysdeps/unix/sysv/linux/bits/statfs.h (struct statfs): Add f_flags
15129         field.
15130         (struct statfs64): Likewise.
15131         (_STATFS_F_FLAGS): Define.
15132         * sysdeps/unix/sysv/linux/s390/bits/statfs.h: Likewise.
15133         * sysdeps/unix/sysv/linux/internal_statvfs.c (__statvfs_getflags):
15134         Don't define if __ASSUME_STATFS_F_FLAGS is defined.
15135         (ST_VALID): Define locally.
15136         (INTERNAL_STATVFS): If f_flags has ST_VALID set don't call
15137         __statvfs_getflags, use the provided value.
15138         * sysdeps/unix/sysv/linux/kernel-features.h: Define
15139         __ASSUME_STATFS_F_FLAGS.
15140
15141         * sysdeps/unix/sysv/linux/sys/inotify.h (IN_EXCL_UNLINK): Define.
15142
15143         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_headers):
15144         Add sys/fanotify.h.
15145         * sysdeps/unix/sysv/linux/Versions [libc]: Export fanotify_init and
15146         fanotify_mask for GLIBC_2.13.
15147         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entries for
15148         fanotify_init and fanotify_mark.
15149         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.
15150         * sysdeps/unix/sysv/linux/sys/fanotify.h: New file.
15151
15152         * sysdeps/unix/sysv/linux/Makefile [subdir=misc] (sysdep_routines):
15153         Add prlimit.
15154         * sysdeps/unix/sysv/linux/Versions [libc]: Export prlimit and
15155         prlimit64 for GLIBC_2.13.
15156         * sysdeps/unix/sysv/linux/bits/resource.h: Declare prlimit and
15157         prlimit64.
15158         * sysdeps/unix/sysv/linux/i386/syscalls.list: Add entry for prlimit64
15159         syscall.
15160         * sysdeps/unix/sysv/linux/powerpc/powerpc32/syscalls.list: Likewise.
15161         * sysdeps/unix/sysv/linux/s390/s390-32/syscalls.list: Likewise.
15162         * sysdeps/unix/sysv/linux/sh/syscalls.list: Likewise.
15163         * sysdeps/unix/sysv/linux/sparc/sparc32/syscalls.lis: Likewise.
15164         * sysdeps/unix/sysv/linux/wordsize-64/syscalls.list: Likewise.  Also
15165         add prlimit alias.
15166         * sysdeps/unix/sysv/linux/prlimit.c: New file.
15167
15168         [BZ #11903]
15169         * sysdeps/generic/netinet/ip.h (IPTOS_CLASS): Fix definition.
15170         Patch by Evgeni Bikov <bikovevg@iitp.ru>.
15171
15172         * nss/Makefile: Add rules to build and run tst-nss-test1.
15173         * shlib-versions: Add entry for libnss_test1.
15174         * nss/nss_test1.c: New file.
15175         * nss/tst-nss-test1.c: New file.
15176
15177         * nss/nsswitch.c (__nss_database_custom): Define new variable.
15178         (__nss_configure_lookup): Set appropriate entry in
15179         __nss_configure_lookup to true.
15180         * nss/nsswitch.h: Define enum with indeces of databases in
15181         databases and __nss_database_custom arrays.  Declare
15182         __nss_database_custom.
15183         * grp/initgroups.c (internal_getgrouplist): Use __nss_database_custom
15184         to avoid using nscd when custom rules are installed.
15185         * nss/getXXbyYY_r.c: Likewise.
15186         * sysdeps/posix/getaddrinfo.c (gaih_inet): Likewise.
15187
15188         * nss/nss_files/files-parse.c: Whitespace fixes.
15189
15190 2010-08-09  Ulrich Drepper  <drepper@redhat.com>
15191
15192         [BZ #11883]
15193         * posix/fnmatch.c: Keep track of alloca use and fall back on malloc.
15194         * posix/fnmatch_loop.c: Likewise.
15195
15196 2010-07-17  Andi Kleen  <ak@linux.intel.com>
15197
15198         * sysdeps/i386/i386-mcount.S (__fentry__): Define.
15199         * sysdeps/x86_64/_mcount.S (__fentry__): Define.
15200         * stdlib/Versions (__fentry__): Add for GLIBC 2.13
15201         * Versions.def [GLIBC_2.13]: Add.
15202
15203 2010-08-06  Ulrich Drepper  <drepper@redhat.com>
15204
15205         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15206         Also fail if tpwd after pwuid call is NULL.
15207
15208 2010-07-31  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15209
15210         * hurd/hurdselect.c (_hurd_select): Round timeout up instead of down
15211         when converting to ms.
15212
15213 2010-06-06  Samuel Thibault  <samuel.thibault@ens-lyon.org>
15214
15215         * sysdeps/mach/hurd/ttyname.c (ttyname): Replace MIG_BAD_ID and
15216         EOPNOTSUPP errors with ENOTTY.
15217         * sysdeps/mach/hurd/ttyname_r.c (__ttyname_r): Replace MIG_BAD_ID and
15218         EOPNOTSUPP errors with ENOTTY.
15219
15220 2010-07-31  Ulrich Drepper  <drepper@redhat.com>
15221
15222         * sysdeps/x86_64/multiarch/Makefile [subdir=string] (sysdep_routines):
15223         Add strcasecmp_l-ssse3.
15224         * sysdeps/x86_64/multiarch/strcmp.S: Add support to compile for
15225         strcasecmp.
15226         * sysdeps/x86_64/strcmp.S: Allow more flexible compiling of strcasecmp.
15227         * sysdeps/x86_64/multiarch/strcasecmp_l.S: New file.
15228         * sysdeps/x86_64/multiarch/strcasecmp_l-ssse3.S: New file.
15229
15230 2010-07-30  Ulrich Drepper  <drepper@redhat.com>
15231
15232         * sysdeps/x86_64/multiarch/strcmp.S: Pretty printing.
15233
15234         * string/Makefile (strop-tests): Add strcasecmp.
15235         * sysdeps/x86_64/Makefile [subdir=string] (sysdep_routines): Add
15236         strcasecmp_l-nonascii.
15237         (gen-as-const-headers): Add locale-defines.sym.
15238         * sysdeps/x86_64/strcmp.S: Add support for strcasecmp implementation.
15239         * sysdeps/x86_64/strcasecmp.S: New file.
15240         * sysdeps/x86_64/strcasecmp_l.S: New file.
15241         * sysdeps/x86_64/strcasecmp_l-nonascii.c: New file.
15242         * sysdeps/x86_64/locale-defines.sym: New file.
15243         * string/test-strcasecmp.c: New file.
15244
15245         * string/test-strcasestr.c: Test both ends of the range of characters.
15246         * sysdeps/x86_64/multiarch/strstr.c: Fix UCHIGH definition.
15247
15248 2010-07-29  Roland McGrath  <roland@redhat.com>
15249
15250         [BZ #11856]
15251         * manual/locale.texi (Yes-or-No Questions): Fix example code.
15252
15253 2010-07-27  Ulrich Drepper  <drepper@redhat.com>
15254
15255         * sysdeps/x86_64/multiarch/strcmp-ssse3.S: Avoid compiling the file
15256         for ld.so.
15257
15258 2010-07-27  Andreas Schwab  <schwab@redhat.com>
15259
15260         * manual/memory.texi (Malloc Tunable Parameters): Document
15261         M_PERTURB.
15262
15263 2010-07-26  Roland McGrath  <roland@redhat.com>
15264
15265         [BZ #11840]
15266         * configure.in (-fgnu89-inline check): Set and substitute
15267         gnu89_inline, not libc_cv_gnu89_inline.
15268         * configure: Regenerated.
15269         * config.make.in (gnu89-inline-CFLAGS): Use @gnu89_inline@.
15270
15271 2010-07-26  Ulrich Drepper  <drepper@redhat.com>
15272
15273         * string/test-strnlen.c: New file.
15274         * string/Makefile (strop-tests): Add strnlen.
15275         * string/tester.c (test_strnlen): Add a few more test cases.
15276         * string/tst-strlen.c: Better error reporting.
15277
15278         * sysdeps/x86_64/strnlen.S: New file.
15279
15280 2010-07-24  Ulrich Drepper  <drepper@redhat.com>
15281
15282         * sysdeps/x86_64/multiarch/strstr.c (__m128i_strloadu_tolower): Use
15283         lower-latency instructions.
15284
15285 2010-07-23  Ulrich Drepper  <drepper@redhat.com>
15286
15287         * string/test-strcasestr.c: New file.
15288         * string/test-strstr.c: New file.
15289         * string/Makefile (strop-tests): Add strstr and strcasestr.
15290         * string/str-two-way.h: Don't undefine MAX.
15291         * string/strcasestr.c: Don't define alias if NO_ALIAS is defined.
15292
15293 2010-07-21  Andreas Schwab  <schwab@redhat.com>
15294
15295         * sysdeps/i386/i686/multiarch/Makefile (sysdep_routines): Add
15296         strcasestr-nonascii.
15297         (CFLAGS-strcasestr-nonascii.c): Define.
15298         * sysdeps/i386/i686/multiarch/strcasestr-nonascii.c: New file.
15299         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c (STRSTR_SSE42):
15300         Remove unused attribute.
15301
15302 2010-07-20  Roland McGrath  <roland@redhat.com>
15303
15304         * elf/dl-sysdep.c (_dl_important_hwcaps): Add dsocaps mask to
15305         dl_hwcap_mask as well as dl_hwcap.  Without this, dsocaps matching in
15306         ld.so.cache was broken.  With it, there is no way to disable dsocaps
15307         like LD_HWCAP_MASK can disable hwcaps.
15308
15309 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
15310
15311         * sysdeps/mach/hurd/sendmsg.c (__libc_sendmsg): Fix memory leaks.
15312
15313 2010-07-16  Ulrich Drepper  <drepper@redhat.com>
15314
15315         * sysdeps/x86_64/multiarch/strstr.c: Rewrite to avoid indirect function
15316         call in strcasestr.
15317         * sysdeps/x86_64/multiarch/strcasestr.c: Declare
15318         __strcasestr_sse42_nonascii.
15319         * sysdeps/x86_64/multiarch/Makefile: Add rules to build
15320         strcasestr-nonascii.c.
15321         * sysdeps/x86_64/multiarch/strcasestr-nonascii.c: New file.
15322
15323 2010-06-15  Luis Machado  <luisgpm@br.ibm.com>
15324
15325         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysign.S: New file.
15326         * sysdeps/powerpc/powerpc32/power6/fpu/s_copysignf.S: New file.
15327         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysign.S: New file.
15328         * sysdeps/powerpc/powerpc64/power6/fpu/s_copysignf.S: New file.
15329
15330 2010-07-09  Ulrich Drepper  <drepper@redhat.com>
15331
15332         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Use __fcntl not
15333         fcntl.
15334
15335 2010-07-06  Andreas Schwab  <schwab@redhat.com>
15336
15337         [BZ #11577]
15338         * elf/dl-version.c (match_symbol): Don't pass NULL occation to
15339         dl_signal_cerror.
15340
15341 2010-07-06  Ulrich Drepper  <drepper@redhat.com>
15342
15343         * sysdeps/unix/sysv/linux/fpathconf.c (__fpathconf): Implement
15344         _PC_PIPE_BUF using F_GETPIPE_SZ.
15345
15346 2010-07-05  Roland McGrath  <roland@redhat.com>
15347
15348         * manual/arith.texi (Rounding Functions): Fix rint description
15349         implicit in round description.
15350
15351 2010-07-02  Ulrich Drepper  <drepper@redhat.com>
15352
15353         * elf/Makefile: Fix linking for a few tests to make recent linker
15354         happy.
15355
15356 2010-06-30  Andreas Schwab  <schwab@redhat.com>
15357
15358         * dlfcn/Makefile (LDLIBS-bug-atexit3-lib.so): Readd
15359         $(common-objpfx)libc_nonshared.a.
15360
15361 2010-06-21  Luis Machado  <luisgpm@br.ibm.com>
15362
15363         * sysdeps/powerpc/powerpc32/970/fpu/Implies: Remove.
15364         * sysdeps/powerpc/powerpc32/power5/fpu/Implies: Remove.
15365         * sysdeps/powerpc/powerpc32/power5+/fpu/Implies: Remove.
15366         * sysdeps/powerpc/powerpc32/power6x/fpu/Implies: Remove.
15367         * sysdeps/powerpc/powerpc64/970/fpu/Implies: Remove.
15368         * sysdeps/powerpc/powerpc64/power5/fpu/Implies: Remove.
15369         * sysdeps/powerpc/powerpc64/power5+/fpu/Implies: Remove.
15370         * sysdeps/powerpc/powerpc64/power6x/fpu/Implies: Remove.
15371         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/fpu/Implies: Remove.
15372         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/fpu/Implies: Remove.
15373         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/fpu/Implies: Remove.
15374         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5+/fpu/Implies: Remove.
15375         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/fpu/Implies: Remove.
15376         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/fpu/Implies: Remove.
15377         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/fpu/Implies: Remove.
15378         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/fpu/Implies: Remove.
15379         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/fpu/Implies: Remove.
15380         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/fpu/Implies: Remove.
15381         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5+/fpu/Implies: Remove.
15382         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/fpu/Implies: Remove.
15383         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/fpu/Implies: Remove.
15384         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/fpu/Implies: Remove.
15385         * sysdeps/powerpc/powerpc32/970/Implies: Point to power4.
15386         * sysdeps/powerpc/powerpc32/power5/Implies: Point to power4.
15387         * sysdeps/powerpc/powerpc32/power5+/Implies: Point to power5.
15388         * sysdeps/powerpc/powerpc32/power6/Implies: Point to power5+.
15389         * sysdeps/powerpc/powerpc32/power6x/Implies: Point to power6.
15390         * sysdeps/powerpc/powerpc64/970/Implies: Point to power4.
15391         * sysdeps/powerpc/powerpc64/power5/Implies: Point to power4.
15392         * sysdeps/powerpc/powerpc64/power5+/Implies: Point to power5.
15393         * sysdeps/powerpc/powerpc64/power6/Implies: Point to power5+.
15394         * sysdeps/powerpc/powerpc64/power6x/Implies: Point to power6.
15395         * sysdeps/powerpc/powerpc32/power7/Implies: New file.
15396         * sysdeps/powerpc/powerpc64/power7/Implies: New file.
15397         * sysdeps/unix/sysv/linux/powerpc/powerpc32/970/Implies: New file.
15398         * sysdeps/unix/sysv/linux/powerpc/powerpc32/cell/Implies: New file.
15399         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power4/Implies: New file.
15400         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power5/Implies: New file.
15401         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6/Implies: New file.
15402         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power6x/Implies: New file.
15403         * sysdeps/unix/sysv/linux/powerpc/powerpc32/power7/Implies: New file.
15404         * sysdeps/unix/sysv/linux/powerpc/powerpc64/970/Implies: New file.
15405         * sysdeps/unix/sysv/linux/powerpc/powerpc64/cell/Implies: New file.
15406         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power4/Implies: New file.
15407         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power5/Implies: New file.
15408         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6/Implies: New file.
15409         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power6x/Implies: New file.
15410         * sysdeps/unix/sysv/linux/powerpc/powerpc64/power7/Implies: New file.
15411
15412 2010-06-25  H.J. Lu  <hongjiu.lu@intel.com>
15413
15414         * debug/memmove_chk.c (__memmove_chk): Renamed to ...
15415         (MEMMOVE_CHK): ...this.  Default to __memmove_chk.
15416         * string/memmove.c (memmove): Renamed to ...
15417         (MEMMOVE): ...this.  Default to memmove.
15418         * sysdeps/x86_64/memcpy.S: Use ENTRY_CHK and END_CHK.
15419         * sysdeps/x86_64/sysdep.h (ENTRY_CHK): Define.
15420         (END_CHK): Define.
15421         * sysdeps/x86_64/multiarch/Makefile (sysdep_routines): Add
15422         memcpy-ssse3 mempcpy-ssse3 memmove-ssse3 memcpy-ssse3-back
15423         mempcpy-ssse3-back memmove-ssse3-back.
15424         * sysdeps/x86_64/multiarch/bcopy.S: New file .
15425         * sysdeps/x86_64/multiarch/memcpy-ssse3-back.S: New file.
15426         * sysdeps/x86_64/multiarch/memcpy-ssse3.S: New file.
15427         * sysdeps/x86_64/multiarch/memcpy.S: New file.
15428         * sysdeps/x86_64/multiarch/memcpy_chk.S: New file.
15429         * sysdeps/x86_64/multiarch/memmove-ssse3-back.S: New file.
15430         * sysdeps/x86_64/multiarch/memmove-ssse3.S: New file.
15431         * sysdeps/x86_64/multiarch/memmove.c: New file.
15432         * sysdeps/x86_64/multiarch/memmove_chk.c: New file.
15433         * sysdeps/x86_64/multiarch/mempcpy-ssse3-back.S: New file.
15434         * sysdeps/x86_64/multiarch/mempcpy-ssse3.S: New file.
15435         * sysdeps/x86_64/multiarch/mempcpy.S: New file.
15436         * sysdeps/x86_64/multiarch/mempcpy_chk.S: New file.
15437         * sysdeps/x86_64/multiarch/init-arch.h (bit_Fast_Copy_Backward):
15438         Define.
15439         (index_Fast_Copy_Backward): Define.
15440         (HAS_ARCH_FEATURE): Define.
15441         (HAS_FAST_REP_STRING): Define.
15442         (HAS_FAST_COPY_BACKWARD): Define.
15443
15444 2010-06-21  Andreas Schwab  <schwab@redhat.com>
15445
15446         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid):
15447         Restore proper fallback handling.
15448
15449 2010-06-19  Ulrich Drepper  <drepper@redhat.com>
15450
15451         [BZ #11701]
15452         * posix/group_member.c (__group_member): Correct checking loop.
15453
15454         * sysdeps/unix/sysv/linux/getlogin_r.c (__getlogin_r_loginuid): Handle
15455         OOM in getpwuid_r correctly.  Return error number when the caller
15456         should return, otherwise -1.
15457         (getlogin_r): Adjust to return also for result of __getlogin_r_loginuid
15458         call returning > 0 value.
15459         * sysdeps/unix/sysv/linux/getlogin.c (getlogin): Likewise.
15460
15461 2010-06-07  Andreas Schwab  <schwab@redhat.com>
15462
15463         * dlfcn/Makefile: Remove explicit dependencies on libc.so and
15464         libc_nonshared.a from targets in modules-names.
15465
15466 2010-06-02  Kirill A. Shutemov  <kirill@shutemov.name>
15467
15468         * elf/dl-reloc.c: Flush cache after solving TEXTRELs if arch
15469         requires it.
15470
15471 2010-06-10  Luis Machado  <luisgpm@br.ibm.com>
15472
15473         * sysdeps/powerpc/powerpc32/power7/memcmp.S: New file
15474         * sysdeps/powerpc/powerpc64/power7/memcmp.S: New file.
15475         * sysdeps/powerpc/powerpc32/power7/strncmp.S: New file.
15476         * sysdeps/powerpc/powerpc64/power7/strncmp.S: New file.
15477
15478 2010-06-02  Andreas Schwab  <schwab@redhat.com>
15479
15480         * nis/nss_nis/nis-initgroups.c (get_uid): Properly resize buffer.
15481
15482 2010-06-14  Ulrich Drepper  <drepper@redhat.com>
15483
15484         * sysdeps/unix/sysv/linux/powerpc/bits/fcntl.h: Define F_SETPIPE_SZ
15485         and F_GETPIPE_SZ.
15486         * sysdeps/unix/sysv/linux/i386/bits/fcntl.h: Likewise.
15487         * sysdeps/unix/sysv/linux/x86_64/bits/fcntl.h: Likewise.
15488         * sysdeps/unix/sysv/linux/s390/bits/fcntl.h: Likewise.
15489         * sysdeps/unix/sysv/linux/sparc/bits/fcntl.h: Likewise.
15490         * sysdeps/unix/sysv/linux/sh/bits/fcntl.h: Likewise.
15491         * sysdeps/unix/sysv/linux/ia64/bits/fcntl.h: Likewise
15492
15493 2010-06-14  Roland McGrath  <roland@redhat.com>
15494
15495         * manual/libc.texinfo (@copying): Change to GFDL v1.3.
15496
15497 2010-06-07  Jakub Jelinek  <jakub@redhat.com>
15498
15499         * libio/stdio.h (sscanf, vsscanf): Use __REDIRECT_NTH instead of
15500         __REDIRECT followed by __THROW.
15501         * wcsmbs/wchar.h (swscanf, vswscanf): Likewise.
15502         * posix/getopt.h (getopt): Likewise.
15503
15504 2010-06-02  Emilio Pozuelo Monfort  <pochu27@gmail.com>
15505
15506         * hurd/lookup-at.c (__file_name_lookup_at): Accept
15507         AT_SYMLINK_FOLLOW in AT_FLAGS.  Fail with EINVAL if both
15508         AT_SYMLINK_FOLLOW and AT_SYMLINK_NOFOLLOW are present
15509         in AT_FLAGS.
15510         * hurd/hurd/fd.h (__file_name_lookup_at): Update comment.
15511         * sysdeps/mach/hurd/linkat.c (linkat): Pass O_NOLINK in FLAGS.
15512
15513 2010-05-28  Luis Machado  <luisgpm@br.ibm.com>
15514
15515         * sysdeps/powerpc/powerpc32/power7/memcpy.S: Exchange srdi for srwi.
15516
15517 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
15518
15519         [BZ #11640]
15520         * sysdeps/x86_64/multiarch/init-arch.c (__init_cpu_features):
15521         Properly check family and model.
15522
15523 2010-05-26  Takashi Yoshii  <takashi.yoshii.zj@renesas.com>
15524
15525         * sysdeps/unix/sysv/linux/sh/sh4/register-dump.h: Fix iov[] size.
15526
15527 2010-05-24  Luis Machado  <luisgpm@br.ibm.com>
15528
15529         * sysdeps/powerpc/powerpc32/power7/memset.S: POWER7 32-bit memset fix.
15530
15531 2010-05-21  Ulrich Drepper  <drepper@redhat.com>
15532
15533         * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
15534         symbol reference.
15535
15536 2010-05-19  Andreas Schwab  <schwab@redhat.com>
15537
15538         * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
15539         symbol reference.
15540
15541 2010-05-21  Andreas Schwab  <schwab@redhat.com>
15542
15543         * sysdeps/unix/sysv/linux/Makefile (sysdep_routines): Add recvmmsg
15544         and internal_recvmmsg.
15545         * sysdeps/unix/sysv/linux/recvmmsg.c: New file.
15546         * sysdeps/unix/sysv/linux/internal_recvmmsg.S: New file.
15547         * sysdeps/unix/sysv/linux/socketcall.h (SOCKOP_recvmmsg): Define.
15548         * sysdeps/unix/sysv/linux/syscalls.list (recvmmsg): Remove.
15549
15550         * sunrpc/clnt_tcp.c (clnttcp_control): Add missing break.
15551         * sunrpc/clnt_udp.c (clntudp_control): Likewise.
15552         * sunrpc/clnt_unix.c (clntunix_control): Likewise.
15553
15554 2010-05-20  Andreas Schwab  <schwab@redhat.com>
15555
15556         * sysdeps/unix/sysv/linux/sys/timex.h: Use __REDIRECT_NTH.
15557
15558 2010-05-17  Luis Machado  <luisgpm@br.ibm.com>
15559
15560         POWER7 optimizations.
15561         * sysdeps/powerpc/powerpc64/power7/memset.S: New file.
15562         * sysdeps/powerpc/powerpc32/power7/memset.S: New file.
15563
15564 2010-05-19  Ulrich Drepper  <drepper@redhat.com>
15565
15566         * version.h: Update for 2.13 development version.
15567
15568 2010-05-12  Andrew Stubbs  <ams@codesourcery.com>
15569
15570         * sysdeps/sh/sh4/fpu/feholdexcpt.c (feholdexcept): Really disable all
15571         exceptions.  Return 0.
15572
15573 2010-05-07  Roland McGrath  <roland@redhat.com>
15574
15575         * elf/ldconfig.c (main): Add a const.
15576
15577 2010-05-06  Ulrich Drepper  <drepper@redhat.com>
15578
15579         * nss/getent.c (idn_flags): Default to AI_IDN|AI_CANONIDN.
15580         (args_options): Add no-idn option.
15581         (ahosts_keys_int): Add idn_flags to ai_flags.
15582         (parse_option): Handle 'i' option to clear idn_flags.
15583
15584         * malloc/malloc.c (_int_free): Possible race in the most recently
15585         added check.  Only act on the data if no current modification
15586         happened.
15587
15588 See ChangeLog.17 for earlier changes.